[03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10: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:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31: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:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:09]accept exits with 8 [04:56:09]New connection [04:56:09]New thread 3067129188 created [04:56:09]Thread 3067272548 joined [04:56:09]Waiting for new connection... [04:56:09] Sock 8.Parse request [04:56:09]Sock 8.Check first char [04:56:09]Sock 8.First char is OK [04:56:09]request: POST /json_proto HTTP/1.0 [04:56:09]Method: POST [04:56:09]URL: /json_proto [04:56:09]Method is POST - this is cgi request [04:56:09]url: /json_proto [04:56:09]query_string will be loaded in cgi processing [04:56:09]execute_cgi json_proto POST (null) [04:56:09]execute_cgi path=json_proto method=POST [04:56:09]POST find Content-Length [04:56:09]Host: 172.17.62.196:8080 [04:56:09]Content-Length: 799 [04:56:09]Content-Type: application/json [04:56:09] [04:56:09]POST finish read [04:56:09]Found Content-Length = 799 [04:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16654", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:09]execute_script... [04:56:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16654", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:09]POST & json_proto [04:56:09]process_json_proto [04:56:09]json parsed OK: [04:56:09]protocol is kg_v1.0 [04:56:09]action value=close_receipt [04:56:09]process_action close_receipt [04:56:09]cmd_close_receipt [04:56:09]MH_GetDate [04:56:09]Write to MH i2c: F0 00 00 9A 11 9A [04:56:09]Write i2c OK [04:56:09]MH_I2C_Read... [04:56:09]Read from MH i2c: F0 [04:56:09]MH_I2C_Read... [04:56:09]Read from MH i2c: F0 09 00 [04:56:09]MH_I2C_Read... [04:56:09]Read from MH i2c: F0 09 00 9A 11 00 ED F4 F0 66 CE CC 0E 66 E8 [04:56:09]GetLastDocTimeStamp 1727060439 [04:56:09]current date 1727067373 [04:56:09]FM_GetShiftState [04:56:09]SAM_PROTO_GetShiftState [04:56:09]wFMCommunicate request_size=4 [04:56:09]MH_SAM_APDU [04:56:09]CAPDU: 80 13 01 00 [04:56:09]Write to MH i2c: E2 08 00 9B 11 80 13 01 00 00 00 00 00 29 [04:56:09]Write i2c OK [04:56:09]MH_I2C_Read... [04:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:09]Read from MH i2c: E2 [04:56:09]MH_I2C_Read... [04:56:09]Read from MH i2c: E2 0E 00 [04:56:09]MH_I2C_Read... [04:56:09]Read from MH i2c: E2 0E 00 9B 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C1 [04:56:09]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [04:56:09]wFMCommunicate OK [04:56:09]SAM_PROTO_GetShiftState done [04:56:09]FM_GetShiftState done [04:56:09]opened in 1727050372 [04:56:09]opened+sec_in_day 1727136772 [04:56:09]quantity*price = 4000 [04:56:09]sum+1 = 4001 [04:56:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 0.00 Безнал.: 40.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 7 23.09.2024 04:56 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18731 ФПД: 160934497992439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T045613&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18731&fm=160934497992439&tin=02508201610067®Number=0000000000152968&sum=4000 0 [04:56:10]StoreToDocumentArchive [04:56:10]shift 181 fd 18731 [04:56:10]save to /storage/0181/doc_00018731 [04:56:10]save last doc name /storage/0181/doc_00018731 to /storage/kkm_last_doc_name [04:56:10]save OK [04:56:10]Clear old archive folders... [04:56:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [04:56:10]tlvbuf is 001CA1A0 [04:56:10]SAM_PROTO_ClearQueue [04:56:10]wFMCommunicate request_size=4 [04:56:10]MH_SAM_APDU [04:56:10]CAPDU: 80 09 00 00 [04:56:10]Write to MH i2c: E2 08 00 A8 11 80 09 00 00 00 00 00 00 2B [04:56:10]Write i2c OK [04:56:10]MH_I2C_Read... [04:56:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:56:10]Read from MH i2c: E2 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: E2 03 00 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [04:56:10]RAPDU: 90 00 [04:56:10]wFMCommunicate OK [04:56:10]SAM_PROTO_ClearQueue done [04:56:10]KKMCreateOFDPacket [04:56:10]OFDProtocolAddRootSTLVToBuf [04:56:10]FM_MakeSignedData [04:56:10]FM_MakeSignedData [04:56:10]SAM_PROTO_SignData [04:56:10]wFMCommunicate request_size=4 [04:56:10]MH_SAM_APDU [04:56:10]CAPDU: 80 0D 01 02 [04:56:10]Write to MH i2c: E2 08 00 A9 11 80 0D 01 02 00 00 00 00 33 [04:56:10]Write i2c OK [04:56:10]MH_I2C_Read... [04:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:56:10]Read from MH i2c: E2 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: E2 03 00 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [04:56:10]RAPDU: 90 00 [04:56:10]wFMCommunicate OK [04:56:10]wFMCommunicate request_size=255 [04:56:10]MH_SAM_APDU [04:56:10]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 ED F4 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [04:56:10]Write to MH i2c: E2 02 01 AA 11 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 ED F4 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 5D [04:56:10]Write i2c OK [04:56:10]MH_I2C_Read... [04:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:11]Read from MH i2c: E2 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [04:56:11]RAPDU: 90 00 [04:56:11]wFMCommunicate OK [04:56:11]wFMCommunicate request_size=33 [04:56:11]MH_SAM_APDU [04:56:11]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2B 49 00 00 35 04 06 00 92 5E 7B 95 BE F7 [04:56:11]Write to MH i2c: E2 24 00 AB 11 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2B 49 00 00 35 04 06 00 92 5E 7B 95 BE F7 00 00 F4 [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:11]Read from MH i2c: E2 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [04:56:11]RAPDU: 90 00 [04:56:11]wFMCommunicate OK [04:56:11]wFMCommunicate request_size=4 [04:56:11]MH_SAM_APDU [04:56:11]CAPDU: 80 0D 03 02 [04:56:11]Write to MH i2c: E2 08 00 AC 11 80 0D 03 02 00 00 00 00 38 [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:56:11]Read from MH i2c: E2 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 0B 00 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 0B 00 AC 11 00 68 A8 92 23 4F E4 8B D5 90 00 91 [04:56:11]RAPDU: 68 A8 92 23 4F E4 8B D5 90 00 [04:56:11]wFMCommunicate OK [04:56:11]SAM_PROTO_SignData done [04:56:11]FM_MakeSignedData done [04:56:11]CreateOFDProtocolMessage [04:56:11]wFMCommunicate request_size=4 [04:56:11]MH_SAM_APDU [04:56:11]CAPDU: 80 11 00 00 [04:56:11]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:11]Read from MH i2c: E2 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 17 00 [04:56:11]MH_I2C_Read... [04:56:11]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 35 39 34 35 36 90 00 91 [04:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [04:56:11]wFMCommunicate OK [04:56:11]CreateOFDProtocolMessage done [04:56:11]OFDSenderStorePacket 18731 [04:56:11]StoreOFDPacket docnum=18731 [04:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 9D C2 1E 01 AE 36 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 ED F4 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2B 49 00 00 35 04 06 00 92 5E 7B 95 BE F7 68 A8 92 23 4F E4 8B D5 [04:56:11]CheckFolder [04:56:11]dirname=/storage/ofd_packets [04:56:11]CheckFolder done [04:56:11]ProducePacketName [04:56:11]name=ofd_packets/00018731 [04:56:11]NVStorageSaveData ofd_packets/00018731 [04:56:11]File name is /storage/ofd_packets/00018731 [04:56:11]Write 324 bytes [04:56:11]NVStorageSaveData done [04:56:11]OFDSenderStorePacket done [04:56:11]KKMCreateOFDPacket done [04:56:11]NVStorageSaveData kkm_last_timestamp [04:56:11]File name is /storage/kkm_last_timestamp [04:56:11]Write 4 bytes [04:56:11]NVStorageSaveData done [04:56:11]ExternCall_PrintAddStr [04:56:11]wPrintStart [04:56:11]Write to MH i2c: 01 00 00 AE 11 BF [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: 01 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: 01 07 00 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [04:56:11]RasterBufferAndPrint [04:56:11]line Счет N : (3)16654 [04:56:11]line ИНН: 02508201610067 [04:56:11]line Контрольно-Кассовый Чек [04:56:11]line ПРОДАЖА [04:56:11]line Товар: 4700000160044 [04:56:11]line Вода Ыссык Ата 0,5л [04:56:11]line 1.000 * 40.00 [04:56:11]line = 40.00 [04:56:11]line НДС 12% НСП 1% [04:56:11]line > о реализуемом товаре [04:56:11]line ИТОГО: 40.00 [04:56:11]line НСП 1% : 0.35 [04:56:11]line НДС 12% : 4.25 [04:56:11]line Наличными: 0.00 [04:56:11]line Безнал.: 40.00 [04:56:11]line Место: АЗС № 176 "Партнер Нефть" [04:56:11]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [04:56:11]line СНО: Общий режим [04:56:11]line Чек 7 23.09.2024 04:56 [04:56:11]line Смена: 181 ФФД: 1.0 [04:56:11]line ЗНМ: 0300000010 [04:56:11]line РНМ: 0000000000152968 [04:56:11]line Версия ККМ: v1.0 [04:56:11]line Платежная система: O! деньги [04:56:11]line ФМ: 0000000000959456 [04:56:11]line ФД: 18731 [04:56:11]line ФПД: 160934497992439 [04:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T045613&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18731&fm=160934497992439&tin=02508201610067®Number=0000000000152968&sum=4000 [04:56:11]line 0 [04:56:11]OFD Sender: Processing packet 18731 [packets to send 7, broken 6] [04:56:11]ProducePacketName [04:56:11]name=ofd_packets/00018731 [04:56:11]OFD Sender: To server: pG, [04:56:11]CommunicateWithHost lk.salyk.kg:30040 [04:56:11]ConnectInit lk.salyk.kg [04:56:11]written 0, free lines is 4095 [04:56:11]Connected sock=10 [04:56:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 9D C2 1E 01 AE 36 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 ED F4 F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2B 49 00 00 35 04 06 00 92 5E 7B 95 BE F7 68 A8 92 23 4F E4 8B D5 [04:56:12]Write to MH i2c: 01 00 00 D8 11 E9 [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 07 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 07 00 D8 11 00 00 00 00 00 F6 0C F2 [04:56:12]RasterBufferAndPrint [04:56:12]line [04:56:12]line [04:56:12]line [04:56:12]line [04:56:12]line [04:56:12]written 0, free lines is 3324 [04:56:12]MH_Cut [04:56:12]Write to MH i2c: D1 01 00 DF 11 01 C2 [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: D1 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: D1 01 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: D1 01 00 DF 11 00 C1 [04:56:12]Write to MH i2c: 01 00 00 E0 11 F1 [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 05 1A 47 00 4D 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 35 39 34 35 36 10 04 04 00 2B 49 00 00 F4 03 04 00 53 9E F0 66 B6 04 01 00 00 85 03 1A C2 DF DE F8 38 [04:56:12]CommunicateWithHost err = 0 [04:56:12]CheckOFDResponse [04:56:12]1017 (14) - 77093643461234 [04:56:12]1041 (16) - 0000000000959456 [04:56:12]1040 (4) - 18731 [04:56:12]1012 (4) - 22.09.2024 22:46 [04:56:12]1206 (1) - 0 [04:56:12]OFD Sender: Remove packet 18731 [04:56:12]ProducePacketName [04:56:12]name=ofd_packets/00018731 [04:56:12]NVStorageDeleteData [04:56:12]OFD Sender: No OFD packet to send [04:56:12]*** Cut start [04:56:12]*** Partial cut [04:56:12]*** CUTSNS_PIN = 1 [04:56:12]*** CUTSNS_PIN = 0 [04:56:13]*** Brake cut motor [04:56:13]Read from MH i2c: 01 [04:56:13]MH_I2C_Read... [04:56:13]*** Stop cut motor [04:56:13]*** Cut end [04:56:13]Read from MH i2c: 01 07 00 [04:56:13]MH_I2C_Read... [04:56:13]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 FF 0F 06 [04:56:13]process_action close_receipt done [04:56:13]requested_data is exist [04:56:13]produce_requested_data [04:56:13]requested_item fm.sn is exist - process it [04:56:13]wFMCommunicate request_size=4 [04:56:13]MH_SAM_APDU [04:56:13]CAPDU: 80 11 00 00 [04:56:13]Write to MH i2c: E2 08 00 E1 11 80 11 00 00 00 00 00 00 6C [04:56:13]Write i2c OK [04:56:13]MH_I2C_Read... [04:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:13]Read from MH i2c: E2 [04:56:13]MH_I2C_Read... [04:56:13]Read from MH i2c: E2 17 00 [04:56:13]MH_I2C_Read... [04:56:13]Read from MH i2c: E2 17 00 E1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C5 [04:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [04:56:13]wFMCommunicate OK [04:56:13]requested_item fd.num is exist - process it [04:56:13]SAM_PROTO_GetFieldsCounters [04:56:13]wFMCommunicate request_size=4 [04:56:13]MH_SAM_APDU [04:56:13]CAPDU: 80 13 00 00 [04:56:13]Write to MH i2c: E2 08 00 E2 11 80 13 00 00 00 00 00 00 6F [04:56:13]Write i2c OK [04:56:13]MH_I2C_Read... [04:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:13]Read from MH i2c: E2 [04:56:13]MH_I2C_Read... [04:56:13]Read from MH i2c: E2 62 00 [04:56:13]MH_I2C_Read... [04:56:13]Read from MH i2c: E2 62 00 E2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2B 49 00 00 0E 04 04 00 B5 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 DA [04:56:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2B 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:56:13]wFMCommunicate OK [04:56:13]SAM_PROTO_GetFieldsCounters done [04:56:13]requested_item shift.num is exist - process it [04:56:13]requested_item shift.opened is exist - process it [04:56:13]req_shift_opened [04:56:13]FM_GetShiftState [04:56:13]SAM_PROTO_GetShiftState [04:56:13]wFMCommunicate request_size=4 [04:56:13]MH_SAM_APDU [04:56:13]CAPDU: 80 13 01 00 [04:56:13]Write to MH i2c: E2 08 00 E3 11 80 13 01 00 00 00 00 00 71 [04:56:13]Write i2c OK [04:56:13]MH_I2C_Read... [04:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:13]Read from MH i2c: E2 [04:56:13]MH_I2C_Read... [04:56:13]Read from MH i2c: E2 0E 00 [04:56:13]MH_I2C_Read... [04:56:13]Read from MH i2c: E2 0E 00 E3 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 09 [04:56:13]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [04:56:13]wFMCommunicate OK [04:56:13]SAM_PROTO_GetShiftState done [04:56:13]FM_GetShiftState done [04:56:13]req_shift_opened done [04:56:13]requested_item shift.open_date is exist - process it [04:56:13]req_shift_open_date [04:56:13]req_shift_open_date done [04:56:13]produce_requested_data done [04:56:13]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18731,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [04:56:13]process_action_free close_receipt [04:56:13]json_value_free [04:56:13]json_value_free done [04:56:13]process_json_proto returns [04:56:13]Send response to host [04:56:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18731,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [04:56:13]free response buf [04:56:13]execute_script done [04:56:13]execute_script returns [04:56:13]free content buf [04:56:13]Sock 8.Close socket [04:56:13]Sock 8.Thread stoped [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:20]accept exits with 9 [05:28:20]New connection [05:28:20]New thread 3067272548 created [05:28:20]Thread 3067129188 joined [05:28:20]Waiting for new connection... [05:28:20] Sock 9.Parse request [05:28:20]Sock 9.Check first char [05:28:20]Sock 9.First char is OK [05:28:20]request: POST /json_proto HTTP/1.0 [05:28:20]Method: POST [05:28:20]URL: /json_proto [05:28:20]Method is POST - this is cgi request [05:28:20]url: /json_proto [05:28:20]query_string will be loaded in cgi processing [05:28:20]execute_cgi json_proto POST (null) [05:28:20]execute_cgi path=json_proto method=POST [05:28:20]POST find Content-Length [05:28:20]Host: 172.17.62.196:8080 [05:28:20]Content-Length: 849 [05:28:20]Content-Type: application/json [05:28:20] [05:28:20]POST finish read [05:28:20]Found Content-Length = 849 [05:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16655", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:20]execute_script... [05:28:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16655", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 359.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:28:20]POST & json_proto [05:28:20]process_json_proto [05:28:20]json parsed OK: [05:28:20]protocol is kg_v1.0 [05:28:20]action value=close_receipt [05:28:20]process_action close_receipt [05:28:20]cmd_close_receipt [05:28:20]MH_GetDate [05:28:20]Write to MH i2c: F0 00 00 E4 11 E4 [05:28:20]Write i2c OK [05:28:20]MH_I2C_Read... [05:28:20]Read from MH i2c: F0 [05:28:20]MH_I2C_Read... [05:28:20]Read from MH i2c: F0 09 00 [05:28:20]MH_I2C_Read... [05:28:20]Read from MH i2c: F0 09 00 E4 11 00 78 FC F0 66 CE CC 0E 66 C5 [05:28:20]GetLastDocTimeStamp 1727067373 [05:28:20]current date 1727069304 [05:28:20]FM_GetShiftState [05:28:20]SAM_PROTO_GetShiftState [05:28:20]wFMCommunicate request_size=4 [05:28:20]MH_SAM_APDU [05:28:20]CAPDU: 80 13 01 00 [05:28:20]Write to MH i2c: E2 08 00 E5 11 80 13 01 00 00 00 00 00 73 [05:28:20]Write i2c OK [05:28:20]MH_I2C_Read... [05:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:20]Read from MH i2c: E2 [05:28:20]MH_I2C_Read... [05:28:20]Read from MH i2c: E2 0E 00 [05:28:20]MH_I2C_Read... [05:28:20]Read from MH i2c: E2 0E 00 E5 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 0B [05:28:20]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [05:28:20]wFMCommunicate OK [05:28:20]SAM_PROTO_GetShiftState done [05:28:20]FM_GetShiftState done [05:28:20]opened in 1727050372 [05:28:20]opened+sec_in_day 1727136772 [05:28:20]quantity*price = 22000 [05:28:20]sum+1 = 22001 [05:28:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 359.00 НСП 1% : 3.18 НДС 12% : 38.12 Наличными: 359.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 8 23.09.2024 05:28 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18732 ФПД: 145167358631123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T052824&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18732&fm=145167358631123&tin=02508201610067®Number=0000000000152968&sum=35900 0 [05:28:21]StoreToDocumentArchive [05:28:21]shift 181 fd 18732 [05:28:21]save to /storage/0181/doc_00018732 [05:28:21]save last doc name /storage/0181/doc_00018732 to /storage/kkm_last_doc_name [05:28:21]save OK [05:28:21]Clear old archive folders... [05:28:21]ProcessDocumentItem done err = 0, tmpTLVsize=368 [05:28:21]tlvbuf is 001F6FB0 [05:28:21]SAM_PROTO_ClearQueue [05:28:21]wFMCommunicate request_size=4 [05:28:21]MH_SAM_APDU [05:28:21]CAPDU: 80 09 00 00 [05:28:21]Write to MH i2c: E2 08 00 F2 11 80 09 00 00 00 00 00 00 75 [05:28:21]Write i2c OK [05:28:21]MH_I2C_Read... [05:28:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:28:21]Read from MH i2c: E2 [05:28:21]MH_I2C_Read... [05:28:21]Read from MH i2c: E2 03 00 [05:28:21]MH_I2C_Read... [05:28:21]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [05:28:21]RAPDU: 90 00 [05:28:21]wFMCommunicate OK [05:28:21]SAM_PROTO_ClearQueue done [05:28:21]KKMCreateOFDPacket [05:28:21]OFDProtocolAddRootSTLVToBuf [05:28:21]FM_MakeSignedData [05:28:21]FM_MakeSignedData [05:28:21]SAM_PROTO_SignData [05:28:21]wFMCommunicate request_size=4 [05:28:21]MH_SAM_APDU [05:28:21]CAPDU: 80 0D 01 02 [05:28:21]Write to MH i2c: E2 08 00 F3 11 80 0D 01 02 00 00 00 00 7D [05:28:21]Write i2c OK [05:28:21]MH_I2C_Read... [05:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:28:22]Read from MH i2c: E2 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 03 00 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [05:28:22]RAPDU: 90 00 [05:28:22]wFMCommunicate OK [05:28:22]wFMCommunicate request_size=255 [05:28:22]MH_SAM_APDU [05:28:22]CAPDU: 80 0D 02 02 FA 03 00 70 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 [05:28:22]Write to MH i2c: E2 02 01 F4 11 80 0D 02 02 FA 00 03 00 70 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 00 00 22 [05:28:22]Write i2c OK [05:28:22]MH_I2C_Read... [05:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:22]Read from MH i2c: E2 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 03 00 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [05:28:22]RAPDU: 90 00 [05:28:22]wFMCommunicate OK [05:28:22]wFMCommunicate request_size=127 [05:28:22]MH_SAM_APDU [05:28:22]CAPDU: 80 0D 02 02 7A 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 FC F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2C 49 00 00 35 04 06 00 84 07 68 D8 1C D3 [05:28:22]Write to MH i2c: E2 82 00 F5 11 80 0D 02 02 7A 00 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 FC F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2C 49 00 00 35 04 06 00 84 07 68 D8 1C D3 00 00 33 [05:28:22]Write i2c OK [05:28:22]MH_I2C_Read... [05:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:28:22]Read from MH i2c: E2 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 03 00 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [05:28:22]RAPDU: 90 00 [05:28:22]wFMCommunicate OK [05:28:22]wFMCommunicate request_size=4 [05:28:22]MH_SAM_APDU [05:28:22]CAPDU: 80 0D 03 02 [05:28:22]Write to MH i2c: E2 08 00 F6 11 80 0D 03 02 00 00 00 00 82 [05:28:22]Write i2c OK [05:28:22]MH_I2C_Read... [05:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:28:22]Read from MH i2c: E2 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 0B 00 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 0B 00 F6 11 00 6C 94 C5 BC F2 94 D9 EA 90 00 4D [05:28:22]RAPDU: 6C 94 C5 BC F2 94 D9 EA 90 00 [05:28:22]wFMCommunicate OK [05:28:22]SAM_PROTO_SignData done [05:28:22]FM_MakeSignedData done [05:28:22]CreateOFDProtocolMessage [05:28:22]wFMCommunicate request_size=4 [05:28:22]MH_SAM_APDU [05:28:22]CAPDU: 80 11 00 00 [05:28:22]Write to MH i2c: E2 08 00 F7 11 80 11 00 00 00 00 00 00 82 [05:28:22]Write i2c OK [05:28:22]MH_I2C_Read... [05:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:22]Read from MH i2c: E2 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 17 00 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: E2 17 00 F7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DB [05:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [05:28:22]wFMCommunicate OK [05:28:22]CreateOFDProtocolMessage done [05:28:22]OFDSenderStorePacket 18732 [05:28:22]StoreOFDPacket docnum=18732 [05:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 84 01 00 00 60 45 7C 01 B3 97 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 FC F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2C 49 00 00 35 04 06 00 84 07 68 D8 1C D3 6C 94 C5 BC F2 94 D9 EA [05:28:22]CheckFolder [05:28:22]dirname=/storage/ofd_packets [05:28:22]CheckFolder done [05:28:22]ProducePacketName [05:28:22]name=ofd_packets/00018732 [05:28:22]NVStorageSaveData ofd_packets/00018732 [05:28:22]File name is /storage/ofd_packets/00018732 [05:28:22]Write 418 bytes [05:28:22]NVStorageSaveData done [05:28:22]OFDSenderStorePacket done [05:28:22]KKMCreateOFDPacket done [05:28:22]NVStorageSaveData kkm_last_timestamp [05:28:22]File name is /storage/kkm_last_timestamp [05:28:22]Write 4 bytes [05:28:22]NVStorageSaveData done [05:28:22]ExternCall_PrintAddStr [05:28:22]wPrintStart [05:28:22]Write to MH i2c: 01 00 00 F8 11 09 [05:28:22]Write i2c OK [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: 01 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: 01 07 00 [05:28:22]MH_I2C_Read... [05:28:22]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 FF 0F 1E [05:28:22]RasterBufferAndPrint [05:28:22]line Счет N : (3)16655 [05:28:22]line ИНН: 02508201610067 [05:28:22]line Контрольно-Кассовый Чек [05:28:22]line ПРОДАЖА [05:28:22]line Товар: 4870001570071 [05:28:22]line Напиток Pepsi 1л [05:28:22]line 2.000 * 110.00 [05:28:22]line = 220.00 [05:28:22]line НДС 12% НСП 1% [05:28:22]line > о реализуемом товаре [05:28:22]line Товар: 48745000 [05:28:22]line Сигареты Winston Purple Mix [05:28:22]line 1.000 * 139.00 [05:28:22]line = 139.00 [05:28:22]line НДС 12% НСП 1% [05:28:22]line > о реализуемом товаре [05:28:22]line ИТОГО: 359.00 [05:28:22]line НСП 1% : 3.18 [05:28:22]line НДС 12% : 38.12 [05:28:22]line Наличными: 359.00 [05:28:22]line Безнал.: 0.00 [05:28:22]line Место: АЗС № 176 "Партнер Нефть" [05:28:22]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [05:28:22]line СНО: Общий режим [05:28:22]line Чек 8 23.09.2024 05:28 [05:28:22]line Смена: 181 ФФД: 1.0 [05:28:22]line ЗНМ: 0300000010 [05:28:22]line РНМ: 0000000000152968 [05:28:22]line Версия ККМ: v1.0 [05:28:22]line ФМ: 0000000000959456 [05:28:22]line ФД: 18732 [05:28:22]line ФПД: 145167358631123 [05:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T052824&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18732&fm=145167358631123&tin=02508201610067®Number=0000000000152968&sum=35900 [05:28:22]line 0 [05:28:22]OFD Sender: Processing packet 18732 [packets to send 7, broken 6] [05:28:22]ProducePacketName [05:28:22]name=ofd_packets/00018732 [05:28:22]OFD Sender: To server: pG, [05:28:22]CommunicateWithHost lk.salyk.kg:30040 [05:28:22]ConnectInit lk.salyk.kg [05:28:22]written 0, free lines is 4095 [05:28:23]Connected sock=8 [05:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 84 01 00 00 60 45 7C 01 B3 97 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 FC F0 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2C 49 00 00 35 04 06 00 84 07 68 D8 1C D3 6C 94 C5 BC F2 94 D9 EA [05:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 1E 97 47 00 68 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 35 39 34 35 36 10 04 04 00 2C 49 00 00 F4 03 04 00 DE A5 F0 66 B6 04 01 00 00 48 5D 06 CF 02 2F D0 6E [05:28:23]CommunicateWithHost err = 0 [05:28:23]CheckOFDResponse [05:28:23]1017 (14) - 77093643461234 [05:28:23]1041 (16) - 0000000000959456 [05:28:23]1040 (4) - 18732 [05:28:23]1012 (4) - 22.09.2024 23:18 [05:28:23]1206 (1) - 0 [05:28:23]OFD Sender: Remove packet 18732 [05:28:23]ProducePacketName [05:28:23]name=ofd_packets/00018732 [05:28:23]NVStorageDeleteData [05:28:23]Write to MH i2c: 01 00 00 26 12 38 [05:28:23]Write i2c OK [05:28:23]MH_I2C_Read... [05:28:23]Read from MH i2c: 01 [05:28:23]MH_I2C_Read... [05:28:23]Read from MH i2c: 01 07 00 [05:28:23]MH_I2C_Read... [05:28:23]Read from MH i2c: 01 07 00 26 12 00 00 00 00 00 C6 0C 11 [05:28:23]RasterBufferAndPrint [05:28:23]line [05:28:23]line [05:28:23]line [05:28:23]line [05:28:23]line [05:28:23]written 0, free lines is 3277 [05:28:23]MH_Cut [05:28:23]Write to MH i2c: D1 01 00 2D 12 01 11 [05:28:23]Write i2c OK [05:28:23]MH_I2C_Read... [05:28:23]Read from MH i2c: D1 [05:28:23]MH_I2C_Read... [05:28:23]Read from MH i2c: D1 01 00 [05:28:23]MH_I2C_Read... [05:28:23]Read from MH i2c: D1 01 00 2D 12 00 10 [05:28:23]Write to MH i2c: 01 00 00 2E 12 40 [05:28:23]Write i2c OK [05:28:23]MH_I2C_Read... [05:28:23]OFD Sender: No OFD packet to send [05:28:24]*** Cut start [05:28:24]*** Partial cut [05:28:24]*** CUTSNS_PIN = 1 [05:28:24]*** CUTSNS_PIN = 0 [05:28:24]*** Brake cut motor [05:28:24]Read from MH i2c: 01 [05:28:24]MH_I2C_Read... [05:28:24]*** Stop cut motor [05:28:24]*** Cut end [05:28:24]Read from MH i2c: 01 07 00 [05:28:24]MH_I2C_Read... [05:28:24]Read from MH i2c: 01 07 00 2E 12 00 00 00 00 00 FF 0F 55 [05:28:24]process_action close_receipt done [05:28:24]requested_data is exist [05:28:24]produce_requested_data [05:28:24]requested_item fm.sn is exist - process it [05:28:24]wFMCommunicate request_size=4 [05:28:24]MH_SAM_APDU [05:28:24]CAPDU: 80 11 00 00 [05:28:24]Write to MH i2c: E2 08 00 2F 12 80 11 00 00 00 00 00 00 BB [05:28:24]Write i2c OK [05:28:24]MH_I2C_Read... [05:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:28:24]Read from MH i2c: E2 [05:28:24]MH_I2C_Read... [05:28:24]Read from MH i2c: E2 17 00 [05:28:24]MH_I2C_Read... [05:28:24]Read from MH i2c: E2 17 00 2F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 14 [05:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [05:28:24]wFMCommunicate OK [05:28:24]requested_item fd.num is exist - process it [05:28:24]SAM_PROTO_GetFieldsCounters [05:28:24]wFMCommunicate request_size=4 [05:28:24]MH_SAM_APDU [05:28:24]CAPDU: 80 13 00 00 [05:28:24]Write to MH i2c: E2 08 00 30 12 80 13 00 00 00 00 00 00 BE [05:28:24]Write i2c OK [05:28:24]MH_I2C_Read... [05:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:28:24]Read from MH i2c: E2 [05:28:24]MH_I2C_Read... [05:28:24]Read from MH i2c: E2 62 00 [05:28:24]MH_I2C_Read... [05:28:24]Read from MH i2c: E2 62 00 30 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2C 49 00 00 0E 04 04 00 B5 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 2D [05:28:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2C 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:28:24]wFMCommunicate OK [05:28:24]SAM_PROTO_GetFieldsCounters done [05:28:24]requested_item shift.num is exist - process it [05:28:24]requested_item shift.opened is exist - process it [05:28:24]req_shift_opened [05:28:24]FM_GetShiftState [05:28:24]SAM_PROTO_GetShiftState [05:28:24]wFMCommunicate request_size=4 [05:28:24]MH_SAM_APDU [05:28:24]CAPDU: 80 13 01 00 [05:28:24]Write to MH i2c: E2 08 00 31 12 80 13 01 00 00 00 00 00 C0 [05:28:24]Write i2c OK [05:28:24]MH_I2C_Read... [05:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:28:24]Read from MH i2c: E2 [05:28:24]MH_I2C_Read... [05:28:24]Read from MH i2c: E2 0E 00 [05:28:24]MH_I2C_Read... [05:28:24]Read from MH i2c: E2 0E 00 31 12 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 58 [05:28:24]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [05:28:24]wFMCommunicate OK [05:28:24]SAM_PROTO_GetShiftState done [05:28:24]FM_GetShiftState done [05:28:24]req_shift_opened done [05:28:24]requested_item shift.open_date is exist - process it [05:28:24]req_shift_open_date [05:28:24]req_shift_open_date done [05:28:24]produce_requested_data done [05:28:24]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18732,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [05:28:24]process_action_free close_receipt [05:28:24]json_value_free [05:28:24]json_value_free done [05:28:24]process_json_proto returns [05:28:24]Send response to host [05:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18732,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [05:28:24]free response buf [05:28:24]execute_script done [05:28:24]execute_script returns [05:28:24]free content buf [05:28:24]Sock 9.Close socket [05:28:24]Sock 9.Thread stoped [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:38]accept exits with 10 [05:53:38]New connection [05:53:38]New thread 3067129188 created [05:53:38]Thread 3067272548 joined [05:53:38]Waiting for new connection... [05:53:38] Sock 10.Parse request [05:53:38]Sock 10.Check first char [05:53:38]Sock 10.First char is OK [05:53:38]request: POST /json_proto HTTP/1.0 [05:53:38]Method: POST [05:53:38]URL: /json_proto [05:53:38]Method is POST - this is cgi request [05:53:38]url: /json_proto [05:53:38]query_string will be loaded in cgi processing [05:53:38]execute_cgi json_proto POST (null) [05:53:38]execute_cgi path=json_proto method=POST [05:53:38]POST find Content-Length [05:53:38]Host: 172.17.62.196:8080 [05:53:38]Content-Length: 1199 [05:53:38]Content-Type: application/json [05:53:38] [05:53:38]POST finish read [05:53:38]Found Content-Length = 1199 [05:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16656", "tax_sys" : 0, "items" : [ { "code": "4700001060176", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,5\u043B", "price" : 830.00, "quantity" : 1.000, "sum" : 830.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 8.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 996.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:38]execute_script... [05:53:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16656", "tax_sys" : 0, "items" : [ { "code": "4700001060176", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,5\u043B", "price" : 830.00, "quantity" : 1.000, "sum" : 830.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 8.000, "sum" : 56.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 996.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:38]POST & json_proto [05:53:38]process_json_proto [05:53:38]json parsed OK: [05:53:38]protocol is kg_v1.0 [05:53:38]action value=close_receipt [05:53:38]process_action close_receipt [05:53:38]cmd_close_receipt [05:53:38]MH_GetDate [05:53:38]Write to MH i2c: F0 00 00 32 12 33 [05:53:38]Write i2c OK [05:53:38]MH_I2C_Read... [05:53:38]Read from MH i2c: F0 [05:53:38]MH_I2C_Read... [05:53:38]Read from MH i2c: F0 09 00 [05:53:38]MH_I2C_Read... [05:53:38]Read from MH i2c: F0 09 00 32 12 00 66 02 F1 66 CE CC 0E 66 09 [05:53:38]GetLastDocTimeStamp 1727069304 [05:53:38]current date 1727070822 [05:53:38]FM_GetShiftState [05:53:38]SAM_PROTO_GetShiftState [05:53:38]wFMCommunicate request_size=4 [05:53:38]MH_SAM_APDU [05:53:38]CAPDU: 80 13 01 00 [05:53:38]Write to MH i2c: E2 08 00 33 12 80 13 01 00 00 00 00 00 C2 [05:53:38]Write i2c OK [05:53:38]MH_I2C_Read... [05:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:38]Read from MH i2c: E2 [05:53:38]MH_I2C_Read... [05:53:38]Read from MH i2c: E2 0E 00 [05:53:38]MH_I2C_Read... [05:53:38]Read from MH i2c: E2 0E 00 33 12 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 5A [05:53:38]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [05:53:38]wFMCommunicate OK [05:53:38]SAM_PROTO_GetShiftState done [05:53:38]FM_GetShiftState done [05:53:38]opened in 1727050372 [05:53:38]opened+sec_in_day 1727136772 [05:53:38]quantity*price = 83000 [05:53:38]sum+1 = 83001 [05:53:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 8.000 * 7.00 = 56.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 996.00 НСП 1% : 8.81 НДС 12% : 105.77 Наличными: 996.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 9 23.09.2024 05:53 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18733 ФПД: 86376826924491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T055342&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18733&fm=86376826924491&tin=02508201610067®Number=0000000000152968&sum=99600 0 [05:53:39]StoreToDocumentArchive [05:53:39]shift 181 fd 18733 [05:53:39]save to /storage/0181/doc_00018733 [05:53:39]save last doc name /storage/0181/doc_00018733 to /storage/kkm_last_doc_name [05:53:39]save OK [05:53:39]Clear old archive folders... [05:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=499 [05:53:39]tlvbuf is 001CA8A0 [05:53:39]SAM_PROTO_ClearQueue [05:53:39]wFMCommunicate request_size=4 [05:53:39]MH_SAM_APDU [05:53:39]CAPDU: 80 09 00 00 [05:53:39]Write to MH i2c: E2 08 00 40 12 80 09 00 00 00 00 00 00 C4 [05:53:39]Write i2c OK [05:53:39]MH_I2C_Read... [05:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:53:39]Read from MH i2c: E2 [05:53:39]MH_I2C_Read... [05:53:39]Read from MH i2c: E2 03 00 [05:53:39]MH_I2C_Read... [05:53:39]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [05:53:39]RAPDU: 90 00 [05:53:39]wFMCommunicate OK [05:53:39]SAM_PROTO_ClearQueue done [05:53:39]KKMCreateOFDPacket [05:53:39]OFDProtocolAddRootSTLVToBuf [05:53:39]FM_MakeSignedData [05:53:39]FM_MakeSignedData [05:53:39]SAM_PROTO_SignData [05:53:39]wFMCommunicate request_size=4 [05:53:39]MH_SAM_APDU [05:53:39]CAPDU: 80 0D 01 02 [05:53:39]Write to MH i2c: E2 08 00 41 12 80 0D 01 02 00 00 00 00 CC [05:53:39]Write i2c OK [05:53:39]MH_I2C_Read... [05:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:53:39]Read from MH i2c: E2 [05:53:39]MH_I2C_Read... [05:53:39]Read from MH i2c: E2 03 00 [05:53:39]MH_I2C_Read... [05:53:39]Read from MH i2c: E2 03 00 41 12 00 90 00 C7 [05:53:39]RAPDU: 90 00 [05:53:39]wFMCommunicate OK [05:53:39]wFMCommunicate request_size=255 [05:53:39]MH_SAM_APDU [05:53:39]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 37 36 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 44 01 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 [05:53:39]Write to MH i2c: E2 02 01 42 12 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 37 36 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 44 01 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 00 00 50 [05:53:39]Write i2c OK [05:53:39]MH_I2C_Read... [05:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:40]Read from MH i2c: E2 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 03 00 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 03 00 42 12 00 90 00 C8 [05:53:40]RAPDU: 90 00 [05:53:40]wFMCommunicate OK [05:53:40]wFMCommunicate request_size=255 [05:53:40]MH_SAM_APDU [05:53:40]CAPDU: 80 0D 02 02 FA D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 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 09 00 00 00 F4 03 04 00 66 02 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2D 49 00 00 35 04 06 00 4E 8F 2C [05:53:40]Write to MH i2c: E2 02 01 43 12 80 0D 02 02 FA 00 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 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 09 00 00 00 F4 03 04 00 66 02 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2D 49 00 00 35 04 06 00 4E 8F 2C 00 00 5C [05:53:40]Write i2c OK [05:53:40]MH_I2C_Read... [05:53:40]OFD Sender: No OFD packet to send [05:53:40]Read from MH i2c: E2 [05:53:40]MH_I2C_Read... [05:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:40]Read from MH i2c: E2 03 00 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 03 00 43 12 00 90 00 C9 [05:53:40]RAPDU: 90 00 [05:53:40]wFMCommunicate OK [05:53:40]wFMCommunicate request_size=8 [05:53:40]MH_SAM_APDU [05:53:40]CAPDU: 80 0D 02 02 03 15 ED CB [05:53:40]Write to MH i2c: E2 0B 00 44 12 80 0D 02 02 03 00 15 ED CB 00 00 A3 [05:53:40]Write i2c OK [05:53:40]MH_I2C_Read... [05:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:40]Read from MH i2c: E2 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 03 00 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 03 00 44 12 00 90 00 CA [05:53:40]RAPDU: 90 00 [05:53:40]wFMCommunicate OK [05:53:40]wFMCommunicate request_size=4 [05:53:40]MH_SAM_APDU [05:53:40]CAPDU: 80 0D 03 02 [05:53:40]Write to MH i2c: E2 08 00 45 12 80 0D 03 02 00 00 00 00 D2 [05:53:40]Write i2c OK [05:53:40]MH_I2C_Read... [05:53:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:53:40]Read from MH i2c: E2 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 0B 00 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 0B 00 45 12 00 1C F1 79 05 67 A8 12 F0 90 00 6F [05:53:40]RAPDU: 1C F1 79 05 67 A8 12 F0 90 00 [05:53:40]wFMCommunicate OK [05:53:40]SAM_PROTO_SignData done [05:53:40]FM_MakeSignedData done [05:53:40]CreateOFDProtocolMessage [05:53:40]wFMCommunicate request_size=4 [05:53:40]MH_SAM_APDU [05:53:40]CAPDU: 80 11 00 00 [05:53:40]Write to MH i2c: E2 08 00 46 12 80 11 00 00 00 00 00 00 D2 [05:53:40]Write i2c OK [05:53:40]MH_I2C_Read... [05:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:40]Read from MH i2c: E2 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 17 00 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: E2 17 00 46 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 2B [05:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [05:53:40]wFMCommunicate OK [05:53:40]CreateOFDProtocolMessage done [05:53:40]OFDSenderStorePacket 18733 [05:53:40]StoreOFDPacket docnum=18733 [05:53:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 07 02 00 00 79 57 FF 01 7B 86 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 37 36 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 44 01 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 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 09 00 00 00 F4 03 04 00 66 02 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2D 49 00 00 35 04 06 00 4E 8F 2C 15 ED CB 1C F1 79 05 67 A8 12 F0 [05:53:40]CheckFolder [05:53:40]dirname=/storage/ofd_packets [05:53:40]CheckFolder done [05:53:40]ProducePacketName [05:53:40]name=ofd_packets/00018733 [05:53:40]NVStorageSaveData ofd_packets/00018733 [05:53:40]File name is /storage/ofd_packets/00018733 [05:53:40]Write 549 bytes [05:53:40]NVStorageSaveData done [05:53:40]OFDSenderStorePacket done [05:53:40]KKMCreateOFDPacket done [05:53:40]NVStorageSaveData kkm_last_timestamp [05:53:40]File name is /storage/kkm_last_timestamp [05:53:40]Write 4 bytes [05:53:40]NVStorageSaveData done [05:53:40]ExternCall_PrintAddStr [05:53:40]wPrintStart [05:53:40]Write to MH i2c: 01 00 00 47 12 59 [05:53:40]Write i2c OK [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: 01 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: 01 07 00 [05:53:40]MH_I2C_Read... [05:53:40]Read from MH i2c: 01 07 00 47 12 00 00 00 00 00 FF 0F 6E [05:53:40]RasterBufferAndPrint [05:53:40]line Счет N : (3)16656 [05:53:40]line ИНН: 02508201610067 [05:53:40]line Контрольно-Кассовый Чек [05:53:40]line ПРОДАЖА [05:53:40]line Товар: 4700001060176 [05:53:40]line Коньяк КВ Кыргызстан 0,5л [05:53:40]line 1.000 * 830.00 [05:53:40]line = 830.00 [05:53:40]line НДС 12% НСП 1% [05:53:40]line > о реализуемом товаре [05:53:40]line Товар: 4870001570071 [05:53:40]line Напиток Pepsi 1л [05:53:40]line 1.000 * 110.00 [05:53:40]line = 110.00 [05:53:40]line НДС 12% НСП 1% [05:53:40]line > о реализуемом товаре [05:53:40]line Товар: 2000053020015 [05:53:40]line Бумажные стаканы 250мл 1шт [05:53:40]line 8.000 * 7.00 [05:53:40]line = 56.00 [05:53:40]line НДС 12% НСП 1% [05:53:40]line > о реализуемом товаре [05:53:40]line ИТОГО: 996.00 [05:53:40]line НСП 1% : 8.81 [05:53:40]line НДС 12% : 105.77 [05:53:40]line Наличными: 996.00 [05:53:40]line Безнал.: 0.00 [05:53:40]line Место: АЗС № 176 "Партнер Нефть" [05:53:40]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [05:53:40]line СНО: Общий режим [05:53:40]line Чек 9 23.09.2024 05:53 [05:53:40]line Смена: 181 ФФД: 1.0 [05:53:40]line ЗНМ: 0300000010 [05:53:40]line РНМ: 0000000000152968 [05:53:40]line Версия ККМ: v1.0 [05:53:40]line ФМ: 0000000000959456 [05:53:40]line ФД: 18733 [05:53:40]line ФПД: 86376826924491 [05:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T055342&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18733&fm=86376826924491&tin=02508201610067®Number=0000000000152968&sum=99600 [05:53:40]OFD Sender: Processing packet 18733 [packets to send 7, broken 6] [05:53:40]ProducePacketName [05:53:40]name=ofd_packets/00018733 [05:53:40]OFD Sender: To server: pG, [05:53:40]CommunicateWithHost lk.salyk.kg:30040 [05:53:40]ConnectInit lk.salyk.kg [05:53:40]line 0 [05:53:40]written 0, free lines is 4095 [05:53:40]Connected sock=9 [05:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 07 02 00 00 79 57 FF 01 7B 86 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 37 36 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 44 01 00 00 00 13 04 06 00 38 44 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 E0 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 29 00 00 00 00 07 04 06 00 10 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 09 00 00 00 F4 03 04 00 66 02 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2D 49 00 00 35 04 06 00 4E 8F 2C 15 ED CB 1C F1 79 05 67 A8 12 F0 [05:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A6 1C 47 00 A2 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 35 39 34 35 36 10 04 04 00 2D 49 00 00 F4 03 04 00 CC AB F0 66 B6 04 01 00 00 0A AD 45 56 20 7F AD E6 [05:53:41]CommunicateWithHost err = 0 [05:53:41]CheckOFDResponse [05:53:41]1017 (14) - 77093643461234 [05:53:41]1041 (16) - 0000000000959456 [05:53:41]1040 (4) - 18733 [05:53:41]1012 (4) - 22.09.2024 23:44 [05:53:41]1206 (1) - 0 [05:53:41]OFD Sender: Remove packet 18733 [05:53:41]ProducePacketName [05:53:41]name=ofd_packets/00018733 [05:53:41]NVStorageDeleteData [05:53:41]Write to MH i2c: 01 00 00 7C 12 8E [05:53:41]Write i2c OK [05:53:41]MH_I2C_Read... [05:53:41]Read from MH i2c: 01 [05:53:41]MH_I2C_Read... [05:53:41]Read from MH i2c: 01 07 00 [05:53:41]MH_I2C_Read... [05:53:41]Read from MH i2c: 01 07 00 7C 12 00 00 00 00 00 6A 0C 0B [05:53:41]RasterBufferAndPrint [05:53:41]line [05:53:41]line [05:53:41]line [05:53:41]line [05:53:41]line [05:53:41]written 0, free lines is 3186 [05:53:41]MH_Cut [05:53:41]Write to MH i2c: D1 01 00 83 12 01 67 [05:53:41]Write i2c OK [05:53:41]MH_I2C_Read... [05:53:41]Read from MH i2c: D1 [05:53:41]MH_I2C_Read... [05:53:41]Read from MH i2c: D1 01 00 [05:53:41]MH_I2C_Read... [05:53:41]Read from MH i2c: D1 01 00 83 12 00 66 [05:53:41]Write to MH i2c: 01 00 00 84 12 96 [05:53:41]Write i2c OK [05:53:41]MH_I2C_Read... [05:53:41]OFD Sender: No OFD packet to send [05:53:42]*** Cut start [05:53:42]*** Partial cut [05:53:42]*** CUTSNS_PIN = 1 [05:53:42]*** CUTSNS_PIN = 0 [05:53:42]*** Brake cut motor [05:53:42]Read from MH i2c: 01 [05:53:42]MH_I2C_Read... [05:53:42]*** Stop cut motor [05:53:42]*** Cut end [05:53:42]Read from MH i2c: 01 07 00 [05:53:42]MH_I2C_Read... [05:53:42]Read from MH i2c: 01 07 00 84 12 00 00 00 00 00 FF 0F AB [05:53:42]process_action close_receipt done [05:53:42]requested_data is exist [05:53:42]produce_requested_data [05:53:42]requested_item fm.sn is exist - process it [05:53:42]wFMCommunicate request_size=4 [05:53:42]MH_SAM_APDU [05:53:42]CAPDU: 80 11 00 00 [05:53:42]Write to MH i2c: E2 08 00 85 12 80 11 00 00 00 00 00 00 11 [05:53:42]Write i2c OK [05:53:42]MH_I2C_Read... [05:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:42]Read from MH i2c: E2 [05:53:42]MH_I2C_Read... [05:53:42]Read from MH i2c: E2 17 00 [05:53:42]MH_I2C_Read... [05:53:42]Read from MH i2c: E2 17 00 85 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6A [05:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [05:53:42]wFMCommunicate OK [05:53:42]requested_item fd.num is exist - process it [05:53:42]SAM_PROTO_GetFieldsCounters [05:53:42]wFMCommunicate request_size=4 [05:53:42]MH_SAM_APDU [05:53:42]CAPDU: 80 13 00 00 [05:53:42]Write to MH i2c: E2 08 00 86 12 80 13 00 00 00 00 00 00 14 [05:53:42]Write i2c OK [05:53:42]MH_I2C_Read... [05:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:53:42]Read from MH i2c: E2 [05:53:42]MH_I2C_Read... [05:53:42]Read from MH i2c: E2 62 00 [05:53:42]MH_I2C_Read... [05:53:42]Read from MH i2c: E2 62 00 86 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2D 49 00 00 0E 04 04 00 B5 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 87 [05:53:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2D 49 00 00 0E 04 04 00 B5 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 [05:53:42]wFMCommunicate OK [05:53:42]SAM_PROTO_GetFieldsCounters done [05:53:42]requested_item shift.num is exist - process it [05:53:42]requested_item shift.opened is exist - process it [05:53:42]req_shift_opened [05:53:42]FM_GetShiftState [05:53:42]SAM_PROTO_GetShiftState [05:53:42]wFMCommunicate request_size=4 [05:53:42]MH_SAM_APDU [05:53:42]CAPDU: 80 13 01 00 [05:53:42]Write to MH i2c: E2 08 00 87 12 80 13 01 00 00 00 00 00 16 [05:53:42]Write i2c OK [05:53:42]MH_I2C_Read... [05:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:42]Read from MH i2c: E2 [05:53:42]MH_I2C_Read... [05:53:42]Read from MH i2c: E2 0E 00 [05:53:42]MH_I2C_Read... [05:53:42]Read from MH i2c: E2 0E 00 87 12 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 AE [05:53:42]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [05:53:42]wFMCommunicate OK [05:53:42]SAM_PROTO_GetShiftState done [05:53:42]FM_GetShiftState done [05:53:42]req_shift_opened done [05:53:42]requested_item shift.open_date is exist - process it [05:53:42]req_shift_open_date [05:53:42]req_shift_open_date done [05:53:42]produce_requested_data done [05:53:42]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18733,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [05:53:42]process_action_free close_receipt [05:53:42]json_value_free [05:53:42]json_value_free done [05:53:42]process_json_proto returns [05:53:42]Send response to host [05:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18733,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [05:53:42]free response buf [05:53:42]execute_script done [05:53:42]execute_script returns [05:53:42]free content buf [05:53:42]Sock 10.Close socket [05:53:42]Sock 10.Thread stoped [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58: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]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30: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:56]accept exits with 8 [06:35:56]New connection [06:35:56]New thread 3067272548 created [06:35:56]Thread 3067129188 joined [06:35:56]Waiting for new connection... [06:35:56] Sock 8.Parse request [06:35:56]Sock 8.Check first char [06:35:56]Sock 8.First char is OK [06:35:56]request: POST /json_proto HTTP/1.0 [06:35:56]Method: POST [06:35:56]URL: /json_proto [06:35:56]Method is POST - this is cgi request [06:35:56]url: /json_proto [06:35:56]query_string will be loaded in cgi processing [06:35:56]execute_cgi json_proto POST (null) [06:35:56]execute_cgi path=json_proto method=POST [06:35:56]POST find Content-Length [06:35:56]Host: 172.17.62.196:8080 [06:35:56]Content-Length: 627 [06:35:56]Content-Type: application/json [06:35:56] [06:35:56]POST finish read [06:35:56]Found Content-Length = 627 [06:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16657", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:56]execute_script... [06:35:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16657", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:56]POST & json_proto [06:35:56]process_json_proto [06:35:56]json parsed OK: [06:35:56]protocol is kg_v1.0 [06:35:56]action value=close_receipt [06:35:56]process_action close_receipt [06:35:56]cmd_close_receipt [06:35:56]MH_GetDate [06:35:56]Write to MH i2c: F0 00 00 88 12 89 [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: F0 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: F0 09 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: F0 09 00 88 12 00 51 0C F1 66 CE CC 0E 66 54 [06:35:56]GetLastDocTimeStamp 1727070822 [06:35:56]current date 1727073361 [06:35:56]FM_GetShiftState [06:35:56]SAM_PROTO_GetShiftState [06:35:56]wFMCommunicate request_size=4 [06:35:56]MH_SAM_APDU [06:35:56]CAPDU: 80 13 01 00 [06:35:56]Write to MH i2c: E2 08 00 89 12 80 13 01 00 00 00 00 00 18 [06:35:56]Write i2c OK [06:35:56]MH_I2C_Read... [06:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:56]Read from MH i2c: E2 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 0E 00 [06:35:56]MH_I2C_Read... [06:35:56]Read from MH i2c: E2 0E 00 89 12 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B0 [06:35:56]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [06:35:56]wFMCommunicate OK [06:35:56]SAM_PROTO_GetShiftState done [06:35:56]FM_GetShiftState done [06:35:56]opened in 1727050372 [06:35:56]opened+sec_in_day 1727136772 [06:35:56]quantity*price = 13900 [06:35:56]sum+1 = 13901 [06:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 10 23.09.2024 06:36 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18734 ФПД: 191852690573430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T063601&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18734&fm=191852690573430&tin=02508201610067®Number=0000000000152968&sum=13900 0 [06:35:57]StoreToDocumentArchive [06:35:57]shift 181 fd 18734 [06:35:57]save to /storage/0181/doc_00018734 [06:35:57]save last doc name /storage/0181/doc_00018734 to /storage/kkm_last_doc_name [06:35:57]save OK [06:35:57]Clear old archive folders... [06:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=280 [06:35:57]tlvbuf is 0022B2F0 [06:35:57]SAM_PROTO_ClearQueue [06:35:57]wFMCommunicate request_size=4 [06:35:57]MH_SAM_APDU [06:35:57]CAPDU: 80 09 00 00 [06:35:57]Write to MH i2c: E2 08 00 96 12 80 09 00 00 00 00 00 00 1A [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:57]Read from MH i2c: E2 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 03 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [06:35:57]RAPDU: 90 00 [06:35:57]wFMCommunicate OK [06:35:57]SAM_PROTO_ClearQueue done [06:35:57]KKMCreateOFDPacket [06:35:57]OFDProtocolAddRootSTLVToBuf [06:35:57]FM_MakeSignedData [06:35:57]FM_MakeSignedData [06:35:57]SAM_PROTO_SignData [06:35:57]wFMCommunicate request_size=4 [06:35:57]MH_SAM_APDU [06:35:57]CAPDU: 80 0D 01 02 [06:35:57]Write to MH i2c: E2 08 00 97 12 80 0D 01 02 00 00 00 00 22 [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:57]Read from MH i2c: E2 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 03 00 [06:35:57]MH_I2C_Read... [06:35:57]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [06:35:57]RAPDU: 90 00 [06:35:57]wFMCommunicate OK [06:35:57]wFMCommunicate request_size=255 [06:35:57]MH_SAM_APDU [06:35:57]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 51 0C F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 [06:35:57]Write to MH i2c: E2 02 01 98 12 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 51 0C F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 00 6C [06:35:57]Write i2c OK [06:35:57]MH_I2C_Read... [06:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:58]Read from MH i2c: E2 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 03 00 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 03 00 98 12 00 90 00 1E [06:35:58]RAPDU: 90 00 [06:35:58]wFMCommunicate OK [06:35:58]wFMCommunicate request_size=39 [06:35:58]MH_SAM_APDU [06:35:58]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2E 49 00 00 35 04 06 00 AE 7D 2F 78 88 76 [06:35:58]Write to MH i2c: E2 2A 00 99 12 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2E 49 00 00 35 04 06 00 AE 7D 2F 78 88 76 00 00 2D [06:35:58]Write i2c OK [06:35:58]MH_I2C_Read... [06:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:58]Read from MH i2c: E2 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 03 00 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 03 00 99 12 00 90 00 1F [06:35:58]RAPDU: 90 00 [06:35:58]wFMCommunicate OK [06:35:58]wFMCommunicate request_size=4 [06:35:58]MH_SAM_APDU [06:35:58]CAPDU: 80 0D 03 02 [06:35:58]Write to MH i2c: E2 08 00 9A 12 80 0D 03 02 00 00 00 00 27 [06:35:58]Write i2c OK [06:35:58]MH_I2C_Read... [06:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:58]Read from MH i2c: E2 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 0B 00 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 0B 00 9A 12 00 31 B2 09 2C 84 84 EB 11 90 00 44 [06:35:58]RAPDU: 31 B2 09 2C 84 84 EB 11 90 00 [06:35:58]wFMCommunicate OK [06:35:58]SAM_PROTO_SignData done [06:35:58]FM_MakeSignedData done [06:35:58]CreateOFDProtocolMessage [06:35:58]wFMCommunicate request_size=4 [06:35:58]MH_SAM_APDU [06:35:58]CAPDU: 80 11 00 00 [06:35:58]Write to MH i2c: E2 08 00 9B 12 80 11 00 00 00 00 00 00 27 [06:35:58]Write i2c OK [06:35:58]MH_I2C_Read... [06:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:58]Read from MH i2c: E2 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 17 00 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: E2 17 00 9B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 80 [06:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:35:58]wFMCommunicate OK [06:35:58]CreateOFDProtocolMessage done [06:35:58]OFDSenderStorePacket 18734 [06:35:58]StoreOFDPacket docnum=18734 [06:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 BE AC 24 01 88 3D 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 51 0C F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2E 49 00 00 35 04 06 00 AE 7D 2F 78 88 76 31 B2 09 2C 84 84 EB 11 [06:35:58]CheckFolder [06:35:58]dirname=/storage/ofd_packets [06:35:58]CheckFolder done [06:35:58]ProducePacketName [06:35:58]name=ofd_packets/00018734 [06:35:58]NVStorageSaveData ofd_packets/00018734 [06:35:58]File name is /storage/ofd_packets/00018734 [06:35:58]Write 330 bytes [06:35:58]NVStorageSaveData done [06:35:58]OFDSenderStorePacket done [06:35:58]KKMCreateOFDPacket done [06:35:58]NVStorageSaveData kkm_last_timestamp [06:35:58]File name is /storage/kkm_last_timestamp [06:35:58]Write 4 bytes [06:35:58]NVStorageSaveData done [06:35:58]ExternCall_PrintAddStr [06:35:58]wPrintStart [06:35:58]Write to MH i2c: 01 00 00 9C 12 AE [06:35:58]Write i2c OK [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: 01 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: 01 07 00 [06:35:58]MH_I2C_Read... [06:35:58]Read from MH i2c: 01 07 00 9C 12 00 00 00 00 00 FF 0F C3 [06:35:58]RasterBufferAndPrint [06:35:58]line Счет N : (3)16657 [06:35:58]line ИНН: 02508201610067 [06:35:58]line Контрольно-Кассовый Чек [06:35:58]line ПРОДАЖА [06:35:58]line Товар: 48741231 [06:35:58]line Сигареты Winston Super Slims Silver [06:35:58]line 1.000 * 139.00 [06:35:58]line = 139.00 [06:35:58]line НДС 12% НСП 1% [06:35:58]line > о реализуемом товаре [06:35:58]line ИТОГО: 139.00 [06:35:58]line НСП 1% : 1.23 [06:35:58]line НДС 12% : 14.76 [06:35:58]line Наличными: 139.00 [06:35:58]line Безнал.: 0.00 [06:35:58]line Место: АЗС № 176 "Партнер Нефть" [06:35:58]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [06:35:58]line СНО: Общий режим [06:35:58]line Чек 10 23.09.2024 06:36 [06:35:58]line Смена: 181 ФФД: 1.0 [06:35:58]line ЗНМ: 0300000010 [06:35:58]line РНМ: 0000000000152968 [06:35:58]line Версия ККМ: v1.0 [06:35:58]line ФМ: 0000000000959456 [06:35:58]line ФД: 18734 [06:35:58]line ФПД: 191852690573430 [06:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T063601&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18734&fm=191852690573430&tin=02508201610067®Number=0000000000152968&sum=13900 [06:35:58]line 0 [06:35:58]OFD Sender: Processing packet 18734 [packets to send 7, broken 6] [06:35:58]ProducePacketName [06:35:58]name=ofd_packets/00018734 [06:35:58]OFD Sender: To server: pG, [06:35:58]CommunicateWithHost lk.salyk.kg:30040 [06:35:58]ConnectInit lk.salyk.kg [06:35:58]written 0, free lines is 4095 [06:35:58]Connected sock=10 [06:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 BE AC 24 01 88 3D 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 51 0C F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2E 49 00 00 35 04 06 00 AE 7D 2F 78 88 76 31 B2 09 2C 84 84 EB 11 [06:35:59]Write to MH i2c: 01 00 00 C5 12 D7 [06:35:59]Write i2c OK [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: 01 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: 01 07 00 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 09 0D F4 [06:35:59]RasterBufferAndPrint [06:35:59]line [06:35:59]line [06:35:59]line [06:35:59]line [06:35:59]line [06:35:59]written 0, free lines is 3346 [06:35:59]MH_Cut [06:35:59]Write to MH i2c: D1 01 00 CC 12 01 B0 [06:35:59]Write i2c OK [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: D1 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: D1 01 00 [06:35:59]MH_I2C_Read... [06:35:59]Read from MH i2c: D1 01 00 CC 12 00 AF [06:35:59]Write to MH i2c: 01 00 00 CD 12 DF [06:35:59]Write i2c OK [06:35:59]MH_I2C_Read... [06:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 C6 49 47 00 F1 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 35 39 34 35 36 10 04 04 00 2E 49 00 00 F4 03 04 00 B6 B5 F0 66 B6 04 01 00 00 77 30 11 9E 5A AD 8D 84 [06:35:59]CommunicateWithHost err = 0 [06:35:59]CheckOFDResponse [06:35:59]1017 (14) - 77093643461234 [06:35:59]1041 (16) - 0000000000959456 [06:35:59]1040 (4) - 18734 [06:35:59]1012 (4) - 23.09.2024 00:26 [06:35:59]1206 (1) - 0 [06:35:59]OFD Sender: Remove packet 18734 [06:35:59]ProducePacketName [06:35:59]name=ofd_packets/00018734 [06:35:59]NVStorageDeleteData [06:35:59]OFD Sender: No OFD packet to send [06:35:59]*** Cut start [06:35:59]*** Partial cut [06:35:59]*** CUTSNS_PIN = 1 [06:35:59]*** CUTSNS_PIN = 0 [06:36:00]*** Brake cut motor [06:36:00]Read from MH i2c: 01 [06:36:00]MH_I2C_Read... [06:36:00]*** Stop cut motor [06:36:00]*** Cut end [06:36:00]Read from MH i2c: 01 07 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [06:36:00]process_action close_receipt done [06:36:00]requested_data is exist [06:36:00]produce_requested_data [06:36:00]requested_item fm.sn is exist - process it [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 11 00 00 [06:36:00]Write to MH i2c: E2 08 00 CE 12 80 11 00 00 00 00 00 00 5A [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 17 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 17 00 CE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B3 [06:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:36:00]wFMCommunicate OK [06:36:00]requested_item fd.num is exist - process it [06:36:00]SAM_PROTO_GetFieldsCounters [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 13 00 00 [06:36:00]Write to MH i2c: E2 08 00 CF 12 80 13 00 00 00 00 00 00 5D [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 62 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 62 00 CF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2E 49 00 00 0E 04 04 00 B5 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 D4 [06:36:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2E 49 00 00 0E 04 04 00 B5 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 [06:36:00]wFMCommunicate OK [06:36:00]SAM_PROTO_GetFieldsCounters done [06:36:00]requested_item shift.num is exist - process it [06:36:00]requested_item shift.opened is exist - process it [06:36:00]req_shift_opened [06:36:00]FM_GetShiftState [06:36:00]SAM_PROTO_GetShiftState [06:36:00]wFMCommunicate request_size=4 [06:36:00]MH_SAM_APDU [06:36:00]CAPDU: 80 13 01 00 [06:36:00]Write to MH i2c: E2 08 00 D0 12 80 13 01 00 00 00 00 00 5F [06:36:00]Write i2c OK [06:36:00]MH_I2C_Read... [06:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:00]Read from MH i2c: E2 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 0E 00 [06:36:00]MH_I2C_Read... [06:36:00]Read from MH i2c: E2 0E 00 D0 12 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F7 [06:36:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [06:36:00]wFMCommunicate OK [06:36:00]SAM_PROTO_GetShiftState done [06:36:00]FM_GetShiftState done [06:36:00]req_shift_opened done [06:36:00]requested_item shift.open_date is exist - process it [06:36:00]req_shift_open_date [06:36:00]req_shift_open_date done [06:36:00]produce_requested_data done [06:36:00]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18734,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [06:36:00]process_action_free close_receipt [06:36:00]json_value_free [06:36:00]json_value_free done [06:36:00]process_json_proto returns [06:36:00]Send response to host [06:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18734,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [06:36:00]free response buf [06:36:00]execute_script done [06:36:00]execute_script returns [06:36:00]free content buf [06:36:00]Sock 8.Close socket [06:36:00]Sock 8.Thread stoped [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:54:59]accept exits with 9 [06:54:59]New connection [06:54:59]New thread 3067129188 created [06:54:59]Thread 3067272548 joined [06:54:59]Waiting for new connection... [06:54:59] Sock 9.Parse request [06:54:59]Sock 9.Check first char [06:54:59]Sock 9.First char is OK [06:54:59]request: POST /json_proto HTTP/1.0 [06:54:59]Method: POST [06:54:59]URL: /json_proto [06:54:59]Method is POST - this is cgi request [06:54:59]url: /json_proto [06:54:59]query_string will be loaded in cgi processing [06:54:59]execute_cgi json_proto POST (null) [06:54:59]execute_cgi path=json_proto method=POST [06:54:59]POST find Content-Length [06:54:59]Host: 172.17.62.196:8080 [06:54:59]Content-Length: 627 [06:54:59]Content-Type: application/json [06:54:59] [06:54:59]POST finish read [06:54:59]Found Content-Length = 627 [06:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16658", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:59]execute_script... [06:54:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16658", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:59]POST & json_proto [06:54:59]process_json_proto [06:54:59]json parsed OK: [06:54:59]protocol is kg_v1.0 [06:54:59]action value=close_receipt [06:54:59]process_action close_receipt [06:54:59]cmd_close_receipt [06:54:59]MH_GetDate [06:54:59]Write to MH i2c: F0 00 00 D1 12 D2 [06:54:59]Write i2c OK [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: F0 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: F0 09 00 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: F0 09 00 D1 12 00 C8 10 F1 66 CE CC 0E 66 18 [06:54:59]GetLastDocTimeStamp 1727073361 [06:54:59]current date 1727074504 [06:54:59]FM_GetShiftState [06:54:59]SAM_PROTO_GetShiftState [06:54:59]wFMCommunicate request_size=4 [06:54:59]MH_SAM_APDU [06:54:59]CAPDU: 80 13 01 00 [06:54:59]Write to MH i2c: E2 08 00 D2 12 80 13 01 00 00 00 00 00 61 [06:54:59]Write i2c OK [06:54:59]MH_I2C_Read... [06:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:59]Read from MH i2c: E2 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: E2 0E 00 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: E2 0E 00 D2 12 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F9 [06:54:59]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [06:54:59]wFMCommunicate OK [06:54:59]SAM_PROTO_GetShiftState done [06:54:59]FM_GetShiftState done [06:54:59]opened in 1727050372 [06:54:59]opened+sec_in_day 1727136772 [06:54:59]quantity*price = 13000 [06:54:59]sum+1 = 13001 [06:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 11 23.09.2024 06:55 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18735 ФПД: 173185663807506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T065504&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18735&fm=173185663807506&tin=02508201610067®Number=0000000000152968&sum=13000 0 [06:55:00]StoreToDocumentArchive [06:55:00]shift 181 fd 18735 [06:55:00]save to /storage/0181/doc_00018735 [06:55:00]save last doc name /storage/0181/doc_00018735 to /storage/kkm_last_doc_name [06:55:00]save OK [06:55:00]Clear old archive folders... [06:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:55:00]tlvbuf is 0020B2A0 [06:55:00]SAM_PROTO_ClearQueue [06:55:00]wFMCommunicate request_size=4 [06:55:00]MH_SAM_APDU [06:55:00]CAPDU: 80 09 00 00 [06:55:00]Write to MH i2c: E2 08 00 DF 12 80 09 00 00 00 00 00 00 63 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:00]Read from MH i2c: E2 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 DF 12 00 90 00 65 [06:55:00]RAPDU: 90 00 [06:55:00]wFMCommunicate OK [06:55:00]SAM_PROTO_ClearQueue done [06:55:00]KKMCreateOFDPacket [06:55:00]OFDProtocolAddRootSTLVToBuf [06:55:00]FM_MakeSignedData [06:55:00]FM_MakeSignedData [06:55:00]SAM_PROTO_SignData [06:55:00]wFMCommunicate request_size=4 [06:55:00]MH_SAM_APDU [06:55:00]CAPDU: 80 0D 01 02 [06:55:00]Write to MH i2c: E2 08 00 E0 12 80 0D 01 02 00 00 00 00 6B [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:00]Read from MH i2c: E2 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 E0 12 00 90 00 66 [06:55:00]RAPDU: 90 00 [06:55:00]wFMCommunicate OK [06:55:00]wFMCommunicate request_size=255 [06:55:00]MH_SAM_APDU [06:55:00]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 10 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [06:55:00]Write to MH i2c: E2 02 01 E1 12 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 10 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 7B [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:01]Read from MH i2c: E2 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 E1 12 00 90 00 67 [06:55:01]RAPDU: 90 00 [06:55:01]wFMCommunicate OK [06:55:01]wFMCommunicate request_size=35 [06:55:01]MH_SAM_APDU [06:55:01]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2F 49 00 00 35 04 06 00 9D 82 ED F8 B0 12 [06:55:01]Write to MH i2c: E2 26 00 E2 12 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2F 49 00 00 35 04 06 00 9D 82 ED F8 B0 12 00 00 A5 [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:01]Read from MH i2c: E2 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 03 00 E2 12 00 90 00 68 [06:55:01]RAPDU: 90 00 [06:55:01]wFMCommunicate OK [06:55:01]wFMCommunicate request_size=4 [06:55:01]MH_SAM_APDU [06:55:01]CAPDU: 80 0D 03 02 [06:55:01]Write to MH i2c: E2 08 00 E3 12 80 0D 03 02 00 00 00 00 70 [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:01]Read from MH i2c: E2 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 0B 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 0B 00 E3 12 00 75 43 48 29 16 3C DE 1C 90 00 E6 [06:55:01]RAPDU: 75 43 48 29 16 3C DE 1C 90 00 [06:55:01]wFMCommunicate OK [06:55:01]SAM_PROTO_SignData done [06:55:01]FM_MakeSignedData done [06:55:01]CreateOFDProtocolMessage [06:55:01]wFMCommunicate request_size=4 [06:55:01]MH_SAM_APDU [06:55:01]CAPDU: 80 11 00 00 [06:55:01]Write to MH i2c: E2 08 00 E4 12 80 11 00 00 00 00 00 00 70 [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:01]Read from MH i2c: E2 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 17 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 17 00 E4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C9 [06:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:55:01]wFMCommunicate OK [06:55:01]CreateOFDProtocolMessage done [06:55:01]OFDSenderStorePacket 18735 [06:55:01]StoreOFDPacket docnum=18735 [06:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 EE 9D 20 01 FD B0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 10 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2F 49 00 00 35 04 06 00 9D 82 ED F8 B0 12 75 43 48 29 16 3C DE 1C [06:55:01]CheckFolder [06:55:01]dirname=/storage/ofd_packets [06:55:01]CheckFolder done [06:55:01]ProducePacketName [06:55:01]name=ofd_packets/00018735 [06:55:01]NVStorageSaveData ofd_packets/00018735 [06:55:01]File name is /storage/ofd_packets/00018735 [06:55:01]Write 326 bytes [06:55:01]NVStorageSaveData done [06:55:01]OFDSenderStorePacket done [06:55:01]KKMCreateOFDPacket done [06:55:01]NVStorageSaveData kkm_last_timestamp [06:55:01]File name is /storage/kkm_last_timestamp [06:55:01]Write 4 bytes [06:55:01]NVStorageSaveData done [06:55:01]ExternCall_PrintAddStr [06:55:01]wPrintStart [06:55:01]Write to MH i2c: 01 00 00 E5 12 F7 [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: 01 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: 01 07 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: 01 07 00 E5 12 00 00 00 00 00 FF 0F 0C [06:55:01]RasterBufferAndPrint [06:55:01]line Счет N : (3)16658 [06:55:01]line ИНН: 02508201610067 [06:55:01]line Контрольно-Кассовый Чек [06:55:01]line ПРОДАЖА [06:55:01]line Товар: 2000036230011 [06:55:01]line Кофе Латте XL(GABB TRADE) [06:55:01]line 1.000 * 130.00 [06:55:01]line = 130.00 [06:55:01]line НДС 12% НСП 1% [06:55:01]line > о реализуемом товаре [06:55:01]line ИТОГО: 130.00 [06:55:01]line НСП 1% : 1.15 [06:55:01]line НДС 12% : 13.80 [06:55:01]line Наличными: 130.00 [06:55:01]line Безнал.: 0.00 [06:55:01]line Место: АЗС № 176 "Партнер Нефть" [06:55:01]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [06:55:01]line СНО: Общий режим [06:55:01]line Чек 11 23.09.2024 06:55 [06:55:01]line Смена: 181 ФФД: 1.0 [06:55:01]line ЗНМ: 0300000010 [06:55:01]line РНМ: 0000000000152968 [06:55:01]line Версия ККМ: v1.0 [06:55:01]line ФМ: 0000000000959456 [06:55:01]line ФД: 18735 [06:55:01]line ФПД: 173185663807506 [06:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T065504&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18735&fm=173185663807506&tin=02508201610067®Number=0000000000152968&sum=13000 [06:55:01]line 0 [06:55:01]OFD Sender: Processing packet 18735 [packets to send 7, broken 6] [06:55:01]ProducePacketName [06:55:01]name=ofd_packets/00018735 [06:55:01]OFD Sender: To server: pG, [06:55:01]CommunicateWithHost lk.salyk.kg:30040 [06:55:01]ConnectInit lk.salyk.kg [06:55:01]written 0, free lines is 4095 [06:55:01]Connected sock=10 [06:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 EE 9D 20 01 FD B0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C8 10 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 2F 49 00 00 35 04 06 00 9D 82 ED F8 B0 12 75 43 48 29 16 3C DE 1C [06:55:02]Write to MH i2c: 01 00 00 0D 13 20 [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 07 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: 01 07 00 0D 13 00 00 00 00 00 24 0D 58 [06:55:02]RasterBufferAndPrint [06:55:02]line [06:55:02]line [06:55:02]line [06:55:02]line [06:55:02]line [06:55:02]written 0, free lines is 3370 [06:55:02]MH_Cut [06:55:02]Write to MH i2c: D1 01 00 14 13 01 F9 [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: D1 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: D1 01 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: D1 01 00 14 13 00 F8 [06:55:02]Write to MH i2c: 01 00 00 15 13 28 [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 0E 1B 47 00 87 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 35 39 34 35 36 10 04 04 00 2F 49 00 00 F4 03 04 00 2D BA F0 66 B6 04 01 00 00 2D 2F 4D 71 D8 EF A8 C1 [06:55:02]CommunicateWithHost err = 0 [06:55:02]CheckOFDResponse [06:55:02]1017 (14) - 77093643461234 [06:55:02]1041 (16) - 0000000000959456 [06:55:02]1040 (4) - 18735 [06:55:02]1012 (4) - 23.09.2024 00:45 [06:55:02]1206 (1) - 0 [06:55:02]OFD Sender: Remove packet 18735 [06:55:02]ProducePacketName [06:55:02]name=ofd_packets/00018735 [06:55:02]NVStorageDeleteData [06:55:02]OFD Sender: No OFD packet to send [06:55:02]*** Cut start [06:55:02]*** Partial cut [06:55:02]*** CUTSNS_PIN = 1 [06:55:02]*** CUTSNS_PIN = 0 [06:55:03]*** Brake cut motor [06:55:03]Read from MH i2c: 01 [06:55:03]MH_I2C_Read... [06:55:03]*** Stop cut motor [06:55:03]*** Cut end [06:55:03]Read from MH i2c: 01 07 00 [06:55:03]MH_I2C_Read... [06:55:03]Read from MH i2c: 01 07 00 15 13 00 00 00 00 00 FF 0F 3D [06:55:03]process_action close_receipt done [06:55:03]requested_data is exist [06:55:03]produce_requested_data [06:55:03]requested_item fm.sn is exist - process it [06:55:03]wFMCommunicate request_size=4 [06:55:03]MH_SAM_APDU [06:55:03]CAPDU: 80 11 00 00 [06:55:03]Write to MH i2c: E2 08 00 16 13 80 11 00 00 00 00 00 00 A3 [06:55:03]Write i2c OK [06:55:03]MH_I2C_Read... [06:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:03]Read from MH i2c: E2 [06:55:03]MH_I2C_Read... [06:55:03]Read from MH i2c: E2 17 00 [06:55:03]MH_I2C_Read... [06:55:03]Read from MH i2c: E2 17 00 16 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FC [06:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [06:55:03]wFMCommunicate OK [06:55:03]requested_item fd.num is exist - process it [06:55:03]SAM_PROTO_GetFieldsCounters [06:55:03]wFMCommunicate request_size=4 [06:55:03]MH_SAM_APDU [06:55:03]CAPDU: 80 13 00 00 [06:55:03]Write to MH i2c: E2 08 00 17 13 80 13 00 00 00 00 00 00 A6 [06:55:03]Write i2c OK [06:55:03]MH_I2C_Read... [06:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:55:03]Read from MH i2c: E2 [06:55:03]MH_I2C_Read... [06:55:03]Read from MH i2c: E2 62 00 [06:55:03]MH_I2C_Read... [06:55:03]Read from MH i2c: E2 62 00 17 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2F 49 00 00 0E 04 04 00 B5 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 21 [06:55:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 2F 49 00 00 0E 04 04 00 B5 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 [06:55:03]wFMCommunicate OK [06:55:03]SAM_PROTO_GetFieldsCounters done [06:55:03]requested_item shift.num is exist - process it [06:55:03]requested_item shift.opened is exist - process it [06:55:03]req_shift_opened [06:55:03]FM_GetShiftState [06:55:03]SAM_PROTO_GetShiftState [06:55:03]wFMCommunicate request_size=4 [06:55:03]MH_SAM_APDU [06:55:03]CAPDU: 80 13 01 00 [06:55:03]Write to MH i2c: E2 08 00 18 13 80 13 01 00 00 00 00 00 A8 [06:55:03]Write i2c OK [06:55:03]MH_I2C_Read... [06:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:03]Read from MH i2c: E2 [06:55:03]MH_I2C_Read... [06:55:03]Read from MH i2c: E2 0E 00 [06:55:03]MH_I2C_Read... [06:55:03]Read from MH i2c: E2 0E 00 18 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 40 [06:55:03]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [06:55:03]wFMCommunicate OK [06:55:03]SAM_PROTO_GetShiftState done [06:55:03]FM_GetShiftState done [06:55:03]req_shift_opened done [06:55:03]requested_item shift.open_date is exist - process it [06:55:03]req_shift_open_date [06:55:03]req_shift_open_date done [06:55:03]produce_requested_data done [06:55:03]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18735,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [06:55:03]process_action_free close_receipt [06:55:03]json_value_free [06:55:03]json_value_free done [06:55:03]process_json_proto returns [06:55:03]Send response to host [06:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18735,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [06:55:03]free response buf [06:55:03]execute_script done [06:55:03]execute_script returns [06:55:03]free content buf [06:55:03]Sock 9.Close socket [06:55:03]Sock 9.Thread stoped [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:00]accept exits with 8 [07:16:00]New connection [07:16:00]New thread 3067272548 created [07:16:00]Thread 3067129188 joined [07:16:00]Waiting for new connection... [07:16:00] Sock 8.Parse request [07:16:00]Sock 8.Check first char [07:16:00]Sock 8.First char is OK [07:16:00]request: POST /json_proto HTTP/1.0 [07:16:00]Method: POST [07:16:00]URL: /json_proto [07:16:00]Method is POST - this is cgi request [07:16:00]url: /json_proto [07:16:00]query_string will be loaded in cgi processing [07:16:00]execute_cgi json_proto POST (null) [07:16:00]execute_cgi path=json_proto method=POST [07:16:00]POST find Content-Length [07:16:00]Host: 172.17.62.196:8080 [07:16:00]Content-Length: 616 [07:16:00]Content-Type: application/json [07:16:00] [07:16:00]POST finish read [07:16:00]Found Content-Length = 616 [07:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16659", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 5.000, "sum" : 720.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 720.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:00]execute_script... [07:16:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16659", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 5.000, "sum" : 720.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 720.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:00]POST & json_proto [07:16:00]process_json_proto [07:16:00]json parsed OK: [07:16:00]protocol is kg_v1.0 [07:16:00]action value=close_receipt [07:16:00]process_action close_receipt [07:16:00]cmd_close_receipt [07:16:00]MH_GetDate [07:16:00]Write to MH i2c: F0 00 00 19 13 1B [07:16:00]Write i2c OK [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: F0 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: F0 09 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: F0 09 00 19 13 00 B5 15 F1 66 CE CC 0E 66 53 [07:16:00]GetLastDocTimeStamp 1727074504 [07:16:00]current date 1727075765 [07:16:00]FM_GetShiftState [07:16:00]SAM_PROTO_GetShiftState [07:16:00]wFMCommunicate request_size=4 [07:16:00]MH_SAM_APDU [07:16:00]CAPDU: 80 13 01 00 [07:16:00]Write to MH i2c: E2 08 00 1A 13 80 13 01 00 00 00 00 00 AA [07:16:00]Write i2c OK [07:16:00]MH_I2C_Read... [07:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:00]Read from MH i2c: E2 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 0E 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 0E 00 1A 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 42 [07:16:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:16:00]wFMCommunicate OK [07:16:00]SAM_PROTO_GetShiftState done [07:16:00]FM_GetShiftState done [07:16:00]opened in 1727050372 [07:16:00]opened+sec_in_day 1727136772 [07:16:00]quantity*price = 72000 [07:16:00]sum+1 = 72001 [07:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 720.00 НСП 1% : 6.37 НДС 12% : 76.46 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 12 23.09.2024 07:16 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18736 ФПД: 7533969486064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T071605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18736&fm=7533969486064&tin=02508201610067®Number=0000000000152968&sum=72000 0 [07:16:01]StoreToDocumentArchive [07:16:01]shift 181 fd 18736 [07:16:01]save to /storage/0181/doc_00018736 [07:16:01]save last doc name /storage/0181/doc_00018736 to /storage/kkm_last_doc_name [07:16:01]save OK [07:16:01]Clear old archive folders... [07:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [07:16:01]tlvbuf is 0020B730 [07:16:01]SAM_PROTO_ClearQueue [07:16:01]wFMCommunicate request_size=4 [07:16:01]MH_SAM_APDU [07:16:01]CAPDU: 80 09 00 00 [07:16:01]Write to MH i2c: E2 08 00 27 13 80 09 00 00 00 00 00 00 AC [07:16:01]Write i2c OK [07:16:01]MH_I2C_Read... [07:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:01]Read from MH i2c: E2 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 27 13 00 90 00 AE [07:16:01]RAPDU: 90 00 [07:16:01]wFMCommunicate OK [07:16:01]SAM_PROTO_ClearQueue done [07:16:01]KKMCreateOFDPacket [07:16:01]OFDProtocolAddRootSTLVToBuf [07:16:01]FM_MakeSignedData [07:16:01]FM_MakeSignedData [07:16:01]SAM_PROTO_SignData [07:16:01]wFMCommunicate request_size=4 [07:16:01]MH_SAM_APDU [07:16:01]CAPDU: 80 0D 01 02 [07:16:01]Write to MH i2c: E2 08 00 28 13 80 0D 01 02 00 00 00 00 B4 [07:16:01]Write i2c OK [07:16:01]MH_I2C_Read... [07:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:01]Read from MH i2c: E2 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 28 13 00 90 00 AF [07:16:01]RAPDU: 90 00 [07:16:01]wFMCommunicate OK [07:16:01]wFMCommunicate request_size=255 [07:16:01]MH_SAM_APDU [07:16:01]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 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 B5 15 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [07:16:01]Write to MH i2c: E2 02 01 29 13 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 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 B5 15 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 50 [07:16:01]Write i2c OK [07:16:01]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 03 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 03 00 29 13 00 90 00 B0 [07:16:02]RAPDU: 90 00 [07:16:02]wFMCommunicate OK [07:16:02]wFMCommunicate request_size=28 [07:16:02]MH_SAM_APDU [07:16:02]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 30 49 00 00 35 04 06 00 06 DA 23 93 30 F0 [07:16:02]Write to MH i2c: E2 1F 00 2A 13 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 30 49 00 00 35 04 06 00 06 DA 23 93 30 F0 00 00 78 [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 03 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 03 00 2A 13 00 90 00 B1 [07:16:02]RAPDU: 90 00 [07:16:02]wFMCommunicate OK [07:16:02]wFMCommunicate request_size=4 [07:16:02]MH_SAM_APDU [07:16:02]CAPDU: 80 0D 03 02 [07:16:02]Write to MH i2c: E2 08 00 2B 13 80 0D 03 02 00 00 00 00 B9 [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 0B 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 0B 00 2B 13 00 AB 62 06 BC 42 3D C4 FD 90 00 C9 [07:16:02]RAPDU: AB 62 06 BC 42 3D C4 FD 90 00 [07:16:02]wFMCommunicate OK [07:16:02]SAM_PROTO_SignData done [07:16:02]FM_MakeSignedData done [07:16:02]CreateOFDProtocolMessage [07:16:02]wFMCommunicate request_size=4 [07:16:02]MH_SAM_APDU [07:16:02]CAPDU: 80 11 00 00 [07:16:02]Write to MH i2c: E2 08 00 2C 13 80 11 00 00 00 00 00 00 B9 [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 17 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 17 00 2C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 12 [07:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:16:02]wFMCommunicate OK [07:16:02]CreateOFDProtocolMessage done [07:16:02]OFDSenderStorePacket 18736 [07:16:02]StoreOFDPacket docnum=18736 [07:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 C1 B7 19 01 7B 8A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 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 B5 15 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 30 49 00 00 35 04 06 00 06 DA 23 93 30 F0 AB 62 06 BC 42 3D C4 FD [07:16:02]CheckFolder [07:16:02]dirname=/storage/ofd_packets [07:16:02]CheckFolder done [07:16:02]ProducePacketName [07:16:02]name=ofd_packets/00018736 [07:16:02]NVStorageSaveData ofd_packets/00018736 [07:16:02]File name is /storage/ofd_packets/00018736 [07:16:02]Write 319 bytes [07:16:02]NVStorageSaveData done [07:16:02]OFDSenderStorePacket done [07:16:02]KKMCreateOFDPacket done [07:16:02]NVStorageSaveData kkm_last_timestamp [07:16:02]File name is /storage/kkm_last_timestamp [07:16:02]Write 4 bytes [07:16:02]NVStorageSaveData done [07:16:02]ExternCall_PrintAddStr [07:16:02]wPrintStart [07:16:02]Write to MH i2c: 01 00 00 2D 13 40 [07:16:02]OFD Sender: Processing packet 18736 [packets to send 7, broken 6] [07:16:02]ProducePacketName [07:16:02]name=ofd_packets/00018736 [07:16:02]OFD Sender: To server: pG, [07:16:02]CommunicateWithHost lk.salyk.kg:30040 [07:16:02]ConnectInit lk.salyk.kg [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 07 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 07 00 2D 13 00 00 00 00 00 FF 0F 55 [07:16:02]RasterBufferAndPrint [07:16:02]line Счет N : (3)16659 [07:16:02]line ИНН: 02508201610067 [07:16:02]line Контрольно-Кассовый Чек [07:16:02]line ПРОДАЖА [07:16:02]line Товар: 47803008 [07:16:02]line Сигареты Winston XS Blue [07:16:02]line 5.000 * 144.00 [07:16:02]line = 720.00 [07:16:02]line НДС 12% НСП 1% [07:16:02]line > о реализуемом товаре [07:16:02]line ИТОГО: 720.00 [07:16:02]line НСП 1% : 6.37 [07:16:02]line НДС 12% : 76.46 [07:16:02]line Наличными: 720.00 [07:16:02]line Безнал.: 0.00 [07:16:02]line Место: АЗС № 176 "Партнер Нефть" [07:16:02]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [07:16:02]line СНО: Общий режим [07:16:02]line Чек 12 23.09.2024 07:16 [07:16:02]line Смена: 181 ФФД: 1.0 [07:16:02]line ЗНМ: 0300000010 [07:16:02]line РНМ: 0000000000152968 [07:16:02]line Версия ККМ: v1.0 [07:16:02]line ФМ: 0000000000959456 [07:16:02]line ФД: 18736 [07:16:02]line ФПД: 7533969486064 [07:16:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T071605&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18736&fm=7533969486064&tin=02508201610067®Number=0000000000152968&sum=72000 [07:16:02]Connected sock=10 [07:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 C1 B7 19 01 7B 8A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 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 B5 15 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 30 49 00 00 35 04 06 00 06 DA 23 93 30 F0 AB 62 06 BC 42 3D C4 FD [07:16:02]line 0 [07:16:02]written 0, free lines is 4095 [07:16:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 94 77 47 00 60 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 30 49 00 00 F4 03 04 00 1A BF F0 66 B6 04 01 00 00 05 70 AA 8A 1C 60 DF F9 [07:16:03]CommunicateWithHost err = 0 [07:16:03]CheckOFDResponse [07:16:03]1017 (14) - 77093643461234 [07:16:03]1041 (16) - 0000000000959456 [07:16:03]1040 (4) - 18736 [07:16:03]1012 (4) - 23.09.2024 01:06 [07:16:03]1206 (1) - 0 [07:16:03]OFD Sender: Remove packet 18736 [07:16:03]ProducePacketName [07:16:03]name=ofd_packets/00018736 [07:16:03]NVStorageDeleteData [07:16:03]Write to MH i2c: 01 00 00 55 13 68 [07:16:03]Write i2c OK [07:16:03]MH_I2C_Read... [07:16:03]Read from MH i2c: 01 [07:16:03]MH_I2C_Read... [07:16:03]Read from MH i2c: 01 07 00 [07:16:03]MH_I2C_Read... [07:16:03]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 14 0D 90 [07:16:03]RasterBufferAndPrint [07:16:03]line [07:16:03]line [07:16:03]line [07:16:03]line [07:16:03]line [07:16:03]written 0, free lines is 3354 [07:16:03]MH_Cut [07:16:03]Write to MH i2c: D1 01 00 5C 13 01 41 [07:16:03]Write i2c OK [07:16:03]MH_I2C_Read... [07:16:03]Read from MH i2c: D1 [07:16:03]MH_I2C_Read... [07:16:03]Read from MH i2c: D1 01 00 [07:16:03]MH_I2C_Read... [07:16:03]Read from MH i2c: D1 01 00 5C 13 00 40 [07:16:03]Write to MH i2c: 01 00 00 5D 13 70 [07:16:03]Write i2c OK [07:16:03]MH_I2C_Read... [07:16:03]OFD Sender: No OFD packet to send [07:16:03]*** Cut start [07:16:03]*** Partial cut [07:16:03]*** CUTSNS_PIN = 1 [07:16:03]*** CUTSNS_PIN = 0 [07:16:04]*** Brake cut motor [07:16:04]Read from MH i2c: 01 [07:16:04]MH_I2C_Read... [07:16:04]*** Stop cut motor [07:16:04]*** Cut end [07:16:04]Read from MH i2c: 01 07 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: 01 07 00 5D 13 00 00 00 00 00 FF 0F 85 [07:16:04]process_action close_receipt done [07:16:04]requested_data is exist [07:16:04]produce_requested_data [07:16:04]requested_item fm.sn is exist - process it [07:16:04]wFMCommunicate request_size=4 [07:16:04]MH_SAM_APDU [07:16:04]CAPDU: 80 11 00 00 [07:16:04]Write to MH i2c: E2 08 00 5E 13 80 11 00 00 00 00 00 00 EB [07:16:04]Write i2c OK [07:16:04]MH_I2C_Read... [07:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:04]Read from MH i2c: E2 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 17 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 17 00 5E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 44 [07:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:16:04]wFMCommunicate OK [07:16:04]requested_item fd.num is exist - process it [07:16:04]SAM_PROTO_GetFieldsCounters [07:16:04]wFMCommunicate request_size=4 [07:16:04]MH_SAM_APDU [07:16:04]CAPDU: 80 13 00 00 [07:16:04]Write to MH i2c: E2 08 00 5F 13 80 13 00 00 00 00 00 00 EE [07:16:04]Write i2c OK [07:16:04]MH_I2C_Read... [07:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:04]Read from MH i2c: E2 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 62 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 62 00 5F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 30 49 00 00 0E 04 04 00 B5 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 6D [07:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 30 49 00 00 0E 04 04 00 B5 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 [07:16:04]wFMCommunicate OK [07:16:04]SAM_PROTO_GetFieldsCounters done [07:16:04]requested_item shift.num is exist - process it [07:16:04]requested_item shift.opened is exist - process it [07:16:04]req_shift_opened [07:16:04]FM_GetShiftState [07:16:04]SAM_PROTO_GetShiftState [07:16:04]wFMCommunicate request_size=4 [07:16:04]MH_SAM_APDU [07:16:04]CAPDU: 80 13 01 00 [07:16:04]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [07:16:04]Write i2c OK [07:16:04]MH_I2C_Read... [07:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:04]Read from MH i2c: E2 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 0E 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 88 [07:16:04]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:16:04]wFMCommunicate OK [07:16:04]SAM_PROTO_GetShiftState done [07:16:04]FM_GetShiftState done [07:16:04]req_shift_opened done [07:16:04]requested_item shift.open_date is exist - process it [07:16:04]req_shift_open_date [07:16:04]req_shift_open_date done [07:16:04]produce_requested_data done [07:16:04]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18736,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [07:16:04]process_action_free close_receipt [07:16:04]json_value_free [07:16:04]json_value_free done [07:16:04]process_json_proto returns [07:16:04]Send response to host [07:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18736,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [07:16:04]free response buf [07:16:04]execute_script done [07:16:04]execute_script returns [07:16:04]free content buf [07:16:04]Sock 8.Close socket [07:16:04]Sock 8.Thread stoped [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:15]ConnectInit Can't connect to host [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:58]accept exits with 9 [07:41:58]New connection [07:41:58]New thread 3067129188 created [07:41:58]Thread 3067272548 joined [07:41:58]Waiting for new connection... [07:41:58] Sock 9.Parse request [07:41:58]Sock 9.Check first char [07:41:58]Sock 9.First char is OK [07:41:58]request: POST /json_proto HTTP/1.0 [07:41:58]Method: POST [07:41:58]URL: /json_proto [07:41:58]Method is POST - this is cgi request [07:41:58]url: /json_proto [07:41:58]query_string will be loaded in cgi processing [07:41:58]execute_cgi json_proto POST (null) [07:41:58]execute_cgi path=json_proto method=POST [07:41:58]POST find Content-Length [07:41:58]Host: 172.17.62.196:8080 [07:41:58]Content-Length: 653 [07:41:58]Content-Type: application/json [07:41:58] [07:41:58]POST finish read [07:41:58]Found Content-Length = 653 [07:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16660", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:58]execute_script... [07:41:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16660", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:58]POST & json_proto [07:41:58]process_json_proto [07:41:58]json parsed OK: [07:41:58]protocol is kg_v1.0 [07:41:58]action value=close_receipt [07:41:58]process_action close_receipt [07:41:58]cmd_close_receipt [07:41:58]MH_GetDate [07:41:58]Write to MH i2c: F0 00 00 61 13 63 [07:41:58]Write i2c OK [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: F0 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: F0 09 00 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: F0 09 00 61 13 00 CB 1B F1 66 CE CC 0E 66 B7 [07:41:58]GetLastDocTimeStamp 1727075765 [07:41:58]current date 1727077323 [07:41:58]FM_GetShiftState [07:41:58]SAM_PROTO_GetShiftState [07:41:58]wFMCommunicate request_size=4 [07:41:58]MH_SAM_APDU [07:41:58]CAPDU: 80 13 01 00 [07:41:58]Write to MH i2c: E2 08 00 62 13 80 13 01 00 00 00 00 00 F2 [07:41:58]Write i2c OK [07:41:58]MH_I2C_Read... [07:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:58]Read from MH i2c: E2 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: E2 0E 00 [07:41:58]MH_I2C_Read... [07:41:58]Read from MH i2c: E2 0E 00 62 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8A [07:41:58]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:41:58]wFMCommunicate OK [07:41:58]SAM_PROTO_GetShiftState done [07:41:58]FM_GetShiftState done [07:41:58]opened in 1727050372 [07:41:58]opened+sec_in_day 1727136772 [07:41:58]quantity*price = 7700 [07:41:58]sum+1 = 7701 [07:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 13 23.09.2024 07:42 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18737 ФПД: 37464454563946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T074203&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18737&fm=37464454563946&tin=02508201610067®Number=0000000000152968&sum=7700 0 [07:41:59]StoreToDocumentArchive [07:41:59]shift 181 fd 18737 [07:41:59]save to /storage/0181/doc_00018737 [07:41:59]save last doc name /storage/0181/doc_00018737 to /storage/kkm_last_doc_name [07:41:59]save OK [07:41:59]Clear old archive folders... [07:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=293 [07:41:59]tlvbuf is 001C9C50 [07:41:59]SAM_PROTO_ClearQueue [07:41:59]wFMCommunicate request_size=4 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 09 00 00 [07:41:59]Write to MH i2c: E2 08 00 6F 13 80 09 00 00 00 00 00 00 F4 [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [07:41:59]RAPDU: 90 00 [07:41:59]wFMCommunicate OK [07:41:59]SAM_PROTO_ClearQueue done [07:41:59]KKMCreateOFDPacket [07:41:59]OFDProtocolAddRootSTLVToBuf [07:41:59]FM_MakeSignedData [07:41:59]FM_MakeSignedData [07:41:59]SAM_PROTO_SignData [07:41:59]wFMCommunicate request_size=4 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 0D 01 02 [07:41:59]Write to MH i2c: E2 08 00 70 13 80 0D 01 02 00 00 00 00 FC [07:41:59]Write i2c OK [07:41:59]MH_I2C_Read... [07:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:59]Read from MH i2c: E2 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 [07:41:59]MH_I2C_Read... [07:41:59]Read from MH i2c: E2 03 00 70 13 00 90 00 F7 [07:41:59]RAPDU: 90 00 [07:41:59]wFMCommunicate OK [07:41:59]wFMCommunicate request_size=255 [07:41:59]MH_SAM_APDU [07:41:59]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CB 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [07:41:59]Write to MH i2c: E2 02 01 71 13 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CB 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 90 [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:00]Read from MH i2c: E2 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 03 00 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 03 00 71 13 00 90 00 F8 [07:42:00]RAPDU: 90 00 [07:42:00]wFMCommunicate OK [07:42:00]wFMCommunicate request_size=52 [07:42:00]MH_SAM_APDU [07:42:00]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 31 49 00 00 35 04 06 00 22 12 DF 81 88 6A [07:42:00]Write to MH i2c: E2 37 00 72 13 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 31 49 00 00 35 04 06 00 22 12 DF 81 88 6A 00 00 CE [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:00]Read from MH i2c: E2 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 03 00 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 03 00 72 13 00 90 00 F9 [07:42:00]RAPDU: 90 00 [07:42:00]wFMCommunicate OK [07:42:00]wFMCommunicate request_size=4 [07:42:00]MH_SAM_APDU [07:42:00]CAPDU: 80 0D 03 02 [07:42:00]Write to MH i2c: E2 08 00 73 13 80 0D 03 02 00 00 00 00 01 [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:00]Read from MH i2c: E2 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 0B 00 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 0B 00 73 13 00 F6 C4 BC 8D 39 61 A2 DF 90 00 20 [07:42:00]RAPDU: F6 C4 BC 8D 39 61 A2 DF 90 00 [07:42:00]wFMCommunicate OK [07:42:00]SAM_PROTO_SignData done [07:42:00]FM_MakeSignedData done [07:42:00]CreateOFDProtocolMessage [07:42:00]wFMCommunicate request_size=4 [07:42:00]MH_SAM_APDU [07:42:00]CAPDU: 80 11 00 00 [07:42:00]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:00]Read from MH i2c: E2 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 17 00 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5A [07:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:42:00]wFMCommunicate OK [07:42:00]CreateOFDProtocolMessage done [07:42:00]OFDSenderStorePacket 18737 [07:42:00]StoreOFDPacket docnum=18737 [07:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 45 65 31 01 35 B8 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CB 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 31 49 00 00 35 04 06 00 22 12 DF 81 88 6A F6 C4 BC 8D 39 61 A2 DF [07:42:00]CheckFolder [07:42:00]dirname=/storage/ofd_packets [07:42:00]CheckFolder done [07:42:00]ProducePacketName [07:42:00]name=ofd_packets/00018737 [07:42:00]NVStorageSaveData ofd_packets/00018737 [07:42:00]File name is /storage/ofd_packets/00018737 [07:42:00]Write 343 bytes [07:42:00]NVStorageSaveData done [07:42:00]OFDSenderStorePacket done [07:42:00]KKMCreateOFDPacket done [07:42:00]NVStorageSaveData kkm_last_timestamp [07:42:00]File name is /storage/kkm_last_timestamp [07:42:00]Write 4 bytes [07:42:00]NVStorageSaveData done [07:42:00]ExternCall_PrintAddStr [07:42:00]wPrintStart [07:42:00]Write to MH i2c: 01 00 00 75 13 88 [07:42:00]Write i2c OK [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: 01 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: 01 07 00 [07:42:00]MH_I2C_Read... [07:42:00]Read from MH i2c: 01 07 00 75 13 00 00 00 00 00 FF 0F 9D [07:42:00]RasterBufferAndPrint [07:42:00]line Счет N : (3)16660 [07:42:00]line ИНН: 02508201610067 [07:42:00]line Контрольно-Кассовый Чек [07:42:00]line ПРОДАЖА [07:42:00]line Товар: 4700000480050 [07:42:00]line Напиток Nitro Energy эн green ж/б 0,45л [07:42:00]line 1.000 * 77.00 [07:42:00]line = 77.00 [07:42:00]line НДС 12% НСП 1% [07:42:00]line > о реализуемом товаре [07:42:00]line ИТОГО: 77.00 [07:42:00]line НСП 1% : 0.68 [07:42:00]line НДС 12% : 8.18 [07:42:00]line Наличными: 77.00 [07:42:00]line Безнал.: 0.00 [07:42:00]line Место: АЗС № 176 "Партнер Нефть" [07:42:00]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [07:42:00]line СНО: Общий режим [07:42:00]line Чек 13 23.09.2024 07:42 [07:42:00]line Смена: 181 ФФД: 1.0 [07:42:00]line ЗНМ: 0300000010 [07:42:00]line РНМ: 0000000000152968 [07:42:00]line Версия ККМ: v1.0 [07:42:00]line ФМ: 0000000000959456 [07:42:00]line ФД: 18737 [07:42:00]line ФПД: 37464454563946 [07:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T074203&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18737&fm=37464454563946&tin=02508201610067®Number=0000000000152968&sum=7700 [07:42:00]line 0 [07:42:00]OFD Sender: Processing packet 18737 [packets to send 7, broken 6] [07:42:00]ProducePacketName [07:42:00]name=ofd_packets/00018737 [07:42:00]OFD Sender: To server: pG, [07:42:00]CommunicateWithHost lk.salyk.kg:30040 [07:42:00]ConnectInit lk.salyk.kg [07:42:00]written 0, free lines is 4095 [07:42:00]Connected sock=10 [07:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 45 65 31 01 35 B8 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 CB 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 31 49 00 00 35 04 06 00 22 12 DF 81 88 6A F6 C4 BC 8D 39 61 A2 DF [07:42:01]Write to MH i2c: 01 00 00 9E 13 B1 [07:42:01]Write i2c OK [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: 01 [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: 01 07 00 [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FD 0C C1 [07:42:01]RasterBufferAndPrint [07:42:01]line [07:42:01]line [07:42:01]line [07:42:01]line [07:42:01]line [07:42:01]written 0, free lines is 3334 [07:42:01]MH_Cut [07:42:01]Write to MH i2c: D1 01 00 A5 13 01 8A [07:42:01]Write i2c OK [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: D1 [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: D1 01 00 [07:42:01]MH_I2C_Read... [07:42:01]Read from MH i2c: D1 01 00 A5 13 00 89 [07:42:01]Write to MH i2c: 01 00 00 A6 13 B9 [07:42:01]Write i2c OK [07:42:01]MH_I2C_Read... [07:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 82 23 47 00 24 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 35 39 34 35 36 10 04 04 00 31 49 00 00 F4 03 04 00 30 C5 F0 66 B6 04 01 00 00 58 31 B6 67 93 DB 46 58 [07:42:01]CommunicateWithHost err = 0 [07:42:01]CheckOFDResponse [07:42:01]1017 (14) - 77093643461234 [07:42:01]1041 (16) - 0000000000959456 [07:42:01]1040 (4) - 18737 [07:42:01]1012 (4) - 23.09.2024 01:32 [07:42:01]1206 (1) - 0 [07:42:01]OFD Sender: Remove packet 18737 [07:42:01]ProducePacketName [07:42:01]name=ofd_packets/00018737 [07:42:01]NVStorageDeleteData [07:42:01]OFD Sender: No OFD packet to send [07:42:01]*** Cut start [07:42:01]*** Partial cut [07:42:01]*** CUTSNS_PIN = 1 [07:42:01]*** CUTSNS_PIN = 0 [07:42:02]*** Brake cut motor [07:42:02]Read from MH i2c: 01 [07:42:02]MH_I2C_Read... [07:42:02]*** Stop cut motor [07:42:02]*** Cut end [07:42:02]Read from MH i2c: 01 07 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: 01 07 00 A6 13 00 00 00 00 00 FF 0F CE [07:42:02]process_action close_receipt done [07:42:02]requested_data is exist [07:42:02]produce_requested_data [07:42:02]requested_item fm.sn is exist - process it [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 11 00 00 [07:42:02]Write to MH i2c: E2 08 00 A7 13 80 11 00 00 00 00 00 00 34 [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 17 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 17 00 A7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 8D [07:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:42:02]wFMCommunicate OK [07:42:02]requested_item fd.num is exist - process it [07:42:02]SAM_PROTO_GetFieldsCounters [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 13 00 00 [07:42:02]Write to MH i2c: E2 08 00 A8 13 80 13 00 00 00 00 00 00 37 [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 62 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 62 00 A8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 31 49 00 00 0E 04 04 00 B5 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 BA [07:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 31 49 00 00 0E 04 04 00 B5 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 [07:42:02]wFMCommunicate OK [07:42:02]SAM_PROTO_GetFieldsCounters done [07:42:02]requested_item shift.num is exist - process it [07:42:02]requested_item shift.opened is exist - process it [07:42:02]req_shift_opened [07:42:02]FM_GetShiftState [07:42:02]SAM_PROTO_GetShiftState [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 13 01 00 [07:42:02]Write to MH i2c: E2 08 00 A9 13 80 13 01 00 00 00 00 00 39 [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 A9 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D1 [07:42:02]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:42:02]wFMCommunicate OK [07:42:02]SAM_PROTO_GetShiftState done [07:42:02]FM_GetShiftState done [07:42:02]req_shift_opened done [07:42:02]requested_item shift.open_date is exist - process it [07:42:02]req_shift_open_date [07:42:02]req_shift_open_date done [07:42:02]produce_requested_data done [07:42:02]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18737,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [07:42:02]process_action_free close_receipt [07:42:02]json_value_free [07:42:02]json_value_free done [07:42:02]process_json_proto returns [07:42:02]Send response to host [07:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18737,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [07:42:02]free response buf [07:42:02]execute_script done [07:42:02]execute_script returns [07:42:02]free content buf [07:42:02]Sock 9.Close socket [07:42:02]Sock 9.Thread stoped [07:42:05]accept exits with 8 [07:42:05]New connection [07:42:05]New thread 3067272548 created [07:42:05]Thread 3067129188 joined [07:42:05]Waiting for new connection... [07:42:05] Sock 8.Parse request [07:42:05]Sock 8.Check first char [07:42:05]Sock 8.First char is OK [07:42:05]request: POST /json_proto HTTP/1.0 [07:42:05]Method: POST [07:42:05]URL: /json_proto [07:42:05]Method is POST - this is cgi request [07:42:05]url: /json_proto [07:42:05]query_string will be loaded in cgi processing [07:42:05]execute_cgi json_proto POST (null) [07:42:05]execute_cgi path=json_proto method=POST [07:42:05]POST find Content-Length [07:42:05]Host: 172.17.62.196:8080 [07:42:05]Content-Length: 621 [07:42:05]Content-Type: application/json [07:42:05] [07:42:05]POST finish read [07:42:05]Found Content-Length = 621 [07:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16661", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:05]execute_script... [07:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16661", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:05]POST & json_proto [07:42:05]process_json_proto [07:42:05]json parsed OK: [07:42:05]protocol is kg_v1.0 [07:42:05]action value=close_receipt [07:42:05]process_action close_receipt [07:42:05]cmd_close_receipt [07:42:05]MH_GetDate [07:42:05]Write to MH i2c: F0 00 00 AA 13 AC [07:42:05]Write i2c OK [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: F0 [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: F0 09 00 [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: F0 09 00 AA 13 00 D2 1B F1 66 CE CC 0E 66 07 [07:42:05]GetLastDocTimeStamp 1727077323 [07:42:05]current date 1727077330 [07:42:05]FM_GetShiftState [07:42:05]SAM_PROTO_GetShiftState [07:42:05]wFMCommunicate request_size=4 [07:42:05]MH_SAM_APDU [07:42:05]CAPDU: 80 13 01 00 [07:42:05]Write to MH i2c: E2 08 00 AB 13 80 13 01 00 00 00 00 00 3B [07:42:05]Write i2c OK [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: E2 [07:42:05]MH_I2C_Read... [07:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:05]Read from MH i2c: E2 0E 00 [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: E2 0E 00 AB 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D3 [07:42:05]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:42:05]wFMCommunicate OK [07:42:05]SAM_PROTO_GetShiftState done [07:42:05]FM_GetShiftState done [07:42:05]opened in 1727050372 [07:42:05]opened+sec_in_day 1727136772 [07:42:05]quantity*price = 15000 [07:42:05]sum+1 = 15001 [07:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 14 23.09.2024 07:42 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18738 ФПД: 3226684620095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T074210&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18738&fm=3226684620095&tin=02508201610067®Number=0000000000152968&sum=15000 0 [07:42:06]StoreToDocumentArchive [07:42:06]shift 181 fd 18738 [07:42:06]save to /storage/0181/doc_00018738 [07:42:06]save last doc name /storage/0181/doc_00018738 to /storage/kkm_last_doc_name [07:42:06]save OK [07:42:06]Clear old archive folders... [07:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:42:06]tlvbuf is 0021B550 [07:42:06]SAM_PROTO_ClearQueue [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 09 00 00 [07:42:06]Write to MH i2c: E2 08 00 B8 13 80 09 00 00 00 00 00 00 3D [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 B8 13 00 90 00 3F [07:42:06]RAPDU: 90 00 [07:42:06]wFMCommunicate OK [07:42:06]SAM_PROTO_ClearQueue done [07:42:06]KKMCreateOFDPacket [07:42:06]OFDProtocolAddRootSTLVToBuf [07:42:06]FM_MakeSignedData [07:42:06]FM_MakeSignedData [07:42:06]SAM_PROTO_SignData [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 0D 01 02 [07:42:06]Write to MH i2c: E2 08 00 B9 13 80 0D 01 02 00 00 00 00 45 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 B9 13 00 90 00 40 [07:42:06]RAPDU: 90 00 [07:42:06]wFMCommunicate OK [07:42:06]wFMCommunicate request_size=255 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D2 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [07:42:07]Write to MH i2c: E2 02 01 BA 13 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D2 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 EF [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 BA 13 00 90 00 41 [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]wFMCommunicate request_size=33 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 32 49 00 00 35 04 06 00 02 EF 45 63 FD 3F [07:42:07]Write to MH i2c: E2 24 00 BB 13 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 32 49 00 00 35 04 06 00 02 EF 45 63 FD 3F 00 00 2D [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 BB 13 00 90 00 42 [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 0D 03 02 [07:42:07]Write to MH i2c: E2 08 00 BC 13 80 0D 03 02 00 00 00 00 4A [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 0B 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 0B 00 BC 13 00 5A 86 BA FF 6C 1F 8B EA 90 00 E4 [07:42:07]RAPDU: 5A 86 BA FF 6C 1F 8B EA 90 00 [07:42:07]wFMCommunicate OK [07:42:07]SAM_PROTO_SignData done [07:42:07]FM_MakeSignedData done [07:42:07]CreateOFDProtocolMessage [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 11 00 00 [07:42:07]Write to MH i2c: E2 08 00 BD 13 80 11 00 00 00 00 00 00 4A [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 17 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 17 00 BD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A3 [07:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:42:07]wFMCommunicate OK [07:42:07]CreateOFDProtocolMessage done [07:42:07]OFDSenderStorePacket 18738 [07:42:07]StoreOFDPacket docnum=18738 [07:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 AF 0C 1E 01 6E 8D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D2 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 32 49 00 00 35 04 06 00 02 EF 45 63 FD 3F 5A 86 BA FF 6C 1F 8B EA [07:42:07]CheckFolder [07:42:07]dirname=/storage/ofd_packets [07:42:07]CheckFolder done [07:42:07]ProducePacketName [07:42:07]name=ofd_packets/00018738 [07:42:07]NVStorageSaveData ofd_packets/00018738 [07:42:07]File name is /storage/ofd_packets/00018738 [07:42:07]Write 324 bytes [07:42:07]NVStorageSaveData done [07:42:07]OFDSenderStorePacket done [07:42:07]KKMCreateOFDPacket done [07:42:07]NVStorageSaveData kkm_last_timestamp [07:42:07]File name is /storage/kkm_last_timestamp [07:42:07]Write 4 bytes [07:42:07]NVStorageSaveData done [07:42:07]ExternCall_PrintAddStr [07:42:07]wPrintStart [07:42:07]Write to MH i2c: 01 00 00 BE 13 D1 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 FF 0F E6 [07:42:07]RasterBufferAndPrint [07:42:07]line Счет N : (3)16661 [07:42:07]line ИНН: 02508201610067 [07:42:07]line Контрольно-Кассовый Чек [07:42:07]line ПРОДАЖА [07:42:07]line Товар: 4640030091645 [07:42:07]line Сигареты ESSE Exchange M [07:42:07]line 1.000 * 150.00 [07:42:07]line = 150.00 [07:42:07]line НДС 12% НСП 1% [07:42:07]line > о реализуемом товаре [07:42:07]line ИТОГО: 150.00 [07:42:07]line НСП 1% : 1.33 [07:42:07]line НДС 12% : 15.93 [07:42:07]line Наличными: 150.00 [07:42:07]line Безнал.: 0.00 [07:42:07]line Место: АЗС № 176 "Партнер Нефть" [07:42:07]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [07:42:07]line СНО: Общий режим [07:42:07]line Чек 14 23.09.2024 07:42 [07:42:07]line Смена: 181 ФФД: 1.0 [07:42:07]line ЗНМ: 0300000010 [07:42:07]line РНМ: 0000000000152968 [07:42:07]line Версия ККМ: v1.0 [07:42:07]line ФМ: 0000000000959456 [07:42:07]line ФД: 18738 [07:42:07]line ФПД: 3226684620095 [07:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T074210&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18738&fm=3226684620095&tin=02508201610067®Number=0000000000152968&sum=15000 [07:42:07]line 0 [07:42:07]written 0, free lines is 4095 [07:42:07]OFD Sender: Processing packet 18738 [packets to send 7, broken 6] [07:42:07]ProducePacketName [07:42:07]name=ofd_packets/00018738 [07:42:07]OFD Sender: To server: pG, [07:42:07]CommunicateWithHost lk.salyk.kg:30040 [07:42:07]ConnectInit lk.salyk.kg [07:42:07]Connected sock=10 [07:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 AF 0C 1E 01 6E 8D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 D2 1B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 32 49 00 00 35 04 06 00 02 EF 45 63 FD 3F 5A 86 BA FF 6C 1F 8B EA [07:42:07]Write to MH i2c: 01 00 00 E6 13 F9 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 E6 13 00 00 00 00 00 2A 0D 37 [07:42:07]RasterBufferAndPrint [07:42:07]line [07:42:07]line [07:42:07]line [07:42:07]line [07:42:07]line [07:42:07]written 0, free lines is 3380 [07:42:07]MH_Cut [07:42:07]Write to MH i2c: D1 01 00 ED 13 01 D2 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: D1 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: D1 01 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: D1 01 00 ED 13 00 D1 [07:42:07]Write to MH i2c: 01 00 00 EE 13 01 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 19 09 47 00 BD 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 35 39 34 35 36 10 04 04 00 32 49 00 00 F4 03 04 00 37 C5 F0 66 B6 04 01 00 00 81 69 8F 1B 2D 44 82 11 [07:42:08]CommunicateWithHost err = 0 [07:42:08]CheckOFDResponse [07:42:08]1017 (14) - 77093643461234 [07:42:08]1041 (16) - 0000000000959456 [07:42:08]1040 (4) - 18738 [07:42:08]1012 (4) - 23.09.2024 01:32 [07:42:08]1206 (1) - 0 [07:42:08]OFD Sender: Remove packet 18738 [07:42:08]ProducePacketName [07:42:08]name=ofd_packets/00018738 [07:42:08]NVStorageDeleteData [07:42:08]*** Cut start [07:42:08]*** Partial cut [07:42:08]*** CUTSNS_PIN = 1 [07:42:08]*** CUTSNS_PIN = 0 [07:42:08]OFD Sender: No OFD packet to send [07:42:08]*** Brake cut motor [07:42:09]Read from MH i2c: 01 [07:42:09]MH_I2C_Read... [07:42:09]*** Stop cut motor [07:42:09]*** Cut end [07:42:09]Read from MH i2c: 01 07 00 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: 01 07 00 EE 13 00 00 00 00 00 FF 0F 16 [07:42:09]process_action close_receipt done [07:42:09]requested_data is exist [07:42:09]produce_requested_data [07:42:09]requested_item fm.sn is exist - process it [07:42:09]wFMCommunicate request_size=4 [07:42:09]MH_SAM_APDU [07:42:09]CAPDU: 80 11 00 00 [07:42:09]Write to MH i2c: E2 08 00 EF 13 80 11 00 00 00 00 00 00 7C [07:42:09]Write i2c OK [07:42:09]MH_I2C_Read... [07:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:09]Read from MH i2c: E2 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: E2 17 00 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: E2 17 00 EF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D5 [07:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:42:09]wFMCommunicate OK [07:42:09]requested_item fd.num is exist - process it [07:42:09]SAM_PROTO_GetFieldsCounters [07:42:09]wFMCommunicate request_size=4 [07:42:09]MH_SAM_APDU [07:42:09]CAPDU: 80 13 00 00 [07:42:09]Write to MH i2c: E2 08 00 F0 13 80 13 00 00 00 00 00 00 7F [07:42:09]Write i2c OK [07:42:09]MH_I2C_Read... [07:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:09]Read from MH i2c: E2 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: E2 62 00 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: E2 62 00 F0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 32 49 00 00 0E 04 04 00 B5 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 06 [07:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 32 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:09]wFMCommunicate OK [07:42:09]SAM_PROTO_GetFieldsCounters done [07:42:09]requested_item shift.num is exist - process it [07:42:09]requested_item shift.opened is exist - process it [07:42:09]req_shift_opened [07:42:09]FM_GetShiftState [07:42:09]SAM_PROTO_GetShiftState [07:42:09]wFMCommunicate request_size=4 [07:42:09]MH_SAM_APDU [07:42:09]CAPDU: 80 13 01 00 [07:42:09]Write to MH i2c: E2 08 00 F1 13 80 13 01 00 00 00 00 00 81 [07:42:09]Write i2c OK [07:42:09]MH_I2C_Read... [07:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:09]Read from MH i2c: E2 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: E2 0E 00 [07:42:09]MH_I2C_Read... [07:42:09]Read from MH i2c: E2 0E 00 F1 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 19 [07:42:09]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:42:09]wFMCommunicate OK [07:42:09]SAM_PROTO_GetShiftState done [07:42:09]FM_GetShiftState done [07:42:09]req_shift_opened done [07:42:09]requested_item shift.open_date is exist - process it [07:42:09]req_shift_open_date [07:42:09]req_shift_open_date done [07:42:09]produce_requested_data done [07:42:09]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18738,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [07:42:09]process_action_free close_receipt [07:42:09]json_value_free [07:42:09]json_value_free done [07:42:09]process_json_proto returns [07:42:09]Send response to host [07:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18738,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [07:42:09]free response buf [07:42:09]execute_script done [07:42:09]execute_script returns [07:42:09]free content buf [07:42:09]Sock 8.Close socket [07:42:09]Sock 8.Thread stoped [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:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]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:31]accept exits with 9 [07:49:31]New connection [07:49:31]New thread 3067129188 created [07:49:31]Thread 3067272548 joined [07:49:31]Waiting for new connection... [07:49:31] Sock 9.Parse request [07:49:31]Sock 9.Check first char [07:49:31]Sock 9.First char is OK [07:49:31]request: POST /json_proto HTTP/1.0 [07:49:31]Method: POST [07:49:31]URL: /json_proto [07:49:31]Method is POST - this is cgi request [07:49:31]url: /json_proto [07:49:31]query_string will be loaded in cgi processing [07:49:31]execute_cgi json_proto POST (null) [07:49:31]execute_cgi path=json_proto method=POST [07:49:31]POST find Content-Length [07:49:31]Host: 172.17.62.196:8080 [07:49:31]Content-Length: 620 [07:49:31]Content-Type: application/json [07:49:31] [07:49:31]POST finish read [07:49:31]Found Content-Length = 620 [07:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16662", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:31]execute_script... [07:49:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16662", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:31]POST & json_proto [07:49:31]process_json_proto [07:49:31]json parsed OK: [07:49:31]protocol is kg_v1.0 [07:49:31]action value=close_receipt [07:49:31]process_action close_receipt [07:49:31]cmd_close_receipt [07:49:31]MH_GetDate [07:49:31]Write to MH i2c: F0 00 00 F2 13 F4 [07:49:31]Write i2c OK [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: F0 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: F0 09 00 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: F0 09 00 F2 13 00 90 1D F1 66 CE CC 0E 66 0F [07:49:31]GetLastDocTimeStamp 1727077330 [07:49:31]current date 1727077776 [07:49:31]FM_GetShiftState [07:49:31]SAM_PROTO_GetShiftState [07:49:31]wFMCommunicate request_size=4 [07:49:31]MH_SAM_APDU [07:49:31]CAPDU: 80 13 01 00 [07:49:31]Write to MH i2c: E2 08 00 F3 13 80 13 01 00 00 00 00 00 83 [07:49:31]Write i2c OK [07:49:31]MH_I2C_Read... [07:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:31]Read from MH i2c: E2 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 0E 00 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 0E 00 F3 13 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1B [07:49:31]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:49:31]wFMCommunicate OK [07:49:31]SAM_PROTO_GetShiftState done [07:49:31]FM_GetShiftState done [07:49:31]opened in 1727050372 [07:49:31]opened+sec_in_day 1727136772 [07:49:31]quantity*price = 14400 [07:49:31]sum+1 = 14401 [07:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 15 23.09.2024 07:49 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18739 ФПД: 270428033505888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T074936&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18739&fm=270428033505888&tin=02508201610067®Number=0000000000152968&sum=14400 0 [07:49:32]StoreToDocumentArchive [07:49:32]shift 181 fd 18739 [07:49:32]save to /storage/0181/doc_00018739 [07:49:32]save last doc name /storage/0181/doc_00018739 to /storage/kkm_last_doc_name [07:49:32]save OK [07:49:32]Clear old archive folders... [07:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:49:32]tlvbuf is 0024D200 [07:49:32]SAM_PROTO_ClearQueue [07:49:32]wFMCommunicate request_size=4 [07:49:32]MH_SAM_APDU [07:49:32]CAPDU: 80 09 00 00 [07:49:32]Write to MH i2c: E2 08 00 00 14 80 09 00 00 00 00 00 00 86 [07:49:32]Write i2c OK [07:49:32]MH_I2C_Read... [07:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:32]Read from MH i2c: E2 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [07:49:32]RAPDU: 90 00 [07:49:32]wFMCommunicate OK [07:49:32]SAM_PROTO_ClearQueue done [07:49:32]KKMCreateOFDPacket [07:49:32]OFDProtocolAddRootSTLVToBuf [07:49:32]FM_MakeSignedData [07:49:32]FM_MakeSignedData [07:49:32]SAM_PROTO_SignData [07:49:32]wFMCommunicate request_size=4 [07:49:32]MH_SAM_APDU [07:49:32]CAPDU: 80 0D 01 02 [07:49:32]Write to MH i2c: E2 08 00 01 14 80 0D 01 02 00 00 00 00 8E [07:49:32]Write i2c OK [07:49:32]MH_I2C_Read... [07:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:32]Read from MH i2c: E2 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 [07:49:32]MH_I2C_Read... [07:49:32]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [07:49:32]RAPDU: 90 00 [07:49:32]wFMCommunicate OK [07:49:32]wFMCommunicate request_size=255 [07:49:32]MH_SAM_APDU [07:49:32]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 90 1D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 [07:49:32]Write to MH i2c: E2 02 01 02 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 90 1D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 00 00 B2 [07:49:32]Write i2c OK [07:49:32]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 02 14 00 90 00 8A [07:49:33]RAPDU: 90 00 [07:49:33]wFMCommunicate OK [07:49:33]wFMCommunicate request_size=32 [07:49:33]MH_SAM_APDU [07:49:33]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 34 35 36 10 04 04 00 33 49 00 00 35 04 06 00 F5 F3 EE DF DA 60 [07:49:33]Write to MH i2c: E2 23 00 03 14 80 0D 02 02 1B 00 30 30 30 39 35 39 34 35 36 10 04 04 00 33 49 00 00 35 04 06 00 F5 F3 EE DF DA 60 00 00 5F [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 03 00 03 14 00 90 00 8B [07:49:33]RAPDU: 90 00 [07:49:33]wFMCommunicate OK [07:49:33]wFMCommunicate request_size=4 [07:49:33]MH_SAM_APDU [07:49:33]CAPDU: 80 0D 03 02 [07:49:33]Write to MH i2c: E2 08 00 04 14 80 0D 03 02 00 00 00 00 93 [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 0B 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 0B 00 04 14 00 5D 8B B9 35 E9 9D 0B 94 90 00 8F [07:49:33]RAPDU: 5D 8B B9 35 E9 9D 0B 94 90 00 [07:49:33]wFMCommunicate OK [07:49:33]SAM_PROTO_SignData done [07:49:33]FM_MakeSignedData done [07:49:33]CreateOFDProtocolMessage [07:49:33]wFMCommunicate request_size=4 [07:49:33]MH_SAM_APDU [07:49:33]CAPDU: 80 11 00 00 [07:49:33]Write to MH i2c: E2 08 00 05 14 80 11 00 00 00 00 00 00 93 [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 17 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 17 00 05 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 EC [07:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:49:33]wFMCommunicate OK [07:49:33]CreateOFDProtocolMessage done [07:49:33]OFDSenderStorePacket 18739 [07:49:33]StoreOFDPacket docnum=18739 [07:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 96 4B 1D 01 9B 23 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 90 1D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 33 49 00 00 35 04 06 00 F5 F3 EE DF DA 60 5D 8B B9 35 E9 9D 0B 94 [07:49:33]CheckFolder [07:49:33]dirname=/storage/ofd_packets [07:49:33]CheckFolder done [07:49:33]ProducePacketName [07:49:33]name=ofd_packets/00018739 [07:49:33]NVStorageSaveData ofd_packets/00018739 [07:49:33]File name is /storage/ofd_packets/00018739 [07:49:33]Write 323 bytes [07:49:33]NVStorageSaveData done [07:49:33]OFDSenderStorePacket done [07:49:33]KKMCreateOFDPacket done [07:49:33]NVStorageSaveData kkm_last_timestamp [07:49:33]File name is /storage/kkm_last_timestamp [07:49:33]Write 4 bytes [07:49:33]NVStorageSaveData done [07:49:33]ExternCall_PrintAddStr [07:49:33]wPrintStart [07:49:33]Write to MH i2c: 01 00 00 06 14 1A [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 07 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 FF 0F 2F [07:49:33]RasterBufferAndPrint [07:49:33]line Счет N : (3)16662 [07:49:33]line ИНН: 02508201610067 [07:49:33]line Контрольно-Кассовый Чек [07:49:33]line ПРОДАЖА [07:49:33]line Товар: 48747059 [07:49:33]line Сигареты Winston Legend Blue [07:49:33]line 1.000 * 144.00 [07:49:33]line = 144.00 [07:49:33]line НДС 12% НСП 1% [07:49:33]line > о реализуемом товаре [07:49:33]line ИТОГО: 144.00 [07:49:33]line НСП 1% : 1.27 [07:49:33]line НДС 12% : 15.29 [07:49:33]line Наличными: 144.00 [07:49:33]line Безнал.: 0.00 [07:49:33]line Место: АЗС № 176 "Партнер Нефть" [07:49:33]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [07:49:33]line СНО: Общий режим [07:49:33]line Чек 15 23.09.2024 07:49 [07:49:33]line Смена: 181 ФФД: 1.0 [07:49:33]line ЗНМ: 0300000010 [07:49:33]line РНМ: 0000000000152968 [07:49:33]line Версия ККМ: v1.0 [07:49:33]line ФМ: 0000000000959456 [07:49:33]line ФД: 18739 [07:49:33]line ФПД: 270428033505888 [07:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T074936&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18739&fm=270428033505888&tin=02508201610067®Number=0000000000152968&sum=14400 [07:49:33]line 0 [07:49:33]OFD Sender: Processing packet 18739 [packets to send 7, broken 6] [07:49:33]ProducePacketName [07:49:33]name=ofd_packets/00018739 [07:49:33]OFD Sender: To server: pG, [07:49:33]CommunicateWithHost lk.salyk.kg:30040 [07:49:33]ConnectInit lk.salyk.kg [07:49:33]written 0, free lines is 4095 [07:49:33]Connected sock=10 [07:49:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 96 4B 1D 01 9B 23 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 90 1D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 33 49 00 00 35 04 06 00 F5 F3 EE DF DA 60 5D 8B B9 35 E9 9D 0B 94 [07:49:34]Write to MH i2c: 01 00 00 2F 14 43 [07:49:34]Write i2c OK [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: 01 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: 01 07 00 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 0A 0D 61 [07:49:34]RasterBufferAndPrint [07:49:34]line [07:49:34]line [07:49:34]line [07:49:34]line [07:49:34]line [07:49:34]written 0, free lines is 3344 [07:49:34]MH_Cut [07:49:34]Write to MH i2c: D1 01 00 36 14 01 1C [07:49:34]Write i2c OK [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: D1 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: D1 01 00 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: D1 01 00 36 14 00 1B [07:49:34]Write to MH i2c: 01 00 00 37 14 4B [07:49:34]Write i2c OK [07:49:34]MH_I2C_Read... [07:49:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 D0 42 47 00 A8 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 35 39 34 35 36 10 04 04 00 33 49 00 00 F4 03 04 00 F5 C6 F0 66 B6 04 01 00 00 79 4F FF 86 76 5D 43 87 [07:49:34]CommunicateWithHost err = 0 [07:49:34]CheckOFDResponse [07:49:34]1017 (14) - 77093643461234 [07:49:34]1041 (16) - 0000000000959456 [07:49:34]1040 (4) - 18739 [07:49:34]1012 (4) - 23.09.2024 01:40 [07:49:34]1206 (1) - 0 [07:49:34]OFD Sender: Remove packet 18739 [07:49:34]ProducePacketName [07:49:34]name=ofd_packets/00018739 [07:49:34]NVStorageDeleteData [07:49:34]OFD Sender: No OFD packet to send [07:49:34]*** Cut start [07:49:34]*** Partial cut [07:49:34]*** CUTSNS_PIN = 1 [07:49:34]*** CUTSNS_PIN = 0 [07:49:35]*** Brake cut motor [07:49:35]Read from MH i2c: 01 [07:49:35]MH_I2C_Read... [07:49:35]*** Stop cut motor [07:49:35]*** Cut end [07:49:35]Read from MH i2c: 01 07 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: 01 07 00 37 14 00 00 00 00 00 FF 0F 60 [07:49:35]process_action close_receipt done [07:49:35]requested_data is exist [07:49:35]produce_requested_data [07:49:35]requested_item fm.sn is exist - process it [07:49:35]wFMCommunicate request_size=4 [07:49:35]MH_SAM_APDU [07:49:35]CAPDU: 80 11 00 00 [07:49:35]Write to MH i2c: E2 08 00 38 14 80 11 00 00 00 00 00 00 C6 [07:49:35]Write i2c OK [07:49:35]MH_I2C_Read... [07:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:35]Read from MH i2c: E2 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 17 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 17 00 38 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 1F [07:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [07:49:35]wFMCommunicate OK [07:49:35]requested_item fd.num is exist - process it [07:49:35]SAM_PROTO_GetFieldsCounters [07:49:35]wFMCommunicate request_size=4 [07:49:35]MH_SAM_APDU [07:49:35]CAPDU: 80 13 00 00 [07:49:35]Write to MH i2c: E2 08 00 39 14 80 13 00 00 00 00 00 00 C9 [07:49:35]Write i2c OK [07:49:35]MH_I2C_Read... [07:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:35]Read from MH i2c: E2 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 62 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 62 00 39 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 33 49 00 00 0E 04 04 00 B5 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 54 [07:49:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 33 49 00 00 0E 04 04 00 B5 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 [07:49:35]wFMCommunicate OK [07:49:35]SAM_PROTO_GetFieldsCounters done [07:49:35]requested_item shift.num is exist - process it [07:49:35]requested_item shift.opened is exist - process it [07:49:35]req_shift_opened [07:49:35]FM_GetShiftState [07:49:35]SAM_PROTO_GetShiftState [07:49:35]wFMCommunicate request_size=4 [07:49:35]MH_SAM_APDU [07:49:35]CAPDU: 80 13 01 00 [07:49:35]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [07:49:35]Write i2c OK [07:49:35]MH_I2C_Read... [07:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:35]Read from MH i2c: E2 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 0E 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 63 [07:49:35]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [07:49:35]wFMCommunicate OK [07:49:35]SAM_PROTO_GetShiftState done [07:49:35]FM_GetShiftState done [07:49:35]req_shift_opened done [07:49:35]requested_item shift.open_date is exist - process it [07:49:35]req_shift_open_date [07:49:35]req_shift_open_date done [07:49:35]produce_requested_data done [07:49:35]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18739,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [07:49:35]process_action_free close_receipt [07:49:35]json_value_free [07:49:35]json_value_free done [07:49:35]process_json_proto returns [07:49:35]Send response to host [07:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18739,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [07:49:35]free response buf [07:49:35]execute_script done [07:49:35]execute_script returns [07:49:35]free content buf [07:49:35]Sock 9.Close socket [07:49:35]Sock 9.Thread stoped [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:54]accept exits with 8 [08:29:54]New connection [08:29:54]New thread 3067272548 created [08:29:54]Thread 3067129188 joined [08:29:54]Waiting for new connection... [08:29:54] Sock 8.Parse request [08:29:54]Sock 8.Check first char [08:29:54]Sock 8.First char is OK [08:29:54]request: POST /json_proto HTTP/1.0 [08:29:54]Method: POST [08:29:54]URL: /json_proto [08:29:54]Method is POST - this is cgi request [08:29:54]url: /json_proto [08:29:54]query_string will be loaded in cgi processing [08:29:54]execute_cgi json_proto POST (null) [08:29:54]execute_cgi path=json_proto method=POST [08:29:54]POST find Content-Length [08:29:54]Host: 172.17.62.196:8080 [08:29:54]Content-Length: 786 [08:29:54]Content-Type: application/json [08:29:54] [08:29:54]POST finish read [08:29:54]Found Content-Length = 786 [08:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16663", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:54]execute_script... [08:29:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16663", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:54]POST & json_proto [08:29:54]process_json_proto [08:29:54]json parsed OK: [08:29:54]protocol is kg_v1.0 [08:29:54]action value=close_receipt [08:29:54]process_action close_receipt [08:29:54]cmd_close_receipt [08:29:54]MH_GetDate [08:29:54]Write to MH i2c: F0 00 00 3B 14 3E [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: F0 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: F0 09 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: F0 09 00 3B 14 00 07 27 F1 66 CE CC 0E 66 DA [08:29:54]GetLastDocTimeStamp 1727077776 [08:29:54]current date 1727080199 [08:29:54]FM_GetShiftState [08:29:54]SAM_PROTO_GetShiftState [08:29:54]wFMCommunicate request_size=4 [08:29:54]MH_SAM_APDU [08:29:54]CAPDU: 80 13 01 00 [08:29:54]Write to MH i2c: E2 08 00 3C 14 80 13 01 00 00 00 00 00 CD [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:54]Read from MH i2c: E2 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 0E 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 0E 00 3C 14 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 65 [08:29:54]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [08:29:54]wFMCommunicate OK [08:29:54]SAM_PROTO_GetShiftState done [08:29:54]FM_GetShiftState done [08:29:54]opened in 1727050372 [08:29:54]opened+sec_in_day 1727136772 [08:29:54]quantity*price = 11500 [08:29:54]sum+1 = 11501 [08:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 16 23.09.2024 08:29 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18740 ФПД: 141270087575555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082959&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18740&fm=141270087575555&tin=02508201610067®Number=0000000000152968&sum=11500 0 [08:29:55]StoreToDocumentArchive [08:29:55]shift 181 fd 18740 [08:29:55]save to /storage/0181/doc_00018740 [08:29:55]save last doc name /storage/0181/doc_00018740 to /storage/kkm_last_doc_name [08:29:55]save OK [08:29:55]Clear old archive folders... [08:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:29:55]tlvbuf is 0020A990 [08:29:55]SAM_PROTO_ClearQueue [08:29:55]wFMCommunicate request_size=4 [08:29:55]MH_SAM_APDU [08:29:55]CAPDU: 80 09 00 00 [08:29:55]Write to MH i2c: E2 08 00 49 14 80 09 00 00 00 00 00 00 CF [08:29:55]Write i2c OK [08:29:55]MH_I2C_Read... [08:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:55]Read from MH i2c: E2 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 03 00 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [08:29:56]RAPDU: 90 00 [08:29:56]wFMCommunicate OK [08:29:56]SAM_PROTO_ClearQueue done [08:29:56]KKMCreateOFDPacket [08:29:56]OFDProtocolAddRootSTLVToBuf [08:29:56]FM_MakeSignedData [08:29:56]FM_MakeSignedData [08:29:56]SAM_PROTO_SignData [08:29:56]wFMCommunicate request_size=4 [08:29:56]MH_SAM_APDU [08:29:56]CAPDU: 80 0D 01 02 [08:29:56]Write to MH i2c: E2 08 00 4A 14 80 0D 01 02 00 00 00 00 D7 [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:56]Read from MH i2c: E2 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 03 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [08:29:56]RAPDU: 90 00 [08:29:56]wFMCommunicate OK [08:29:56]wFMCommunicate request_size=255 [08:29:56]MH_SAM_APDU [08:29:56]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 07 27 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [08:29:56]Write to MH i2c: E2 02 01 4B 14 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 07 27 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 C3 [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:56]Read from MH i2c: E2 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 03 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [08:29:56]RAPDU: 90 00 [08:29:56]wFMCommunicate OK [08:29:56]wFMCommunicate request_size=33 [08:29:56]MH_SAM_APDU [08:29:56]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 34 49 00 00 35 04 06 00 80 7C 01 63 28 03 [08:29:56]Write to MH i2c: E2 24 00 4C 14 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 34 49 00 00 35 04 06 00 80 7C 01 63 28 03 00 00 77 [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:56]Read from MH i2c: E2 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 03 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 03 00 4C 14 00 90 00 D4 [08:29:56]RAPDU: 90 00 [08:29:56]wFMCommunicate OK [08:29:56]wFMCommunicate request_size=4 [08:29:56]MH_SAM_APDU [08:29:56]CAPDU: 80 0D 03 02 [08:29:56]Write to MH i2c: E2 08 00 4D 14 80 0D 03 02 00 00 00 00 DC [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:56]Read from MH i2c: E2 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 0B 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 0B 00 4D 14 00 43 B1 5E E6 67 83 61 63 90 00 C3 [08:29:56]RAPDU: 43 B1 5E E6 67 83 61 63 90 00 [08:29:56]wFMCommunicate OK [08:29:56]SAM_PROTO_SignData done [08:29:56]FM_MakeSignedData done [08:29:56]CreateOFDProtocolMessage [08:29:56]wFMCommunicate request_size=4 [08:29:56]MH_SAM_APDU [08:29:56]CAPDU: 80 11 00 00 [08:29:56]Write to MH i2c: E2 08 00 4E 14 80 11 00 00 00 00 00 00 DC [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:56]Read from MH i2c: E2 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 17 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 17 00 4E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 35 [08:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:29:56]wFMCommunicate OK [08:29:56]CreateOFDProtocolMessage done [08:29:56]OFDSenderStorePacket 18740 [08:29:56]StoreOFDPacket docnum=18740 [08:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 54 2F 1E 01 D6 A7 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 07 27 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 34 49 00 00 35 04 06 00 80 7C 01 63 28 03 43 B1 5E E6 67 83 61 63 [08:29:56]CheckFolder [08:29:56]dirname=/storage/ofd_packets [08:29:56]CheckFolder done [08:29:56]ProducePacketName [08:29:56]name=ofd_packets/00018740 [08:29:56]NVStorageSaveData ofd_packets/00018740 [08:29:56]File name is /storage/ofd_packets/00018740 [08:29:56]Write 324 bytes [08:29:56]NVStorageSaveData done [08:29:56]OFDSenderStorePacket done [08:29:56]KKMCreateOFDPacket done [08:29:56]NVStorageSaveData kkm_last_timestamp [08:29:56]File name is /storage/kkm_last_timestamp [08:29:56]Write 4 bytes [08:29:56]NVStorageSaveData done [08:29:56]ExternCall_PrintAddStr [08:29:56]wPrintStart [08:29:56]Write to MH i2c: 01 00 00 4F 14 63 [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: 01 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: 01 07 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 FF 0F 78 [08:29:56]RasterBufferAndPrint [08:29:56]line Счет N : (3)16663 [08:29:56]line ИНН: 02508201610067 [08:29:56]line Контрольно-Кассовый Чек [08:29:56]line ПРОДАЖА [08:29:56]line Товар: 2000036240010 [08:29:56]line Кофе Латте (GABB TRADE) [08:29:56]line 1.000 * 115.00 [08:29:56]line = 115.00 [08:29:56]line НДС 12% НСП 1% [08:29:56]line > о реализуемом товаре [08:29:56]line ИТОГО: 115.00 [08:29:56]line НСП 1% : 1.02 [08:29:56]line НДС 12% : 12.21 [08:29:56]line Наличными: 0.00 [08:29:56]line Безнал.: 115.00 [08:29:56]line Место: АЗС № 176 "Партнер Нефть" [08:29:56]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:29:56]line СНО: Общий режим [08:29:56]line Чек 16 23.09.2024 08:29 [08:29:56]line Смена: 181 ФФД: 1.0 [08:29:56]line ЗНМ: 0300000010 [08:29:56]line РНМ: 0000000000152968 [08:29:56]line Версия ККМ: v1.0 [08:29:56]line Платежная система: O! деньги [08:29:56]line ФМ: 0000000000959456 [08:29:56]line ФД: 18740 [08:29:56]line ФПД: 141270087575555 [08:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T082959&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18740&fm=141270087575555&tin=02508201610067®Number=0000000000152968&sum=11500 [08:29:56]line 0 [08:29:56]OFD Sender: Processing packet 18740 [packets to send 7, broken 6] [08:29:56]ProducePacketName [08:29:56]name=ofd_packets/00018740 [08:29:56]OFD Sender: To server: pG, [08:29:56]CommunicateWithHost lk.salyk.kg:30040 [08:29:56]ConnectInit lk.salyk.kg [08:29:56]written 0, free lines is 4095 [08:29:57]Connected sock=9 [08:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 54 2F 1E 01 D6 A7 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 07 27 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 34 49 00 00 35 04 06 00 80 7C 01 63 28 03 43 B1 5E E6 67 83 61 63 [08:29:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 BD 6B 47 00 EE 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 35 39 34 35 36 10 04 04 00 34 49 00 00 F4 03 04 00 6C D0 F0 66 B6 04 01 00 00 9A C4 D6 A0 3A B0 42 FF [08:29:57]CommunicateWithHost err = 0 [08:29:57]CheckOFDResponse [08:29:57]1017 (14) - 77093643461234 [08:29:57]1041 (16) - 0000000000959456 [08:29:57]1040 (4) - 18740 [08:29:57]1012 (4) - 23.09.2024 02:20 [08:29:57]1206 (1) - 0 [08:29:57]OFD Sender: Remove packet 18740 [08:29:57]ProducePacketName [08:29:57]name=ofd_packets/00018740 [08:29:57]NVStorageDeleteData [08:29:57]Write to MH i2c: 01 00 00 79 14 8D [08:29:57]Write i2c OK [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: 01 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: 01 07 00 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: 01 07 00 79 14 00 00 00 00 00 14 0D B5 [08:29:57]RasterBufferAndPrint [08:29:57]line [08:29:57]line [08:29:57]line [08:29:57]line [08:29:57]line [08:29:57]written 0, free lines is 3354 [08:29:57]MH_Cut [08:29:57]Write to MH i2c: D1 01 00 80 14 01 66 [08:29:57]Write i2c OK [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: D1 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: D1 01 00 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: D1 01 00 80 14 00 65 [08:29:57]Write to MH i2c: 01 00 00 81 14 95 [08:29:57]Write i2c OK [08:29:57]MH_I2C_Read... [08:29:57]OFD Sender: No OFD packet to send [08:29:57]*** Cut start [08:29:57]*** Partial cut [08:29:57]*** CUTSNS_PIN = 1 [08:29:57]*** CUTSNS_PIN = 0 [08:29:58]*** Brake cut motor [08:29:58]Read from MH i2c: 01 [08:29:58]MH_I2C_Read... [08:29:58]*** Stop cut motor [08:29:58]*** Cut end [08:29:58]Read from MH i2c: 01 07 00 [08:29:58]MH_I2C_Read... [08:29:58]Read from MH i2c: 01 07 00 81 14 00 00 00 00 00 FF 0F AA [08:29:58]process_action close_receipt done [08:29:58]requested_data is exist [08:29:58]produce_requested_data [08:29:58]requested_item fm.sn is exist - process it [08:29:58]wFMCommunicate request_size=4 [08:29:58]MH_SAM_APDU [08:29:58]CAPDU: 80 11 00 00 [08:29:58]Write to MH i2c: E2 08 00 82 14 80 11 00 00 00 00 00 00 10 [08:29:58]Write i2c OK [08:29:58]MH_I2C_Read... [08:29:58]Read from MH i2c: E2 [08:29:58]MH_I2C_Read... [08:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:58]Read from MH i2c: E2 17 00 [08:29:58]MH_I2C_Read... [08:29:58]Read from MH i2c: E2 17 00 82 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 69 [08:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:29:58]wFMCommunicate OK [08:29:58]requested_item fd.num is exist - process it [08:29:58]SAM_PROTO_GetFieldsCounters [08:29:58]wFMCommunicate request_size=4 [08:29:58]MH_SAM_APDU [08:29:58]CAPDU: 80 13 00 00 [08:29:58]Write to MH i2c: E2 08 00 83 14 80 13 00 00 00 00 00 00 13 [08:29:58]Write i2c OK [08:29:58]MH_I2C_Read... [08:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:58]Read from MH i2c: E2 [08:29:58]MH_I2C_Read... [08:29:58]Read from MH i2c: E2 62 00 [08:29:58]MH_I2C_Read... [08:29:58]Read from MH i2c: E2 62 00 83 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 34 49 00 00 0E 04 04 00 B5 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 A2 [08:29:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 34 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:58]wFMCommunicate OK [08:29:58]SAM_PROTO_GetFieldsCounters done [08:29:58]requested_item shift.num is exist - process it [08:29:58]requested_item shift.opened is exist - process it [08:29:58]req_shift_opened [08:29:58]FM_GetShiftState [08:29:58]SAM_PROTO_GetShiftState [08:29:58]wFMCommunicate request_size=4 [08:29:58]MH_SAM_APDU [08:29:58]CAPDU: 80 13 01 00 [08:29:58]Write to MH i2c: E2 08 00 84 14 80 13 01 00 00 00 00 00 15 [08:29:58]Write i2c OK [08:29:58]MH_I2C_Read... [08:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:58]Read from MH i2c: E2 [08:29:58]MH_I2C_Read... [08:29:58]Read from MH i2c: E2 0E 00 [08:29:58]MH_I2C_Read... [08:29:58]Read from MH i2c: E2 0E 00 84 14 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 AD [08:29:58]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [08:29:58]wFMCommunicate OK [08:29:58]SAM_PROTO_GetShiftState done [08:29:58]FM_GetShiftState done [08:29:58]req_shift_opened done [08:29:58]requested_item shift.open_date is exist - process it [08:29:58]req_shift_open_date [08:29:58]req_shift_open_date done [08:29:58]produce_requested_data done [08:29:58]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18740,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [08:29:58]process_action_free close_receipt [08:29:58]json_value_free [08:29:58]json_value_free done [08:29:58]process_json_proto returns [08:29:58]Send response to host [08:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18740,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [08:29:58]free response buf [08:29:58]execute_script done [08:29:58]execute_script returns [08:29:58]free content buf [08:29:58]Sock 8.Close socket [08:29:58]Sock 8.Thread stoped [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:29]accept exits with 10 [08:46:29]New connection [08:46:29]New thread 3067129188 created [08:46:29]Thread 3067272548 joined [08:46:29]Waiting for new connection... [08:46:29] Sock 10.Parse request [08:46:29]Sock 10.Check first char [08:46:29]Sock 10.First char is OK [08:46:29]request: POST /json_proto HTTP/1.0 [08:46:29]Method: POST [08:46:29]URL: /json_proto [08:46:29]Method is POST - this is cgi request [08:46:29]url: /json_proto [08:46:29]query_string will be loaded in cgi processing [08:46:29]execute_cgi json_proto POST (null) [08:46:29]execute_cgi path=json_proto method=POST [08:46:29]POST find Content-Length [08:46:29]Host: 172.17.62.196:8080 [08:46:29]Content-Length: 649 [08:46:29]Content-Type: application/json [08:46:29] [08:46:29]POST finish read [08:46:29]Found Content-Length = 649 [08:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16664", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:29]execute_script... [08:46:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16664", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:29]POST & json_proto [08:46:29]process_json_proto [08:46:29]json parsed OK: [08:46:29]protocol is kg_v1.0 [08:46:29]action value=close_receipt [08:46:29]process_action close_receipt [08:46:29]cmd_close_receipt [08:46:29]MH_GetDate [08:46:29]Write to MH i2c: F0 00 00 85 14 88 [08:46:29]Write i2c OK [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: F0 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: F0 09 00 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: F0 09 00 85 14 00 EA 2A F1 66 CE CC 0E 66 0A [08:46:29]GetLastDocTimeStamp 1727080199 [08:46:29]current date 1727081194 [08:46:29]FM_GetShiftState [08:46:29]SAM_PROTO_GetShiftState [08:46:29]wFMCommunicate request_size=4 [08:46:29]MH_SAM_APDU [08:46:29]CAPDU: 80 13 01 00 [08:46:29]Write to MH i2c: E2 08 00 86 14 80 13 01 00 00 00 00 00 17 [08:46:29]Write i2c OK [08:46:29]MH_I2C_Read... [08:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:29]Read from MH i2c: E2 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: E2 0E 00 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: E2 0E 00 86 14 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 AF [08:46:29]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [08:46:29]wFMCommunicate OK [08:46:29]SAM_PROTO_GetShiftState done [08:46:29]FM_GetShiftState done [08:46:29]opened in 1727050372 [08:46:29]opened+sec_in_day 1727136772 [08:46:29]quantity*price = 10500 [08:46:29]sum+1 = 10501 [08:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 17 23.09.2024 08:46 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18741 ФПД: 156055920259075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T084634&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18741&fm=156055920259075&tin=02508201610067®Number=0000000000152968&sum=10500 0 [08:46:30]StoreToDocumentArchive [08:46:30]shift 181 fd 18741 [08:46:30]save to /storage/0181/doc_00018741 [08:46:30]save last doc name /storage/0181/doc_00018741 to /storage/kkm_last_doc_name [08:46:30]save OK [08:46:30]Clear old archive folders... [08:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:46:30]tlvbuf is 0020AA50 [08:46:30]SAM_PROTO_ClearQueue [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 09 00 00 [08:46:30]Write to MH i2c: E2 08 00 93 14 80 09 00 00 00 00 00 00 19 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [08:46:30]RAPDU: 90 00 [08:46:30]wFMCommunicate OK [08:46:30]SAM_PROTO_ClearQueue done [08:46:30]KKMCreateOFDPacket [08:46:30]OFDProtocolAddRootSTLVToBuf [08:46:30]FM_MakeSignedData [08:46:30]FM_MakeSignedData [08:46:30]SAM_PROTO_SignData [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 0D 01 02 [08:46:30]Write to MH i2c: E2 08 00 94 14 80 0D 01 02 00 00 00 00 21 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [08:46:31]RAPDU: 90 00 [08:46:31]wFMCommunicate OK [08:46:31]wFMCommunicate request_size=255 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EA 2A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 [08:46:31]Write to MH i2c: E2 02 01 95 14 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EA 2A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 00 00 20 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [08:46:31]RAPDU: 90 00 [08:46:31]wFMCommunicate OK [08:46:31]wFMCommunicate request_size=41 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 35 49 00 00 35 04 06 00 8D EE 99 B1 30 03 [08:46:31]Write to MH i2c: E2 2C 00 96 14 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 35 49 00 00 35 04 06 00 8D EE 99 B1 30 03 00 00 6F [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 96 14 00 90 00 1E [08:46:31]RAPDU: 90 00 [08:46:31]wFMCommunicate OK [08:46:31]wFMCommunicate request_size=4 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 0D 03 02 [08:46:31]Write to MH i2c: E2 08 00 97 14 80 0D 03 02 00 00 00 00 26 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 0B 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 0B 00 97 14 00 0E 8B 3D AC 1F 66 B6 8A 90 00 6E [08:46:31]RAPDU: 0E 8B 3D AC 1F 66 B6 8A 90 00 [08:46:31]wFMCommunicate OK [08:46:31]SAM_PROTO_SignData done [08:46:31]FM_MakeSignedData done [08:46:31]CreateOFDProtocolMessage [08:46:31]wFMCommunicate request_size=4 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 11 00 00 [08:46:31]Write to MH i2c: E2 08 00 98 14 80 11 00 00 00 00 00 00 26 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 17 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 17 00 98 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7F [08:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:46:31]wFMCommunicate OK [08:46:31]CreateOFDProtocolMessage done [08:46:31]OFDSenderStorePacket 18741 [08:46:31]StoreOFDPacket docnum=18741 [08:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2E 01 00 00 5F F4 26 01 B5 CF 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EA 2A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 35 49 00 00 35 04 06 00 8D EE 99 B1 30 03 0E 8B 3D AC 1F 66 B6 8A [08:46:31]CheckFolder [08:46:31]dirname=/storage/ofd_packets [08:46:31]CheckFolder done [08:46:31]ProducePacketName [08:46:31]name=ofd_packets/00018741 [08:46:31]NVStorageSaveData ofd_packets/00018741 [08:46:31]File name is /storage/ofd_packets/00018741 [08:46:31]Write 332 bytes [08:46:31]NVStorageSaveData done [08:46:31]OFDSenderStorePacket done [08:46:31]KKMCreateOFDPacket done [08:46:31]NVStorageSaveData kkm_last_timestamp [08:46:31]File name is /storage/kkm_last_timestamp [08:46:31]Write 4 bytes [08:46:31]NVStorageSaveData done [08:46:31]ExternCall_PrintAddStr [08:46:31]wPrintStart [08:46:31]Write to MH i2c: 01 00 00 99 14 AD [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 99 14 00 00 00 00 00 FF 0F C2 [08:46:31]RasterBufferAndPrint [08:46:31]line Счет N : (3)16664 [08:46:31]line ИНН: 02508201610067 [08:46:31]line Контрольно-Кассовый Чек [08:46:31]line ПРОДАЖА [08:46:31]line Товар: 2000034730018 [08:46:31]line Кофе Американо (GABB TRADE) [08:46:31]line 1.000 * 105.00 [08:46:31]line = 105.00 [08:46:31]line НДС 12% НСП 1% [08:46:31]line > о реализуемом товаре [08:46:31]line ИТОГО: 105.00 [08:46:31]line НСП 1% : 0.93 [08:46:31]line НДС 12% : 11.15 [08:46:31]line Наличными: 105.00 [08:46:31]line Безнал.: 0.00 [08:46:31]line Место: АЗС № 176 "Партнер Нефть" [08:46:31]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:46:31]line СНО: Общий режим [08:46:31]line Чек 17 23.09.2024 08:46 [08:46:31]line Смена: 181 ФФД: 1.0 [08:46:31]line ЗНМ: 0300000010 [08:46:31]line РНМ: 0000000000152968 [08:46:31]line Версия ККМ: v1.0 [08:46:31]line ФМ: 0000000000959456 [08:46:31]line ФД: 18741 [08:46:31]line ФПД: 156055920259075 [08:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T084634&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18741&fm=156055920259075&tin=02508201610067®Number=0000000000152968&sum=10500 [08:46:31]line 0 [08:46:31]OFD Sender: Processing packet 18741 [packets to send 7, broken 6] [08:46:31]ProducePacketName [08:46:31]name=ofd_packets/00018741 [08:46:31]OFD Sender: To server: pG, [08:46:31]CommunicateWithHost lk.salyk.kg:30040 [08:46:31]ConnectInit lk.salyk.kg [08:46:31]written 0, free lines is 4095 [08:46:32]Connected sock=11 [08:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2E 01 00 00 5F F4 26 01 B5 CF 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EA 2A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 35 49 00 00 35 04 06 00 8D EE 99 B1 30 03 0E 8B 3D AC 1F 66 B6 8A [08:46:32]Write to MH i2c: 01 00 00 C2 14 D6 [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: 01 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: 01 07 00 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: 01 07 00 C2 14 00 00 00 00 00 03 0D ED [08:46:32]RasterBufferAndPrint [08:46:32]line [08:46:32]line [08:46:32]line [08:46:32]line [08:46:32]line [08:46:32]written 0, free lines is 3337 [08:46:32]MH_Cut [08:46:32]Write to MH i2c: D1 01 00 C9 14 01 AF [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: D1 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: D1 01 00 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: D1 01 00 C9 14 00 AE [08:46:32]Write to MH i2c: 01 00 00 CA 14 DE [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4B C2 47 00 89 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 35 39 34 35 36 10 04 04 00 35 49 00 00 F4 03 04 00 4F D4 F0 66 B6 04 01 00 00 8A 1C E4 22 A8 D8 4F D1 [08:46:32]CommunicateWithHost err = 0 [08:46:32]CheckOFDResponse [08:46:32]1017 (14) - 77093643461234 [08:46:32]1041 (16) - 0000000000959456 [08:46:32]1040 (4) - 18741 [08:46:32]1012 (4) - 23.09.2024 02:37 [08:46:32]1206 (1) - 0 [08:46:32]OFD Sender: Remove packet 18741 [08:46:32]ProducePacketName [08:46:32]name=ofd_packets/00018741 [08:46:32]NVStorageDeleteData [08:46:32]OFD Sender: No OFD packet to send [08:46:32]*** Cut start [08:46:32]*** Partial cut [08:46:32]*** CUTSNS_PIN = 1 [08:46:32]*** CUTSNS_PIN = 0 [08:46:33]*** Brake cut motor [08:46:33]Read from MH i2c: 01 [08:46:33]MH_I2C_Read... [08:46:33]*** Stop cut motor [08:46:33]*** Cut end [08:46:33]Read from MH i2c: 01 07 00 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [08:46:33]process_action close_receipt done [08:46:33]requested_data is exist [08:46:33]produce_requested_data [08:46:33]requested_item fm.sn is exist - process it [08:46:33]wFMCommunicate request_size=4 [08:46:33]MH_SAM_APDU [08:46:33]CAPDU: 80 11 00 00 [08:46:33]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [08:46:33]Write i2c OK [08:46:33]MH_I2C_Read... [08:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:33]Read from MH i2c: E2 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 17 00 [08:46:33]MH_I2C_Read... [08:46:33]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 35 39 34 35 36 90 00 B2 [08:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:46:33]wFMCommunicate OK [08:46:33]requested_item fd.num is exist - process it [08:46:33]SAM_PROTO_GetFieldsCounters [08:46:33]wFMCommunicate request_size=4 [08:46:33]MH_SAM_APDU [08:46:33]CAPDU: 80 13 00 00 [08:46:33]Write to MH i2c: E2 08 00 CC 14 80 13 00 00 00 00 00 00 5C [08:46:33]Write i2c OK [08:46:33]MH_I2C_Read... [08:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:33]Read from MH i2c: E2 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 62 00 [08:46:33]MH_I2C_Read... [08:46:33]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 35 49 00 00 0E 04 04 00 B5 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 EF [08:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 35 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:33]wFMCommunicate OK [08:46:33]SAM_PROTO_GetFieldsCounters done [08:46:33]requested_item shift.num is exist - process it [08:46:33]requested_item shift.opened is exist - process it [08:46:33]req_shift_opened [08:46:33]FM_GetShiftState [08:46:33]SAM_PROTO_GetShiftState [08:46:33]wFMCommunicate request_size=4 [08:46:33]MH_SAM_APDU [08:46:33]CAPDU: 80 13 01 00 [08:46:33]Write to MH i2c: E2 08 00 CD 14 80 13 01 00 00 00 00 00 5E [08:46:33]Write i2c OK [08:46:33]MH_I2C_Read... [08:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:33]Read from MH i2c: E2 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 0E 00 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 0E 00 CD 14 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F6 [08:46:33]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [08:46:33]wFMCommunicate OK [08:46:33]SAM_PROTO_GetShiftState done [08:46:33]FM_GetShiftState done [08:46:33]req_shift_opened done [08:46:33]requested_item shift.open_date is exist - process it [08:46:33]req_shift_open_date [08:46:33]req_shift_open_date done [08:46:33]produce_requested_data done [08:46:33]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18741,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [08:46:33]process_action_free close_receipt [08:46:33]json_value_free [08:46:33]json_value_free done [08:46:33]process_json_proto returns [08:46:33]Send response to host [08:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18741,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [08:46:33]free response buf [08:46:33]execute_script done [08:46:33]execute_script returns [08:46:33]free content buf [08:46:33]Sock 10.Close socket [08:46:33]Sock 10.Thread stoped [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:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:41]accept exits with 8 [08:59:41]New connection [08:59:41]New thread 3067272548 created [08:59:41]Thread 3067129188 joined [08:59:41]Waiting for new connection... [08:59:41] Sock 8.Parse request [08:59:41]Sock 8.Check first char [08:59:41]Sock 8.First char is OK [08:59:41]request: POST /json_proto HTTP/1.0 [08:59:41]Method: POST [08:59:41]URL: /json_proto [08:59:41]Method is POST - this is cgi request [08:59:41]url: /json_proto [08:59:41]query_string will be loaded in cgi processing [08:59:41]execute_cgi json_proto POST (null) [08:59:41]execute_cgi path=json_proto method=POST [08:59:41]POST find Content-Length [08:59:41]Host: 172.17.62.196:8080 [08:59:41]Content-Length: 655 [08:59:41]Content-Type: application/json [08:59:41] [08:59:41]POST finish read [08:59:41]Found Content-Length = 655 [08:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16665", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 4.000, "sum" : 480.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:41]execute_script... [08:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16665", "tax_sys" : 0, "items" : [ { "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 4.000, "sum" : 480.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:41]POST & json_proto [08:59:41]process_json_proto [08:59:41]json parsed OK: [08:59:41]protocol is kg_v1.0 [08:59:41]action value=close_receipt [08:59:41]process_action close_receipt [08:59:41]cmd_close_receipt [08:59:41]MH_GetDate [08:59:41]Write to MH i2c: F0 00 00 CE 14 D1 [08:59:41]Write i2c OK [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: F0 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: F0 09 00 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: F0 09 00 CE 14 00 02 2E F1 66 CE CC 0E 66 6F [08:59:41]GetLastDocTimeStamp 1727081194 [08:59:41]current date 1727081986 [08:59:41]FM_GetShiftState [08:59:41]SAM_PROTO_GetShiftState [08:59:41]wFMCommunicate request_size=4 [08:59:41]MH_SAM_APDU [08:59:41]CAPDU: 80 13 01 00 [08:59:41]Write to MH i2c: E2 08 00 CF 14 80 13 01 00 00 00 00 00 60 [08:59:41]Write i2c OK [08:59:41]MH_I2C_Read... [08:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:41]Read from MH i2c: E2 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: E2 0E 00 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: E2 0E 00 CF 14 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F8 [08:59:41]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [08:59:41]wFMCommunicate OK [08:59:41]SAM_PROTO_GetShiftState done [08:59:41]FM_GetShiftState done [08:59:41]opened in 1727050372 [08:59:41]opened+sec_in_day 1727136772 [08:59:41]quantity*price = 48000 [08:59:41]sum+1 = 48001 [08:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 480.00 НСП 1% : 4.25 НДС 12% : 50.97 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 18 23.09.2024 08:59 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18742 ФПД: 180171233289190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T085946&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18742&fm=180171233289190&tin=02508201610067®Number=0000000000152968&sum=48000 0 [08:59:42]StoreToDocumentArchive [08:59:42]shift 181 fd 18742 [08:59:42]save to /storage/0181/doc_00018742 [08:59:42]save last doc name /storage/0181/doc_00018742 to /storage/kkm_last_doc_name [08:59:42]save OK [08:59:42]Clear old archive folders... [08:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=284 [08:59:42]tlvbuf is 002347B0 [08:59:42]SAM_PROTO_ClearQueue [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 09 00 00 [08:59:42]Write to MH i2c: E2 08 00 DC 14 80 09 00 00 00 00 00 00 62 [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [08:59:42]RAPDU: 90 00 [08:59:42]wFMCommunicate OK [08:59:42]SAM_PROTO_ClearQueue done [08:59:42]KKMCreateOFDPacket [08:59:42]OFDProtocolAddRootSTLVToBuf [08:59:42]FM_MakeSignedData [08:59:42]FM_MakeSignedData [08:59:42]SAM_PROTO_SignData [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 0D 01 02 [08:59:42]Write to MH i2c: E2 08 00 DD 14 80 0D 01 02 00 00 00 00 6A [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [08:59:43]RAPDU: 90 00 [08:59:43]wFMCommunicate OK [08:59:43]wFMCommunicate request_size=255 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [08:59:43]Write to MH i2c: E2 02 01 DE 14 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 1E [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [08:59:43]RAPDU: 90 00 [08:59:43]wFMCommunicate OK [08:59:43]wFMCommunicate request_size=43 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 36 49 00 00 35 04 06 00 A3 DD 62 5B E3 E6 [08:59:43]Write to MH i2c: E2 2E 00 DF 14 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 36 49 00 00 35 04 06 00 A3 DD 62 5B E3 E6 00 00 E0 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [08:59:43]RAPDU: 90 00 [08:59:43]wFMCommunicate OK [08:59:43]wFMCommunicate request_size=4 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 0D 03 02 [08:59:43]Write to MH i2c: E2 08 00 E0 14 80 0D 03 02 00 00 00 00 6F [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 0B 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 0B 00 E0 14 00 D1 CC 39 4A 70 3A BB C3 90 00 B8 [08:59:43]RAPDU: D1 CC 39 4A 70 3A BB C3 90 00 [08:59:43]wFMCommunicate OK [08:59:43]SAM_PROTO_SignData done [08:59:43]FM_MakeSignedData done [08:59:43]CreateOFDProtocolMessage [08:59:43]wFMCommunicate request_size=4 [08:59:43]MH_SAM_APDU [08:59:43]CAPDU: 80 11 00 00 [08:59:43]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]OFD Sender: No OFD packet to send [08:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:43]Read from MH i2c: E2 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: E2 17 00 [08:59:43]MH_I2C_Read... [08:59:43]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 35 39 34 35 36 90 00 C8 [08:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:59:43]wFMCommunicate OK [08:59:43]CreateOFDProtocolMessage done [08:59:43]OFDSenderStorePacket 18742 [08:59:43]StoreOFDPacket docnum=18742 [08:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 7A 28 28 01 B0 5F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 36 49 00 00 35 04 06 00 A3 DD 62 5B E3 E6 D1 CC 39 4A 70 3A BB C3 [08:59:43]CheckFolder [08:59:43]dirname=/storage/ofd_packets [08:59:43]CheckFolder done [08:59:43]ProducePacketName [08:59:43]name=ofd_packets/00018742 [08:59:43]NVStorageSaveData ofd_packets/00018742 [08:59:43]File name is /storage/ofd_packets/00018742 [08:59:43]Write 334 bytes [08:59:43]NVStorageSaveData done [08:59:43]OFDSenderStorePacket done [08:59:43]KKMCreateOFDPacket done [08:59:43]NVStorageSaveData kkm_last_timestamp [08:59:43]File name is /storage/kkm_last_timestamp [08:59:43]Write 4 bytes [08:59:43]NVStorageSaveData done [08:59:43]ExternCall_PrintAddStr [08:59:43]wPrintStart [08:59:43]Write to MH i2c: 01 00 00 E2 14 F6 [08:59:43]Write i2c OK [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 07 00 [08:59:43]MH_I2C_Read... [08:59:43]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FF 0F 0B [08:59:43]RasterBufferAndPrint [08:59:43]line Счет N : (3)16665 [08:59:43]line ИНН: 02508201610067 [08:59:43]line Контрольно-Кассовый Чек [08:59:43]line ПРОДАЖА [08:59:43]line Товар: 2000034250011 [08:59:43]line Горячий шоколад (GABB trade) [08:59:43]line 4.000 * 120.00 [08:59:43]line = 480.00 [08:59:43]line НДС 12% НСП 1% [08:59:43]line > о реализуемом товаре [08:59:43]line ИТОГО: 480.00 [08:59:43]line НСП 1% : 4.25 [08:59:43]line НДС 12% : 50.97 [08:59:43]line Наличными: 480.00 [08:59:43]line Безнал.: 0.00 [08:59:43]line Место: АЗС № 176 "Партнер Нефть" [08:59:43]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [08:59:43]line СНО: Общий режим [08:59:43]line Чек 18 23.09.2024 08:59 [08:59:43]line Смена: 181 ФФД: 1.0 [08:59:43]line ЗНМ: 0300000010 [08:59:43]line РНМ: 0000000000152968 [08:59:43]line Версия ККМ: v1.0 [08:59:43]line ФМ: 0000000000959456 [08:59:43]line ФД: 18742 [08:59:43]line ФПД: 180171233289190 [08:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T085946&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18742&fm=180171233289190&tin=02508201610067®Number=0000000000152968&sum=48000 [08:59:43]line 0 [08:59:43]OFD Sender: Processing packet 18742 [packets to send 7, broken 6] [08:59:43]ProducePacketName [08:59:43]name=ofd_packets/00018742 [08:59:43]OFD Sender: To server: pG, [08:59:43]CommunicateWithHost lk.salyk.kg:30040 [08:59:43]ConnectInit lk.salyk.kg [08:59:43]written 0, free lines is 4095 [08:59:44]Connected sock=10 [08:59:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 7A 28 28 01 B0 5F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 80 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 02 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 36 49 00 00 35 04 06 00 A3 DD 62 5B E3 E6 D1 CC 39 4A 70 3A BB C3 [08:59:44]Write to MH i2c: 01 00 00 0B 15 20 [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: 01 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: 01 07 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: 01 07 00 0B 15 00 00 00 00 00 05 0D 39 [08:59:44]RasterBufferAndPrint [08:59:44]line [08:59:44]line [08:59:44]line [08:59:44]line [08:59:44]line [08:59:44]written 0, free lines is 3339 [08:59:44]MH_Cut [08:59:44]Write to MH i2c: D1 01 00 12 15 01 F9 [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: D1 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: D1 01 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: D1 01 00 12 15 00 F8 [08:59:44]Write to MH i2c: 01 00 00 13 15 28 [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 2C 2D 47 00 2B 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 35 39 34 35 36 10 04 04 00 36 49 00 00 F4 03 04 00 67 D7 F0 66 B6 04 01 00 00 D0 07 6B F0 BE 07 5A A4 [08:59:44]CommunicateWithHost err = 0 [08:59:44]CheckOFDResponse [08:59:44]1017 (14) - 77093643461234 [08:59:44]1041 (16) - 0000000000959456 [08:59:44]1040 (4) - 18742 [08:59:44]1012 (4) - 23.09.2024 02:50 [08:59:44]1206 (1) - 0 [08:59:44]OFD Sender: Remove packet 18742 [08:59:44]ProducePacketName [08:59:44]name=ofd_packets/00018742 [08:59:44]NVStorageDeleteData [08:59:44]OFD Sender: No OFD packet to send [08:59:44]*** Cut start [08:59:44]*** Partial cut [08:59:44]*** CUTSNS_PIN = 1 [08:59:44]*** CUTSNS_PIN = 0 [08:59:45]*** Brake cut motor [08:59:45]Read from MH i2c: 01 [08:59:45]MH_I2C_Read... [08:59:45]*** Stop cut motor [08:59:45]*** Cut end [08:59:45]Read from MH i2c: 01 07 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: 01 07 00 13 15 00 00 00 00 00 FF 0F 3D [08:59:45]process_action close_receipt done [08:59:45]requested_data is exist [08:59:45]produce_requested_data [08:59:45]requested_item fm.sn is exist - process it [08:59:45]wFMCommunicate request_size=4 [08:59:45]MH_SAM_APDU [08:59:45]CAPDU: 80 11 00 00 [08:59:45]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:45]Read from MH i2c: E2 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 17 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FC [08:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [08:59:45]wFMCommunicate OK [08:59:45]requested_item fd.num is exist - process it [08:59:45]SAM_PROTO_GetFieldsCounters [08:59:45]wFMCommunicate request_size=4 [08:59:45]MH_SAM_APDU [08:59:45]CAPDU: 80 13 00 00 [08:59:45]Write to MH i2c: E2 08 00 15 15 80 13 00 00 00 00 00 00 A6 [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:45]Read from MH i2c: E2 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 62 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 62 00 15 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 36 49 00 00 0E 04 04 00 B5 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 3D [08:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 36 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:45]wFMCommunicate OK [08:59:45]SAM_PROTO_GetFieldsCounters done [08:59:45]requested_item shift.num is exist - process it [08:59:45]requested_item shift.opened is exist - process it [08:59:45]req_shift_opened [08:59:45]FM_GetShiftState [08:59:45]SAM_PROTO_GetShiftState [08:59:45]wFMCommunicate request_size=4 [08:59:45]MH_SAM_APDU [08:59:45]CAPDU: 80 13 01 00 [08:59:45]Write to MH i2c: E2 08 00 16 15 80 13 01 00 00 00 00 00 A8 [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:45]Read from MH i2c: E2 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 0E 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 0E 00 16 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 40 [08:59:45]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [08:59:45]wFMCommunicate OK [08:59:45]SAM_PROTO_GetShiftState done [08:59:45]FM_GetShiftState done [08:59:45]req_shift_opened done [08:59:45]requested_item shift.open_date is exist - process it [08:59:45]req_shift_open_date [08:59:45]req_shift_open_date done [08:59:45]produce_requested_data done [08:59:45]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18742,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [08:59:45]process_action_free close_receipt [08:59:45]json_value_free [08:59:45]json_value_free done [08:59:45]process_json_proto returns [08:59:45]Send response to host [08:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18742,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [08:59:45]free response buf [08:59:45]execute_script done [08:59:45]execute_script returns [08:59:45]free content buf [08:59:45]Sock 8.Close socket [08:59:45]Sock 8.Thread stoped [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:01]accept exits with 9 [09:00:01]New connection [09:00:01]New thread 3067129188 created [09:00:01]Thread 3067272548 joined [09:00:01]Waiting for new connection... [09:00:01] Sock 9.Parse request [09:00:01]Sock 9.Check first char [09:00:01]Sock 9.First char is OK [09:00:01]request: POST /json_proto HTTP/1.0 [09:00:01]Method: POST [09:00:01]URL: /json_proto [09:00:01]Method is POST - this is cgi request [09:00:01]url: /json_proto [09:00:01]query_string will be loaded in cgi processing [09:00:01]execute_cgi json_proto POST (null) [09:00:01]execute_cgi path=json_proto method=POST [09:00:01]POST find Content-Length [09:00:01]Host: 172.17.62.196:8080 [09:00:01]Content-Length: 699 [09:00:01]Content-Type: application/json [09:00:01] [09:00:01]POST finish read [09:00:01]Found Content-Length = 699 [09:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16666", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:01]execute_script... [09:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16666", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:01]POST & json_proto [09:00:01]process_json_proto [09:00:01]json parsed OK: [09:00:01]protocol is kg_v1.0 [09:00:01]action value=close_receipt [09:00:01]process_action close_receipt [09:00:01]cmd_close_receipt [09:00:01]MH_GetDate [09:00:01]Write to MH i2c: F0 00 00 17 15 1B [09:00:01]Write i2c OK [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: F0 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: F0 09 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: F0 09 00 17 15 00 16 2E F1 66 CE CC 0E 66 CD [09:00:01]GetLastDocTimeStamp 1727081986 [09:00:01]current date 1727082006 [09:00:01]FM_GetShiftState [09:00:01]SAM_PROTO_GetShiftState [09:00:01]wFMCommunicate request_size=4 [09:00:01]MH_SAM_APDU [09:00:01]CAPDU: 80 13 01 00 [09:00:01]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [09:00:01]Write i2c OK [09:00:01]MH_I2C_Read... [09:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:01]Read from MH i2c: E2 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 0E 00 [09:00:01]MH_I2C_Read... [09:00:01]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 42 [09:00:01]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:00:01]wFMCommunicate OK [09:00:01]SAM_PROTO_GetShiftState done [09:00:01]FM_GetShiftState done [09:00:01]opened in 1727050372 [09:00:01]opened+sec_in_day 1727136772 [09:00:01]quantity*price = 9000 [09:00:01]sum+1 = 9001 [09:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 19 23.09.2024 09:00 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18743 ФПД: 1023024706248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T090006&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18743&fm=1023024706248&tin=02508201610067®Number=0000000000152968&sum=9000 0 [09:00:02]StoreToDocumentArchive [09:00:02]shift 181 fd 18743 [09:00:02]save to /storage/0181/doc_00018743 [09:00:02]save last doc name /storage/0181/doc_00018743 to /storage/kkm_last_doc_name [09:00:02]save OK [09:00:02]Clear old archive folders... [09:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=299 [09:00:02]tlvbuf is 00205AC0 [09:00:02]SAM_PROTO_ClearQueue [09:00:02]wFMCommunicate request_size=4 [09:00:02]MH_SAM_APDU [09:00:02]CAPDU: 80 09 00 00 [09:00:02]Write to MH i2c: E2 08 00 25 15 80 09 00 00 00 00 00 00 AC [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:02]Read from MH i2c: E2 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 [09:00:02]MH_I2C_Read... [09:00:02]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [09:00:02]RAPDU: 90 00 [09:00:02]wFMCommunicate OK [09:00:02]SAM_PROTO_ClearQueue done [09:00:02]KKMCreateOFDPacket [09:00:02]OFDProtocolAddRootSTLVToBuf [09:00:02]FM_MakeSignedData [09:00:02]FM_MakeSignedData [09:00:02]SAM_PROTO_SignData [09:00:02]wFMCommunicate request_size=4 [09:00:02]MH_SAM_APDU [09:00:02]CAPDU: 80 0D 01 02 [09:00:02]Write to MH i2c: E2 08 00 26 15 80 0D 01 02 00 00 00 00 B4 [09:00:02]Write i2c OK [09:00:02]MH_I2C_Read... [09:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:03]Read from MH i2c: E2 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 03 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [09:00:03]RAPDU: 90 00 [09:00:03]wFMCommunicate OK [09:00:03]wFMCommunicate request_size=255 [09:00:03]MH_SAM_APDU [09:00:03]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [09:00:03]Write to MH i2c: E2 02 01 27 15 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 CE [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 [09:00:03]MH_I2C_Read... [09:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:03]Read from MH i2c: E2 03 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [09:00:03]RAPDU: 90 00 [09:00:03]wFMCommunicate OK [09:00:03]wFMCommunicate request_size=58 [09:00:03]MH_SAM_APDU [09:00:03]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 37 49 00 00 35 04 06 00 00 EE 31 06 32 C8 [09:00:03]Write to MH i2c: E2 3D 00 28 15 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 37 49 00 00 35 04 06 00 00 EE 31 06 32 C8 00 00 51 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:03]Read from MH i2c: E2 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 03 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [09:00:03]RAPDU: 90 00 [09:00:03]wFMCommunicate OK [09:00:03]wFMCommunicate request_size=4 [09:00:03]MH_SAM_APDU [09:00:03]CAPDU: 80 0D 03 02 [09:00:03]Write to MH i2c: E2 08 00 29 15 80 0D 03 02 00 00 00 00 B9 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:03]Read from MH i2c: E2 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 0B 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 0B 00 29 15 00 A1 F3 53 80 CE 0E 14 F0 90 00 01 [09:00:03]RAPDU: A1 F3 53 80 CE 0E 14 F0 90 00 [09:00:03]wFMCommunicate OK [09:00:03]SAM_PROTO_SignData done [09:00:03]FM_MakeSignedData done [09:00:03]CreateOFDProtocolMessage [09:00:03]wFMCommunicate request_size=4 [09:00:03]MH_SAM_APDU [09:00:03]CAPDU: 80 11 00 00 [09:00:03]Write to MH i2c: E2 08 00 2A 15 80 11 00 00 00 00 00 00 B9 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:03]Read from MH i2c: E2 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 17 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 17 00 2A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 12 [09:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:00:03]wFMCommunicate OK [09:00:03]CreateOFDProtocolMessage done [09:00:03]OFDSenderStorePacket 18743 [09:00:03]StoreOFDPacket docnum=18743 [09:00:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 34 90 37 01 94 22 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 37 49 00 00 35 04 06 00 00 EE 31 06 32 C8 A1 F3 53 80 CE 0E 14 F0 [09:00:03]CheckFolder [09:00:03]dirname=/storage/ofd_packets [09:00:03]CheckFolder done [09:00:03]ProducePacketName [09:00:03]name=ofd_packets/00018743 [09:00:03]NVStorageSaveData ofd_packets/00018743 [09:00:03]File name is /storage/ofd_packets/00018743 [09:00:03]Write 349 bytes [09:00:03]NVStorageSaveData done [09:00:03]OFDSenderStorePacket done [09:00:03]KKMCreateOFDPacket done [09:00:03]NVStorageSaveData kkm_last_timestamp [09:00:03]File name is /storage/kkm_last_timestamp [09:00:03]Write 4 bytes [09:00:03]NVStorageSaveData done [09:00:03]ExternCall_PrintAddStr [09:00:03]wPrintStart [09:00:03]Write to MH i2c: 01 00 00 2B 15 40 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: 01 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: 01 07 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: 01 07 00 2B 15 00 00 00 00 00 FF 0F 55 [09:00:03]RasterBufferAndPrint [09:00:03]line Счет N : (3)16666 [09:00:03]line ИНН: 02508201610067 [09:00:03]line Контрольно-Кассовый Чек [09:00:03]line ПРОДАЖА [09:00:03]line Товар: 4870002325113 [09:00:03]line Напиток PEPSI газированный ст 0,25л [09:00:03]line 1.000 * 90.00 [09:00:03]line = 90.00 [09:00:03]line НДС 12% НСП 1% [09:00:03]line > о реализуемом товаре [09:00:03]line ИТОГО: 90.00 [09:00:03]line НСП 1% : 0.80 [09:00:03]line НДС 12% : 9.56 [09:00:03]line Наличными: 90.00 [09:00:03]line Безнал.: 0.00 [09:00:03]line Место: АЗС № 176 "Партнер Нефть" [09:00:03]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:00:03]line СНО: Общий режим [09:00:03]line Чек 19 23.09.2024 09:00 [09:00:03]line Смена: 181 ФФД: 1.0 [09:00:03]line ЗНМ: 0300000010 [09:00:03]line РНМ: 0000000000152968 [09:00:03]line Версия ККМ: v1.0 [09:00:03]line ФМ: 0000000000959456 [09:00:03]line ФД: 18743 [09:00:03]line ФПД: 1023024706248 [09:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T090006&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18743&fm=1023024706248&tin=02508201610067®Number=0000000000152968&sum=9000 [09:00:03]line 0 [09:00:03]OFD Sender: Processing packet 18743 [packets to send 7, broken 6] [09:00:03]ProducePacketName [09:00:03]name=ofd_packets/00018743 [09:00:03]OFD Sender: To server: pG, [09:00:03]CommunicateWithHost lk.salyk.kg:30040 [09:00:03]ConnectInit lk.salyk.kg [09:00:03]written 0, free lines is 4095 [09:00:04]Connected sock=10 [09:00:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 34 90 37 01 94 22 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 16 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 37 49 00 00 35 04 06 00 00 EE 31 06 32 C8 A1 F3 53 80 CE 0E 14 F0 [09:00:04]Write to MH i2c: 01 00 00 54 15 69 [09:00:04]Write i2c OK [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: 01 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: 01 07 00 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 03 0D 80 [09:00:04]RasterBufferAndPrint [09:00:04]line [09:00:04]line [09:00:04]line [09:00:04]line [09:00:04]line [09:00:04]written 0, free lines is 3337 [09:00:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 E6 AC 47 00 D9 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 35 39 34 35 36 10 04 04 00 37 49 00 00 F4 03 04 00 7B D7 F0 66 B6 04 01 00 00 FB 9A 3D AF F0 FC F2 B9 [09:00:04]CommunicateWithHost err = 0 [09:00:04]CheckOFDResponse [09:00:04]1017 (14) - 77093643461234 [09:00:04]1041 (16) - 0000000000959456 [09:00:04]1040 (4) - 18743 [09:00:04]1012 (4) - 23.09.2024 02:50 [09:00:04]1206 (1) - 0 [09:00:04]OFD Sender: Remove packet 18743 [09:00:04]ProducePacketName [09:00:04]name=ofd_packets/00018743 [09:00:04]NVStorageDeleteData [09:00:04]MH_Cut [09:00:04]Write to MH i2c: D1 01 00 5B 15 01 42 [09:00:04]Write i2c OK [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: D1 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: D1 01 00 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: D1 01 00 5B 15 00 41 [09:00:04]Write to MH i2c: 01 00 00 5C 15 71 [09:00:04]Write i2c OK [09:00:04]MH_I2C_Read... [09:00:04]OFD Sender: No OFD packet to send [09:00:04]*** Cut start [09:00:04]*** Partial cut [09:00:04]*** CUTSNS_PIN = 1 [09:00:04]*** CUTSNS_PIN = 0 [09:00:05]*** Brake cut motor [09:00:05]Read from MH i2c: 01 [09:00:05]MH_I2C_Read... [09:00:05]*** Stop cut motor [09:00:05]*** Cut end [09:00:05]Read from MH i2c: 01 07 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: 01 07 00 5C 15 00 00 00 00 00 FF 0F 86 [09:00:05]process_action close_receipt done [09:00:05]requested_data is exist [09:00:05]produce_requested_data [09:00:05]requested_item fm.sn is exist - process it [09:00:05]wFMCommunicate request_size=4 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 11 00 00 [09:00:05]Write to MH i2c: E2 08 00 5D 15 80 11 00 00 00 00 00 00 EC [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 17 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 17 00 5D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 45 [09:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:00:05]wFMCommunicate OK [09:00:05]requested_item fd.num is exist - process it [09:00:05]SAM_PROTO_GetFieldsCounters [09:00:05]wFMCommunicate request_size=4 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 13 00 00 [09:00:05]Write to MH i2c: E2 08 00 5E 15 80 13 00 00 00 00 00 00 EF [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 62 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 62 00 5E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 37 49 00 00 0E 04 04 00 B5 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 8A [09:00:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 37 49 00 00 0E 04 04 00 B5 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 [09:00:05]wFMCommunicate OK [09:00:05]SAM_PROTO_GetFieldsCounters done [09:00:05]requested_item shift.num is exist - process it [09:00:05]requested_item shift.opened is exist - process it [09:00:05]req_shift_opened [09:00:05]FM_GetShiftState [09:00:05]SAM_PROTO_GetShiftState [09:00:05]wFMCommunicate request_size=4 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 13 01 00 [09:00:05]Write to MH i2c: E2 08 00 5F 15 80 13 01 00 00 00 00 00 F1 [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 0E 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 0E 00 5F 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 89 [09:00:05]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:00:05]wFMCommunicate OK [09:00:05]SAM_PROTO_GetShiftState done [09:00:05]FM_GetShiftState done [09:00:05]req_shift_opened done [09:00:05]requested_item shift.open_date is exist - process it [09:00:05]req_shift_open_date [09:00:05]req_shift_open_date done [09:00:05]produce_requested_data done [09:00:05]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18743,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:00:05]process_action_free close_receipt [09:00:05]json_value_free [09:00:05]json_value_free done [09:00:05]process_json_proto returns [09:00:05]Send response to host [09:00:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18743,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:00:05]free response buf [09:00:05]execute_script done [09:00:05]execute_script returns [09:00:05]free content buf [09:00:05]Sock 9.Close socket [09:00:05]Sock 9.Thread stoped [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:22]accept exits with 8 [09:01:22]New connection [09:01:22]New thread 3067272548 created [09:01:22]Thread 3067129188 joined [09:01:22]Waiting for new connection... [09:01:22] Sock 8.Parse request [09:01:22]Sock 8.Check first char [09:01:22]Sock 8.First char is OK [09:01:22]request: POST /json_proto HTTP/1.0 [09:01:22]Method: POST [09:01:22]URL: /json_proto [09:01:22]Method is POST - this is cgi request [09:01:22]url: /json_proto [09:01:22]query_string will be loaded in cgi processing [09:01:22]execute_cgi json_proto POST (null) [09:01:22]execute_cgi path=json_proto method=POST [09:01:22]POST find Content-Length [09:01:22]Host: 172.17.62.196:8080 [09:01:22]Content-Length: 621 [09:01:22]Content-Type: application/json [09:01:22] [09:01:22]POST finish read [09:01:22]Found Content-Length = 621 [09:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16667", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:22]execute_script... [09:01:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16667", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:22]POST & json_proto [09:01:22]process_json_proto [09:01:22]json parsed OK: [09:01:22]protocol is kg_v1.0 [09:01:22]action value=close_receipt [09:01:22]process_action close_receipt [09:01:22]cmd_close_receipt [09:01:22]MH_GetDate [09:01:22]Write to MH i2c: F0 00 00 60 15 64 [09:01:22]Write i2c OK [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: F0 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: F0 09 00 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: F0 09 00 60 15 00 67 2E F1 66 CE CC 0E 66 67 [09:01:22]GetLastDocTimeStamp 1727082006 [09:01:22]current date 1727082087 [09:01:22]FM_GetShiftState [09:01:22]SAM_PROTO_GetShiftState [09:01:22]wFMCommunicate request_size=4 [09:01:22]MH_SAM_APDU [09:01:22]CAPDU: 80 13 01 00 [09:01:22]Write to MH i2c: E2 08 00 61 15 80 13 01 00 00 00 00 00 F3 [09:01:22]Write i2c OK [09:01:22]MH_I2C_Read... [09:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:22]Read from MH i2c: E2 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: E2 0E 00 [09:01:22]MH_I2C_Read... [09:01:22]Read from MH i2c: E2 0E 00 61 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8B [09:01:22]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:01:22]wFMCommunicate OK [09:01:22]SAM_PROTO_GetShiftState done [09:01:22]FM_GetShiftState done [09:01:22]opened in 1727050372 [09:01:22]opened+sec_in_day 1727136772 [09:01:22]quantity*price = 15600 [09:01:22]sum+1 = 15601 [09:01:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 20 23.09.2024 09:01 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18744 ФПД: 280681174589254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T090127&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18744&fm=280681174589254&tin=02508201610067®Number=0000000000152968&sum=15600 0 [09:01:23]StoreToDocumentArchive [09:01:23]shift 181 fd 18744 [09:01:23]save to /storage/0181/doc_00018744 [09:01:23]save last doc name /storage/0181/doc_00018744 to /storage/kkm_last_doc_name [09:01:23]save OK [09:01:23]Clear old archive folders... [09:01:23]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:01:23]tlvbuf is 0024AA70 [09:01:23]SAM_PROTO_ClearQueue [09:01:23]wFMCommunicate request_size=4 [09:01:23]MH_SAM_APDU [09:01:23]CAPDU: 80 09 00 00 [09:01:23]Write to MH i2c: E2 08 00 6E 15 80 09 00 00 00 00 00 00 F5 [09:01:23]Write i2c OK [09:01:23]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 6E 15 00 90 00 F7 [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]SAM_PROTO_ClearQueue done [09:01:24]KKMCreateOFDPacket [09:01:24]OFDProtocolAddRootSTLVToBuf [09:01:24]FM_MakeSignedData [09:01:24]FM_MakeSignedData [09:01:24]SAM_PROTO_SignData [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 01 02 [09:01:24]Write to MH i2c: E2 08 00 6F 15 80 0D 01 02 00 00 00 00 FD [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]wFMCommunicate request_size=255 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [09:01:24]Write to MH i2c: E2 02 01 70 15 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 93 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]wFMCommunicate request_size=33 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 38 49 00 00 35 04 06 00 FF 47 2D B4 DF 46 [09:01:24]Write to MH i2c: E2 24 00 71 15 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 38 49 00 00 35 04 06 00 FF 47 2D B4 DF 46 00 00 62 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [09:01:24]RAPDU: 90 00 [09:01:24]wFMCommunicate OK [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 0D 03 02 [09:01:24]Write to MH i2c: E2 08 00 72 15 80 0D 03 02 00 00 00 00 02 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 0B 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 0B 00 72 15 00 F1 7A 9D 8F 0E 7F A4 DB 90 00 A6 [09:01:24]RAPDU: F1 7A 9D 8F 0E 7F A4 DB 90 00 [09:01:24]wFMCommunicate OK [09:01:24]SAM_PROTO_SignData done [09:01:24]FM_MakeSignedData done [09:01:24]CreateOFDProtocolMessage [09:01:24]wFMCommunicate request_size=4 [09:01:24]MH_SAM_APDU [09:01:24]CAPDU: 80 11 00 00 [09:01:24]Write to MH i2c: E2 08 00 73 15 80 11 00 00 00 00 00 00 02 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:24]Read from MH i2c: E2 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 17 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: E2 17 00 73 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5B [09:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:01:24]wFMCommunicate OK [09:01:24]CreateOFDProtocolMessage done [09:01:24]OFDSenderStorePacket 18744 [09:01:24]StoreOFDPacket docnum=18744 [09:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 25 B9 1E 01 1F 3C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 38 49 00 00 35 04 06 00 FF 47 2D B4 DF 46 F1 7A 9D 8F 0E 7F A4 DB [09:01:24]CheckFolder [09:01:24]dirname=/storage/ofd_packets [09:01:24]CheckFolder done [09:01:24]ProducePacketName [09:01:24]name=ofd_packets/00018744 [09:01:24]NVStorageSaveData ofd_packets/00018744 [09:01:24]File name is /storage/ofd_packets/00018744 [09:01:24]Write 324 bytes [09:01:24]NVStorageSaveData done [09:01:24]OFDSenderStorePacket done [09:01:24]KKMCreateOFDPacket done [09:01:24]NVStorageSaveData kkm_last_timestamp [09:01:24]File name is /storage/kkm_last_timestamp [09:01:24]Write 4 bytes [09:01:24]NVStorageSaveData done [09:01:24]ExternCall_PrintAddStr [09:01:24]wPrintStart [09:01:24]Write to MH i2c: 01 00 00 74 15 89 [09:01:24]Write i2c OK [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: 01 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: 01 07 00 [09:01:24]MH_I2C_Read... [09:01:24]Read from MH i2c: 01 07 00 74 15 00 00 00 00 00 FF 0F 9E [09:01:24]RasterBufferAndPrint [09:01:24]line Счет N : (3)16667 [09:01:24]line ИНН: 02508201610067 [09:01:24]line Контрольно-Кассовый Чек [09:01:24]line ПРОДАЖА [09:01:24]line Товар: 48741958 [09:01:24]line Сигареты Parliament Aqua Blue [09:01:24]line 1.000 * 156.00 [09:01:24]line = 156.00 [09:01:24]line НДС 12% НСП 1% [09:01:24]line > о реализуемом товаре [09:01:24]line ИТОГО: 156.00 [09:01:24]line НСП 1% : 1.38 [09:01:24]line НДС 12% : 16.57 [09:01:24]line Наличными: 156.00 [09:01:24]line Безнал.: 0.00 [09:01:24]line Место: АЗС № 176 "Партнер Нефть" [09:01:24]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:01:24]line СНО: Общий режим [09:01:24]line Чек 20 23.09.2024 09:01 [09:01:24]line Смена: 181 ФФД: 1.0 [09:01:24]line ЗНМ: 0300000010 [09:01:24]line РНМ: 0000000000152968 [09:01:24]line Версия ККМ: v1.0 [09:01:24]line ФМ: 0000000000959456 [09:01:24]line ФД: 18744 [09:01:24]line ФПД: 280681174589254 [09:01:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T090127&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18744&fm=280681174589254&tin=02508201610067®Number=0000000000152968&sum=15600 [09:01:24]line 0 [09:01:24]OFD Sender: Processing packet 18744 [packets to send 7, broken 6] [09:01:24]ProducePacketName [09:01:24]name=ofd_packets/00018744 [09:01:24]OFD Sender: To server: pG, [09:01:24]CommunicateWithHost lk.salyk.kg:30040 [09:01:24]ConnectInit lk.salyk.kg [09:01:24]written 0, free lines is 4095 [09:01:25]Connected sock=10 [09:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 25 B9 1E 01 1F 3C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 67 2E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 38 49 00 00 35 04 06 00 FF 47 2D B4 DF 46 F1 7A 9D 8F 0E 7F A4 DB [09:01:25]Write to MH i2c: 01 00 00 9D 15 B2 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 07 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: 01 07 00 9D 15 00 00 00 00 00 F1 0C B6 [09:01:25]RasterBufferAndPrint [09:01:25]line [09:01:25]line [09:01:25]line [09:01:25]line [09:01:25]line [09:01:25]written 0, free lines is 3319 [09:01:25]MH_Cut [09:01:25]Write to MH i2c: D1 01 00 A4 15 01 8B [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: D1 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: D1 01 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: D1 01 00 A4 15 00 8A [09:01:25]Write to MH i2c: 01 00 00 A5 15 BA [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4F 96 47 00 FD 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 35 39 34 35 36 10 04 04 00 38 49 00 00 F4 03 04 00 CC D7 F0 66 B6 04 01 00 00 95 21 84 37 8F 54 B5 1B [09:01:25]CommunicateWithHost err = 0 [09:01:25]CheckOFDResponse [09:01:25]1017 (14) - 77093643461234 [09:01:25]1041 (16) - 0000000000959456 [09:01:25]1040 (4) - 18744 [09:01:25]1012 (4) - 23.09.2024 02:51 [09:01:25]1206 (1) - 0 [09:01:25]OFD Sender: Remove packet 18744 [09:01:25]ProducePacketName [09:01:25]name=ofd_packets/00018744 [09:01:25]NVStorageDeleteData [09:01:25]OFD Sender: No OFD packet to send [09:01:25]*** Cut start [09:01:25]*** Partial cut [09:01:25]*** CUTSNS_PIN = 1 [09:01:25]*** CUTSNS_PIN = 0 [09:01:26]*** Brake cut motor [09:01:26]Read from MH i2c: 01 [09:01:26]MH_I2C_Read... [09:01:26]*** Stop cut motor [09:01:26]*** Cut end [09:01:26]Read from MH i2c: 01 07 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: 01 07 00 A5 15 00 00 00 00 00 FF 0F CF [09:01:26]process_action close_receipt done [09:01:26]requested_data is exist [09:01:26]produce_requested_data [09:01:26]requested_item fm.sn is exist - process it [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 11 00 00 [09:01:26]Write to MH i2c: E2 08 00 A6 15 80 11 00 00 00 00 00 00 35 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 17 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 17 00 A6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 8E [09:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:01:26]wFMCommunicate OK [09:01:26]requested_item fd.num is exist - process it [09:01:26]SAM_PROTO_GetFieldsCounters [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 13 00 00 [09:01:26]Write to MH i2c: E2 08 00 A7 15 80 13 00 00 00 00 00 00 38 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 62 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 62 00 A7 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 38 49 00 00 0E 04 04 00 B5 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 D7 [09:01:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 38 49 00 00 0E 04 04 00 B5 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 [09:01:26]wFMCommunicate OK [09:01:26]SAM_PROTO_GetFieldsCounters done [09:01:26]requested_item shift.num is exist - process it [09:01:26]requested_item shift.opened is exist - process it [09:01:26]req_shift_opened [09:01:26]FM_GetShiftState [09:01:26]SAM_PROTO_GetShiftState [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 13 01 00 [09:01:26]Write to MH i2c: E2 08 00 A8 15 80 13 01 00 00 00 00 00 3A [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 0E 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 0E 00 A8 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D2 [09:01:26]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:01:26]wFMCommunicate OK [09:01:26]SAM_PROTO_GetShiftState done [09:01:26]FM_GetShiftState done [09:01:26]req_shift_opened done [09:01:26]requested_item shift.open_date is exist - process it [09:01:26]req_shift_open_date [09:01:26]req_shift_open_date done [09:01:26]produce_requested_data done [09:01:26]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18744,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:01:26]process_action_free close_receipt [09:01:26]json_value_free [09:01:26]json_value_free done [09:01:26]process_json_proto returns [09:01:26]Send response to host [09:01:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18744,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:01:26]free response buf [09:01:26]execute_script done [09:01:26]execute_script returns [09:01:26]free content buf [09:01:26]Sock 8.Close socket [09:01:26]Sock 8.Thread stoped [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02: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:41]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:00]accept exits with 9 [09:11:00]New connection [09:11:00]New thread 3067129188 created [09:11:00]Thread 3067272548 joined [09:11:00]Waiting for new connection... [09:11:00] Sock 9.Parse request [09:11:00]Sock 9.Check first char [09:11:00]Sock 9.First char is OK [09:11:00]request: POST /json_proto HTTP/1.0 [09:11:00]Method: POST [09:11:00]URL: /json_proto [09:11:00]Method is POST - this is cgi request [09:11:00]url: /json_proto [09:11:00]query_string will be loaded in cgi processing [09:11:00]execute_cgi json_proto POST (null) [09:11:00]execute_cgi path=json_proto method=POST [09:11:00]POST find Content-Length [09:11:00]Host: 172.17.62.196:8080 [09:11:00]Content-Length: 786 [09:11:00]Content-Type: application/json [09:11:00] [09:11:00]POST finish read [09:11:00]Found Content-Length = 786 [09:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16668", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:00]execute_script... [09:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16668", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:00]POST & json_proto [09:11:00]process_json_proto [09:11:00]json parsed OK: [09:11:00]protocol is kg_v1.0 [09:11:00]action value=close_receipt [09:11:00]process_action close_receipt [09:11:00]cmd_close_receipt [09:11:00]MH_GetDate [09:11:00]Write to MH i2c: F0 00 00 A9 15 AD [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: F0 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: F0 09 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: F0 09 00 A9 15 00 A9 30 F1 66 CE CC 0E 66 F4 [09:11:00]GetLastDocTimeStamp 1727082087 [09:11:00]current date 1727082665 [09:11:00]FM_GetShiftState [09:11:00]SAM_PROTO_GetShiftState [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 13 01 00 [09:11:00]Write to MH i2c: E2 08 00 AA 15 80 13 01 00 00 00 00 00 3C [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0E 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0E 00 AA 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D4 [09:11:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_GetShiftState done [09:11:00]FM_GetShiftState done [09:11:00]opened in 1727050372 [09:11:00]opened+sec_in_day 1727136772 [09:11:00]quantity*price = 11500 [09:11:00]sum+1 = 11501 [09:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 21 23.09.2024 09:11 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18745 ФПД: 69973014460772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091105&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18745&fm=69973014460772&tin=02508201610067®Number=0000000000152968&sum=11500 0 [09:11:02]StoreToDocumentArchive [09:11:02]shift 181 fd 18745 [09:11:02]save to /storage/0181/doc_00018745 [09:11:02]save last doc name /storage/0181/doc_00018745 to /storage/kkm_last_doc_name [09:11:02]save OK [09:11:02]Clear old archive folders... [09:11:02]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:11:02]tlvbuf is B6F0F9F0 [09:11:02]SAM_PROTO_ClearQueue [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 09 00 00 [09:11:02]Write to MH i2c: E2 08 00 B7 15 80 09 00 00 00 00 00 00 3E [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 B7 15 00 90 00 40 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]SAM_PROTO_ClearQueue done [09:11:02]KKMCreateOFDPacket [09:11:02]OFDProtocolAddRootSTLVToBuf [09:11:02]FM_MakeSignedData [09:11:02]FM_MakeSignedData [09:11:02]SAM_PROTO_SignData [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 01 02 [09:11:02]Write to MH i2c: E2 08 00 B8 15 80 0D 01 02 00 00 00 00 46 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 B8 15 00 90 00 41 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]wFMCommunicate request_size=255 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 30 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [09:11:02]Write to MH i2c: E2 02 01 B9 15 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 30 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 E2 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 B9 15 00 90 00 42 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]wFMCommunicate request_size=33 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 39 49 00 00 35 04 06 00 3F A3 DC AB B9 64 [09:11:02]Write to MH i2c: E2 24 00 BA 15 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 39 49 00 00 35 04 06 00 3F A3 DC AB B9 64 00 00 E6 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 03 02 [09:11:02]Write to MH i2c: E2 08 00 BB 15 80 0D 03 02 00 00 00 00 4B [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 0B 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 0B 00 BB 15 00 F4 C7 A7 C2 37 14 44 C2 90 00 C1 [09:11:02]RAPDU: F4 C7 A7 C2 37 14 44 C2 90 00 [09:11:02]wFMCommunicate OK [09:11:02]SAM_PROTO_SignData done [09:11:02]FM_MakeSignedData done [09:11:02]CreateOFDProtocolMessage [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 11 00 00 [09:11:02]Write to MH i2c: E2 08 00 BC 15 80 11 00 00 00 00 00 00 4B [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 17 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 17 00 BC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A4 [09:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:11:02]wFMCommunicate OK [09:11:02]CreateOFDProtocolMessage done [09:11:02]OFDSenderStorePacket 18745 [09:11:02]StoreOFDPacket docnum=18745 [09:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 87 82 1E 01 54 C6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 30 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 39 49 00 00 35 04 06 00 3F A3 DC AB B9 64 F4 C7 A7 C2 37 14 44 C2 [09:11:02]CheckFolder [09:11:02]dirname=/storage/ofd_packets [09:11:02]CheckFolder done [09:11:02]ProducePacketName [09:11:02]name=ofd_packets/00018745 [09:11:02]NVStorageSaveData ofd_packets/00018745 [09:11:02]File name is /storage/ofd_packets/00018745 [09:11:02]Write 324 bytes [09:11:02]NVStorageSaveData done [09:11:02]OFDSenderStorePacket done [09:11:02]KKMCreateOFDPacket done [09:11:02]NVStorageSaveData kkm_last_timestamp [09:11:02]File name is /storage/kkm_last_timestamp [09:11:02]Write 4 bytes [09:11:02]NVStorageSaveData done [09:11:02]ExternCall_PrintAddStr [09:11:02]wPrintStart [09:11:02]Write to MH i2c: 01 00 00 BD 15 D2 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 BD 15 00 00 00 00 00 FF 0F E7 [09:11:02]RasterBufferAndPrint [09:11:02]line Счет N : (3)16668 [09:11:02]line ИНН: 02508201610067 [09:11:02]line Контрольно-Кассовый Чек [09:11:02]line ПРОДАЖА [09:11:02]line Товар: 2000036240010 [09:11:02]line Кофе Латте (GABB TRADE) [09:11:02]line 1.000 * 115.00 [09:11:02]line = 115.00 [09:11:02]line НДС 12% НСП 1% [09:11:02]line > о реализуемом товаре [09:11:02]line ИТОГО: 115.00 [09:11:02]line НСП 1% : 1.02 [09:11:02]line НДС 12% : 12.21 [09:11:02]line Наличными: 0.00 [09:11:02]line Безнал.: 115.00 [09:11:02]line Место: АЗС № 176 "Партнер Нефть" [09:11:02]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:11:02]line СНО: Общий режим [09:11:02]line Чек 21 23.09.2024 09:11 [09:11:02]line Смена: 181 ФФД: 1.0 [09:11:02]line ЗНМ: 0300000010 [09:11:02]line РНМ: 0000000000152968 [09:11:02]line Версия ККМ: v1.0 [09:11:02]line Платежная система: O! деньги [09:11:02]line ФМ: 0000000000959456 [09:11:02]line ФД: 18745 [09:11:02]line ФПД: 69973014460772 [09:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091105&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18745&fm=69973014460772&tin=02508201610067®Number=0000000000152968&sum=11500 [09:11:02]line 0 [09:11:02]OFD Sender: Processing packet 18745 [packets to send 7, broken 6] [09:11:02]ProducePacketName [09:11:02]name=ofd_packets/00018745 [09:11:02]OFD Sender: To server: pG, [09:11:02]CommunicateWithHost lk.salyk.kg:30040 [09:11:02]ConnectInit lk.salyk.kg [09:11:02]written 0, free lines is 4095 [09:11:03]Connected sock=10 [09:11:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 87 82 1E 01 54 C6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 30 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 39 49 00 00 35 04 06 00 3F A3 DC AB B9 64 F4 C7 A7 C2 37 14 44 C2 [09:11:03]Write to MH i2c: 01 00 00 E7 15 FC [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 E7 15 00 00 00 00 00 F8 0C 07 [09:11:03]RasterBufferAndPrint [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]written 0, free lines is 3329 [09:11:03]MH_Cut [09:11:03]Write to MH i2c: D1 01 00 EE 15 01 D5 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 01 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 01 00 EE 15 00 D4 [09:11:03]Write to MH i2c: 01 00 00 EF 15 04 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9B E4 47 00 E3 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 35 39 34 35 36 10 04 04 00 39 49 00 00 F4 03 04 00 0E DA F0 66 B6 04 01 00 00 1F F3 16 7C DC 1B B7 76 [09:11:03]CommunicateWithHost err = 0 [09:11:03]CheckOFDResponse [09:11:03]1017 (14) - 77093643461234 [09:11:03]1041 (16) - 0000000000959456 [09:11:03]1040 (4) - 18745 [09:11:03]1012 (4) - 23.09.2024 03:01 [09:11:03]1206 (1) - 0 [09:11:03]OFD Sender: Remove packet 18745 [09:11:03]ProducePacketName [09:11:03]name=ofd_packets/00018745 [09:11:03]NVStorageDeleteData [09:11:03]OFD Sender: No OFD packet to send [09:11:04]*** Cut start [09:11:04]*** Partial cut [09:11:04]*** CUTSNS_PIN = 1 [09:11:04]*** CUTSNS_PIN = 0 [09:11:04]*** Brake cut motor [09:11:04]Read from MH i2c: 01 [09:11:04]MH_I2C_Read... [09:11:04]*** Stop cut motor [09:11:04]*** Cut end [09:11:04]Read from MH i2c: 01 07 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: 01 07 00 EF 15 00 00 00 00 00 FF 0F 19 [09:11:04]process_action close_receipt done [09:11:04]requested_data is exist [09:11:04]produce_requested_data [09:11:04]requested_item fm.sn is exist - process it [09:11:04]wFMCommunicate request_size=4 [09:11:04]MH_SAM_APDU [09:11:04]CAPDU: 80 11 00 00 [09:11:04]Write to MH i2c: E2 08 00 F0 15 80 11 00 00 00 00 00 00 7F [09:11:04]Write i2c OK [09:11:04]MH_I2C_Read... [09:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:04]Read from MH i2c: E2 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 17 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 17 00 F0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D8 [09:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:11:04]wFMCommunicate OK [09:11:04]requested_item fd.num is exist - process it [09:11:04]SAM_PROTO_GetFieldsCounters [09:11:04]wFMCommunicate request_size=4 [09:11:04]MH_SAM_APDU [09:11:04]CAPDU: 80 13 00 00 [09:11:04]Write to MH i2c: E2 08 00 F1 15 80 13 00 00 00 00 00 00 82 [09:11:04]Write i2c OK [09:11:04]MH_I2C_Read... [09:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:04]Read from MH i2c: E2 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 62 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 62 00 F1 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 39 49 00 00 0E 04 04 00 B5 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 25 [09:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 39 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:04]wFMCommunicate OK [09:11:04]SAM_PROTO_GetFieldsCounters done [09:11:04]requested_item shift.num is exist - process it [09:11:04]requested_item shift.opened is exist - process it [09:11:04]req_shift_opened [09:11:04]FM_GetShiftState [09:11:04]SAM_PROTO_GetShiftState [09:11:04]wFMCommunicate request_size=4 [09:11:04]MH_SAM_APDU [09:11:04]CAPDU: 80 13 01 00 [09:11:04]Write to MH i2c: E2 08 00 F2 15 80 13 01 00 00 00 00 00 84 [09:11:04]Write i2c OK [09:11:04]MH_I2C_Read... [09:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:04]Read from MH i2c: E2 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 0E 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: E2 0E 00 F2 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1C [09:11:04]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:11:04]wFMCommunicate OK [09:11:04]SAM_PROTO_GetShiftState done [09:11:04]FM_GetShiftState done [09:11:04]req_shift_opened done [09:11:04]requested_item shift.open_date is exist - process it [09:11:04]req_shift_open_date [09:11:04]req_shift_open_date done [09:11:04]produce_requested_data done [09:11:04]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18745,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:11:04]process_action_free close_receipt [09:11:04]json_value_free [09:11:04]json_value_free done [09:11:04]process_json_proto returns [09:11:04]Send response to host [09:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18745,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:11:04]free response buf [09:11:04]execute_script done [09:11:04]execute_script returns [09:11:04]free content buf [09:11:04]Sock 9.Close socket [09:11:04]Sock 9.Thread stoped [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:52]accept exits with 8 [09:12:52]New connection [09:12:52]New thread 3067272548 created [09:12:52]Thread 3067129188 joined [09:12:52]Waiting for new connection... [09:12:52] Sock 8.Parse request [09:12:52]Sock 8.Check first char [09:12:52]Sock 8.First char is OK [09:12:52]request: POST /json_proto HTTP/1.0 [09:12:52]Method: POST [09:12:52]URL: /json_proto [09:12:52]Method is POST - this is cgi request [09:12:52]url: /json_proto [09:12:52]query_string will be loaded in cgi processing [09:12:52]execute_cgi json_proto POST (null) [09:12:52]execute_cgi path=json_proto method=POST [09:12:52]POST find Content-Length [09:12:52]Host: 172.17.62.196:8080 [09:12:52]Content-Length: 1356 [09:12:52]Content-Type: application/json [09:12:52] [09:12:52]POST finish read [09:12:52]Found Content-Length = 1356 [09:12:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16669", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:52]execute_script... [09:12:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16669", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:52]POST & json_proto [09:12:52]process_json_proto [09:12:52]json parsed OK: [09:12:52]protocol is kg_v1.0 [09:12:52]action value=close_receipt [09:12:52]process_action close_receipt [09:12:52]cmd_close_receipt [09:12:52]MH_GetDate [09:12:52]Write to MH i2c: F0 00 00 F3 15 F7 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: F0 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: F0 09 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: F0 09 00 F3 15 00 19 31 F1 66 CE CC 0E 66 AF [09:12:52]GetLastDocTimeStamp 1727082665 [09:12:52]current date 1727082777 [09:12:52]FM_GetShiftState [09:12:52]SAM_PROTO_GetShiftState [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 13 01 00 [09:12:52]Write to MH i2c: E2 08 00 F4 15 80 13 01 00 00 00 00 00 86 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 F4 15 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1E [09:12:52]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:12:52]wFMCommunicate OK [09:12:52]SAM_PROTO_GetShiftState done [09:12:52]FM_GetShiftState done [09:12:52]opened in 1727050372 [09:12:52]opened+sec_in_day 1727136772 [09:12:52]quantity*price = 4000 [09:12:52]sum+1 = 4001 [09:12:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 435.00 НСП 1% : 3.85 НДС 12% : 46.19 Наличными: 435.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 22 23.09.2024 09:12 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18746 ФПД: 215504519193895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091257&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18746&fm=215504519193895&tin=02508201610067®Number=0000000000152968&sum=43500 0 [09:12:53]StoreToDocumentArchive [09:12:53]shift 181 fd 18746 [09:12:53]save to /storage/0181/doc_00018746 [09:12:53]save last doc name /storage/0181/doc_00018746 to /storage/kkm_last_doc_name [09:12:53]save OK [09:12:53]Clear old archive folders... [09:12:53]ProcessDocumentItem done err = 0, tmpTLVsize=585 [09:12:53]tlvbuf is 0024C720 [09:12:53]SAM_PROTO_ClearQueue [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 09 00 00 [09:12:53]Write to MH i2c: E2 08 00 01 16 80 09 00 00 00 00 00 00 89 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 03 00 01 16 00 90 00 8B [09:12:53]RAPDU: 90 00 [09:12:53]wFMCommunicate OK [09:12:53]SAM_PROTO_ClearQueue done [09:12:53]KKMCreateOFDPacket [09:12:53]OFDProtocolAddRootSTLVToBuf [09:12:53]FM_MakeSignedData [09:12:53]FM_MakeSignedData [09:12:53]SAM_PROTO_SignData [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 0D 01 02 [09:12:53]Write to MH i2c: E2 08 00 02 16 80 0D 01 02 00 00 00 00 91 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 02 16 00 90 00 8C [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]wFMCommunicate request_size=255 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 0D 02 02 FA 03 00 49 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B [09:12:54]Write to MH i2c: E2 02 01 03 16 80 0D 02 02 FA 00 03 00 49 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B 00 00 53 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]OFD Sender: No OFD packet to send [09:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 03 16 00 90 00 8D [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]wFMCommunicate request_size=255 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 0D 02 02 FA D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 [09:12:54]Write to MH i2c: E2 02 01 04 16 80 0D 02 02 FA 00 D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 00 00 52 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]wFMCommunicate request_size=94 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 0D 02 02 59 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 19 31 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3A 49 00 00 35 04 06 00 C4 00 0E 50 65 27 [09:12:54]Write to MH i2c: E2 61 00 05 16 80 0D 02 02 59 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 19 31 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3A 49 00 00 35 04 06 00 C4 00 0E 50 65 27 00 00 B1 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]wFMCommunicate request_size=4 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 0D 03 02 [09:12:54]Write to MH i2c: E2 08 00 06 16 80 0D 03 02 00 00 00 00 97 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 0B 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 0B 00 06 16 00 40 3D AB 04 24 C2 D9 68 90 00 EB [09:12:54]RAPDU: 40 3D AB 04 24 C2 D9 68 90 00 [09:12:54]wFMCommunicate OK [09:12:54]SAM_PROTO_SignData done [09:12:54]FM_MakeSignedData done [09:12:54]CreateOFDProtocolMessage [09:12:54]wFMCommunicate request_size=4 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 11 00 00 [09:12:54]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 17 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F0 [09:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:12:54]wFMCommunicate OK [09:12:54]CreateOFDProtocolMessage done [09:12:54]OFDSenderStorePacket 18746 [09:12:54]StoreOFDPacket docnum=18746 [09:12:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 5D 02 00 00 7E 1E 55 02 49 80 5A 03 01 00 03 00 49 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 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 19 31 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3A 49 00 00 35 04 06 00 C4 00 0E 50 65 27 40 3D AB 04 24 C2 D9 68 [09:12:54]CheckFolder [09:12:54]dirname=/storage/ofd_packets [09:12:54]CheckFolder done [09:12:54]ProducePacketName [09:12:54]name=ofd_packets/00018746 [09:12:54]NVStorageSaveData ofd_packets/00018746 [09:12:54]File name is /storage/ofd_packets/00018746 [09:12:54]Write 635 bytes [09:12:54]NVStorageSaveData done [09:12:54]OFDSenderStorePacket done [09:12:54]KKMCreateOFDPacket done [09:12:54]NVStorageSaveData kkm_last_timestamp [09:12:54]File name is /storage/kkm_last_timestamp [09:12:54]Write 4 bytes [09:12:54]NVStorageSaveData done [09:12:54]ExternCall_PrintAddStr [09:12:54]wPrintStart [09:12:54]Write to MH i2c: 01 00 00 08 16 1E [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 07 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 07 00 08 16 00 00 00 00 00 FF 0F 33 [09:12:54]RasterBufferAndPrint [09:12:54]line Счет N : (3)16669 [09:12:54]line ИНН: 02508201610067 [09:12:54]line Контрольно-Кассовый Чек [09:12:54]line ПРОДАЖА [09:12:54]line Товар: 4700000160211 [09:12:54]line Вода Легенда 0,5л [09:12:54]line 1.000 * 40.00 [09:12:54]line = 40.00 [09:12:54]line НДС 12% НСП 1% [09:12:55]line > о реализуемом товаре [09:12:55]line Товар: 4640030091645 [09:12:55]line Сигареты ESSE Exchange M [09:12:55]line 1.000 * 150.00 [09:12:55]line = 150.00 [09:12:55]line НДС 12% НСП 1% [09:12:55]line > о реализуемом товаре [09:12:55]line Товар: 2000036240010 [09:12:55]line Кофе Латте (GABB TRADE) [09:12:55]line 1.000 * 115.00 [09:12:55]line = 115.00 [09:12:55]line НДС 12% НСП 1% [09:12:55]line > о реализуемом товаре [09:12:55]line Товар: 2000036230011 [09:12:55]line Кофе Латте XL(GABB TRADE) [09:12:55]line 1.000 * 130.00 [09:12:55]line = 130.00 [09:12:55]line НДС 12% НСП 1% [09:12:55]line > о реализуемом товаре [09:12:55]line ИТОГО: 435.00 [09:12:55]line НСП 1% : 3.85 [09:12:55]line НДС 12% : 46.19 [09:12:55]line Наличными: 435.00 [09:12:55]line Безнал.: 0.00 [09:12:55]line Место: АЗС № 176 "Партнер Нефть" [09:12:55]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:12:55]line СНО: Общий режим [09:12:55]line Чек 22 23.09.2024 09:12 [09:12:55]line Смена: 181 ФФД: 1.0 [09:12:55]line ЗНМ: 0300000010 [09:12:55]line РНМ: 0000000000152968 [09:12:55]line Версия ККМ: v1.0 [09:12:55]line ФМ: 0000000000959456 [09:12:55]line ФД: 18746 [09:12:55]line ФПД: 215504519193895 [09:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T091257&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18746&fm=215504519193895&tin=02508201610067®Number=0000000000152968&sum=43500 [09:12:55]line 0 [09:12:55]OFD Sender: Processing packet 18746 [packets to send 7, broken 6] [09:12:55]ProducePacketName [09:12:55]name=ofd_packets/00018746 [09:12:55]OFD Sender: To server: pG, [09:12:55]CommunicateWithHost lk.salyk.kg:30040 [09:12:55]ConnectInit lk.salyk.kg [09:12:55]written 0, free lines is 4095 [09:12:55]Connected sock=10 [09:12:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 5D 02 00 00 7E 1E 55 02 49 80 5A 03 01 00 03 00 49 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 12 00 00 00 00 07 04 06 00 EC A9 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 19 31 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3A 49 00 00 35 04 06 00 C4 00 0E 50 65 27 40 3D AB 04 24 C2 D9 68 [09:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A6 F2 47 00 A0 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 35 39 34 35 36 10 04 04 00 3A 49 00 00 F4 03 04 00 7E DA F0 66 B6 04 01 00 00 EF 02 10 D4 43 07 C5 F2 [09:12:55]CommunicateWithHost err = 0 [09:12:55]CheckOFDResponse [09:12:55]1017 (14) - 77093643461234 [09:12:55]1041 (16) - 0000000000959456 [09:12:55]1040 (4) - 18746 [09:12:55]1012 (4) - 23.09.2024 03:03 [09:12:55]1206 (1) - 0 [09:12:55]OFD Sender: Remove packet 18746 [09:12:55]ProducePacketName [09:12:55]name=ofd_packets/00018746 [09:12:55]NVStorageDeleteData [09:12:55]Write to MH i2c: 01 00 00 42 16 58 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: 01 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: 01 07 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: 01 07 00 42 16 00 00 00 00 00 5B 0C C6 [09:12:55]RasterBufferAndPrint [09:12:55]line [09:12:55]line [09:12:55]line [09:12:55]line [09:12:55]line [09:12:55]written 0, free lines is 3172 [09:12:55]MH_Cut [09:12:55]Write to MH i2c: D1 01 00 49 16 01 31 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: D1 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: D1 01 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: D1 01 00 49 16 00 30 [09:12:55]Write to MH i2c: 01 00 00 4A 16 60 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:56]OFD Sender: No OFD packet to send [09:12:56]*** Cut start [09:12:56]*** Partial cut [09:12:56]*** CUTSNS_PIN = 1 [09:12:56]*** CUTSNS_PIN = 0 [09:12:56]*** Brake cut motor [09:12:57]Read from MH i2c: 01 [09:12:57]MH_I2C_Read... [09:12:57]*** Stop cut motor [09:12:57]*** Cut end [09:12:57]Read from MH i2c: 01 07 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [09:12:57]process_action close_receipt done [09:12:57]requested_data is exist [09:12:57]produce_requested_data [09:12:57]requested_item fm.sn is exist - process it [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 11 00 00 [09:12:57]Write to MH i2c: E2 08 00 4B 16 80 11 00 00 00 00 00 00 DB [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 17 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 17 00 4B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 34 [09:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:12:57]wFMCommunicate OK [09:12:57]requested_item fd.num is exist - process it [09:12:57]SAM_PROTO_GetFieldsCounters [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 13 00 00 [09:12:57]Write to MH i2c: E2 08 00 4C 16 80 13 00 00 00 00 00 00 DE [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 62 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 62 00 4C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3A 49 00 00 0E 04 04 00 B5 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 85 [09:12:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3A 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:57]wFMCommunicate OK [09:12:57]SAM_PROTO_GetFieldsCounters done [09:12:57]requested_item shift.num is exist - process it [09:12:57]requested_item shift.opened is exist - process it [09:12:57]req_shift_opened [09:12:57]FM_GetShiftState [09:12:57]SAM_PROTO_GetShiftState [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 13 01 00 [09:12:57]Write to MH i2c: E2 08 00 4D 16 80 13 01 00 00 00 00 00 E0 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0E 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0E 00 4D 16 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 78 [09:12:57]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:12:57]wFMCommunicate OK [09:12:57]SAM_PROTO_GetShiftState done [09:12:57]FM_GetShiftState done [09:12:57]req_shift_opened done [09:12:57]requested_item shift.open_date is exist - process it [09:12:57]req_shift_open_date [09:12:57]req_shift_open_date done [09:12:57]produce_requested_data done [09:12:57]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18746,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:12:57]process_action_free close_receipt [09:12:57]json_value_free [09:12:57]json_value_free done [09:12:57]process_json_proto returns [09:12:57]Send response to host [09:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18746,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:12:57]free response buf [09:12:57]execute_script done [09:12:57]execute_script returns [09:12:57]free content buf [09:12:57]Sock 8.Close socket [09:12:57]Sock 8.Thread stoped [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:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:08]accept exits with 9 [09:25:08]New connection [09:25:08]New thread 3067129188 created [09:25:08]Thread 3067272548 joined [09:25:08]Waiting for new connection... [09:25:08] Sock 9.Parse request [09:25:08]Sock 9.Check first char [09:25:08]Sock 9.First char is OK [09:25:08]request: POST /json_proto HTTP/1.0 [09:25:08]Method: POST [09:25:08]URL: /json_proto [09:25:08]Method is POST - this is cgi request [09:25:08]url: /json_proto [09:25:08]query_string will be loaded in cgi processing [09:25:08]execute_cgi json_proto POST (null) [09:25:08]execute_cgi path=json_proto method=POST [09:25:08]POST find Content-Length [09:25:08]Host: 172.17.62.196:8080 [09:25:08]Content-Length: 814 [09:25:08]Content-Type: application/json [09:25:08] [09:25:08]POST finish read [09:25:08]Found Content-Length = 814 [09:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16670", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:08]execute_script... [09:25:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16670", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:08]POST & json_proto [09:25:08]process_json_proto [09:25:08]json parsed OK: [09:25:08]protocol is kg_v1.0 [09:25:08]action value=close_receipt [09:25:08]process_action close_receipt [09:25:08]cmd_close_receipt [09:25:08]MH_GetDate [09:25:08]Write to MH i2c: F0 00 00 4E 16 53 [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: F0 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: F0 09 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: F0 09 00 4E 16 00 F9 33 F1 66 CE CC 0E 66 ED [09:25:08]GetLastDocTimeStamp 1727082777 [09:25:08]current date 1727083513 [09:25:08]FM_GetShiftState [09:25:08]SAM_PROTO_GetShiftState [09:25:08]wFMCommunicate request_size=4 [09:25:08]MH_SAM_APDU [09:25:08]CAPDU: 80 13 01 00 [09:25:08]Write to MH i2c: E2 08 00 4F 16 80 13 01 00 00 00 00 00 E2 [09:25:08]Write i2c OK [09:25:08]MH_I2C_Read... [09:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:08]Read from MH i2c: E2 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 0E 00 [09:25:08]MH_I2C_Read... [09:25:08]Read from MH i2c: E2 0E 00 4F 16 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 7A [09:25:08]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:25:08]wFMCommunicate OK [09:25:08]SAM_PROTO_GetShiftState done [09:25:08]FM_GetShiftState done [09:25:08]opened in 1727050372 [09:25:08]opened+sec_in_day 1727136772 [09:25:08]quantity*price = 7700 [09:25:08]sum+1 = 7701 [09:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 23 23.09.2024 09:25 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18747 ФПД: 43782150231852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T092513&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18747&fm=43782150231852&tin=02508201610067®Number=0000000000152968&sum=7700 0 [09:25:09]StoreToDocumentArchive [09:25:09]shift 181 fd 18747 [09:25:09]save to /storage/0181/doc_00018747 [09:25:09]save last doc name /storage/0181/doc_00018747 to /storage/kkm_last_doc_name [09:25:09]save OK [09:25:09]Clear old archive folders... [09:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:25:09]tlvbuf is 002150C0 [09:25:09]SAM_PROTO_ClearQueue [09:25:09]wFMCommunicate request_size=4 [09:25:09]MH_SAM_APDU [09:25:09]CAPDU: 80 09 00 00 [09:25:09]Write to MH i2c: E2 08 00 5C 16 80 09 00 00 00 00 00 00 E4 [09:25:09]Write i2c OK [09:25:09]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 5C 16 00 90 00 E6 [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]SAM_PROTO_ClearQueue done [09:25:10]KKMCreateOFDPacket [09:25:10]OFDProtocolAddRootSTLVToBuf [09:25:10]FM_MakeSignedData [09:25:10]FM_MakeSignedData [09:25:10]SAM_PROTO_SignData [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 01 02 [09:25:10]Write to MH i2c: E2 08 00 5D 16 80 0D 01 02 00 00 00 00 EC [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 5D 16 00 90 00 E7 [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]wFMCommunicate request_size=255 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 33 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:25:10]Write to MH i2c: E2 02 01 5E 16 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 33 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D0 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 5E 16 00 90 00 E8 [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]wFMCommunicate request_size=52 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3B 49 00 00 35 04 06 00 27 D1 D3 83 17 2C [09:25:10]Write to MH i2c: E2 37 00 5F 16 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3B 49 00 00 35 04 06 00 27 D1 D3 83 17 2C 00 00 D3 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [09:25:10]RAPDU: 90 00 [09:25:10]wFMCommunicate OK [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 0D 03 02 [09:25:10]Write to MH i2c: E2 08 00 60 16 80 0D 03 02 00 00 00 00 F1 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 0B 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 0B 00 60 16 00 72 FC C0 76 76 37 00 25 90 00 68 [09:25:10]RAPDU: 72 FC C0 76 76 37 00 25 90 00 [09:25:10]wFMCommunicate OK [09:25:10]SAM_PROTO_SignData done [09:25:10]FM_MakeSignedData done [09:25:10]CreateOFDProtocolMessage [09:25:10]wFMCommunicate request_size=4 [09:25:10]MH_SAM_APDU [09:25:10]CAPDU: 80 11 00 00 [09:25:10]Write to MH i2c: E2 08 00 61 16 80 11 00 00 00 00 00 00 F1 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:10]Read from MH i2c: E2 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 17 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: E2 17 00 61 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4A [09:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:25:10]wFMCommunicate OK [09:25:10]CreateOFDProtocolMessage done [09:25:10]OFDSenderStorePacket 18747 [09:25:10]StoreOFDPacket docnum=18747 [09:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 41 40 31 01 85 06 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 33 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3B 49 00 00 35 04 06 00 27 D1 D3 83 17 2C 72 FC C0 76 76 37 00 25 [09:25:10]CheckFolder [09:25:10]dirname=/storage/ofd_packets [09:25:10]CheckFolder done [09:25:10]ProducePacketName [09:25:10]name=ofd_packets/00018747 [09:25:10]NVStorageSaveData ofd_packets/00018747 [09:25:10]File name is /storage/ofd_packets/00018747 [09:25:10]Write 343 bytes [09:25:10]NVStorageSaveData done [09:25:10]OFDSenderStorePacket done [09:25:10]KKMCreateOFDPacket done [09:25:10]NVStorageSaveData kkm_last_timestamp [09:25:10]File name is /storage/kkm_last_timestamp [09:25:10]Write 4 bytes [09:25:10]NVStorageSaveData done [09:25:10]ExternCall_PrintAddStr [09:25:10]wPrintStart [09:25:10]Write to MH i2c: 01 00 00 62 16 78 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 FF 0F 8D [09:25:10]RasterBufferAndPrint [09:25:10]line Счет N : (3)16670 [09:25:10]line ИНН: 02508201610067 [09:25:10]line Контрольно-Кассовый Чек [09:25:10]line ПРОДАЖА [09:25:10]line Товар: 4700000480050 [09:25:10]line Напиток Nitro Energy эн green ж/б 0,45л [09:25:10]line 1.000 * 77.00 [09:25:10]line = 77.00 [09:25:10]line НДС 12% НСП 1% [09:25:10]line > о реализуемом товаре [09:25:10]line ИТОГО: 77.00 [09:25:10]line НСП 1% : 0.68 [09:25:10]line НДС 12% : 8.18 [09:25:10]line Наличными: 0.00 [09:25:10]line Безнал.: 77.00 [09:25:10]line Место: АЗС № 176 "Партнер Нефть" [09:25:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:25:10]line СНО: Общий режим [09:25:10]line Чек 23 23.09.2024 09:25 [09:25:10]line Смена: 181 ФФД: 1.0 [09:25:10]line ЗНМ: 0300000010 [09:25:10]line РНМ: 0000000000152968 [09:25:10]line Версия ККМ: v1.0 [09:25:10]line Платежная система: O! деньги [09:25:10]line ФМ: 0000000000959456 [09:25:10]line ФД: 18747 [09:25:10]line ФПД: 43782150231852 [09:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T092513&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18747&fm=43782150231852&tin=02508201610067®Number=0000000000152968&sum=7700 [09:25:10]line 0 [09:25:10]OFD Sender: Processing packet 18747 [packets to send 7, broken 6] [09:25:10]ProducePacketName [09:25:10]name=ofd_packets/00018747 [09:25:10]OFD Sender: To server: pG, [09:25:10]CommunicateWithHost lk.salyk.kg:30040 [09:25:10]ConnectInit lk.salyk.kg [09:25:10]written 0, free lines is 4095 [09:25:11]Connected sock=10 [09:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 41 40 31 01 85 06 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 33 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3B 49 00 00 35 04 06 00 27 D1 D3 83 17 2C 72 FC C0 76 76 37 00 25 [09:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 7B D3 47 00 A0 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 35 39 34 35 36 10 04 04 00 3B 49 00 00 F4 03 04 00 5E DD F0 66 B6 04 01 00 00 73 C0 99 E4 2A 72 C9 95 [09:25:11]CommunicateWithHost err = 0 [09:25:11]CheckOFDResponse [09:25:11]1017 (14) - 77093643461234 [09:25:11]1041 (16) - 0000000000959456 [09:25:11]1040 (4) - 18747 [09:25:11]1012 (4) - 23.09.2024 03:15 [09:25:11]1206 (1) - 0 [09:25:11]OFD Sender: Remove packet 18747 [09:25:11]ProducePacketName [09:25:11]name=ofd_packets/00018747 [09:25:11]NVStorageDeleteData [09:25:11]Write to MH i2c: 01 00 00 8D 16 A3 [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 07 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 07 00 8D 16 00 00 00 00 00 F5 0C AB [09:25:11]RasterBufferAndPrint [09:25:11]line [09:25:11]line [09:25:11]line [09:25:11]line [09:25:11]line [09:25:11]written 0, free lines is 3323 [09:25:11]MH_Cut [09:25:11]Write to MH i2c: D1 01 00 94 16 01 7C [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: D1 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: D1 01 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: D1 01 00 94 16 00 7B [09:25:11]Write to MH i2c: 01 00 00 95 16 AB [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]OFD Sender: No OFD packet to send [09:25:12]*** Cut start [09:25:12]*** Partial cut [09:25:12]*** CUTSNS_PIN = 1 [09:25:12]*** CUTSNS_PIN = 0 [09:25:12]*** Brake cut motor [09:25:12]Read from MH i2c: 01 [09:25:12]MH_I2C_Read... [09:25:12]*** Stop cut motor [09:25:12]*** Cut end [09:25:12]Read from MH i2c: 01 07 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: 01 07 00 95 16 00 00 00 00 00 FF 0F C0 [09:25:12]process_action close_receipt done [09:25:12]requested_data is exist [09:25:12]produce_requested_data [09:25:12]requested_item fm.sn is exist - process it [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 11 00 00 [09:25:12]Write to MH i2c: E2 08 00 96 16 80 11 00 00 00 00 00 00 26 [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 17 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 17 00 96 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7F [09:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:25:12]wFMCommunicate OK [09:25:12]requested_item fd.num is exist - process it [09:25:12]SAM_PROTO_GetFieldsCounters [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 13 00 00 [09:25:12]Write to MH i2c: E2 08 00 97 16 80 13 00 00 00 00 00 00 29 [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 62 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 62 00 97 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3B 49 00 00 0E 04 04 00 B5 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 D4 [09:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3B 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:12]wFMCommunicate OK [09:25:12]SAM_PROTO_GetFieldsCounters done [09:25:12]requested_item shift.num is exist - process it [09:25:12]requested_item shift.opened is exist - process it [09:25:12]req_shift_opened [09:25:12]FM_GetShiftState [09:25:12]SAM_PROTO_GetShiftState [09:25:12]wFMCommunicate request_size=4 [09:25:12]MH_SAM_APDU [09:25:12]CAPDU: 80 13 01 00 [09:25:12]Write to MH i2c: E2 08 00 98 16 80 13 01 00 00 00 00 00 2B [09:25:12]Write i2c OK [09:25:12]MH_I2C_Read... [09:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:12]Read from MH i2c: E2 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 0E 00 [09:25:12]MH_I2C_Read... [09:25:12]Read from MH i2c: E2 0E 00 98 16 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C3 [09:25:12]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:25:12]wFMCommunicate OK [09:25:12]SAM_PROTO_GetShiftState done [09:25:12]FM_GetShiftState done [09:25:12]req_shift_opened done [09:25:12]requested_item shift.open_date is exist - process it [09:25:12]req_shift_open_date [09:25:12]req_shift_open_date done [09:25:12]produce_requested_data done [09:25:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18747,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:25:12]process_action_free close_receipt [09:25:12]json_value_free [09:25:12]json_value_free done [09:25:12]process_json_proto returns [09:25:12]Send response to host [09:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18747,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:25:12]free response buf [09:25:12]execute_script done [09:25:12]execute_script returns [09:25:12]free content buf [09:25:12]Sock 9.Close socket [09:25:12]Sock 9.Thread stoped [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]accept exits with 8 [09:39:12]New connection [09:39:12]New thread 3067272548 created [09:39:12]Thread 3067129188 joined [09:39:12]Waiting for new connection... [09:39:12] Sock 8.Parse request [09:39:12]Sock 8.Check first char [09:39:12]Sock 8.First char is OK [09:39:12]request: POST /json_proto HTTP/1.0 [09:39:12]Method: POST [09:39:12]URL: /json_proto [09:39:12]Method is POST - this is cgi request [09:39:12]url: /json_proto [09:39:12]query_string will be loaded in cgi processing [09:39:12]execute_cgi json_proto POST (null) [09:39:12]execute_cgi path=json_proto method=POST [09:39:12]POST find Content-Length [09:39:12]Host: 172.17.62.196:8080 [09:39:12]Content-Length: 677 [09:39:12]Content-Type: application/json [09:39:12] [09:39:12]POST finish read [09:39:12]Found Content-Length = 677 [09:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116101", "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" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:12]execute_script... [09:39: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)116101", "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" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:12]POST & json_proto [09:39:12]process_json_proto [09:39:12]json parsed OK: [09:39:12]protocol is kg_v1.0 [09:39:12]action value=close_receipt [09:39:12]process_action close_receipt [09:39:12]cmd_close_receipt [09:39:12]MH_GetDate [09:39:12]Write to MH i2c: F0 00 00 99 16 9E [09:39:12]Write i2c OK [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: F0 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: F0 09 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: F0 09 00 99 16 00 45 37 F1 66 CE CC 0E 66 88 [09:39:12]GetLastDocTimeStamp 1727083513 [09:39:12]current date 1727084357 [09:39:12]FM_GetShiftState [09:39:12]SAM_PROTO_GetShiftState [09:39:12]wFMCommunicate request_size=4 [09:39:12]MH_SAM_APDU [09:39:12]CAPDU: 80 13 01 00 [09:39:12]Write to MH i2c: E2 08 00 9A 16 80 13 01 00 00 00 00 00 2D [09:39:12]Write i2c OK [09:39:12]MH_I2C_Read... [09:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:12]Read from MH i2c: E2 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 0E 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 0E 00 9A 16 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C5 [09:39:12]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:39:12]wFMCommunicate OK [09:39:12]SAM_PROTO_GetShiftState done [09:39:12]FM_GetShiftState done [09:39:12]opened in 1727050372 [09:39:12]opened+sec_in_day 1727136772 [09:39:12]quantity*price = 35052 [09:39:12]sum+1 = 35054 [09:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 24 23.09.2024 09:39 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18748 ФПД: 179382988679574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093917&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18748&fm=179382988679574&tin=02508201610067®Number=0000000000152968&sum=35000 [09:39:13]StoreToDocumentArchive [09:39:13]shift 181 fd 18748 [09:39:13]save to /storage/0181/doc_00018748 [09:39:13]save last doc name /storage/0181/doc_00018748 to /storage/kkm_last_doc_name [09:39:13]save OK [09:39:13]Clear old archive folders... [09:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:13]tlvbuf is B6FA3890 [09:39:13]SAM_PROTO_ClearQueue [09:39:13]wFMCommunicate request_size=4 [09:39:13]MH_SAM_APDU [09:39:13]CAPDU: 80 09 00 00 [09:39:13]Write to MH i2c: E2 08 00 A7 16 80 09 00 00 00 00 00 00 2F [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [09:39:13]RAPDU: 90 00 [09:39:13]wFMCommunicate OK [09:39:13]SAM_PROTO_ClearQueue done [09:39:13]KKMCreateOFDPacket [09:39:13]OFDProtocolAddRootSTLVToBuf [09:39:13]FM_MakeSignedData [09:39:13]FM_MakeSignedData [09:39:13]SAM_PROTO_SignData [09:39:13]wFMCommunicate request_size=4 [09:39:13]MH_SAM_APDU [09:39:13]CAPDU: 80 0D 01 02 [09:39:13]Write to MH i2c: E2 08 00 A8 16 80 0D 01 02 00 00 00 00 37 [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [09:39:13]RAPDU: 90 00 [09:39:13]wFMCommunicate OK [09:39:13]wFMCommunicate request_size=255 [09:39:13]MH_SAM_APDU [09:39: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 18 00 00 00 F4 03 04 00 45 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3C 49 00 00 35 04 06 00 A3 [09:39:13]Write to MH i2c: E2 02 01 A9 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 18 00 00 00 F4 03 04 00 45 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3C 49 00 00 35 04 06 00 A3 00 00 B5 [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [09:39:13]RAPDU: 90 00 [09:39:13]wFMCommunicate OK [09:39:13]wFMCommunicate request_size=10 [09:39:13]MH_SAM_APDU [09:39:13]CAPDU: 80 0D 02 02 05 25 DB 51 A9 96 [09:39:13]Write to MH i2c: E2 0D 00 AA 16 80 0D 02 02 05 00 25 DB 51 A9 96 00 00 D4 [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 AA 16 00 90 00 34 [09:39:13]RAPDU: 90 00 [09:39:13]wFMCommunicate OK [09:39:13]wFMCommunicate request_size=4 [09:39:13]MH_SAM_APDU [09:39:13]CAPDU: 80 0D 03 02 [09:39:13]Write to MH i2c: E2 08 00 AB 16 80 0D 03 02 00 00 00 00 3C [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 0B 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 0B 00 AB 16 00 20 C1 AA 6D 1F F9 C8 D1 90 00 E6 [09:39:13]RAPDU: 20 C1 AA 6D 1F F9 C8 D1 90 00 [09:39:13]wFMCommunicate OK [09:39:13]SAM_PROTO_SignData done [09:39:13]FM_MakeSignedData done [09:39:13]CreateOFDProtocolMessage [09:39:13]wFMCommunicate request_size=4 [09:39:13]MH_SAM_APDU [09:39:13]CAPDU: 80 11 00 00 [09:39:13]Write to MH i2c: E2 08 00 AC 16 80 11 00 00 00 00 00 00 3C [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 17 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 17 00 AC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 95 [09:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:39:13]wFMCommunicate OK [09:39:13]CreateOFDProtocolMessage done [09:39:13]OFDSenderStorePacket 18748 [09:39:13]StoreOFDPacket docnum=18748 [09:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 94 E1 07 01 82 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 18 00 00 00 F4 03 04 00 45 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3C 49 00 00 35 04 06 00 A3 25 DB 51 A9 96 20 C1 AA 6D 1F F9 C8 D1 [09:39:13]CheckFolder [09:39:13]dirname=/storage/ofd_packets [09:39:13]CheckFolder done [09:39:13]ProducePacketName [09:39:13]name=ofd_packets/00018748 [09:39:13]NVStorageSaveData ofd_packets/00018748 [09:39:13]File name is /storage/ofd_packets/00018748 [09:39:13]Write 301 bytes [09:39:13]NVStorageSaveData done [09:39:13]OFDSenderStorePacket done [09:39:13]KKMCreateOFDPacket done [09:39:13]NVStorageSaveData kkm_last_timestamp [09:39:13]File name is /storage/kkm_last_timestamp [09:39:13]Write 4 bytes [09:39:13]NVStorageSaveData done [09:39:13]ExternCall_PrintAddStr [09:39:13]wPrintStart [09:39:13]Write to MH i2c: 01 00 00 AD 16 C3 [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: 01 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: 01 07 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: 01 07 00 AD 16 00 00 00 00 00 FF 0F D8 [09:39:13]RasterBufferAndPrint [09:39:13]line Счет N : (1)116101 [09:39:13]line ИНН: 02508201610067 [09:39:13]line Контрольно-Кассовый Чек [09:39:13]line ПРОДАЖА [09:39:13]line ТРК (МРК, ГНК) : 32 [09:39:13]line Товар: 2710124130 [09:39:13]line Аи-92-К-5 [09:39:13]line 5.170 * 67.80 [09:39:13]line = 350.53 [09:39:13]line НДС 12% НСП 1% [09:39:13]line > о реализуемом товаре [09:39:13]line ОКРУГЛЕНИЕ: -0.53 [09:39:13]line ИТОГО: 350.00 [09:39:13]line Внесено: 350.00 [09:39:13]line СДАЧА: 0.00 [09:39:13]line НСП 1% : 3.10 [09:39:13]line НДС 12% : 37.22 [09:39:13]line Наличными: 350.00 [09:39:13]line Безнал.: 0.00 [09:39:13]line Место: АЗС № 176 "Партнер Нефть" [09:39:13]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:39:13]line СНО: Общий режим [09:39:13]line Чек 24 23.09.2024 09:39 [09:39:13]line Смена: 181 ФФД: 1.0 [09:39:14]line ЗНМ: 0300000010 [09:39:14]line РНМ: 0000000000152968 [09:39:14]line Версия ККМ: v1.0 [09:39:14]line ФМ: 0000000000959456 [09:39:14]line ФД: 18748 [09:39:14]line ФПД: 179382988679574 [09:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093917&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18748&fm=179382988679574&tin=02508201610067®Number=0000000000152968&sum=35000 [09:39:14]OFD Sender: Processing packet 18748 [packets to send 7, broken 6] [09:39:14]ProducePacketName [09:39:14]name=ofd_packets/00018748 [09:39:14]OFD Sender: To server: pG, [09:39:14]CommunicateWithHost lk.salyk.kg:30040 [09:39:14]ConnectInit lk.salyk.kg [09:39:14]written 0, free lines is 4095 [09:39:14]Connected sock=10 [09:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 94 E1 07 01 82 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 18 00 00 00 F4 03 04 00 45 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3C 49 00 00 35 04 06 00 A3 25 DB 51 A9 96 20 C1 AA 6D 1F F9 C8 D1 [09:39:14]Write to MH i2c: 01 00 00 D8 16 EE [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: 01 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: 01 07 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: 01 07 00 D8 16 00 00 00 00 00 F4 0C F5 [09:39:14]RasterBufferAndPrint [09:39:14]line [09:39:14]line [09:39:14]line [09:39:14]line [09:39:14]line [09:39:14]written 0, free lines is 3322 [09:39:14]MH_Cut [09:39:14]Write to MH i2c: D1 01 00 DF 16 01 C7 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: D1 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: D1 01 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: D1 01 00 DF 16 00 C6 [09:39:14]Write to MH i2c: 01 00 00 E0 16 F6 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 05 45 47 00 16 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 35 39 34 35 36 10 04 04 00 3C 49 00 00 F4 03 04 00 A9 E0 F0 66 B6 04 01 00 00 65 EE B1 1E E2 F2 72 75 [09:39:14]CommunicateWithHost err = 0 [09:39:14]CheckOFDResponse [09:39:14]1017 (14) - 77093643461234 [09:39:14]1041 (16) - 0000000000959456 [09:39:14]1040 (4) - 18748 [09:39:14]1012 (4) - 23.09.2024 03:29 [09:39:14]1206 (1) - 0 [09:39:14]OFD Sender: Remove packet 18748 [09:39:14]ProducePacketName [09:39:14]name=ofd_packets/00018748 [09:39:14]NVStorageDeleteData [09:39:15]OFD Sender: No OFD packet to send [09:39:15]*** Cut start [09:39:15]*** Partial cut [09:39:15]*** CUTSNS_PIN = 1 [09:39:15]*** CUTSNS_PIN = 0 [09:39:15]*** Brake cut motor [09:39:15]Read from MH i2c: 01 [09:39:15]MH_I2C_Read... [09:39:15]*** Stop cut motor [09:39:15]*** Cut end [09:39:15]Read from MH i2c: 01 07 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: 01 07 00 E0 16 00 00 00 00 00 FF 0F 0B [09:39:15]process_action close_receipt done [09:39:15]requested_data is exist [09:39:15]produce_requested_data [09:39:15]requested_item fm.sn is exist - process it [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 11 00 00 [09:39:15]Write to MH i2c: E2 08 00 E1 16 80 11 00 00 00 00 00 00 71 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 17 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 17 00 E1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CA [09:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:39:15]wFMCommunicate OK [09:39:15]requested_item fd.num is exist - process it [09:39:15]SAM_PROTO_GetFieldsCounters [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 13 00 00 [09:39:15]Write to MH i2c: E2 08 00 E2 16 80 13 00 00 00 00 00 00 74 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 62 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 62 00 E2 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3C 49 00 00 0E 04 04 00 B5 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 23 [09:39:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3C 49 00 00 0E 04 04 00 B5 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 [09:39:15]wFMCommunicate OK [09:39:15]SAM_PROTO_GetFieldsCounters done [09:39:15]requested_item shift.num is exist - process it [09:39:15]requested_item shift.opened is exist - process it [09:39:15]req_shift_opened [09:39:15]FM_GetShiftState [09:39:15]SAM_PROTO_GetShiftState [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 13 01 00 [09:39:15]Write to MH i2c: E2 08 00 E3 16 80 13 01 00 00 00 00 00 76 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 0E 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 0E 00 E3 16 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 0E [09:39:15]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:39:15]wFMCommunicate OK [09:39:15]SAM_PROTO_GetShiftState done [09:39:15]FM_GetShiftState done [09:39:15]req_shift_opened done [09:39:15]requested_item shift.open_date is exist - process it [09:39:15]req_shift_open_date [09:39:15]req_shift_open_date done [09:39:15]produce_requested_data done [09:39:15]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18748,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:39:15]process_action_free close_receipt [09:39:15]json_value_free [09:39:15]json_value_free done [09:39:15]process_json_proto returns [09:39:15]Send response to host [09:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18748,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:39:15]free response buf [09:39:15]execute_script done [09:39:15]execute_script returns [09:39:15]free content buf [09:39:15]Sock 8.Close socket [09:39:15]Sock 8.Thread stoped [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:47]accept exits with 9 [09:39:47]New connection [09:39:47]New thread 3067129188 created [09:39:47]Thread 3067272548 joined [09:39:47]Waiting for new connection... [09:39:47] Sock 9.Parse request [09:39:47]Sock 9.Check first char [09:39:47]Sock 9.First char is OK [09:39:47]request: POST /json_proto HTTP/1.0 [09:39:47]Method: POST [09:39:47]URL: /json_proto [09:39:47]Method is POST - this is cgi request [09:39:47]url: /json_proto [09:39:47]query_string will be loaded in cgi processing [09:39:47]execute_cgi json_proto POST (null) [09:39:47]execute_cgi path=json_proto method=POST [09:39:47]POST find Content-Length [09:39:47]Host: 172.17.62.196:8080 [09:39:47]Content-Length: 687 [09:39:47]Content-Type: application/json [09:39:47] [09:39:47]POST finish read [09:39:47]Found Content-Length = 687 [09:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 18.500, "sum" : 1400.45, "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" ] } } [09:39:47]execute_script... [09:39: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)116102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 18.500, "sum" : 1400.45, "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" ] } } [09:39:47]POST & json_proto [09:39:47]process_json_proto [09:39:47]json parsed OK: [09:39:47]protocol is kg_v1.0 [09:39:47]action value=close_receipt [09:39:47]process_action close_receipt [09:39:47]cmd_close_receipt [09:39:47]MH_GetDate [09:39:47]Write to MH i2c: F0 00 00 E4 16 E9 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: F0 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: F0 09 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: F0 09 00 E4 16 00 68 37 F1 66 CE CC 0E 66 F6 [09:39:47]GetLastDocTimeStamp 1727084357 [09:39:47]current date 1727084392 [09:39:47]FM_GetShiftState [09:39:47]SAM_PROTO_GetShiftState [09:39:47]wFMCommunicate request_size=4 [09:39:47]MH_SAM_APDU [09:39:47]CAPDU: 80 13 01 00 [09:39:47]Write to MH i2c: E2 08 00 E5 16 80 13 01 00 00 00 00 00 78 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 0E 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 0E 00 E5 16 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 10 [09:39:47]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:39:47]wFMCommunicate OK [09:39:47]SAM_PROTO_GetShiftState done [09:39:47]FM_GetShiftState done [09:39:47]opened in 1727050372 [09:39:47]opened+sec_in_day 1727136772 [09:39:47]quantity*price = 140045 [09:39:47]sum+1 = 140046 [09:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 25 23.09.2024 09:39 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18749 ФПД: 251716942799524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093952&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18749&fm=251716942799524&tin=02508201610067®Number=0000000000152968&sum=140000 [09:39:48]StoreToDocumentArchive [09:39:48]shift 181 fd 18749 [09:39:48]save to /storage/0181/doc_00018749 [09:39:48]save last doc name /storage/0181/doc_00018749 to /storage/kkm_last_doc_name [09:39:48]save OK [09:39:48]Clear old archive folders... [09:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:39:48]tlvbuf is 0024D980 [09:39:48]SAM_PROTO_ClearQueue [09:39:48]wFMCommunicate request_size=4 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 09 00 00 [09:39:48]Write to MH i2c: E2 08 00 F2 16 80 09 00 00 00 00 00 00 7A [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 F2 16 00 90 00 7C [09:39:48]RAPDU: 90 00 [09:39:48]wFMCommunicate OK [09:39:48]SAM_PROTO_ClearQueue done [09:39:48]KKMCreateOFDPacket [09:39:48]OFDProtocolAddRootSTLVToBuf [09:39:48]FM_MakeSignedData [09:39:48]FM_MakeSignedData [09:39:48]SAM_PROTO_SignData [09:39:48]wFMCommunicate request_size=4 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 0D 01 02 [09:39:48]Write to MH i2c: E2 08 00 F3 16 80 0D 01 02 00 00 00 00 82 [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 F3 16 00 90 00 7D [09:39:48]RAPDU: 90 00 [09:39:48]wFMCommunicate OK [09:39:48]wFMCommunicate request_size=255 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 48 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 0D 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 19 00 00 00 F4 03 04 00 68 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3D 49 00 00 35 04 06 00 [09:39:48]Write to MH i2c: E2 02 01 F4 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 48 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 0D 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 19 00 00 00 F4 03 04 00 68 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3D 49 00 00 35 04 06 00 00 00 BF [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 F4 16 00 90 00 7E [09:39:48]RAPDU: 90 00 [09:39:48]wFMCommunicate OK [09:39:48]wFMCommunicate request_size=11 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 0D 02 02 06 E4 EF 6A F5 A2 A4 [09:39:48]Write to MH i2c: E2 0E 00 F5 16 80 0D 02 02 06 00 E4 EF 6A F5 A2 A4 00 00 09 [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 03 00 F5 16 00 90 00 7F [09:39:48]RAPDU: 90 00 [09:39:48]wFMCommunicate OK [09:39:48]wFMCommunicate request_size=4 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 0D 03 02 [09:39:48]Write to MH i2c: E2 08 00 F6 16 80 0D 03 02 00 00 00 00 87 [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 0B 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 0B 00 F6 16 00 84 23 9D D5 6A C9 83 89 90 00 E0 [09:39:48]RAPDU: 84 23 9D D5 6A C9 83 89 90 00 [09:39:48]wFMCommunicate OK [09:39:48]SAM_PROTO_SignData done [09:39:48]FM_MakeSignedData done [09:39:48]CreateOFDProtocolMessage [09:39:48]wFMCommunicate request_size=4 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 11 00 00 [09:39:48]Write to MH i2c: E2 08 00 F7 16 80 11 00 00 00 00 00 00 87 [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:49]Read from MH i2c: E2 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 17 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 17 00 F7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E0 [09:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:39:49]wFMCommunicate OK [09:39:49]CreateOFDProtocolMessage done [09:39:49]OFDSenderStorePacket 18749 [09:39:49]StoreOFDPacket docnum=18749 [09:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 50 4B 08 01 43 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 48 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 0D 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 19 00 00 00 F4 03 04 00 68 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3D 49 00 00 35 04 06 00 E4 EF 6A F5 A2 A4 84 23 9D D5 6A C9 83 89 [09:39:49]CheckFolder [09:39:49]dirname=/storage/ofd_packets [09:39:49]CheckFolder done [09:39:49]ProducePacketName [09:39:49]name=ofd_packets/00018749 [09:39:49]NVStorageSaveData ofd_packets/00018749 [09:39:49]File name is /storage/ofd_packets/00018749 [09:39:49]Write 302 bytes [09:39:49]NVStorageSaveData done [09:39:49]OFDSenderStorePacket done [09:39:49]KKMCreateOFDPacket done [09:39:49]NVStorageSaveData kkm_last_timestamp [09:39:49]File name is /storage/kkm_last_timestamp [09:39:49]Write 4 bytes [09:39:49]NVStorageSaveData done [09:39:49]ExternCall_PrintAddStr [09:39:49]wPrintStart [09:39:49]Write to MH i2c: 01 00 00 F8 16 0E [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: 01 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: 01 07 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: 01 07 00 F8 16 00 00 00 00 00 FF 0F 23 [09:39:49]RasterBufferAndPrint [09:39:49]line Счет N : (1)116102 [09:39:49]line ИНН: 02508201610067 [09:39:49]line Контрольно-Кассовый Чек [09:39:49]line ПРОДАЖА [09:39:49]line ТРК (МРК, ГНК) : 11 [09:39:49]line Товар: 2710194210 [09:39:49]line ДТ(л)-К-5 [09:39:49]line 18.500 * 75.70 [09:39:49]line = 1400.45 [09:39:49]line НДС 12% НСП 1% [09:39:49]line > о реализуемом товаре [09:39:49]line ОКРУГЛЕНИЕ: -0.45 [09:39:49]line ИТОГО: 1400.00 [09:39:49]line Внесено: 1400.00 [09:39:49]line СДАЧА: 0.00 [09:39:49]line НСП 1% : 12.39 [09:39:49]line НДС 12% : 148.72 [09:39:49]line Наличными: 1400.00 [09:39:49]line Безнал.: 0.00 [09:39:49]line Место: АЗС № 176 "Партнер Нефть" [09:39:49]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:39:49]line СНО: Общий режим [09:39:49]line Чек 25 23.09.2024 09:39 [09:39:49]line Смена: 181 ФФД: 1.0 [09:39:49]line ЗНМ: 0300000010 [09:39:49]line РНМ: 0000000000152968 [09:39:49]line Версия ККМ: v1.0 [09:39:49]line ФМ: 0000000000959456 [09:39:49]line ФД: 18749 [09:39:49]line ФПД: 251716942799524 [09:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T093952&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18749&fm=251716942799524&tin=02508201610067®Number=0000000000152968&sum=140000 [09:39:49]OFD Sender: Processing packet 18749 [packets to send 7, broken 6] [09:39:49]ProducePacketName [09:39:49]name=ofd_packets/00018749 [09:39:49]OFD Sender: To server: pG, [09:39:49]CommunicateWithHost lk.salyk.kg:30040 [09:39:49]ConnectInit lk.salyk.kg [09:39:49]written 0, free lines is 4095 [09:39:49]Connected sock=10 [09:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 50 4B 08 01 43 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 48 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 0D 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 19 00 00 00 F4 03 04 00 68 37 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3D 49 00 00 35 04 06 00 E4 EF 6A F5 A2 A4 84 23 9D D5 6A C9 83 89 [09:39:49]Write to MH i2c: 01 00 00 23 17 3A [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: 01 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: 01 07 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: 01 07 00 23 17 00 00 00 00 00 FA 0C 47 [09:39:49]RasterBufferAndPrint [09:39:49]line [09:39:49]line [09:39:49]line [09:39:49]line [09:39:49]line [09:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 76 B4 47 00 31 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 35 39 34 35 36 10 04 04 00 3D 49 00 00 F4 03 04 00 CD E0 F0 66 B6 04 01 00 00 5C 13 1C 1D EC 42 EB E9 [09:39:49]CommunicateWithHost err = 0 [09:39:49]CheckOFDResponse [09:39:49]1017 (14) - 77093643461234 [09:39:49]1041 (16) - 0000000000959456 [09:39:49]1040 (4) - 18749 [09:39:49]1012 (4) - 23.09.2024 03:30 [09:39:49]1206 (1) - 0 [09:39:49]OFD Sender: Remove packet 18749 [09:39:49]ProducePacketName [09:39:49]name=ofd_packets/00018749 [09:39:49]NVStorageDeleteData [09:39:49]written 0, free lines is 3328 [09:39:49]MH_Cut [09:39:49]Write to MH i2c: D1 01 00 2A 17 01 13 [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: D1 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: D1 01 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: D1 01 00 2A 17 00 12 [09:39:49]Write to MH i2c: 01 00 00 2B 17 42 [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:50]OFD Sender: No OFD packet to send [09:39:50]*** Cut start [09:39:50]*** Partial cut [09:39:50]*** CUTSNS_PIN = 1 [09:39:50]*** CUTSNS_PIN = 0 [09:39:50]*** Brake cut motor [09:39:51]Read from MH i2c: 01 [09:39:51]MH_I2C_Read... [09:39:51]*** Stop cut motor [09:39:51]*** Cut end [09:39:51]Read from MH i2c: 01 07 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 FF 0F 57 [09:39:51]process_action close_receipt done [09:39:51]requested_data is exist [09:39:51]produce_requested_data [09:39:51]requested_item fm.sn is exist - process it [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 11 00 00 [09:39:51]Write to MH i2c: E2 08 00 2C 17 80 11 00 00 00 00 00 00 BD [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 17 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 17 00 2C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 16 [09:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:39:51]wFMCommunicate OK [09:39:51]requested_item fd.num is exist - process it [09:39:51]SAM_PROTO_GetFieldsCounters [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 13 00 00 [09:39:51]Write to MH i2c: E2 08 00 2D 17 80 13 00 00 00 00 00 00 C0 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 62 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 62 00 2D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3D 49 00 00 0E 04 04 00 B5 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 73 [09:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3D 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:51]wFMCommunicate OK [09:39:51]SAM_PROTO_GetFieldsCounters done [09:39:51]requested_item shift.num is exist - process it [09:39:51]requested_item shift.opened is exist - process it [09:39:51]req_shift_opened [09:39:51]FM_GetShiftState [09:39:51]SAM_PROTO_GetShiftState [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 13 01 00 [09:39:51]Write to MH i2c: E2 08 00 2E 17 80 13 01 00 00 00 00 00 C2 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 0E 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 0E 00 2E 17 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 5A [09:39:51]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:39:51]wFMCommunicate OK [09:39:51]SAM_PROTO_GetShiftState done [09:39:51]FM_GetShiftState done [09:39:51]req_shift_opened done [09:39:51]requested_item shift.open_date is exist - process it [09:39:51]req_shift_open_date [09:39:51]req_shift_open_date done [09:39:51]produce_requested_data done [09:39:51]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18749,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:39:51]process_action_free close_receipt [09:39:51]json_value_free [09:39:51]json_value_free done [09:39:51]process_json_proto returns [09:39:51]Send response to host [09:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18749,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:39:51]free response buf [09:39:51]execute_script done [09:39:51]execute_script returns [09:39:51]free content buf [09:39:51]Sock 9.Close socket [09:39:51]Sock 9.Thread stoped [09:39:55]OFD Sender: No OFD packet to send [09:39:57]accept exits with 8 [09:39:57]New connection [09:39:57]New thread 3067272548 created [09:39:57]Thread 3067129188 joined [09:39:57]Waiting for new connection... [09:39:57] Sock 8.Parse request [09:39:57]Sock 8.Check first char [09:39:57]Sock 8.First char is OK [09:39:57]request: POST /json_proto HTTP/1.0 [09:39:57]Method: POST [09:39:57]URL: /json_proto [09:39:57]Method is POST - this is cgi request [09:39:57]url: /json_proto [09:39:57]query_string will be loaded in cgi processing [09:39:57]execute_cgi json_proto POST (null) [09:39:57]execute_cgi path=json_proto method=POST [09:39:57]POST find Content-Length [09:39:57]Host: 172.17.62.196:8080 [09:39:57]Content-Length: 215 [09:39:57]Content-Type: application/json [09:39:57] [09:39:57]POST finish read [09:39:57]Found Content-Length = 215 [09:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:57]execute_script... [09:39:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:57]POST & json_proto [09:39:57]process_json_proto [09:39:57]json parsed OK: [09:39:57]protocol is kg_v1.0 [09:39:57]action value=get_value [09:39:57]process_action get_value [09:39:57]cmd_get_value [09:39:57]process_action get_value done [09:39:57]requested_data is exist [09:39:57]produce_requested_data [09:39:57]requested_item kkm.sn is exist - process it [09:39:57]requested_item kkm.ver is exist - process it [09:39:57]requested_item fm.sn is exist - process it [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 11 00 00 [09:39:57]Write to MH i2c: E2 08 00 2F 17 80 11 00 00 00 00 00 00 C0 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 17 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 17 00 2F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 19 [09:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:39:57]wFMCommunicate OK [09:39:57]requested_item fd.num is exist - process it [09:39:57]SAM_PROTO_GetFieldsCounters [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 13 00 00 [09:39:57]Write to MH i2c: E2 08 00 30 17 80 13 00 00 00 00 00 00 C3 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 62 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 62 00 30 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3D 49 00 00 0E 04 04 00 B5 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 76 [09:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3D 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:57]wFMCommunicate OK [09:39:57]SAM_PROTO_GetFieldsCounters done [09:39:57]requested_item shift.num is exist - process it [09:39:57]requested_item shift.opened is exist - process it [09:39:57]req_shift_opened [09:39:57]FM_GetShiftState [09:39:57]SAM_PROTO_GetShiftState [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 13 01 00 [09:39:57]Write to MH i2c: E2 08 00 31 17 80 13 01 00 00 00 00 00 C5 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 31 17 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 5D [09:39:57]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:39:57]wFMCommunicate OK [09:39:57]SAM_PROTO_GetShiftState done [09:39:57]FM_GetShiftState done [09:39:57]req_shift_opened done [09:39:57]requested_item shift.open_date is exist - process it [09:39:57]req_shift_open_date [09:39:57]req_shift_open_date done [09:39:57]produce_requested_data done [09:39:57]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18749,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:39:57]process_action_free get_value [09:39:57]json_value_free [09:39:57]json_value_free done [09:39:57]process_json_proto returns [09:39:57]Send response to host [09:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18749,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:39:57]free response buf [09:39:57]execute_script done [09:39:57]execute_script returns [09:39:57]free content buf [09:39:57]Sock 8.Close socket [09:39:57]Sock 8.Thread stoped [09:39:57]accept exits with 9 [09:39:57]New connection [09:39:57]New thread 3067129188 created [09:39:57]Thread 3067272548 joined [09:39:57]Waiting for new connection... [09:39:57] Sock 9.Parse request [09:39:57]Sock 9.Check first char [09:39:57]Sock 9.First char is OK [09:39:57]request: POST /json_proto HTTP/1.0 [09:39:57]Method: POST [09:39:57]URL: /json_proto [09:39:57]Method is POST - this is cgi request [09:39:57]url: /json_proto [09:39:57]query_string will be loaded in cgi processing [09:39:57]execute_cgi json_proto POST (null) [09:39:57]execute_cgi path=json_proto method=POST [09:39:57]POST find Content-Length [09:39:57]Host: 172.17.62.196:8080 [09:39:57]Content-Length: 331 [09:39:57]Content-Type: application/json [09:39:57] [09:39:57]POST finish read [09:39:57]Found Content-Length = 331 [09:39: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" ] } } [09:39:57]execute_script... [09:39: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" ] } } [09:39:57]POST & json_proto [09:39:57]process_json_proto [09:39:57]json parsed OK: [09:39:57]protocol is kg_v1.0 [09:39:57]action value=get_value [09:39:57]process_action get_value [09:39:57]cmd_get_value [09:39:57]process_action get_value done [09:39:57]requested_data is exist [09:39:57]produce_requested_data [09:39:57]requested_item fm.sale.total is exist - process it [09:39:57]SAM_PROTO_GetFMData [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 13 03 00 [09:39:57]Write to MH i2c: E2 08 00 32 17 80 13 03 00 00 00 00 00 C8 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 FD 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 FD 00 32 17 00 BE 04 85 04 BA 04 6E 04 04 00 D3 47 00 00 69 04 A0 00 6F 04 04 00 C4 47 00 00 B1 04 04 00 0E 95 73 31 70 04 04 00 F8 00 15 1F 72 04 04 00 16 94 5E 12 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 E9 81 40 05 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 1C 04 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 75 [09:39:58]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 D3 47 00 00 69 04 A0 00 6F 04 04 00 C4 47 00 00 B1 04 04 00 0E 95 73 31 70 04 04 00 F8 00 15 1F 72 04 04 00 16 94 5E 12 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 E9 81 40 05 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 1C 04 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [09:39:58]wFMCommunicate OK [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 17 00 00 [09:39:58]Write to MH i2c: E2 08 00 33 17 80 17 00 00 00 00 00 00 CA [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 FD 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 FD 00 33 17 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [09:39:58]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:39:58]wFMCommunicate OK [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 17 00 00 [09:39:58]Write to MH i2c: E2 08 00 34 17 80 17 00 00 00 00 00 00 CB [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 FD 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 FD 00 34 17 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [09:39:58]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:39:58]wFMCommunicate OK [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 17 00 00 [09:39:58]Write to MH i2c: E2 08 00 35 17 80 17 00 00 00 00 00 00 CC [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 FD 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 FD 00 35 17 00 04 F7 03 00 00 EF 03 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 90 00 47 [09:39:59]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [09:39:59]wFMCommunicate OK [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 17 00 00 [09:39:59]Write to MH i2c: E2 08 00 36 17 80 17 00 00 00 00 00 00 CD [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 DB 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 DB 00 36 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AF [09:39:59]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:39:59]wFMCommunicate OK [09:39:59]SAM_PROTO_GetFMData done [09:39:59]requested_item fm.sale_refund.total is exist - process it [09:39:59]requested_item fm.buy.total is exist - process it [09:39:59]requested_item shift.sale.total is exist - process it [09:39:59]SAM_PROTO_GetShiftData [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 13 02 00 [09:39:59]Write to MH i2c: E2 08 00 37 17 80 13 02 00 00 00 00 00 CC [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 FD 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 FD 00 37 17 00 AD 04 AA 04 A9 04 6E 04 04 00 19 00 00 00 69 04 9A 00 6F 04 04 00 19 00 00 00 B1 04 03 00 0C 8A 0A 70 04 03 00 80 02 0A 72 04 02 00 8C 87 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 8D 1E 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 E0 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A0 [09:39:59]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 19 00 00 00 69 04 9A 00 6F 04 04 00 19 00 00 00 B1 04 03 00 0C 8A 0A 70 04 03 00 80 02 0A 72 04 02 00 8C 87 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 8D 1E 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 E0 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [09:39:59]wFMCommunicate OK [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 17 00 00 [09:39:59]Write to MH i2c: E2 08 00 38 17 80 17 00 00 00 00 00 00 CF [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:40:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 FD 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 FD 00 38 17 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [09:40:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:40:00]wFMCommunicate OK [09:40:00]wFMCommunicate request_size=4 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 17 00 00 [09:40:00]Write to MH i2c: E2 08 00 39 17 80 17 00 00 00 00 00 00 D0 [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 FD 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 FD 00 39 17 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [09:40:00]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:40:00]wFMCommunicate OK [09:40:00]wFMCommunicate request_size=4 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 17 00 00 [09:40:00]Write to MH i2c: E2 08 00 3A 17 80 17 00 00 00 00 00 00 D1 [09:40:00]OFD Sender: No OFD packet to send [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 FD 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 FD 00 3A 17 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 90 00 46 [09:40:00]RAPDU: 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 90 00 [09:40:00]wFMCommunicate OK [09:40:00]wFMCommunicate request_size=4 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 17 00 00 [09:40:00]Write to MH i2c: E2 08 00 3B 17 80 17 00 00 00 00 00 00 D2 [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 CA 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 CA 00 3B 17 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 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 [09:40:01]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 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 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetShiftData done [09:40:01]requested_item shift.sale.total_cash is exist - process it [09:40:01]requested_item shift.sale_refund.total is exist - process it [09:40:01]requested_item shift.sale_refund.total_cash is exist - process it [09:40:01]requested_item shift.buy.total is exist - process it [09:40:01]requested_item shift.buy.total_cash is exist - process it [09:40:01]produce_requested_data done [09:40:01]produce_requested_data return {"fm.sale.total":8296583.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":6907.00,"shift.sale.total_cash":6560.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} [09:40:01]process_action_free get_value [09:40:01]json_value_free [09:40:01]json_value_free done [09:40:01]process_json_proto returns [09:40:01]Send response to host [09:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8296583.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":6907.00,"shift.sale.total_cash":6560.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}}} [09:40:01]free response buf [09:40:01]execute_script done [09:40:01]execute_script returns [09:40:01]free content buf [09:40:01]Sock 9.Close socket [09:40:01]Sock 9.Thread stoped [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:00]accept exits with 8 [09:47:00]New connection [09:47:00]New thread 3067272548 created [09:47:00]Thread 3067129188 joined [09:47:00]Waiting for new connection... [09:47:00] Sock 8.Parse request [09:47:00]Sock 8.Check first char [09:47:00]Sock 8.First char is OK [09:47:00]request: POST /json_proto HTTP/1.0 [09:47:00]Method: POST [09:47:00]URL: /json_proto [09:47:00]Method is POST - this is cgi request [09:47:00]url: /json_proto [09:47:00]query_string will be loaded in cgi processing [09:47:00]execute_cgi json_proto POST (null) [09:47:00]execute_cgi path=json_proto method=POST [09:47:00]POST find Content-Length [09:47:00]Host: 172.17.62.196:8080 [09:47:00]Content-Length: 942 [09:47:00]Content-Type: application/json [09:47:00] [09:47:00]POST finish read [09:47:00]Found Content-Length = 942 [09:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16671", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:00]execute_script... [09:47:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16671", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:00]POST & json_proto [09:47:00]process_json_proto [09:47:00]json parsed OK: [09:47:00]protocol is kg_v1.0 [09:47:00]action value=close_receipt [09:47:00]process_action close_receipt [09:47:00]cmd_close_receipt [09:47:00]MH_GetDate [09:47:00]Write to MH i2c: F0 00 00 3C 17 42 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: F0 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: F0 09 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: F0 09 00 3C 17 00 1A 39 F1 66 CE CC 0E 66 03 [09:47:00]GetLastDocTimeStamp 1727084392 [09:47:00]current date 1727084826 [09:47:00]FM_GetShiftState [09:47:00]SAM_PROTO_GetShiftState [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 13 01 00 [09:47:00]Write to MH i2c: E2 08 00 3D 17 80 13 01 00 00 00 00 00 D1 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0E 00 3D 17 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 69 [09:47:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_GetShiftState done [09:47:00]FM_GetShiftState done [09:47:00]opened in 1727050372 [09:47:00]opened+sec_in_day 1727136772 [09:47:00]quantity*price = 10500 [09:47:00]sum+1 = 10501 [09:47:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189318 Холодный чай Fuse лимон 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 26 23.09.2024 09:47 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18750 ФПД: 207869449547999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094706&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18750&fm=207869449547999&tin=02508201610067®Number=0000000000152968&sum=21000 0 [09:47:02]StoreToDocumentArchive [09:47:02]shift 181 fd 18750 [09:47:02]save to /storage/0181/doc_00018750 [09:47:02]save last doc name /storage/0181/doc_00018750 to /storage/kkm_last_doc_name [09:47:02]save OK [09:47:02]Clear old archive folders... [09:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=393 [09:47:02]tlvbuf is 001C9F70 [09:47:02]SAM_PROTO_ClearQueue [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 09 00 00 [09:47:02]Write to MH i2c: E2 08 00 4A 17 80 09 00 00 00 00 00 00 D3 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [09:47:02]RAPDU: 90 00 [09:47:02]wFMCommunicate OK [09:47:02]SAM_PROTO_ClearQueue done [09:47:02]KKMCreateOFDPacket [09:47:02]OFDProtocolAddRootSTLVToBuf [09:47:02]FM_MakeSignedData [09:47:02]FM_MakeSignedData [09:47:02]SAM_PROTO_SignData [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 0D 01 02 [09:47:02]Write to MH i2c: E2 08 00 4B 17 80 0D 01 02 00 00 00 00 DB [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [09:47:02]RAPDU: 90 00 [09:47:02]wFMCommunicate OK [09:47:02]wFMCommunicate request_size=255 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 [09:47:02]Write to MH i2c: E2 02 01 4C 17 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 54 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [09:47:02]RAPDU: 90 00 [09:47:02]wFMCommunicate OK [09:47:02]wFMCommunicate request_size=152 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1A 39 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3E 49 00 00 35 04 06 00 BD 0E 60 B3 30 DF [09:47:02]Write to MH i2c: E2 9B 00 4D 17 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1A 39 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3E 49 00 00 35 04 06 00 BD 0E 60 B3 30 DF 00 00 F7 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [09:47:02]RAPDU: 90 00 [09:47:02]wFMCommunicate OK [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 0D 03 02 [09:47:02]Write to MH i2c: E2 08 00 4E 17 80 0D 03 02 00 00 00 00 E0 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 0B 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 0B 00 4E 17 00 F2 24 6A D9 48 1A 83 D6 90 00 F5 [09:47:02]RAPDU: F2 24 6A D9 48 1A 83 D6 90 00 [09:47:02]wFMCommunicate OK [09:47:02]SAM_PROTO_SignData done [09:47:02]FM_MakeSignedData done [09:47:02]CreateOFDProtocolMessage [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 11 00 00 [09:47:02]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 17 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 39 [09:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:47:02]wFMCommunicate OK [09:47:02]CreateOFDProtocolMessage done [09:47:02]OFDSenderStorePacket 18750 [09:47:02]StoreOFDPacket docnum=18750 [09:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9D 01 00 00 52 37 95 01 8C 13 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1A 39 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3E 49 00 00 35 04 06 00 BD 0E 60 B3 30 DF F2 24 6A D9 48 1A 83 D6 [09:47:02]CheckFolder [09:47:02]dirname=/storage/ofd_packets [09:47:02]CheckFolder done [09:47:02]ProducePacketName [09:47:02]name=ofd_packets/00018750 [09:47:02]NVStorageSaveData ofd_packets/00018750 [09:47:02]File name is /storage/ofd_packets/00018750 [09:47:02]Write 443 bytes [09:47:02]NVStorageSaveData done [09:47:02]OFDSenderStorePacket done [09:47:02]KKMCreateOFDPacket done [09:47:02]NVStorageSaveData kkm_last_timestamp [09:47:02]File name is /storage/kkm_last_timestamp [09:47:02]Write 4 bytes [09:47:02]NVStorageSaveData done [09:47:02]ExternCall_PrintAddStr [09:47:02]wPrintStart [09:47:02]Write to MH i2c: 01 00 00 50 17 67 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: 01 [09:47:03]MH_I2C_Read... [09:47:03]OFD Sender: Processing packet 18750 [packets to send 7, broken 6] [09:47:03]ProducePacketName [09:47:03]name=ofd_packets/00018750 [09:47:03]OFD Sender: To server: pG, [09:47:03]CommunicateWithHost lk.salyk.kg:30040 [09:47:03]ConnectInit lk.salyk.kg [09:47:03]Read from MH i2c: 01 07 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [09:47:03]RasterBufferAndPrint [09:47:03]line Счет N : (3)16671 [09:47:03]line ИНН: 02508201610067 [09:47:03]line Контрольно-Кассовый Чек [09:47:03]line ПРОДАЖА [09:47:03]line Товар: 5449000054227 [09:47:03]line Напиток Кока-Кола 1л [09:47:03]line 1.000 * 105.00 [09:47:03]line = 105.00 [09:47:03]line НДС 12% НСП 1% [09:47:03]line > о реализуемом товаре [09:47:03]line Товар: 5449000189318 [09:47:03]line Холодный чай Fuse лимон 1л [09:47:03]line 1.000 * 105.00 [09:47:03]line = 105.00 [09:47:03]line НДС 12% НСП 1% [09:47:03]line > о реализуемом товаре [09:47:03]line ИТОГО: 210.00 [09:47:03]line НСП 1% : 1.86 [09:47:03]line НДС 12% : 22.30 [09:47:03]line Наличными: 210.00 [09:47:03]line Безнал.: 0.00 [09:47:03]line Место: АЗС № 176 "Партнер Нефть" [09:47:03]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:47:03]line СНО: Общий режим [09:47:03]line Чек 26 23.09.2024 09:47 [09:47:03]line Смена: 181 ФФД: 1.0 [09:47:03]line ЗНМ: 0300000010 [09:47:03]line РНМ: 0000000000152968 [09:47:03]line Версия ККМ: v1.0 [09:47:03]line ФМ: 0000000000959456 [09:47:03]line ФД: 18750 [09:47:03]line ФПД: 207869449547999 [09:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T094706&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18750&fm=207869449547999&tin=02508201610067®Number=0000000000152968&sum=21000 [09:47:03]line 0 [09:47:03]written 0, free lines is 4095 [09:47:03]Connected sock=10 [09:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9D 01 00 00 52 37 95 01 8C 13 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1A 39 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3E 49 00 00 35 04 06 00 BD 0E 60 B3 30 DF F2 24 6A D9 48 1A 83 D6 [09:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 3B A5 47 00 83 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 35 39 34 35 36 10 04 04 00 3E 49 00 00 F4 03 04 00 7E E2 F0 66 B6 04 01 00 00 88 E7 74 04 BB EF 18 0E [09:47:03]CommunicateWithHost err = 0 [09:47:03]CheckOFDResponse [09:47:03]1017 (14) - 77093643461234 [09:47:03]1041 (16) - 0000000000959456 [09:47:03]1040 (4) - 18750 [09:47:03]1012 (4) - 23.09.2024 03:37 [09:47:03]1206 (1) - 0 [09:47:03]OFD Sender: Remove packet 18750 [09:47:03]ProducePacketName [09:47:03]name=ofd_packets/00018750 [09:47:03]NVStorageDeleteData [09:47:03]Write to MH i2c: 01 00 00 7E 17 95 [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: 01 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: 01 07 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 E7 0C 8F [09:47:03]RasterBufferAndPrint [09:47:03]line [09:47:03]line [09:47:03]line [09:47:03]line [09:47:03]line [09:47:03]written 0, free lines is 3312 [09:47:03]MH_Cut [09:47:03]Write to MH i2c: D1 01 00 85 17 01 6E [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: D1 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: D1 01 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: D1 01 00 85 17 00 6D [09:47:03]Write to MH i2c: 01 00 00 86 17 9D [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:04]OFD Sender: No OFD packet to send [09:47:04]*** Cut start [09:47:04]*** Partial cut [09:47:04]*** CUTSNS_PIN = 1 [09:47:04]*** CUTSNS_PIN = 0 [09:47:04]*** Brake cut motor [09:47:04]Read from MH i2c: 01 [09:47:04]MH_I2C_Read... [09:47:04]*** Stop cut motor [09:47:04]*** Cut end [09:47:04]Read from MH i2c: 01 07 00 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: 01 07 00 86 17 00 00 00 00 00 FF 0F B2 [09:47:04]process_action close_receipt done [09:47:04]requested_data is exist [09:47:04]produce_requested_data [09:47:04]requested_item fm.sn is exist - process it [09:47:04]wFMCommunicate request_size=4 [09:47:04]MH_SAM_APDU [09:47:04]CAPDU: 80 11 00 00 [09:47:04]Write to MH i2c: E2 08 00 87 17 80 11 00 00 00 00 00 00 18 [09:47:04]Write i2c OK [09:47:04]MH_I2C_Read... [09:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:04]Read from MH i2c: E2 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 17 00 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 17 00 87 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 71 [09:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:47:04]wFMCommunicate OK [09:47:04]requested_item fd.num is exist - process it [09:47:04]SAM_PROTO_GetFieldsCounters [09:47:04]wFMCommunicate request_size=4 [09:47:04]MH_SAM_APDU [09:47:04]CAPDU: 80 13 00 00 [09:47:04]Write to MH i2c: E2 08 00 88 17 80 13 00 00 00 00 00 00 1B [09:47:04]Write i2c OK [09:47:04]MH_I2C_Read... [09:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:05]Read from MH i2c: E2 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 62 00 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 62 00 88 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3E 49 00 00 0E 04 04 00 B5 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 D2 [09:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3E 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:05]wFMCommunicate OK [09:47:05]SAM_PROTO_GetFieldsCounters done [09:47:05]requested_item shift.num is exist - process it [09:47:05]requested_item shift.opened is exist - process it [09:47:05]req_shift_opened [09:47:05]FM_GetShiftState [09:47:05]SAM_PROTO_GetShiftState [09:47:05]wFMCommunicate request_size=4 [09:47:05]MH_SAM_APDU [09:47:05]CAPDU: 80 13 01 00 [09:47:05]Write to MH i2c: E2 08 00 89 17 80 13 01 00 00 00 00 00 1D [09:47:05]Write i2c OK [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 [09:47:05]MH_I2C_Read... [09:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:05]Read from MH i2c: E2 0E 00 [09:47:05]MH_I2C_Read... [09:47:05]Read from MH i2c: E2 0E 00 89 17 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B5 [09:47:05]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:47:05]wFMCommunicate OK [09:47:05]SAM_PROTO_GetShiftState done [09:47:05]FM_GetShiftState done [09:47:05]req_shift_opened done [09:47:05]requested_item shift.open_date is exist - process it [09:47:05]req_shift_open_date [09:47:05]req_shift_open_date done [09:47:05]produce_requested_data done [09:47:05]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18750,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:47:05]process_action_free close_receipt [09:47:05]json_value_free [09:47:05]json_value_free done [09:47:05]process_json_proto returns [09:47:05]Send response to host [09:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18750,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:47:05]free response buf [09:47:05]execute_script done [09:47:05]execute_script returns [09:47:05]free content buf [09:47:05]Sock 8.Close socket [09:47:05]Sock 8.Thread stoped [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09: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:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:08]accept exits with 9 [09:57:08]New connection [09:57:08]New thread 3067129188 created [09:57:08]Thread 3067272548 joined [09:57:08]Waiting for new connection... [09:57:08] Sock 9.Parse request [09:57:08]Sock 9.Check first char [09:57:08]Sock 9.First char is OK [09:57:08]request: POST /json_proto HTTP/1.0 [09:57:08]Method: POST [09:57:08]URL: /json_proto [09:57:08]Method is POST - this is cgi request [09:57:08]url: /json_proto [09:57:08]query_string will be loaded in cgi processing [09:57:08]execute_cgi json_proto POST (null) [09:57:08]execute_cgi path=json_proto method=POST [09:57:08]POST find Content-Length [09:57:08]Host: 172.17.62.196:8080 [09:57:08]Content-Length: 987 [09:57:08]Content-Type: application/json [09:57:08] [09:57:08]POST finish read [09:57:08]Found Content-Length = 987 [09:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16672", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 177.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:08]execute_script... [09:57:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16672", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 177.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:08]POST & json_proto [09:57:08]process_json_proto [09:57:08]json parsed OK: [09:57:08]protocol is kg_v1.0 [09:57:08]action value=close_receipt [09:57:08]process_action close_receipt [09:57:08]cmd_close_receipt [09:57:08]MH_GetDate [09:57:08]Write to MH i2c: F0 00 00 8A 17 90 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: F0 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: F0 09 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: F0 09 00 8A 17 00 79 3B F1 66 CE CC 0E 66 B2 [09:57:08]GetLastDocTimeStamp 1727084826 [09:57:08]current date 1727085433 [09:57:08]FM_GetShiftState [09:57:08]SAM_PROTO_GetShiftState [09:57:08]wFMCommunicate request_size=4 [09:57:08]MH_SAM_APDU [09:57:08]CAPDU: 80 13 01 00 [09:57:08]Write to MH i2c: E2 08 00 8B 17 80 13 01 00 00 00 00 00 1F [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:08]Read from MH i2c: E2 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 0E 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 0E 00 8B 17 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B7 [09:57:08]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:57:08]wFMCommunicate OK [09:57:08]SAM_PROTO_GetShiftState done [09:57:08]FM_GetShiftState done [09:57:08]opened in 1727050372 [09:57:08]opened+sec_in_day 1727136772 [09:57:08]quantity*price = 10000 [09:57:08]sum+1 = 10001 [09:57:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 177.00 НСП 1% : 1.56 НДС 12% : 18.80 Наличными: 177.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 27 23.09.2024 09:57 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18751 ФПД: 83626057100444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095713&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18751&fm=83626057100444&tin=02508201610067®Number=0000000000152968&sum=17700 0 [09:57:09]StoreToDocumentArchive [09:57:09]shift 181 fd 18751 [09:57:09]save to /storage/0181/doc_00018751 [09:57:09]save last doc name /storage/0181/doc_00018751 to /storage/kkm_last_doc_name [09:57:09]save OK [09:57:09]Clear old archive folders... [09:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=424 [09:57:09]tlvbuf is 00235460 [09:57:09]SAM_PROTO_ClearQueue [09:57:09]wFMCommunicate request_size=4 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 09 00 00 [09:57:09]Write to MH i2c: E2 08 00 98 17 80 09 00 00 00 00 00 00 21 [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [09:57:09]RAPDU: 90 00 [09:57:09]wFMCommunicate OK [09:57:09]SAM_PROTO_ClearQueue done [09:57:09]KKMCreateOFDPacket [09:57:09]OFDProtocolAddRootSTLVToBuf [09:57:09]FM_MakeSignedData [09:57:09]FM_MakeSignedData [09:57:09]SAM_PROTO_SignData [09:57:09]wFMCommunicate request_size=4 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 0D 01 02 [09:57:09]Write to MH i2c: E2 08 00 99 17 80 0D 01 02 00 00 00 00 29 [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 99 17 00 90 00 24 [09:57:09]RAPDU: 90 00 [09:57:09]wFMCommunicate OK [09:57:09]wFMCommunicate request_size=255 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 0D 02 02 FA 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 [09:57:09]Write to MH i2c: E2 02 01 9A 17 80 0D 02 02 FA 00 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 00 00 07 [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]OFD Sender: No OFD packet to send [09:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 9A 17 00 90 00 25 [09:57:09]RAPDU: 90 00 [09:57:09]wFMCommunicate OK [09:57:09]wFMCommunicate request_size=183 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 0D 02 02 B2 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 79 3B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3F 49 00 00 35 04 06 00 4C 0E B5 6D 6C 9C [09:57:09]Write to MH i2c: E2 BA 00 9B 17 80 0D 02 02 B2 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 79 3B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3F 49 00 00 35 04 06 00 4C 0E B5 6D 6C 9C 00 00 51 [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [09:57:09]RAPDU: 90 00 [09:57:09]wFMCommunicate OK [09:57:09]wFMCommunicate request_size=4 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 0D 03 02 [09:57:09]Write to MH i2c: E2 08 00 9C 17 80 0D 03 02 00 00 00 00 2E [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 0B 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 0B 00 9C 17 00 B4 D1 19 A4 AD C4 8E AF 90 00 1F [09:57:09]RAPDU: B4 D1 19 A4 AD C4 8E AF 90 00 [09:57:09]wFMCommunicate OK [09:57:09]SAM_PROTO_SignData done [09:57:09]FM_MakeSignedData done [09:57:09]CreateOFDProtocolMessage [09:57:09]wFMCommunicate request_size=4 [09:57:09]MH_SAM_APDU [09:57:09]CAPDU: 80 11 00 00 [09:57:09]Write to MH i2c: E2 08 00 9D 17 80 11 00 00 00 00 00 00 2E [09:57:09]Write i2c OK [09:57:09]MH_I2C_Read... [09:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:09]Read from MH i2c: E2 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 17 00 [09:57:09]MH_I2C_Read... [09:57:09]Read from MH i2c: E2 17 00 9D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 87 [09:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:57:09]wFMCommunicate OK [09:57:09]CreateOFDProtocolMessage done [09:57:09]OFDSenderStorePacket 18751 [09:57:09]StoreOFDPacket docnum=18751 [09:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 BC 01 00 00 87 33 B4 01 C4 5B 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 79 3B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3F 49 00 00 35 04 06 00 4C 0E B5 6D 6C 9C B4 D1 19 A4 AD C4 8E AF [09:57:09]CheckFolder [09:57:09]dirname=/storage/ofd_packets [09:57:09]CheckFolder done [09:57:09]ProducePacketName [09:57:09]name=ofd_packets/00018751 [09:57:09]NVStorageSaveData ofd_packets/00018751 [09:57:09]File name is /storage/ofd_packets/00018751 [09:57:09]Write 474 bytes [09:57:09]NVStorageSaveData done [09:57:09]OFDSenderStorePacket done [09:57:09]KKMCreateOFDPacket done [09:57:09]NVStorageSaveData kkm_last_timestamp [09:57:09]File name is /storage/kkm_last_timestamp [09:57:09]Write 4 bytes [09:57:10]NVStorageSaveData done [09:57:10]ExternCall_PrintAddStr [09:57:10]wPrintStart [09:57:10]Write to MH i2c: 01 00 00 9E 17 B5 [09:57:10]OFD Sender: Processing packet 18751 [packets to send 7, broken 6] [09:57:10]ProducePacketName [09:57:10]name=ofd_packets/00018751 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]OFD Sender: To server: pG, [09:57:10]CommunicateWithHost lk.salyk.kg:30040 [09:57:10]ConnectInit lk.salyk.kg [09:57:10]Read from MH i2c: 01 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 9E 17 00 00 00 00 00 FF 0F CA [09:57:10]RasterBufferAndPrint [09:57:10]line Счет N : (3)16672 [09:57:10]line ИНН: 02508201610067 [09:57:10]line Контрольно-Кассовый Чек [09:57:10]line ПРОДАЖА [09:57:10]line Товар: 4860019001810 [09:57:10]line Вода Боржоми минеральная ж/б 0,33л [09:57:10]line 1.000 * 100.00 [09:57:10]line = 100.00 [09:57:10]line НДС 12% НСП 1% [09:57:10]line > о реализуемом товаре [09:57:10]line Товар: 4700000480050 [09:57:10]line Напиток Nitro Energy эн green ж/б 0,45л [09:57:10]line 1.000 * 77.00 [09:57:10]line = 77.00 [09:57:10]line НДС 12% НСП 1% [09:57:10]line > о реализуемом товаре [09:57:10]line ИТОГО: 177.00 [09:57:10]line НСП 1% : 1.56 [09:57:10]line НДС 12% : 18.80 [09:57:10]line Наличными: 177.00 [09:57:10]line Безнал.: 0.00 [09:57:10]line Место: АЗС № 176 "Партнер Нефть" [09:57:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [09:57:10]line СНО: Общий режим [09:57:10]line Чек 27 23.09.2024 09:57 [09:57:10]line Смена: 181 ФФД: 1.0 [09:57:10]line ЗНМ: 0300000010 [09:57:10]line РНМ: 0000000000152968 [09:57:10]line Версия ККМ: v1.0 [09:57:10]line ФМ: 0000000000959456 [09:57:10]line ФД: 18751 [09:57:10]line ФПД: 83626057100444 [09:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T095713&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18751&fm=83626057100444&tin=02508201610067®Number=0000000000152968&sum=17700 [09:57:10]line 0 [09:57:10]written 0, free lines is 4095 [09:57:10]Connected sock=10 [09:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 BC 01 00 00 87 33 B4 01 C4 5B 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 07 00 00 00 00 07 04 06 00 24 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 79 3B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 3F 49 00 00 35 04 06 00 4C 0E B5 6D 6C 9C B4 D1 19 A4 AD C4 8E AF [09:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 59 68 47 00 01 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 35 39 34 35 36 10 04 04 00 3F 49 00 00 F4 03 04 00 DE E4 F0 66 B6 04 01 00 00 5F 20 A3 3E 32 53 0C F9 [09:57:10]CommunicateWithHost err = 0 [09:57:10]CheckOFDResponse [09:57:10]1017 (14) - 77093643461234 [09:57:10]1041 (16) - 0000000000959456 [09:57:10]1040 (4) - 18751 [09:57:10]1012 (4) - 23.09.2024 03:47 [09:57:10]1206 (1) - 0 [09:57:10]OFD Sender: Remove packet 18751 [09:57:10]ProducePacketName [09:57:10]name=ofd_packets/00018751 [09:57:10]NVStorageDeleteData [09:57:10]Write to MH i2c: 01 00 00 CE 17 E5 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 CE 17 00 00 00 00 00 B8 0C B0 [09:57:10]RasterBufferAndPrint [09:57:10]line [09:57:10]line [09:57:10]line [09:57:10]line [09:57:10]line [09:57:10]written 0, free lines is 3268 [09:57:10]MH_Cut [09:57:10]Write to MH i2c: D1 01 00 D5 17 01 BE [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: D1 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: D1 01 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: D1 01 00 D5 17 00 BD [09:57:10]Write to MH i2c: 01 00 00 D6 17 ED [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:11]OFD Sender: No OFD packet to send [09:57:11]*** Cut start [09:57:11]*** Partial cut [09:57:11]*** CUTSNS_PIN = 1 [09:57:11]*** CUTSNS_PIN = 0 [09:57:11]*** Brake cut motor [09:57:12]Read from MH i2c: 01 [09:57:12]MH_I2C_Read... [09:57:12]*** Stop cut motor [09:57:12]*** Cut end [09:57:12]Read from MH i2c: 01 07 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: 01 07 00 D6 17 00 00 00 00 00 FF 0F 02 [09:57:12]process_action close_receipt done [09:57:12]requested_data is exist [09:57:12]produce_requested_data [09:57:12]requested_item fm.sn is exist - process it [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 11 00 00 [09:57:12]Write to MH i2c: E2 08 00 D7 17 80 11 00 00 00 00 00 00 68 [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 17 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 17 00 D7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C1 [09:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [09:57:12]wFMCommunicate OK [09:57:12]requested_item fd.num is exist - process it [09:57:12]SAM_PROTO_GetFieldsCounters [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 13 00 00 [09:57:12]Write to MH i2c: E2 08 00 D8 17 80 13 00 00 00 00 00 00 6B [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 62 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 62 00 D8 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3F 49 00 00 0E 04 04 00 B5 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 26 [09:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 3F 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:12]wFMCommunicate OK [09:57:12]SAM_PROTO_GetFieldsCounters done [09:57:12]requested_item shift.num is exist - process it [09:57:12]requested_item shift.opened is exist - process it [09:57:12]req_shift_opened [09:57:12]FM_GetShiftState [09:57:12]SAM_PROTO_GetShiftState [09:57:12]wFMCommunicate request_size=4 [09:57:12]MH_SAM_APDU [09:57:12]CAPDU: 80 13 01 00 [09:57:12]Write to MH i2c: E2 08 00 D9 17 80 13 01 00 00 00 00 00 6D [09:57:12]Write i2c OK [09:57:12]MH_I2C_Read... [09:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:12]Read from MH i2c: E2 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 0E 00 [09:57:12]MH_I2C_Read... [09:57:12]Read from MH i2c: E2 0E 00 D9 17 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 05 [09:57:12]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [09:57:12]wFMCommunicate OK [09:57:12]SAM_PROTO_GetShiftState done [09:57:12]FM_GetShiftState done [09:57:12]req_shift_opened done [09:57:12]requested_item shift.open_date is exist - process it [09:57:12]req_shift_open_date [09:57:12]req_shift_open_date done [09:57:12]produce_requested_data done [09:57:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18751,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [09:57:12]process_action_free close_receipt [09:57:12]json_value_free [09:57:12]json_value_free done [09:57:12]process_json_proto returns [09:57:12]Send response to host [09:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18751,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [09:57:12]free response buf [09:57:12]execute_script done [09:57:12]execute_script returns [09:57:12]free content buf [09:57:12]Sock 9.Close socket [09:57:12]Sock 9.Thread stoped [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13: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:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:40:58]accept exits with 8 [10:40:58]New connection [10:40:58]New thread 3067272548 created [10:40:58]Thread 3067129188 joined [10:40:58]Waiting for new connection... [10:40:58] Sock 8.Parse request [10:40:58]Sock 8.Check first char [10:40:58]Sock 8.First char is OK [10:40:58]request: POST /json_proto HTTP/1.0 [10:40:58]Method: POST [10:40:58]URL: /json_proto [10:40:58]Method is POST - this is cgi request [10:40:58]url: /json_proto [10:40:58]query_string will be loaded in cgi processing [10:40:58]execute_cgi json_proto POST (null) [10:40:58]execute_cgi path=json_proto method=POST [10:40:58]POST find Content-Length [10:40:58]Host: 172.17.62.196:8080 [10:40:58]Content-Length: 1088 [10:40:58]Content-Type: application/json [10:40:58] [10:40:58]POST finish read [10:40:58]Found Content-Length = 1088 [10:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16673", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 2.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:58]execute_script... [10:40:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16673", "tax_sys" : 0, "items" : [ { "code": "4700001610043", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 1,5\u043B \u041F\u042D\u0422", "price" : 325.00, "quantity" : 2.000, "sum" : 650.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:58]POST & json_proto [10:40:58]process_json_proto [10:40:58]json parsed OK: [10:40:58]protocol is kg_v1.0 [10:40:58]action value=close_receipt [10:40:58]process_action close_receipt [10:40:58]cmd_close_receipt [10:40:58]MH_GetDate [10:40:58]Write to MH i2c: F0 00 00 DA 17 E0 [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: F0 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: F0 09 00 [10:40:58]MH_I2C_Read... [10:40:58]Read from MH i2c: F0 09 00 DA 17 00 C0 45 F1 66 CE CC 0E 66 53 [10:40:58]GetLastDocTimeStamp 1727085433 [10:40:58]current date 1727088064 [10:40:58]FM_GetShiftState [10:40:58]SAM_PROTO_GetShiftState [10:40:58]wFMCommunicate request_size=4 [10:40:58]MH_SAM_APDU [10:40:58]CAPDU: 80 13 01 00 [10:40:58]Write to MH i2c: E2 08 00 DB 17 80 13 01 00 00 00 00 00 6F [10:40:58]Write i2c OK [10:40:58]MH_I2C_Read... [10:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:59]Read from MH i2c: E2 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 0E 00 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 0E 00 DB 17 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 07 [10:40:59]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:40:59]wFMCommunicate OK [10:40:59]SAM_PROTO_GetShiftState done [10:40:59]FM_GetShiftState done [10:40:59]opened in 1727050372 [10:40:59]opened+sec_in_day 1727136772 [10:40:59]quantity*price = 65000 [10:40:59]sum+1 = 65001 [10:40:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.87 НДС 12% : 70.52 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 28 23.09.2024 10:41 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18752 ФПД: 196856258702121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104104&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18752&fm=196856258702121&tin=02508201610067®Number=0000000000152968&sum=66400 0 [10:41:00]StoreToDocumentArchive [10:41:00]shift 181 fd 18752 [10:41:00]save to /storage/0181/doc_00018752 [10:41:00]save last doc name /storage/0181/doc_00018752 to /storage/kkm_last_doc_name [10:41:00]save OK [10:41:00]Clear old archive folders... [10:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=389 [10:41:00]tlvbuf is 001CA0F0 [10:41:00]SAM_PROTO_ClearQueue [10:41:00]wFMCommunicate request_size=4 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 09 00 00 [10:41:00]Write to MH i2c: E2 08 00 E8 17 80 09 00 00 00 00 00 00 71 [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:00]Read from MH i2c: E2 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 E8 17 00 90 00 73 [10:41:00]RAPDU: 90 00 [10:41:00]wFMCommunicate OK [10:41:00]SAM_PROTO_ClearQueue done [10:41:00]KKMCreateOFDPacket [10:41:00]OFDProtocolAddRootSTLVToBuf [10:41:00]FM_MakeSignedData [10:41:00]FM_MakeSignedData [10:41:00]SAM_PROTO_SignData [10:41:00]wFMCommunicate request_size=4 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 0D 01 02 [10:41:00]Write to MH i2c: E2 08 00 E9 17 80 0D 01 02 00 00 00 00 79 [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:00]Read from MH i2c: E2 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [10:41:00]RAPDU: 90 00 [10:41:00]wFMCommunicate OK [10:41:00]wFMCommunicate request_size=255 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [10:41:00]Write to MH i2c: E2 02 01 EA 17 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 2F [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:00]Read from MH i2c: E2 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 EA 17 00 90 00 75 [10:41:00]RAPDU: 90 00 [10:41:00]wFMCommunicate OK [10:41:00]wFMCommunicate request_size=148 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 45 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 40 49 00 00 35 04 06 00 B3 0A 2B 5F 2B 29 [10:41:00]Write to MH i2c: E2 97 00 EB 17 80 0D 02 02 8F 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 45 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 40 49 00 00 35 04 06 00 B3 0A 2B 5F 2B 29 00 00 7D [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:00]Read from MH i2c: E2 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 03 00 EB 17 00 90 00 76 [10:41:00]RAPDU: 90 00 [10:41:00]wFMCommunicate OK [10:41:00]wFMCommunicate request_size=4 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 0D 03 02 [10:41:00]Write to MH i2c: E2 08 00 EC 17 80 0D 03 02 00 00 00 00 7E [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:00]Read from MH i2c: E2 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 0B 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 0B 00 EC 17 00 05 9B 98 0A 99 4A FC FC 90 00 9C [10:41:00]RAPDU: 05 9B 98 0A 99 4A FC FC 90 00 [10:41:00]wFMCommunicate OK [10:41:00]SAM_PROTO_SignData done [10:41:00]FM_MakeSignedData done [10:41:00]CreateOFDProtocolMessage [10:41:00]wFMCommunicate request_size=4 [10:41:00]MH_SAM_APDU [10:41:00]CAPDU: 80 11 00 00 [10:41:00]Write to MH i2c: E2 08 00 ED 17 80 11 00 00 00 00 00 00 7E [10:41:00]Write i2c OK [10:41:00]MH_I2C_Read... [10:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:00]Read from MH i2c: E2 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 17 00 [10:41:00]MH_I2C_Read... [10:41:00]Read from MH i2c: E2 17 00 ED 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D7 [10:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:41:00]wFMCommunicate OK [10:41:00]CreateOFDProtocolMessage done [10:41:00]OFDSenderStorePacket 18752 [10:41:00]StoreOFDPacket docnum=18752 [10:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 99 01 00 00 1F A3 91 01 F1 17 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 45 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 40 49 00 00 35 04 06 00 B3 0A 2B 5F 2B 29 05 9B 98 0A 99 4A FC FC [10:41:00]CheckFolder [10:41:00]dirname=/storage/ofd_packets [10:41:00]CheckFolder done [10:41:00]ProducePacketName [10:41:00]name=ofd_packets/00018752 [10:41:00]NVStorageSaveData ofd_packets/00018752 [10:41:00]File name is /storage/ofd_packets/00018752 [10:41:00]Write 439 bytes [10:41:00]NVStorageSaveData done [10:41:00]OFDSenderStorePacket done [10:41:00]KKMCreateOFDPacket done [10:41:01]NVStorageSaveData kkm_last_timestamp [10:41:01]File name is /storage/kkm_last_timestamp [10:41:01]Write 4 bytes [10:41:01]NVStorageSaveData done [10:41:01]ExternCall_PrintAddStr [10:41:01]wPrintStart [10:41:01]Write to MH i2c: 01 00 00 EE 17 05 [10:41:01]OFD Sender: Processing packet 18752 [packets to send 7, broken 6] [10:41:01]ProducePacketName [10:41:01]name=ofd_packets/00018752 [10:41:01]OFD Sender: To server: pG, [10:41:01]CommunicateWithHost lk.salyk.kg:30040 [10:41:01]ConnectInit lk.salyk.kg [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: 01 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: 01 07 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: 01 07 00 EE 17 00 00 00 00 00 FF 0F 1A [10:41:01]RasterBufferAndPrint [10:41:01]line Счет N : (3)16673 [10:41:01]line ИНН: 02508201610067 [10:41:01]line Контрольно-Кассовый Чек [10:41:01]line ПРОДАЖА [10:41:01]line Товар: 4700001610043 [10:41:01]line Пиво Арпа 1,5л ПЭТ [10:41:01]line 2.000 * 325.00 [10:41:01]line = 650.00 [10:41:01]line НДС 12% НСП 1% [10:41:01]line > о реализуемом товаре [10:41:01]line Товар: 2000053020015 [10:41:01]line Бумажные стаканы 250мл 1шт [10:41:01]line 2.000 * 7.00 [10:41:01]line = 14.00 [10:41:01]line НДС 12% НСП 1% [10:41:01]line > о реализуемом товаре [10:41:01]line ИТОГО: 664.00 [10:41:01]line НСП 1% : 5.87 [10:41:01]line НДС 12% : 70.52 [10:41:01]line Наличными: 0.00 [10:41:01]line Безнал.: 664.00 [10:41:01]line Место: АЗС № 176 "Партнер Нефть" [10:41:01]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [10:41:01]line СНО: Общий режим [10:41:01]line Чек 28 23.09.2024 10:41 [10:41:01]line Смена: 181 ФФД: 1.0 [10:41:01]line ЗНМ: 0300000010 [10:41:01]line РНМ: 0000000000152968 [10:41:01]line Версия ККМ: v1.0 [10:41:01]line Платежная система: O! деньги [10:41:01]line ФМ: 0000000000959456 [10:41:01]line ФД: 18752 [10:41:01]line ФПД: 196856258702121 [10:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T104104&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18752&fm=196856258702121&tin=02508201610067®Number=0000000000152968&sum=66400 [10:41:01]line 0 [10:41:01]written 0, free lines is 4095 [10:41:01]Write to MH i2c: 01 00 00 1F 18 37 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: 01 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: 01 07 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: 01 07 00 1F 18 00 00 00 00 00 8E 0C D8 [10:41:01]RasterBufferAndPrint [10:41:01]line [10:41:01]line [10:41:01]line [10:41:01]line [10:41:01]line [10:41:01]written 0, free lines is 3220 [10:41:01]MH_Cut [10:41:01]Write to MH i2c: D1 01 00 26 18 01 10 [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: D1 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: D1 01 00 [10:41:01]MH_I2C_Read... [10:41:01]Read from MH i2c: D1 01 00 26 18 00 0F [10:41:01]Write to MH i2c: 01 00 00 27 18 3F [10:41:01]Write i2c OK [10:41:01]MH_I2C_Read... [10:41:02]*** Cut start [10:41:02]*** Partial cut [10:41:02]*** CUTSNS_PIN = 1 [10:41:02]*** CUTSNS_PIN = 0 [10:41:02]*** Brake cut motor [10:41:02]Read from MH i2c: 01 [10:41:02]MH_I2C_Read... [10:41:02]*** Stop cut motor [10:41:02]*** Cut end [10:41:02]Read from MH i2c: 01 07 00 [10:41:02]MH_I2C_Read... [10:41:02]Read from MH i2c: 01 07 00 27 18 00 00 00 00 00 FF 0F 54 [10:41:02]process_action close_receipt done [10:41:02]requested_data is exist [10:41:02]produce_requested_data [10:41:02]requested_item fm.sn is exist - process it [10:41:02]wFMCommunicate request_size=4 [10:41:02]MH_SAM_APDU [10:41:02]CAPDU: 80 11 00 00 [10:41:02]Write to MH i2c: E2 08 00 28 18 80 11 00 00 00 00 00 00 BA [10:41:02]Write i2c OK [10:41:02]MH_I2C_Read... [10:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:03]Read from MH i2c: E2 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 17 00 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 17 00 28 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 13 [10:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:41:03]wFMCommunicate OK [10:41:03]requested_item fd.num is exist - process it [10:41:03]SAM_PROTO_GetFieldsCounters [10:41:03]wFMCommunicate request_size=4 [10:41:03]MH_SAM_APDU [10:41:03]CAPDU: 80 13 00 00 [10:41:03]Write to MH i2c: E2 08 00 29 18 80 13 00 00 00 00 00 00 BD [10:41:03]Write i2c OK [10:41:03]MH_I2C_Read... [10:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:03]Read from MH i2c: E2 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 62 00 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 62 00 29 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 40 49 00 00 0E 04 04 00 B5 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 7C [10:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 40 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:03]wFMCommunicate OK [10:41:03]SAM_PROTO_GetFieldsCounters done [10:41:03]requested_item shift.num is exist - process it [10:41:03]requested_item shift.opened is exist - process it [10:41:03]req_shift_opened [10:41:03]FM_GetShiftState [10:41:03]SAM_PROTO_GetShiftState [10:41:03]wFMCommunicate request_size=4 [10:41:03]MH_SAM_APDU [10:41:03]CAPDU: 80 13 01 00 [10:41:03]Write to MH i2c: E2 08 00 2A 18 80 13 01 00 00 00 00 00 BF [10:41:03]Write i2c OK [10:41:03]MH_I2C_Read... [10:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:03]Read from MH i2c: E2 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 0E 00 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 0E 00 2A 18 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 57 [10:41:03]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:41:03]wFMCommunicate OK [10:41:03]SAM_PROTO_GetShiftState done [10:41:03]FM_GetShiftState done [10:41:03]req_shift_opened done [10:41:03]requested_item shift.open_date is exist - process it [10:41:03]req_shift_open_date [10:41:03]req_shift_open_date done [10:41:03]produce_requested_data done [10:41:03]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18752,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [10:41:03]process_action_free close_receipt [10:41:03]json_value_free [10:41:03]json_value_free done [10:41:03]process_json_proto returns [10:41:03]Send response to host [10:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18752,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [10:41:03]free response buf [10:41:03]execute_script done [10:41:03]execute_script returns [10:41:03]free content buf [10:41:03]Sock 8.Close socket [10:41:03]Sock 8.Thread stoped [10:43:12]ConnectInit Can't connect to host [10:43:12]CommunicateWithHost connect error [10:43:12]CommunicateWithHost err = -1 [10:43:12]OFD Sender: Server communicate error [10:43:17]OFD Sender: Processing packet 18752 [packets to send 7, broken 6] [10:43:17]ProducePacketName [10:43:17]name=ofd_packets/00018752 [10:43:17]OFD Sender: To server: pG, [10:43:17]CommunicateWithHost lk.salyk.kg:30040 [10:43:17]ConnectInit lk.salyk.kg [10:43:17]Connected sock=8 [10:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 99 01 00 00 1F A3 91 01 F1 17 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 E8 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 45 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 40 49 00 00 35 04 06 00 B3 0A 2B 5F 2B 29 05 9B 98 0A 99 4A FC FC [10:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9A 8A 47 00 81 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 35 39 34 35 36 10 04 04 00 40 49 00 00 F4 03 04 00 AD EF F0 66 B6 04 01 00 00 37 0F 65 9F 3C 89 64 F6 [10:43:17]CommunicateWithHost err = 0 [10:43:17]CheckOFDResponse [10:43:17]1017 (14) - 77093643461234 [10:43:17]1041 (16) - 0000000000959456 [10:43:17]1040 (4) - 18752 [10:43:17]1012 (4) - 23.09.2024 04:33 [10:43:17]1206 (1) - 0 [10:43:17]OFD Sender: Remove packet 18752 [10:43:17]ProducePacketName [10:43:17]name=ofd_packets/00018752 [10:43:17]NVStorageDeleteData [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:33]accept exits with 9 [10:52:33]New connection [10:52:33]New thread 3067129188 created [10:52:33]Thread 3067272548 joined [10:52:33]Waiting for new connection... [10:52:33] Sock 9.Parse request [10:52:33]Sock 9.Check first char [10:52:33]Sock 9.First char is OK [10:52:33]request: POST /json_proto HTTP/1.0 [10:52:33]Method: POST [10:52:33]URL: /json_proto [10:52:33]Method is POST - this is cgi request [10:52:33]url: /json_proto [10:52:33]query_string will be loaded in cgi processing [10:52:33]execute_cgi json_proto POST (null) [10:52:33]execute_cgi path=json_proto method=POST [10:52:33]POST find Content-Length [10:52:33]Host: 172.17.62.196:8080 [10:52:33]Content-Length: 670 [10:52:33]Content-Type: application/json [10:52:33] [10:52:33]POST finish read [10:52:33]Found Content-Length = 670 [10:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16674", "tax_sys" : 0, "items" : [ { "code": "4823077629136", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 LACMI 90 \u0433\u0440", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:33]execute_script... [10:52:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16674", "tax_sys" : 0, "items" : [ { "code": "4823077629136", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 LACMI 90 \u0433\u0440", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:33]POST & json_proto [10:52:33]process_json_proto [10:52:33]json parsed OK: [10:52:33]protocol is kg_v1.0 [10:52:33]action value=close_receipt [10:52:33]process_action close_receipt [10:52:33]cmd_close_receipt [10:52:33]MH_GetDate [10:52:33]Write to MH i2c: F0 00 00 2B 18 32 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: F0 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: F0 09 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: F0 09 00 2B 18 00 77 48 F1 66 CE CC 0E 66 5F [10:52:33]GetLastDocTimeStamp 1727088064 [10:52:33]current date 1727088759 [10:52:33]FM_GetShiftState [10:52:33]SAM_PROTO_GetShiftState [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 13 01 00 [10:52:33]Write to MH i2c: E2 08 00 2C 18 80 13 01 00 00 00 00 00 C1 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0E 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0E 00 2C 18 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 59 [10:52:33]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_GetShiftState done [10:52:33]FM_GetShiftState done [10:52:33]opened in 1727050372 [10:52:33]opened+sec_in_day 1727136772 [10:52:33]quantity*price = 26000 [10:52:33]sum+1 = 26001 [10:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 29 23.09.2024 10:52 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18753 ФПД: 155886797626143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105239&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18753&fm=155886797626143&tin=02508201610067®Number=0000000000152968&sum=26000 0 [10:52:34]StoreToDocumentArchive [10:52:34]shift 181 fd 18753 [10:52:34]save to /storage/0181/doc_00018753 [10:52:34]save last doc name /storage/0181/doc_00018753 to /storage/kkm_last_doc_name [10:52:34]save OK [10:52:34]Clear old archive folders... [10:52:34]ProcessDocumentItem done err = 0, tmpTLVsize=287 [10:52:34]tlvbuf is B6F0F320 [10:52:34]SAM_PROTO_ClearQueue [10:52:34]wFMCommunicate request_size=4 [10:52:34]MH_SAM_APDU [10:52:34]CAPDU: 80 09 00 00 [10:52:34]Write to MH i2c: E2 08 00 39 18 80 09 00 00 00 00 00 00 C3 [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:34]Read from MH i2c: E2 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: E2 03 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: E2 03 00 39 18 00 90 00 C5 [10:52:34]RAPDU: 90 00 [10:52:34]wFMCommunicate OK [10:52:34]SAM_PROTO_ClearQueue done [10:52:34]KKMCreateOFDPacket [10:52:34]OFDProtocolAddRootSTLVToBuf [10:52:34]FM_MakeSignedData [10:52:34]FM_MakeSignedData [10:52:34]SAM_PROTO_SignData [10:52:34]wFMCommunicate request_size=4 [10:52:34]MH_SAM_APDU [10:52:34]CAPDU: 80 0D 01 02 [10:52:34]Write to MH i2c: E2 08 00 3A 18 80 0D 01 02 00 00 00 00 CB [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:34]Read from MH i2c: E2 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: E2 03 00 [10:52:34]MH_I2C_Read... [10:52:34]Read from MH i2c: E2 03 00 3A 18 00 90 00 C6 [10:52:34]RAPDU: 90 00 [10:52:34]wFMCommunicate OK [10:52:34]wFMCommunicate request_size=255 [10:52:34]MH_SAM_APDU [10:52:34]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 77 48 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [10:52:34]Write to MH i2c: E2 02 01 3B 18 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 77 48 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 5F [10:52:34]Write i2c OK [10:52:34]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 3B 18 00 90 00 C7 [10:52:35]RAPDU: 90 00 [10:52:35]wFMCommunicate OK [10:52:35]wFMCommunicate request_size=46 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 41 49 00 00 35 04 06 00 8D C7 39 32 9B 1F [10:52:35]Write to MH i2c: E2 31 00 3C 18 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 41 49 00 00 35 04 06 00 8D C7 39 32 9B 1F 00 00 6C [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 3C 18 00 90 00 C8 [10:52:35]RAPDU: 90 00 [10:52:35]wFMCommunicate OK [10:52:35]wFMCommunicate request_size=4 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 0D 03 02 [10:52:35]Write to MH i2c: E2 08 00 3D 18 80 0D 03 02 00 00 00 00 D0 [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 0B 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 0B 00 3D 18 00 6D FB B9 99 93 92 19 13 90 00 DC [10:52:35]RAPDU: 6D FB B9 99 93 92 19 13 90 00 [10:52:35]wFMCommunicate OK [10:52:35]SAM_PROTO_SignData done [10:52:35]FM_MakeSignedData done [10:52:35]CreateOFDProtocolMessage [10:52:35]wFMCommunicate request_size=4 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 11 00 00 [10:52:35]Write to MH i2c: E2 08 00 3E 18 80 11 00 00 00 00 00 00 D0 [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 17 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 17 00 3E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 29 [10:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:52:35]wFMCommunicate OK [10:52:35]CreateOFDProtocolMessage done [10:52:35]OFDSenderStorePacket 18753 [10:52:35]StoreOFDPacket docnum=18753 [10:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 57 B2 2B 01 09 2C 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 77 48 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 41 49 00 00 35 04 06 00 8D C7 39 32 9B 1F 6D FB B9 99 93 92 19 13 [10:52:35]CheckFolder [10:52:35]dirname=/storage/ofd_packets [10:52:35]CheckFolder done [10:52:35]ProducePacketName [10:52:35]name=ofd_packets/00018753 [10:52:35]NVStorageSaveData ofd_packets/00018753 [10:52:35]File name is /storage/ofd_packets/00018753 [10:52:35]Write 337 bytes [10:52:35]NVStorageSaveData done [10:52:35]OFDSenderStorePacket done [10:52:35]KKMCreateOFDPacket done [10:52:35]NVStorageSaveData kkm_last_timestamp [10:52:35]File name is /storage/kkm_last_timestamp [10:52:35]Write 4 bytes [10:52:35]NVStorageSaveData done [10:52:35]OFD Sender: Processing packet 18753 [packets to send 7, broken 6] [10:52:35]ProducePacketName [10:52:35]name=ofd_packets/00018753 [10:52:35]OFD Sender: To server: pG, [10:52:35]CommunicateWithHost lk.salyk.kg:30040 [10:52:35]ConnectInit lk.salyk.kg [10:52:35]ExternCall_PrintAddStr [10:52:35]wPrintStart [10:52:35]Write to MH i2c: 01 00 00 3F 18 57 [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: 01 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: 01 07 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: 01 07 00 3F 18 00 00 00 00 00 FF 0F 6C [10:52:35]RasterBufferAndPrint [10:52:35]line Счет N : (3)16674 [10:52:35]line ИНН: 02508201610067 [10:52:35]line Контрольно-Кассовый Чек [10:52:35]line ПРОДАЖА [10:52:35]line Товар: 4823077629136 [10:52:35]line Шоколад молочный LACMI 90 гр [10:52:35]line 2.000 * 130.00 [10:52:35]line = 260.00 [10:52:35]line НДС 12% НСП 1% [10:52:35]line > о реализуемом товаре [10:52:35]line ИТОГО: 260.00 [10:52:35]line НСП 1% : 2.30 [10:52:35]line НДС 12% : 27.61 [10:52:35]line Наличными: 260.00 [10:52:35]line Безнал.: 0.00 [10:52:35]line Место: АЗС № 176 "Партнер Нефть" [10:52:35]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [10:52:35]line СНО: Общий режим [10:52:35]line Чек 29 23.09.2024 10:52 [10:52:35]line Смена: 181 ФФД: 1.0 [10:52:35]line ЗНМ: 0300000010 [10:52:35]line РНМ: 0000000000152968 [10:52:35]line Версия ККМ: v1.0 [10:52:35]line ФМ: 0000000000959456 [10:52:35]line ФД: 18753 [10:52:35]line ФПД: 155886797626143 [10:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105239&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18753&fm=155886797626143&tin=02508201610067®Number=0000000000152968&sum=26000 [10:52:35]line 0 [10:52:35]Connected sock=11 [10:52:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 57 B2 2B 01 09 2C 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 39 31 33 36 06 04 2D 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 4C 41 43 4D 49 20 39 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 77 48 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 41 49 00 00 35 04 06 00 8D C7 39 32 9B 1F 6D FB B9 99 93 92 19 13 [10:52:35]written 0, free lines is 4095 [10:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 30 5E 47 00 03 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 35 39 34 35 36 10 04 04 00 41 49 00 00 F4 03 04 00 DB F1 F0 66 B6 04 01 00 00 08 20 EA 28 DA 08 B9 7D [10:52:36]CommunicateWithHost err = 0 [10:52:36]CheckOFDResponse [10:52:36]1017 (14) - 77093643461234 [10:52:36]1041 (16) - 0000000000959456 [10:52:36]1040 (4) - 18753 [10:52:36]1012 (4) - 23.09.2024 04:43 [10:52:36]1206 (1) - 0 [10:52:36]OFD Sender: Remove packet 18753 [10:52:36]ProducePacketName [10:52:36]name=ofd_packets/00018753 [10:52:36]NVStorageDeleteData [10:52:36]Write to MH i2c: 01 00 00 68 18 80 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 07 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 07 00 68 18 00 00 00 00 00 01 0D 95 [10:52:36]RasterBufferAndPrint [10:52:36]line [10:52:36]line [10:52:36]line [10:52:36]line [10:52:36]line [10:52:36]written 0, free lines is 3338 [10:52:36]MH_Cut [10:52:36]Write to MH i2c: D1 01 00 6F 18 01 59 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: D1 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: D1 01 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: D1 01 00 6F 18 00 58 [10:52:36]Write to MH i2c: 01 00 00 70 18 88 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]OFD Sender: No OFD packet to send [10:52:36]*** Cut start [10:52:36]*** Partial cut [10:52:36]*** CUTSNS_PIN = 1 [10:52:36]*** CUTSNS_PIN = 0 [10:52:37]*** Brake cut motor [10:52:37]Read from MH i2c: 01 [10:52:37]MH_I2C_Read... [10:52:37]*** Stop cut motor [10:52:37]*** Cut end [10:52:37]Read from MH i2c: 01 07 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 FF 0F 9D [10:52:37]process_action close_receipt done [10:52:37]requested_data is exist [10:52:37]produce_requested_data [10:52:37]requested_item fm.sn is exist - process it [10:52:37]wFMCommunicate request_size=4 [10:52:37]MH_SAM_APDU [10:52:37]CAPDU: 80 11 00 00 [10:52:37]Write to MH i2c: E2 08 00 71 18 80 11 00 00 00 00 00 00 03 [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:37]Read from MH i2c: E2 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 17 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 17 00 71 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5C [10:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:52:37]wFMCommunicate OK [10:52:37]requested_item fd.num is exist - process it [10:52:37]SAM_PROTO_GetFieldsCounters [10:52:37]wFMCommunicate request_size=4 [10:52:37]MH_SAM_APDU [10:52:37]CAPDU: 80 13 00 00 [10:52:37]Write to MH i2c: E2 08 00 72 18 80 13 00 00 00 00 00 00 06 [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:37]Read from MH i2c: E2 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 62 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 62 00 72 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 41 49 00 00 0E 04 04 00 B5 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 C9 [10:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 41 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:37]wFMCommunicate OK [10:52:37]SAM_PROTO_GetFieldsCounters done [10:52:37]requested_item shift.num is exist - process it [10:52:37]requested_item shift.opened is exist - process it [10:52:37]req_shift_opened [10:52:37]FM_GetShiftState [10:52:37]SAM_PROTO_GetShiftState [10:52:37]wFMCommunicate request_size=4 [10:52:37]MH_SAM_APDU [10:52:37]CAPDU: 80 13 01 00 [10:52:37]Write to MH i2c: E2 08 00 73 18 80 13 01 00 00 00 00 00 08 [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:37]Read from MH i2c: E2 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 0E 00 73 18 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 A0 [10:52:37]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:52:37]wFMCommunicate OK [10:52:37]SAM_PROTO_GetShiftState done [10:52:37]FM_GetShiftState done [10:52:37]req_shift_opened done [10:52:37]requested_item shift.open_date is exist - process it [10:52:37]req_shift_open_date [10:52:37]req_shift_open_date done [10:52:37]produce_requested_data done [10:52:37]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18753,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [10:52:37]process_action_free close_receipt [10:52:37]json_value_free [10:52:37]json_value_free done [10:52:37]process_json_proto returns [10:52:37]Send response to host [10:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18753,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [10:52:37]free response buf [10:52:37]execute_script done [10:52:37]execute_script returns [10:52:37]free content buf [10:52:37]Sock 9.Close socket [10:52:37]Sock 9.Thread stoped [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:24]accept exits with 8 [10:57:24]New connection [10:57:24]New thread 3067272548 created [10:57:24]Thread 3067129188 joined [10:57:24]Waiting for new connection... [10:57:24] Sock 8.Parse request [10:57:24]Sock 8.Check first char [10:57:24]Sock 8.First char is OK [10:57:24]request: POST /json_proto HTTP/1.0 [10:57:24]Method: POST [10:57:24]URL: /json_proto [10:57:24]Method is POST - this is cgi request [10:57:24]url: /json_proto [10:57:24]query_string will be loaded in cgi processing [10:57:24]execute_cgi json_proto POST (null) [10:57:24]execute_cgi path=json_proto method=POST [10:57:24]POST find Content-Length [10:57:24]Host: 172.17.62.196:8080 [10:57:24]Content-Length: 828 [10:57:24]Content-Type: application/json [10:57:24] [10:57:24]POST finish read [10:57:24]Found Content-Length = 828 [10:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16675", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:24]execute_script... [10: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 : (3)16675", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:24]POST & json_proto [10:57:24]process_json_proto [10:57:24]json parsed OK: [10:57:24]protocol is kg_v1.0 [10:57:24]action value=close_receipt [10:57:24]process_action close_receipt [10:57:24]cmd_close_receipt [10:57:24]MH_GetDate [10:57:24]Write to MH i2c: F0 00 00 74 18 7B [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: F0 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: F0 09 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: F0 09 00 74 18 00 9A 49 F1 66 CE CC 0E 66 CC [10:57:24]GetLastDocTimeStamp 1727088759 [10:57:24]current date 1727089050 [10:57:24]FM_GetShiftState [10:57:24]SAM_PROTO_GetShiftState [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 13 01 00 [10:57:24]Write to MH i2c: E2 08 00 75 18 80 13 01 00 00 00 00 00 0A [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0E 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0E 00 75 18 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 A2 [10:57:24]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_GetShiftState done [10:57:24]FM_GetShiftState done [10:57:24]opened in 1727050372 [10:57:24]opened+sec_in_day 1727136772 [10:57:24]quantity*price = 12500 [10:57:24]sum+1 = 12501 [10:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 30 23.09.2024 10:57 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18754 ФПД: 171350560897854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105730&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18754&fm=171350560897854&tin=02508201610067®Number=0000000000152968&sum=12500 0 [10:57:25]StoreToDocumentArchive [10:57:25]shift 181 fd 18754 [10:57:25]save to /storage/0181/doc_00018754 [10:57:25]save last doc name /storage/0181/doc_00018754 to /storage/kkm_last_doc_name [10:57:25]save OK [10:57:25]Clear old archive folders... [10:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=284 [10:57:25]tlvbuf is 00243430 [10:57:25]SAM_PROTO_ClearQueue [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 09 00 00 [10:57:25]Write to MH i2c: E2 08 00 82 18 80 09 00 00 00 00 00 00 0C [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 82 18 00 90 00 0E [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]SAM_PROTO_ClearQueue done [10:57:25]KKMCreateOFDPacket [10:57:25]OFDProtocolAddRootSTLVToBuf [10:57:25]FM_MakeSignedData [10:57:25]FM_MakeSignedData [10:57:25]SAM_PROTO_SignData [10:57:25]wFMCommunicate request_size=4 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 01 02 [10:57:25]Write to MH i2c: E2 08 00 83 18 80 0D 01 02 00 00 00 00 14 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 03 00 83 18 00 90 00 0F [10:57:25]RAPDU: 90 00 [10:57:25]wFMCommunicate OK [10:57:25]wFMCommunicate request_size=255 [10:57:25]MH_SAM_APDU [10:57:25]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [10:57:25]Write to MH i2c: E2 02 01 84 18 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 C9 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 84 18 00 90 00 10 [10:57:26]RAPDU: 90 00 [10:57:26]wFMCommunicate OK [10:57:26]wFMCommunicate request_size=43 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 42 49 00 00 35 04 06 00 9B D7 A9 50 7B 3E [10:57:26]Write to MH i2c: E2 2E 00 85 18 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 42 49 00 00 35 04 06 00 9B D7 A9 50 7B 3E 00 00 B4 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 03 00 85 18 00 90 00 11 [10:57:26]RAPDU: 90 00 [10:57:26]wFMCommunicate OK [10:57:26]wFMCommunicate request_size=4 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 0D 03 02 [10:57:26]Write to MH i2c: E2 08 00 86 18 80 0D 03 02 00 00 00 00 19 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 0B 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 0B 00 86 18 00 57 EC 5B 58 2C 46 71 DF 90 00 D2 [10:57:26]RAPDU: 57 EC 5B 58 2C 46 71 DF 90 00 [10:57:26]wFMCommunicate OK [10:57:26]SAM_PROTO_SignData done [10:57:26]FM_MakeSignedData done [10:57:26]CreateOFDProtocolMessage [10:57:26]wFMCommunicate request_size=4 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 11 00 00 [10:57:26]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 17 00 [10:57:26]MH_I2C_Read... [10:57:26]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 35 39 34 35 36 90 00 72 [10:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:57:26]wFMCommunicate OK [10:57:26]CreateOFDProtocolMessage done [10:57:26]OFDSenderStorePacket 18754 [10:57:26]StoreOFDPacket docnum=18754 [10:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 81 75 28 01 E0 AE 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 42 49 00 00 35 04 06 00 9B D7 A9 50 7B 3E 57 EC 5B 58 2C 46 71 DF [10:57:26]CheckFolder [10:57:26]dirname=/storage/ofd_packets [10:57:26]CheckFolder done [10:57:26]ProducePacketName [10:57:26]name=ofd_packets/00018754 [10:57:26]NVStorageSaveData ofd_packets/00018754 [10:57:26]File name is /storage/ofd_packets/00018754 [10:57:26]Write 334 bytes [10:57:26]NVStorageSaveData done [10:57:26]OFDSenderStorePacket done [10:57:26]KKMCreateOFDPacket done [10:57:26]NVStorageSaveData kkm_last_timestamp [10:57:26]File name is /storage/kkm_last_timestamp [10:57:26]Write 4 bytes [10:57:26]NVStorageSaveData done [10:57:26]ExternCall_PrintAddStr [10:57:26]wPrintStart [10:57:26]Write to MH i2c: 01 00 00 88 18 A0 [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 88 18 00 00 00 00 00 FF 0F B5 [10:57:26]RasterBufferAndPrint [10:57:26]line Счет N : (3)16675 [10:57:26]line ИНН: 02508201610067 [10:57:26]line Контрольно-Кассовый Чек [10:57:26]line ПРОДАЖА [10:57:26]line Товар: 2000036190018 [10:57:26]line Кофе Американо XL(GABB TRADE) [10:57:26]line 1.000 * 125.00 [10:57:26]line = 125.00 [10:57:26]line НДС 12% НСП 1% [10:57:26]line > о реализуемом товаре [10:57:26]line ИТОГО: 125.00 [10:57:26]line НСП 1% : 1.11 [10:57:26]line НДС 12% : 13.27 [10:57:26]line Наличными: 0.00 [10:57:26]line Безнал.: 125.00 [10:57:26]line Место: АЗС № 176 "Партнер Нефть" [10:57:26]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [10:57:26]line СНО: Общий режим [10:57:26]line Чек 30 23.09.2024 10:57 [10:57:26]line Смена: 181 ФФД: 1.0 [10:57:26]line ЗНМ: 0300000010 [10:57:26]line РНМ: 0000000000152968 [10:57:26]line Версия ККМ: v1.0 [10:57:26]line Платежная система: Бакай Банк [10:57:26]line ФМ: 0000000000959456 [10:57:26]line ФД: 18754 [10:57:26]line ФПД: 171350560897854 [10:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105730&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18754&fm=171350560897854&tin=02508201610067®Number=0000000000152968&sum=12500 [10:57:26]line 0 [10:57:26]OFD Sender: Processing packet 18754 [packets to send 7, broken 6] [10:57:26]ProducePacketName [10:57:26]name=ofd_packets/00018754 [10:57:26]OFD Sender: To server: pG, [10:57:26]CommunicateWithHost lk.salyk.kg:30040 [10:57:26]ConnectInit lk.salyk.kg [10:57:26]written 0, free lines is 4095 [10:57:26]Connected sock=10 [10:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 81 75 28 01 E0 AE 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 9A 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 42 49 00 00 35 04 06 00 9B D7 A9 50 7B 3E 57 EC 5B 58 2C 46 71 DF [10:57:27]Write to MH i2c: 01 00 00 B3 18 CB [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 07 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 F2 0C D0 [10:57:27]RasterBufferAndPrint [10:57:27]line [10:57:27]line [10:57:27]line [10:57:27]line [10:57:27]line [10:57:27]written 0, free lines is 3322 [10:57:27]MH_Cut [10:57:27]Write to MH i2c: D1 01 00 BA 18 01 A4 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: D1 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: D1 01 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: D1 01 00 BA 18 00 A3 [10:57:27]Write to MH i2c: 01 00 00 BB 18 D3 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 50 4F 47 00 C9 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 35 39 34 35 36 10 04 04 00 42 49 00 00 F4 03 04 00 FE F2 F0 66 B6 04 01 00 00 D0 50 A8 B5 E7 7F D7 8D [10:57:27]CommunicateWithHost err = 0 [10:57:27]CheckOFDResponse [10:57:27]1017 (14) - 77093643461234 [10:57:27]1041 (16) - 0000000000959456 [10:57:27]1040 (4) - 18754 [10:57:27]1012 (4) - 23.09.2024 04:47 [10:57:27]1206 (1) - 0 [10:57:27]OFD Sender: Remove packet 18754 [10:57:27]ProducePacketName [10:57:27]name=ofd_packets/00018754 [10:57:27]NVStorageDeleteData [10:57:27]OFD Sender: No OFD packet to send [10:57:27]*** Cut start [10:57:27]*** Partial cut [10:57:27]*** CUTSNS_PIN = 1 [10:57:27]*** CUTSNS_PIN = 0 [10:57:28]*** Brake cut motor [10:57:28]Read from MH i2c: 01 [10:57:28]MH_I2C_Read... [10:57:28]*** Stop cut motor [10:57:28]*** Cut end [10:57:28]Read from MH i2c: 01 07 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 FF 0F E8 [10:57:28]process_action close_receipt done [10:57:28]requested_data is exist [10:57:28]produce_requested_data [10:57:28]requested_item fm.sn is exist - process it [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 11 00 00 [10:57:28]Write to MH i2c: E2 08 00 BC 18 80 11 00 00 00 00 00 00 4E [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 17 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 17 00 BC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A7 [10:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:57:28]wFMCommunicate OK [10:57:28]requested_item fd.num is exist - process it [10:57:28]SAM_PROTO_GetFieldsCounters [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 13 00 00 [10:57:28]Write to MH i2c: E2 08 00 BD 18 80 13 00 00 00 00 00 00 51 [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 62 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 62 00 BD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 42 49 00 00 0E 04 04 00 B5 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 18 [10: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 42 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:28]wFMCommunicate OK [10:57:28]SAM_PROTO_GetFieldsCounters done [10:57:28]requested_item shift.num is exist - process it [10:57:28]requested_item shift.opened is exist - process it [10:57:28]req_shift_opened [10:57:28]FM_GetShiftState [10:57:28]SAM_PROTO_GetShiftState [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 13 01 00 [10:57:28]Write to MH i2c: E2 08 00 BE 18 80 13 01 00 00 00 00 00 53 [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 BE 18 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 EB [10:57:28]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:57:28]wFMCommunicate OK [10:57:28]SAM_PROTO_GetShiftState done [10:57:28]FM_GetShiftState done [10:57:28]req_shift_opened done [10:57:28]requested_item shift.open_date is exist - process it [10:57:28]req_shift_open_date [10:57:28]req_shift_open_date done [10:57:28]produce_requested_data done [10:57:28]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18754,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [10:57:28]process_action_free close_receipt [10:57:28]json_value_free [10:57:28]json_value_free done [10:57:28]process_json_proto returns [10:57:28]Send response to host [10:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18754,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [10:57:28]free response buf [10:57:28]execute_script done [10:57:28]execute_script returns [10:57:28]free content buf [10:57:28]Sock 8.Close socket [10:57:28]Sock 8.Thread stoped [10:57:29]accept exits with 9 [10:57:29]New connection [10:57:29]New thread 3067129188 created [10:57:29]Thread 3067272548 joined [10:57:29]Waiting for new connection... [10:57:29] Sock 9.Parse request [10:57:29]Sock 9.Check first char [10:57:29]Sock 9.First char is OK [10:57:29]request: POST /json_proto HTTP/1.0 [10:57:29]Method: POST [10:57:29]URL: /json_proto [10:57:29]Method is POST - this is cgi request [10:57:29]url: /json_proto [10:57:29]query_string will be loaded in cgi processing [10:57:29]execute_cgi json_proto POST (null) [10:57:29]execute_cgi path=json_proto method=POST [10:57:29]POST find Content-Length [10:57:29]Host: 172.17.62.196:8080 [10:57:29]Content-Length: 682 [10:57:29]Content-Type: application/json [10:57:29] [10:57:29]POST finish read [10:57:29]Found Content-Length = 682 [10:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 6.610, "sum" : 500.38, "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:57:29]execute_script... [10:57: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)116154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 6.610, "sum" : 500.38, "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:57:29]POST & json_proto [10:57:29]process_json_proto [10:57:29]json parsed OK: [10:57:29]protocol is kg_v1.0 [10:57:29]action value=close_receipt [10:57:29]process_action close_receipt [10:57:29]cmd_close_receipt [10:57:29]MH_GetDate [10:57:29]Write to MH i2c: F0 00 00 BF 18 C6 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 09 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: F0 09 00 BF 18 00 9E 49 F1 66 CE CC 0E 66 1B [10:57:29]GetLastDocTimeStamp 1727089050 [10:57:29]current date 1727089054 [10:57:29]FM_GetShiftState [10:57:29]SAM_PROTO_GetShiftState [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 13 01 00 [10:57:29]Write to MH i2c: E2 08 00 C0 18 80 13 01 00 00 00 00 00 55 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 0E 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 0E 00 C0 18 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 ED [10:57:29]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:57:29]wFMCommunicate OK [10:57:29]SAM_PROTO_GetShiftState done [10:57:29]FM_GetShiftState done [10:57:29]opened in 1727050372 [10:57:29]opened+sec_in_day 1727136772 [10:57:29]quantity*price = 50037 [10:57:29]sum+1 = 50039 [10:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 31 23.09.2024 10:57 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18755 ФПД: 125922296239488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105734&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18755&fm=125922296239488&tin=02508201610067®Number=0000000000152968&sum=50000 [10:57:30]StoreToDocumentArchive [10:57:30]shift 181 fd 18755 [10:57:30]save to /storage/0181/doc_00018755 [10:57:30]save last doc name /storage/0181/doc_00018755 to /storage/kkm_last_doc_name [10:57:30]save OK [10:57:30]Clear old archive folders... [10:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:57:30]tlvbuf is 00241840 [10:57:30]SAM_PROTO_ClearQueue [10:57:30]wFMCommunicate request_size=4 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 09 00 00 [10:57:30]Write to MH i2c: E2 08 00 CD 18 80 09 00 00 00 00 00 00 57 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 CD 18 00 90 00 59 [10:57:30]RAPDU: 90 00 [10:57:30]wFMCommunicate OK [10:57:30]SAM_PROTO_ClearQueue done [10:57:30]KKMCreateOFDPacket [10:57:30]OFDProtocolAddRootSTLVToBuf [10:57:30]FM_MakeSignedData [10:57:30]FM_MakeSignedData [10:57:30]SAM_PROTO_SignData [10:57:30]wFMCommunicate request_size=4 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 0D 01 02 [10:57:30]Write to MH i2c: E2 08 00 CE 18 80 0D 01 02 00 00 00 00 5F [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [10:57:30]RAPDU: 90 00 [10:57:30]wFMCommunicate OK [10:57:30]wFMCommunicate request_size=255 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 19 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 76 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 9E 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 43 49 00 00 35 04 06 00 [10:57:30]Write to MH i2c: E2 02 01 CF 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 19 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 76 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 9E 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 43 49 00 00 35 04 06 00 00 00 D9 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:30]Read from MH i2c: E2 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [10:57:30]RAPDU: 90 00 [10:57:30]wFMCommunicate OK [10:57:30]wFMCommunicate request_size=11 [10:57:30]MH_SAM_APDU [10:57:30]CAPDU: 80 0D 02 02 06 72 86 91 BC 95 80 [10:57:30]Write to MH i2c: E2 0E 00 D0 18 80 0D 02 02 06 00 72 86 91 BC 95 80 00 00 C8 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [10:57:31]RAPDU: 90 00 [10:57:31]wFMCommunicate OK [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 0D 03 02 [10:57:31]Write to MH i2c: E2 08 00 D1 18 80 0D 03 02 00 00 00 00 64 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0B 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 0B 00 D1 18 00 60 1C A1 24 72 15 E1 E4 90 00 F2 [10:57:31]RAPDU: 60 1C A1 24 72 15 E1 E4 90 00 [10:57:31]wFMCommunicate OK [10:57:31]SAM_PROTO_SignData done [10:57:31]FM_MakeSignedData done [10:57:31]CreateOFDProtocolMessage [10:57:31]wFMCommunicate request_size=4 [10:57:31]MH_SAM_APDU [10:57:31]CAPDU: 80 11 00 00 [10:57:31]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:31]Read from MH i2c: E2 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: E2 17 00 [10:57:31]MH_I2C_Read... [10:57:31]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 35 39 34 35 36 90 00 BD [10:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:57:31]wFMCommunicate OK [10:57:31]CreateOFDProtocolMessage done [10:57:31]OFDSenderStorePacket 18755 [10:57:31]StoreOFDPacket docnum=18755 [10:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 71 99 08 01 37 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 19 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 76 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 9E 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 43 49 00 00 35 04 06 00 72 86 91 BC 95 80 60 1C A1 24 72 15 E1 E4 [10:57:31]CheckFolder [10:57:31]dirname=/storage/ofd_packets [10:57:31]CheckFolder done [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00018755 [10:57:31]NVStorageSaveData ofd_packets/00018755 [10:57:31]File name is /storage/ofd_packets/00018755 [10:57:31]Write 302 bytes [10:57:31]NVStorageSaveData done [10:57:31]OFDSenderStorePacket done [10:57:31]KKMCreateOFDPacket done [10:57:31]NVStorageSaveData kkm_last_timestamp [10:57:31]File name is /storage/kkm_last_timestamp [10:57:31]Write 4 bytes [10:57:31]NVStorageSaveData done [10:57:31]ExternCall_PrintAddStr [10:57:31]wPrintStart [10:57:31]Write to MH i2c: 01 00 00 D3 18 EB [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 D3 18 00 00 00 00 00 FF 0F 00 [10:57:31]RasterBufferAndPrint [10:57:31]line Счет N : (1)116154 [10:57:31]line ИНН: 02508201610067 [10:57:31]line Контрольно-Кассовый Чек [10:57:31]line ПРОДАЖА [10:57:31]line ТРК (МРК, ГНК) : 31 [10:57:31]line Товар: 2710194210 [10:57:31]line ДТ(л)-К-5 [10:57:31]line 6.610 * 75.70 [10:57:31]line = 500.38 [10:57:31]line НДС 12% НСП 1% [10:57:31]line > о реализуемом товаре [10:57:31]line ОКРУГЛЕНИЕ: -0.38 [10:57:31]line ИТОГО: 500.00 [10:57:31]line Внесено: 500.00 [10:57:31]line СДАЧА: 0.00 [10:57:31]line НСП 1% : 4.43 [10:57:31]line НДС 12% : 53.14 [10:57:31]line Наличными: 500.00 [10:57:31]line Безнал.: 0.00 [10:57:31]line Место: АЗС № 176 "Партнер Нефть" [10:57:31]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [10:57:31]line СНО: Общий режим [10:57:31]line Чек 31 23.09.2024 10:57 [10:57:31]line Смена: 181 ФФД: 1.0 [10:57:31]line ЗНМ: 0300000010 [10:57:31]line РНМ: 0000000000152968 [10:57:31]line Версия ККМ: v1.0 [10:57:31]line ФМ: 0000000000959456 [10:57:31]line ФД: 18755 [10:57:31]line ФПД: 125922296239488 [10:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T105734&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18755&fm=125922296239488&tin=02508201610067®Number=0000000000152968&sum=50000 [10:57:31]written 0, free lines is 4095 [10:57:31]OFD Sender: Processing packet 18755 [packets to send 7, broken 6] [10:57:31]ProducePacketName [10:57:31]name=ofd_packets/00018755 [10:57:31]OFD Sender: To server: pG, [10:57:31]CommunicateWithHost lk.salyk.kg:30040 [10:57:31]ConnectInit lk.salyk.kg [10:57:31]Connected sock=10 [10:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 71 99 08 01 37 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D2 19 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 76 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1F 00 00 00 F4 03 04 00 9E 49 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 43 49 00 00 35 04 06 00 72 86 91 BC 95 80 60 1C A1 24 72 15 E1 E4 [10:57:31]Write to MH i2c: 01 00 00 FE 18 16 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 FB 0C 24 [10:57:31]RasterBufferAndPrint [10:57:31]line [10:57:31]line [10:57:31]line [10:57:31]line [10:57:31]line [10:57:31]written 0, free lines is 3332 [10:57:31]MH_Cut [10:57:31]Write to MH i2c: D1 01 00 05 19 01 F0 [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: D1 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: D1 01 00 [10:57:31]MH_I2C_Read... [10:57:31]Read from MH i2c: D1 01 00 05 19 00 EF [10:57:31]Write to MH i2c: 01 00 00 06 19 1F [10:57:31]Write i2c OK [10:57:31]MH_I2C_Read... [10:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 57 27 47 00 28 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 35 39 34 35 36 10 04 04 00 43 49 00 00 F4 03 04 00 03 F3 F0 66 B6 04 01 00 00 55 46 7E B4 A8 18 C9 98 [10:57:32]CommunicateWithHost err = 0 [10:57:32]CheckOFDResponse [10:57:32]1017 (14) - 77093643461234 [10:57:32]1041 (16) - 0000000000959456 [10:57:32]1040 (4) - 18755 [10:57:32]1012 (4) - 23.09.2024 04:48 [10:57:32]1206 (1) - 0 [10:57:32]OFD Sender: Remove packet 18755 [10:57:32]ProducePacketName [10:57:32]name=ofd_packets/00018755 [10:57:32]NVStorageDeleteData [10:57:32]OFD Sender: No OFD packet to send [10:57:32]*** Cut start [10:57:32]*** Partial cut [10:57:32]*** CUTSNS_PIN = 1 [10:57:32]*** CUTSNS_PIN = 0 [10:57:32]*** Brake cut motor [10:57:33]Read from MH i2c: 01 [10:57:33]MH_I2C_Read... [10:57:33]*** Stop cut motor [10:57:33]*** Cut end [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 06 19 00 00 00 00 00 FF 0F 34 [10:57:33]process_action close_receipt done [10:57:33]requested_data is exist [10:57:33]produce_requested_data [10:57:33]requested_item fm.sn is exist - process it [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 11 00 00 [10:57:33]Write to MH i2c: E2 08 00 07 19 80 11 00 00 00 00 00 00 9A [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 07 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F3 [10:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [10:57:33]wFMCommunicate OK [10:57:33]requested_item fd.num is exist - process it [10:57:33]SAM_PROTO_GetFieldsCounters [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 13 00 00 [10:57:33]Write to MH i2c: E2 08 00 08 19 80 13 00 00 00 00 00 00 9D [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:33]Read from MH i2c: E2 62 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 62 00 08 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 43 49 00 00 0E 04 04 00 B5 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 68 [10:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 43 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_GetFieldsCounters done [10:57:33]requested_item shift.num is exist - process it [10:57:33]requested_item shift.opened is exist - process it [10:57:33]req_shift_opened [10:57:33]FM_GetShiftState [10:57:33]SAM_PROTO_GetShiftState [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 13 01 00 [10:57:33]Write to MH i2c: E2 08 00 09 19 80 13 01 00 00 00 00 00 9F [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0E 00 09 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 37 [10:57:33]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_GetShiftState done [10:57:33]FM_GetShiftState done [10:57:33]req_shift_opened done [10:57:33]requested_item shift.open_date is exist - process it [10:57:33]req_shift_open_date [10:57:33]req_shift_open_date done [10:57:33]produce_requested_data done [10:57:33]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18755,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [10:57:33]process_action_free close_receipt [10:57:33]json_value_free [10:57:33]json_value_free done [10:57:33]process_json_proto returns [10:57:33]Send response to host [10:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18755,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [10:57:33]free response buf [10:57:33]execute_script done [10:57:33]execute_script returns [10:57:33]free content buf [10:57:33]Sock 9.Close socket [10:57:33]Sock 9.Thread stoped [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [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:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:01]accept exits with 8 [11:07:01]New connection [11:07:01]New thread 3067272548 created [11:07:01]Thread 3067129188 joined [11:07:01]Waiting for new connection... [11:07:01] Sock 8.Parse request [11:07:01]Sock 8.Check first char [11:07:01]Sock 8.First char is OK [11:07:01]request: POST /json_proto HTTP/1.0 [11:07:01]Method: POST [11:07:01]URL: /json_proto [11:07:01]Method is POST - this is cgi request [11:07:01]url: /json_proto [11:07:01]query_string will be loaded in cgi processing [11:07:01]execute_cgi json_proto POST (null) [11:07:01]execute_cgi path=json_proto method=POST [11:07:01]POST find Content-Length [11:07:01]Host: 172.17.62.196:8080 [11:07:01]Content-Length: 629 [11:07:01]Content-Type: application/json [11:07:01] [11:07:01]POST finish read [11:07:01]Found Content-Length = 629 [11:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16676", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:01]execute_script... [11:07:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16676", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:01]POST & json_proto [11:07:01]process_json_proto [11:07:01]json parsed OK: [11:07:01]protocol is kg_v1.0 [11:07:01]action value=close_receipt [11:07:01]process_action close_receipt [11:07:01]cmd_close_receipt [11:07:01]MH_GetDate [11:07:01]Write to MH i2c: F0 00 00 0A 19 12 [11:07:01]Write i2c OK [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: F0 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: F0 09 00 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: F0 09 00 0A 19 00 DB 4B F1 66 CE CC 0E 66 A6 [11:07:01]GetLastDocTimeStamp 1727089054 [11:07:01]current date 1727089627 [11:07:01]FM_GetShiftState [11:07:01]SAM_PROTO_GetShiftState [11:07:01]wFMCommunicate request_size=4 [11:07:01]MH_SAM_APDU [11:07:01]CAPDU: 80 13 01 00 [11:07:01]Write to MH i2c: E2 08 00 0B 19 80 13 01 00 00 00 00 00 A1 [11:07:01]Write i2c OK [11:07:01]MH_I2C_Read... [11:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:01]Read from MH i2c: E2 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 0E 00 [11:07:01]MH_I2C_Read... [11:07:01]Read from MH i2c: E2 0E 00 0B 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 39 [11:07:01]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:07:01]wFMCommunicate OK [11:07:01]SAM_PROTO_GetShiftState done [11:07:01]FM_GetShiftState done [11:07:01]opened in 1727050372 [11:07:01]opened+sec_in_day 1727136772 [11:07:01]quantity*price = 5000 [11:07:01]sum+1 = 5001 [11:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 32 23.09.2024 11:07 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18756 ФПД: 108601775569428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110707&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18756&fm=108601775569428&tin=02508201610067®Number=0000000000152968&sum=5000 0 [11:07:02]StoreToDocumentArchive [11:07:02]shift 181 fd 18756 [11:07:02]save to /storage/0181/doc_00018756 [11:07:02]save last doc name /storage/0181/doc_00018756 to /storage/kkm_last_doc_name [11:07:02]save OK [11:07:02]Clear old archive folders... [11:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:07:02]tlvbuf is B6EF6C50 [11:07:02]SAM_PROTO_ClearQueue [11:07:02]wFMCommunicate request_size=4 [11:07:02]MH_SAM_APDU [11:07:02]CAPDU: 80 09 00 00 [11:07:02]Write to MH i2c: E2 08 00 18 19 80 09 00 00 00 00 00 00 A3 [11:07:02]Write i2c OK [11:07:02]MH_I2C_Read... [11:07:02]OFD Sender: No OFD packet to send [11:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:03]Read from MH i2c: E2 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 18 19 00 90 00 A5 [11:07:03]RAPDU: 90 00 [11:07:03]wFMCommunicate OK [11:07:03]SAM_PROTO_ClearQueue done [11:07:03]KKMCreateOFDPacket [11:07:03]OFDProtocolAddRootSTLVToBuf [11:07:03]FM_MakeSignedData [11:07:03]FM_MakeSignedData [11:07:03]SAM_PROTO_SignData [11:07:03]wFMCommunicate request_size=4 [11:07:03]MH_SAM_APDU [11:07:03]CAPDU: 80 0D 01 02 [11:07:03]Write to MH i2c: E2 08 00 19 19 80 0D 01 02 00 00 00 00 AB [11:07:03]Write i2c OK [11:07:03]MH_I2C_Read... [11:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:03]Read from MH i2c: E2 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 19 19 00 90 00 A6 [11:07:03]RAPDU: 90 00 [11:07:03]wFMCommunicate OK [11:07:03]wFMCommunicate request_size=255 [11:07:03]MH_SAM_APDU [11:07:03]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DB 4B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [11:07:03]Write to MH i2c: E2 02 01 1A 19 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DB 4B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 1B [11:07:03]Write i2c OK [11:07:03]MH_I2C_Read... [11:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:03]Read from MH i2c: E2 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 1A 19 00 90 00 A7 [11:07:03]RAPDU: 90 00 [11:07:03]wFMCommunicate OK [11:07:03]wFMCommunicate request_size=28 [11:07:03]MH_SAM_APDU [11:07:03]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 44 49 00 00 35 04 06 00 62 C5 D2 41 3A 14 [11:07:03]Write to MH i2c: E2 1F 00 1B 19 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 44 49 00 00 35 04 06 00 62 C5 D2 41 3A 14 00 00 55 [11:07:03]Write i2c OK [11:07:03]MH_I2C_Read... [11:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:03]Read from MH i2c: E2 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 03 00 1B 19 00 90 00 A8 [11:07:03]RAPDU: 90 00 [11:07:03]wFMCommunicate OK [11:07:03]wFMCommunicate request_size=4 [11:07:03]MH_SAM_APDU [11:07:03]CAPDU: 80 0D 03 02 [11:07:03]Write to MH i2c: E2 08 00 1C 19 80 0D 03 02 00 00 00 00 B0 [11:07:03]Write i2c OK [11:07:03]MH_I2C_Read... [11:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:03]Read from MH i2c: E2 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 0B 00 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 0B 00 1C 19 00 4F B2 33 34 84 28 19 E8 90 00 C6 [11:07:03]RAPDU: 4F B2 33 34 84 28 19 E8 90 00 [11:07:03]wFMCommunicate OK [11:07:03]SAM_PROTO_SignData done [11:07:03]FM_MakeSignedData done [11:07:03]CreateOFDProtocolMessage [11:07:03]wFMCommunicate request_size=4 [11:07:03]MH_SAM_APDU [11:07:03]CAPDU: 80 11 00 00 [11:07:03]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [11:07:03]Write i2c OK [11:07:03]MH_I2C_Read... [11:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:03]Read from MH i2c: E2 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: E2 17 00 [11:07:03]MH_I2C_Read... [11:07:03]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 35 39 34 35 36 90 00 09 [11:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:07:03]wFMCommunicate OK [11:07:03]CreateOFDProtocolMessage done [11:07:03]OFDSenderStorePacket 18756 [11:07:03]StoreOFDPacket docnum=18756 [11:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 F1 03 19 01 B0 BC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DB 4B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 44 49 00 00 35 04 06 00 62 C5 D2 41 3A 14 4F B2 33 34 84 28 19 E8 [11:07:03]CheckFolder [11:07:03]dirname=/storage/ofd_packets [11:07:03]CheckFolder done [11:07:03]ProducePacketName [11:07:03]name=ofd_packets/00018756 [11:07:03]NVStorageSaveData ofd_packets/00018756 [11:07:03]File name is /storage/ofd_packets/00018756 [11:07:03]Write 319 bytes [11:07:03]NVStorageSaveData done [11:07:03]OFDSenderStorePacket done [11:07:03]KKMCreateOFDPacket done [11:07:03]NVStorageSaveData kkm_last_timestamp [11:07:03]File name is /storage/kkm_last_timestamp [11:07:03]Write 4 bytes [11:07:03]NVStorageSaveData done [11:07:03]ExternCall_PrintAddStr [11:07:03]wPrintStart [11:07:03]Write to MH i2c: 01 00 00 1E 19 37 [11:07:03]Write i2c OK [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: 01 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: 01 07 00 [11:07:03]MH_I2C_Read... [11:07:03]Read from MH i2c: 01 07 00 1E 19 00 00 00 00 00 FF 0F 4C [11:07:03]RasterBufferAndPrint [11:07:03]line Счет N : (3)16676 [11:07:03]line ИНН: 02508201610067 [11:07:03]line Контрольно-Кассовый Чек [11:07:03]line ПРОДАЖА [11:07:03]line Товар: 4700000160358 [11:07:03]line Вода Легенда 1л [11:07:03]line 1.000 * 50.00 [11:07:03]line = 50.00 [11:07:03]line НДС 12% НСП 1% [11:07:03]line > о реализуемом товаре [11:07:03]line ИТОГО: 50.00 [11:07:03]line НСП 1% : 0.44 [11:07:03]line НДС 12% : 5.31 [11:07:03]line Наличными: 50.00 [11:07:03]line Безнал.: 0.00 [11:07:03]line Место: АЗС № 176 "Партнер Нефть" [11:07:03]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:07:03]line СНО: Общий режим [11:07:03]line Чек 32 23.09.2024 11:07 [11:07:03]line Смена: 181 ФФД: 1.0 [11:07:03]line ЗНМ: 0300000010 [11:07:03]line РНМ: 0000000000152968 [11:07:03]line Версия ККМ: v1.0 [11:07:03]line ФМ: 0000000000959456 [11:07:03]line ФД: 18756 [11:07:03]line ФПД: 108601775569428 [11:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T110707&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18756&fm=108601775569428&tin=02508201610067®Number=0000000000152968&sum=5000 [11:07:03]line 0 [11:07:03]OFD Sender: Processing packet 18756 [packets to send 7, broken 6] [11:07:03]ProducePacketName [11:07:03]name=ofd_packets/00018756 [11:07:03]OFD Sender: To server: pG, [11:07:03]CommunicateWithHost lk.salyk.kg:30040 [11:07:03]ConnectInit lk.salyk.kg [11:07:03]written 0, free lines is 4095 [11:07:04]Connected sock=9 [11:07:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 F1 03 19 01 B0 BC 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 DB 4B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 44 49 00 00 35 04 06 00 62 C5 D2 41 3A 14 4F B2 33 34 84 28 19 E8 [11:07:04]Write to MH i2c: 01 00 00 46 19 5F [11:07:04]Write i2c OK [11:07:04]MH_I2C_Read... [11:07:04]Read from MH i2c: 01 [11:07:04]MH_I2C_Read... [11:07:04]Read from MH i2c: 01 07 00 [11:07:04]MH_I2C_Read... [11:07:04]Read from MH i2c: 01 07 00 46 19 00 00 00 00 00 05 0D 78 [11:07:04]RasterBufferAndPrint [11:07:04]line [11:07:04]line [11:07:04]line [11:07:04]line [11:07:04]line [11:07:04]written 0, free lines is 3342 [11:07:04]MH_Cut [11:07:04]Write to MH i2c: D1 01 00 4D 19 01 38 [11:07:04]Write i2c OK [11:07:04]MH_I2C_Read... [11:07:04]Read from MH i2c: D1 [11:07:04]MH_I2C_Read... [11:07:04]Read from MH i2c: D1 01 00 [11:07:04]MH_I2C_Read... [11:07:04]Read from MH i2c: D1 01 00 4D 19 00 37 [11:07:04]Write to MH i2c: 01 00 00 4E 19 67 [11:07:04]Write i2c OK [11:07:04]MH_I2C_Read... [11:07:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 32 A5 47 00 9B AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 44 49 00 00 F4 03 04 00 3F F5 F0 66 B6 04 01 00 00 E3 A6 26 3F 6B 82 9D 7F [11:07:04]CommunicateWithHost err = 0 [11:07:04]CheckOFDResponse [11:07:04]1017 (14) - 77093643461234 [11:07:04]1041 (16) - 0000000000959456 [11:07:04]1040 (4) - 18756 [11:07:04]1012 (4) - 23.09.2024 04:57 [11:07:04]1206 (1) - 0 [11:07:04]OFD Sender: Remove packet 18756 [11:07:04]ProducePacketName [11:07:04]name=ofd_packets/00018756 [11:07:04]NVStorageDeleteData [11:07:04]OFD Sender: No OFD packet to send [11:07:04]*** Cut start [11:07:04]*** Partial cut [11:07:04]*** CUTSNS_PIN = 1 [11:07:04]*** CUTSNS_PIN = 0 [11:07:05]*** Brake cut motor [11:07:05]Read from MH i2c: 01 [11:07:05]MH_I2C_Read... [11:07:05]*** Stop cut motor [11:07:05]*** Cut end [11:07:05]Read from MH i2c: 01 07 00 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: 01 07 00 4E 19 00 00 00 00 00 FF 0F 7C [11:07:05]process_action close_receipt done [11:07:05]requested_data is exist [11:07:05]produce_requested_data [11:07:05]requested_item fm.sn is exist - process it [11:07:05]wFMCommunicate request_size=4 [11:07:05]MH_SAM_APDU [11:07:05]CAPDU: 80 11 00 00 [11:07:05]Write to MH i2c: E2 08 00 4F 19 80 11 00 00 00 00 00 00 E2 [11:07:05]Write i2c OK [11:07:05]MH_I2C_Read... [11:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:05]Read from MH i2c: E2 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 17 00 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 17 00 4F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3B [11:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:07:05]wFMCommunicate OK [11:07:05]requested_item fd.num is exist - process it [11:07:05]SAM_PROTO_GetFieldsCounters [11:07:05]wFMCommunicate request_size=4 [11:07:05]MH_SAM_APDU [11:07:05]CAPDU: 80 13 00 00 [11:07:05]Write to MH i2c: E2 08 00 50 19 80 13 00 00 00 00 00 00 E5 [11:07:05]Write i2c OK [11:07:05]MH_I2C_Read... [11:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:05]Read from MH i2c: E2 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 62 00 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 62 00 50 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 44 49 00 00 0E 04 04 00 B5 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 B4 [11:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 44 49 00 00 0E 04 04 00 B5 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 [11:07:05]wFMCommunicate OK [11:07:05]SAM_PROTO_GetFieldsCounters done [11:07:05]requested_item shift.num is exist - process it [11:07:05]requested_item shift.opened is exist - process it [11:07:05]req_shift_opened [11:07:05]FM_GetShiftState [11:07:05]SAM_PROTO_GetShiftState [11:07:05]wFMCommunicate request_size=4 [11:07:05]MH_SAM_APDU [11:07:05]CAPDU: 80 13 01 00 [11:07:05]Write to MH i2c: E2 08 00 51 19 80 13 01 00 00 00 00 00 E7 [11:07:05]Write i2c OK [11:07:05]MH_I2C_Read... [11:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:05]Read from MH i2c: E2 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 0E 00 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 0E 00 51 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 7F [11:07:05]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:07:05]wFMCommunicate OK [11:07:05]SAM_PROTO_GetShiftState done [11:07:05]FM_GetShiftState done [11:07:05]req_shift_opened done [11:07:05]requested_item shift.open_date is exist - process it [11:07:05]req_shift_open_date [11:07:05]req_shift_open_date done [11:07:05]produce_requested_data done [11:07:05]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18756,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [11:07:05]process_action_free close_receipt [11:07:05]json_value_free [11:07:05]json_value_free done [11:07:05]process_json_proto returns [11:07:05]Send response to host [11:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18756,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [11:07:05]free response buf [11:07:05]execute_script done [11:07:05]execute_script returns [11:07:05]free content buf [11:07:05]Sock 8.Close socket [11:07:05]Sock 8.Thread stoped [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:54]accept exits with 10 [11:19:54]New connection [11:19:54]New thread 3067129188 created [11:19:54]Thread 3067272548 joined [11:19:54]Waiting for new connection... [11:19:54] Sock 10.Parse request [11:19:54]Sock 10.Check first char [11:19:54]Sock 10.First char is OK [11:19:54]request: POST /json_proto HTTP/1.0 [11:19:54]Method: POST [11:19:54]URL: /json_proto [11:19:54]Method is POST - this is cgi request [11:19:54]url: /json_proto [11:19:54]query_string will be loaded in cgi processing [11:19:54]execute_cgi json_proto POST (null) [11:19:54]execute_cgi path=json_proto method=POST [11:19:54]POST find Content-Length [11:19:54]Host: 172.17.62.196:8080 [11:19:54]Content-Length: 904 [11:19:54]Content-Type: application/json [11:19:54] [11:19:54]POST finish read [11:19:54]Found Content-Length = 904 [11:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16677", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:54]execute_script... [11:19:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16677", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:54]POST & json_proto [11:19:54]process_json_proto [11:19:54]json parsed OK: [11:19:54]protocol is kg_v1.0 [11:19:54]action value=close_receipt [11:19:54]process_action close_receipt [11:19:54]cmd_close_receipt [11:19:54]MH_GetDate [11:19:54]Write to MH i2c: F0 00 00 52 19 5A [11:19:54]Write i2c OK [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: F0 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: F0 09 00 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: F0 09 00 52 19 00 E0 4E F1 66 CE CC 0E 66 F6 [11:19:54]GetLastDocTimeStamp 1727089627 [11:19:54]current date 1727090400 [11:19:54]FM_GetShiftState [11:19:54]SAM_PROTO_GetShiftState [11:19:54]wFMCommunicate request_size=4 [11:19:54]MH_SAM_APDU [11:19:54]CAPDU: 80 13 01 00 [11:19:54]Write to MH i2c: E2 08 00 53 19 80 13 01 00 00 00 00 00 E9 [11:19:54]Write i2c OK [11:19:54]MH_I2C_Read... [11:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:54]Read from MH i2c: E2 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: E2 0E 00 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: E2 0E 00 53 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 81 [11:19:54]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:19:54]wFMCommunicate OK [11:19:54]SAM_PROTO_GetShiftState done [11:19:54]FM_GetShiftState done [11:19:54]opened in 1727050372 [11:19:54]opened+sec_in_day 1727136772 [11:19:54]quantity*price = 14400 [11:19:54]sum+1 = 14401 [11:19:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521292 Напиток Сок березы 1,2л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 269.00 НСП 1% : 2.38 НДС 12% : 28.56 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 33 23.09.2024 11:20 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18757 ФПД: 131674875579454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112000&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18757&fm=131674875579454&tin=02508201610067®Number=0000000000152968&sum=26900 0 [11:19:56]StoreToDocumentArchive [11:19:56]shift 181 fd 18757 [11:19:56]save to /storage/0181/doc_00018757 [11:19:56]save last doc name /storage/0181/doc_00018757 to /storage/kkm_last_doc_name [11:19:56]save OK [11:19:56]Clear old archive folders... [11:19:56]ProcessDocumentItem done err = 0, tmpTLVsize=387 [11:19:56]tlvbuf is B6EF6A70 [11:19:56]SAM_PROTO_ClearQueue [11:19:56]wFMCommunicate request_size=4 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 09 00 00 [11:19:56]Write to MH i2c: E2 08 00 60 19 80 09 00 00 00 00 00 00 EB [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 60 19 00 90 00 ED [11:19:56]RAPDU: 90 00 [11:19:56]wFMCommunicate OK [11:19:56]SAM_PROTO_ClearQueue done [11:19:56]KKMCreateOFDPacket [11:19:56]OFDProtocolAddRootSTLVToBuf [11:19:56]FM_MakeSignedData [11:19:56]FM_MakeSignedData [11:19:56]SAM_PROTO_SignData [11:19:56]wFMCommunicate request_size=4 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 0D 01 02 [11:19:56]Write to MH i2c: E2 08 00 61 19 80 0D 01 02 00 00 00 00 F3 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 61 19 00 90 00 EE [11:19:56]RAPDU: 90 00 [11:19:56]wFMCommunicate OK [11:19:56]wFMCommunicate request_size=255 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [11:19:56]Write to MH i2c: E2 02 01 62 19 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 08 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 62 19 00 90 00 EF [11:19:56]RAPDU: 90 00 [11:19:56]wFMCommunicate OK [11:19:56]wFMCommunicate request_size=146 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 0D 02 02 8D 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 4E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 45 49 00 00 35 04 06 00 77 C1 F2 2F 4C 3E [11:19:56]Write to MH i2c: E2 95 00 63 19 80 0D 02 02 8D 00 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 4E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 45 49 00 00 35 04 06 00 77 C1 F2 2F 4C 3E 00 00 BC [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 63 19 00 90 00 F0 [11:19:56]RAPDU: 90 00 [11:19:56]wFMCommunicate OK [11:19:56]wFMCommunicate request_size=4 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 0D 03 02 [11:19:56]Write to MH i2c: E2 08 00 64 19 80 0D 03 02 00 00 00 00 F8 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 0B 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 0B 00 64 19 00 BE 12 89 C2 46 64 1C 2F 90 00 09 [11:19:56]RAPDU: BE 12 89 C2 46 64 1C 2F 90 00 [11:19:56]wFMCommunicate OK [11:19:56]SAM_PROTO_SignData done [11:19:56]FM_MakeSignedData done [11:19:56]CreateOFDProtocolMessage [11:19:56]wFMCommunicate request_size=4 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 11 00 00 [11:19:56]Write to MH i2c: E2 08 00 65 19 80 11 00 00 00 00 00 00 F8 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 17 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 17 00 65 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 51 [11:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:19:56]wFMCommunicate OK [11:19:56]CreateOFDProtocolMessage done [11:19:56]OFDSenderStorePacket 18757 [11:19:56]StoreOFDPacket docnum=18757 [11:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 97 01 00 00 F8 5E 8F 01 74 76 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 4E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 45 49 00 00 35 04 06 00 77 C1 F2 2F 4C 3E BE 12 89 C2 46 64 1C 2F [11:19:56]CheckFolder [11:19:56]dirname=/storage/ofd_packets [11:19:56]CheckFolder done [11:19:56]ProducePacketName [11:19:56]name=ofd_packets/00018757 [11:19:56]NVStorageSaveData ofd_packets/00018757 [11:19:56]File name is /storage/ofd_packets/00018757 [11:19:56]Write 437 bytes [11:19:56]NVStorageSaveData done [11:19:56]OFDSenderStorePacket done [11:19:56]KKMCreateOFDPacket done [11:19:56]NVStorageSaveData kkm_last_timestamp [11:19:56]File name is /storage/kkm_last_timestamp [11:19:56]Write 4 bytes [11:19:56]NVStorageSaveData done [11:19:56]ExternCall_PrintAddStr [11:19:56]wPrintStart [11:19:56]Write to MH i2c: 01 00 00 66 19 7F [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: 01 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: 01 07 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: 01 07 00 66 19 00 00 00 00 00 FF 0F 94 [11:19:56]RasterBufferAndPrint [11:19:56]line Счет N : (3)16677 [11:19:56]line ИНН: 02508201610067 [11:19:56]line Контрольно-Кассовый Чек [11:19:56]line ПРОДАЖА [11:19:56]line Товар: 48743587 [11:19:56]line Сигареты Winston XStyle Silver [11:19:56]line 1.000 * 144.00 [11:19:56]line = 144.00 [11:19:56]line НДС 12% НСП 1% [11:19:56]line > о реализуемом товаре [11:19:56]line Товар: 4870202521292 [11:19:57]line Напиток Сок березы 1,2л [11:19:57]line 1.000 * 125.00 [11:19:57]line = 125.00 [11:19:57]line НДС 12% НСП 1% [11:19:57]line > о реализуемом товаре [11:19:57]line ИТОГО: 269.00 [11:19:57]line НСП 1% : 2.38 [11:19:57]line НДС 12% : 28.56 [11:19:57]line Наличными: 269.00 [11:19:57]line Безнал.: 0.00 [11:19:57]line Место: АЗС № 176 "Партнер Нефть" [11:19:57]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:19:57]line СНО: Общий режим [11:19:57]line Чек 33 23.09.2024 11:20 [11:19:57]line Смена: 181 ФФД: 1.0 [11:19:57]line ЗНМ: 0300000010 [11:19:57]line РНМ: 0000000000152968 [11:19:57]line Версия ККМ: v1.0 [11:19:57]line ФМ: 0000000000959456 [11:19:57]line ФД: 18757 [11:19:57]line ФПД: 131674875579454 [11:19:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112000&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18757&fm=131674875579454&tin=02508201610067®Number=0000000000152968&sum=26900 [11:19:57]line 0 [11:19:57]OFD Sender: Processing packet 18757 [packets to send 7, broken 6] [11:19:57]ProducePacketName [11:19:57]name=ofd_packets/00018757 [11:19:57]OFD Sender: To server: pG, [11:19:57]CommunicateWithHost lk.salyk.kg:30040 [11:19:57]ConnectInit lk.salyk.kg [11:19:57]written 0, free lines is 4095 [11:19:57]Connected sock=9 [11:19:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 97 01 00 00 F8 5E 8F 01 74 76 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E0 4E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 45 49 00 00 35 04 06 00 77 C1 F2 2F 4C 3E BE 12 89 C2 46 64 1C 2F [11:19:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A1 27 47 00 20 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 35 39 34 35 36 10 04 04 00 45 49 00 00 F4 03 04 00 45 F8 F0 66 B6 04 01 00 00 1E 34 F4 5C 7B 59 30 EB [11:19:57]CommunicateWithHost err = 0 [11:19:57]CheckOFDResponse [11:19:57]1017 (14) - 77093643461234 [11:19:57]1041 (16) - 0000000000959456 [11:19:57]1040 (4) - 18757 [11:19:57]1012 (4) - 23.09.2024 05:10 [11:19:57]1206 (1) - 0 [11:19:57]OFD Sender: Remove packet 18757 [11:19:57]ProducePacketName [11:19:57]name=ofd_packets/00018757 [11:19:57]NVStorageDeleteData [11:19:57]Write to MH i2c: 01 00 00 95 19 AE [11:19:57]Write i2c OK [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: 01 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: 01 07 00 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: 01 07 00 95 19 00 00 00 00 00 CE 0C 8F [11:19:57]RasterBufferAndPrint [11:19:57]line [11:19:57]line [11:19:57]line [11:19:57]line [11:19:57]line [11:19:57]written 0, free lines is 3287 [11:19:57]MH_Cut [11:19:57]Write to MH i2c: D1 01 00 9C 19 01 87 [11:19:57]Write i2c OK [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: D1 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: D1 01 00 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: D1 01 00 9C 19 00 86 [11:19:57]Write to MH i2c: 01 00 00 9D 19 B6 [11:19:57]Write i2c OK [11:19:57]MH_I2C_Read... [11:19:58]OFD Sender: No OFD packet to send [11:19:58]*** Cut start [11:19:58]*** Partial cut [11:19:58]*** CUTSNS_PIN = 1 [11:19:58]*** CUTSNS_PIN = 0 [11:19:58]*** Brake cut motor [11:19:58]Read from MH i2c: 01 [11:19:58]MH_I2C_Read... [11:19:58]*** Stop cut motor [11:19:58]*** Cut end [11:19:58]Read from MH i2c: 01 07 00 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: 01 07 00 9D 19 00 00 00 00 00 FF 0F CB [11:19:58]process_action close_receipt done [11:19:58]requested_data is exist [11:19:58]produce_requested_data [11:19:58]requested_item fm.sn is exist - process it [11:19:58]wFMCommunicate request_size=4 [11:19:58]MH_SAM_APDU [11:19:58]CAPDU: 80 11 00 00 [11:19:58]Write to MH i2c: E2 08 00 9E 19 80 11 00 00 00 00 00 00 31 [11:19:58]Write i2c OK [11:19:58]MH_I2C_Read... [11:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:58]Read from MH i2c: E2 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 17 00 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 17 00 9E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 8A [11:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:19:58]wFMCommunicate OK [11:19:58]requested_item fd.num is exist - process it [11:19:58]SAM_PROTO_GetFieldsCounters [11:19:58]wFMCommunicate request_size=4 [11:19:58]MH_SAM_APDU [11:19:58]CAPDU: 80 13 00 00 [11:19:58]Write to MH i2c: E2 08 00 9F 19 80 13 00 00 00 00 00 00 34 [11:19:58]Write i2c OK [11:19:58]MH_I2C_Read... [11:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:59]Read from MH i2c: E2 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: E2 62 00 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: E2 62 00 9F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 45 49 00 00 0E 04 04 00 B5 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 [11:19:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 45 49 00 00 0E 04 04 00 B5 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 [11:19:59]wFMCommunicate OK [11:19:59]SAM_PROTO_GetFieldsCounters done [11:19:59]requested_item shift.num is exist - process it [11:19:59]requested_item shift.opened is exist - process it [11:19:59]req_shift_opened [11:19:59]FM_GetShiftState [11:19:59]SAM_PROTO_GetShiftState [11:19:59]wFMCommunicate request_size=4 [11:19:59]MH_SAM_APDU [11:19:59]CAPDU: 80 13 01 00 [11:19:59]Write to MH i2c: E2 08 00 A0 19 80 13 01 00 00 00 00 00 36 [11:19:59]Write i2c OK [11:19:59]MH_I2C_Read... [11:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:59]Read from MH i2c: E2 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: E2 0E 00 [11:19:59]MH_I2C_Read... [11:19:59]Read from MH i2c: E2 0E 00 A0 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 CE [11:19:59]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:19:59]wFMCommunicate OK [11:19:59]SAM_PROTO_GetShiftState done [11:19:59]FM_GetShiftState done [11:19:59]req_shift_opened done [11:19:59]requested_item shift.open_date is exist - process it [11:19:59]req_shift_open_date [11:19:59]req_shift_open_date done [11:19:59]produce_requested_data done [11:19:59]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18757,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [11:19:59]process_action_free close_receipt [11:19:59]json_value_free [11:19:59]json_value_free done [11:19:59]process_json_proto returns [11:19:59]Send response to host [11:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18757,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [11:19:59]free response buf [11:19:59]execute_script done [11:19:59]execute_script returns [11:19:59]free content buf [11:19:59]Sock 10.Close socket [11:19:59]Sock 10.Thread stoped [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24: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:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [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:07]accept exits with 8 [11:26:07]New connection [11:26:07]New thread 3067272548 created [11:26:07]Thread 3067129188 joined [11:26:07]Waiting for new connection... [11:26:07] Sock 8.Parse request [11:26:07]Sock 8.Check first char [11:26:07]Sock 8.First char is OK [11:26:07]request: POST /json_proto HTTP/1.0 [11:26:07]Method: POST [11:26:07]URL: /json_proto [11:26:07]Method is POST - this is cgi request [11:26:07]url: /json_proto [11:26:07]query_string will be loaded in cgi processing [11:26:07]execute_cgi json_proto POST (null) [11:26:07]execute_cgi path=json_proto method=POST [11:26:07]POST find Content-Length [11:26:07]Host: 172.17.62.196:8080 [11:26:07]Content-Length: 812 [11:26:07]Content-Type: application/json [11:26:07] [11:26:07]POST finish read [11:26:07]Found Content-Length = 812 [11:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16678", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:07]execute_script... [11: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 : (3)16678", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:07]POST & json_proto [11:26:07]process_json_proto [11:26:07]json parsed OK: [11:26:07]protocol is kg_v1.0 [11:26:07]action value=close_receipt [11:26:07]process_action close_receipt [11:26:07]cmd_close_receipt [11:26:07]MH_GetDate [11:26:07]Write to MH i2c: F0 00 00 A1 19 A9 [11:26:07]Write i2c OK [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: F0 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: F0 09 00 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: F0 09 00 A1 19 00 55 50 F1 66 CE CC 0E 66 BC [11:26:07]GetLastDocTimeStamp 1727090400 [11:26:07]current date 1727090773 [11:26:07]FM_GetShiftState [11:26:07]SAM_PROTO_GetShiftState [11:26:07]wFMCommunicate request_size=4 [11:26:07]MH_SAM_APDU [11:26:07]CAPDU: 80 13 01 00 [11:26:07]Write to MH i2c: E2 08 00 A2 19 80 13 01 00 00 00 00 00 38 [11:26:07]Write i2c OK [11:26:07]MH_I2C_Read... [11:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:07]Read from MH i2c: E2 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 0E 00 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 0E 00 A2 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D0 [11:26:07]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:26:07]wFMCommunicate OK [11:26:07]SAM_PROTO_GetShiftState done [11:26:07]FM_GetShiftState done [11:26:07]opened in 1727050372 [11:26:07]opened+sec_in_day 1727136772 [11:26:07]quantity*price = 4500 [11:26:07]sum+1 = 4501 [11:26:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 34 23.09.2024 11:26 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18758 ФПД: 30687592774911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112613&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18758&fm=30687592774911&tin=02508201610067®Number=0000000000152968&sum=9000 0 [11:26:09]StoreToDocumentArchive [11:26:09]shift 181 fd 18758 [11:26:09]save to /storage/0181/doc_00018758 [11:26:09]save last doc name /storage/0181/doc_00018758 to /storage/kkm_last_doc_name [11:26:09]save OK [11:26:09]Clear old archive folders... [11:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=364 [11:26:09]tlvbuf is 0021D780 [11:26:09]SAM_PROTO_ClearQueue [11:26:09]wFMCommunicate request_size=4 [11:26:09]MH_SAM_APDU [11:26:09]CAPDU: 80 09 00 00 [11:26:09]Write to MH i2c: E2 08 00 AF 19 80 09 00 00 00 00 00 00 3A [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:09]Read from MH i2c: E2 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 AF 19 00 90 00 3C [11:26:09]RAPDU: 90 00 [11:26:09]wFMCommunicate OK [11:26:09]SAM_PROTO_ClearQueue done [11:26:09]KKMCreateOFDPacket [11:26:09]OFDProtocolAddRootSTLVToBuf [11:26:09]FM_MakeSignedData [11:26:09]FM_MakeSignedData [11:26:09]SAM_PROTO_SignData [11:26:09]wFMCommunicate request_size=4 [11:26:09]MH_SAM_APDU [11:26:09]CAPDU: 80 0D 01 02 [11:26:09]Write to MH i2c: E2 08 00 B0 19 80 0D 01 02 00 00 00 00 42 [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:09]Read from MH i2c: E2 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 B0 19 00 90 00 3D [11:26:09]RAPDU: 90 00 [11:26:09]wFMCommunicate OK [11:26:09]wFMCommunicate request_size=255 [11:26:09]MH_SAM_APDU [11:26:09]CAPDU: 80 0D 02 02 FA 03 00 6C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC [11:26:09]Write to MH i2c: E2 02 01 B1 19 80 0D 02 02 FA 00 03 00 6C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 00 00 1F [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:09]Read from MH i2c: E2 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 B1 19 00 90 00 3E [11:26:09]RAPDU: 90 00 [11:26:09]wFMCommunicate OK [11:26:09]wFMCommunicate request_size=123 [11:26:09]MH_SAM_APDU [11:26:09]CAPDU: 80 0D 02 02 76 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 50 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 46 49 00 00 35 04 06 00 1B E9 03 10 FC FF [11:26:09]Write to MH i2c: E2 7E 00 B2 19 80 0D 02 02 76 00 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 50 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 46 49 00 00 35 04 06 00 1B E9 03 10 FC FF 00 00 39 [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:09]Read from MH i2c: E2 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 03 00 B2 19 00 90 00 3F [11:26:09]RAPDU: 90 00 [11:26:09]wFMCommunicate OK [11:26:09]wFMCommunicate request_size=4 [11:26:09]MH_SAM_APDU [11:26:09]CAPDU: 80 0D 03 02 [11:26:09]Write to MH i2c: E2 08 00 B3 19 80 0D 03 02 00 00 00 00 47 [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:09]Read from MH i2c: E2 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 0B 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 0B 00 B3 19 00 B4 C5 4A E4 44 5E D2 1D 90 00 80 [11:26:09]RAPDU: B4 C5 4A E4 44 5E D2 1D 90 00 [11:26:09]wFMCommunicate OK [11:26:09]SAM_PROTO_SignData done [11:26:09]FM_MakeSignedData done [11:26:09]CreateOFDProtocolMessage [11:26:09]wFMCommunicate request_size=4 [11:26:09]MH_SAM_APDU [11:26:09]CAPDU: 80 11 00 00 [11:26:09]Write to MH i2c: E2 08 00 B4 19 80 11 00 00 00 00 00 00 47 [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:09]Read from MH i2c: E2 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 17 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 17 00 B4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A0 [11:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:26:09]wFMCommunicate OK [11:26:09]CreateOFDProtocolMessage done [11:26:09]OFDSenderStorePacket 18758 [11:26:09]StoreOFDPacket docnum=18758 [11:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 80 01 00 00 94 85 78 01 9E 73 5A 03 01 00 03 00 6C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 50 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 46 49 00 00 35 04 06 00 1B E9 03 10 FC FF B4 C5 4A E4 44 5E D2 1D [11:26:09]CheckFolder [11:26:09]dirname=/storage/ofd_packets [11:26:09]CheckFolder done [11:26:09]ProducePacketName [11:26:09]name=ofd_packets/00018758 [11:26:09]NVStorageSaveData ofd_packets/00018758 [11:26:09]File name is /storage/ofd_packets/00018758 [11:26:09]Write 414 bytes [11:26:09]NVStorageSaveData done [11:26:09]OFDSenderStorePacket done [11:26:09]KKMCreateOFDPacket done [11:26:09]NVStorageSaveData kkm_last_timestamp [11:26:09]File name is /storage/kkm_last_timestamp [11:26:09]Write 4 bytes [11:26:09]NVStorageSaveData done [11:26:09]ExternCall_PrintAddStr [11:26:09]wPrintStart [11:26:09]Write to MH i2c: 01 00 00 B5 19 CE [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: 01 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: 01 07 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: 01 07 00 B5 19 00 00 00 00 00 FF 0F E3 [11:26:09]RasterBufferAndPrint [11:26:09]line Счет N : (3)16678 [11:26:09]line ИНН: 02508201610067 [11:26:09]line Контрольно-Кассовый Чек [11:26:10]line ПРОДАЖА [11:26:10]line Товар: 50173976 [11:26:10]line Жев Orbit Winterfresh под [11:26:10]line 1.000 * 45.00 [11:26:10]line = 45.00 [11:26:10]line НДС 12% НСП 1% [11:26:10]line > о реализуемом товаре [11:26:10]line Товар: 42069942 [11:26:10]line Жев Orbit White Fresh Mint [11:26:10]line 1.000 * 45.00 [11:26:10]line = 45.00 [11:26:10]line НДС 12% НСП 1% [11:26:10]line > о реализуемом товаре [11:26:10]line ИТОГО: 90.00 [11:26:10]line НСП 1% : 0.80 [11:26:10]line НДС 12% : 9.56 [11:26:10]line Наличными: 90.00 [11:26:10]line Безнал.: 0.00 [11:26:10]line Место: АЗС № 176 "Партнер Нефть" [11:26:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:26:10]line СНО: Общий режим [11:26:10]line Чек 34 23.09.2024 11:26 [11:26:10]line Смена: 181 ФФД: 1.0 [11:26:10]line ЗНМ: 0300000010 [11:26:10]line РНМ: 0000000000152968 [11:26:10]line Версия ККМ: v1.0 [11:26:10]line ФМ: 0000000000959456 [11:26:10]line ФД: 18758 [11:26:10]line ФПД: 30687592774911 [11:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T112613&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18758&fm=30687592774911&tin=02508201610067®Number=0000000000152968&sum=9000 [11:26:10]OFD Sender: Processing packet 18758 [packets to send 7, broken 6] [11:26:10]ProducePacketName [11:26:10]name=ofd_packets/00018758 [11:26:10]OFD Sender: To server: pG, [11:26:10]CommunicateWithHost lk.salyk.kg:30040 [11:26:10]ConnectInit lk.salyk.kg [11:26:10]line 0 [11:26:10]written 0, free lines is 4095 [11:26:10]Connected sock=10 [11:26:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 80 01 00 00 94 85 78 01 9E 73 5A 03 01 00 03 00 6C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 50 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 46 49 00 00 35 04 06 00 1B E9 03 10 FC FF B4 C5 4A E4 44 5E D2 1D [11:26:10]Write to MH i2c: 01 00 00 E3 19 FC [11:26:10]Write i2c OK [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: 01 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: 01 07 00 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: 01 07 00 E3 19 00 00 00 00 00 B3 0C C2 [11:26:10]RasterBufferAndPrint [11:26:10]line [11:26:10]line [11:26:10]line [11:26:10]line [11:26:10]line [11:26:10]written 0, free lines is 3256 [11:26:10]MH_Cut [11:26:10]Write to MH i2c: D1 01 00 EA 19 01 D5 [11:26:10]Write i2c OK [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: D1 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: D1 01 00 [11:26:10]MH_I2C_Read... [11:26:10]Read from MH i2c: D1 01 00 EA 19 00 D4 [11:26:10]Write to MH i2c: 01 00 00 EB 19 04 [11:26:10]Write i2c OK [11:26:10]MH_I2C_Read... [11:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 7E EA 47 00 04 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 35 39 34 35 36 10 04 04 00 46 49 00 00 F4 03 04 00 BA F9 F0 66 B6 04 01 00 00 E3 EC A8 A0 FF F9 6D 79 [11:26:10]CommunicateWithHost err = 0 [11:26:10]CheckOFDResponse [11:26:10]1017 (14) - 77093643461234 [11:26:10]1041 (16) - 0000000000959456 [11:26:10]1040 (4) - 18758 [11:26:10]1012 (4) - 23.09.2024 05:16 [11:26:10]1206 (1) - 0 [11:26:10]OFD Sender: Remove packet 18758 [11:26:10]ProducePacketName [11:26:10]name=ofd_packets/00018758 [11:26:10]NVStorageDeleteData [11:26:11]OFD Sender: No OFD packet to send [11:26:11]*** Cut start [11:26:11]*** Partial cut [11:26:11]*** CUTSNS_PIN = 1 [11:26:11]*** CUTSNS_PIN = 0 [11:26:11]*** Brake cut motor [11:26:11]Read from MH i2c: 01 [11:26:11]MH_I2C_Read... [11:26:11]*** Stop cut motor [11:26:11]*** Cut end [11:26:11]Read from MH i2c: 01 07 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 EB 19 00 00 00 00 00 FF 0F 19 [11:26:11]process_action close_receipt done [11:26:11]requested_data is exist [11:26:11]produce_requested_data [11:26:11]requested_item fm.sn is exist - process it [11:26:11]wFMCommunicate request_size=4 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 11 00 00 [11:26:11]Write to MH i2c: E2 08 00 EC 19 80 11 00 00 00 00 00 00 7F [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 17 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 17 00 EC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D8 [11:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:26:11]wFMCommunicate OK [11:26:11]requested_item fd.num is exist - process it [11:26:11]SAM_PROTO_GetFieldsCounters [11:26:11]wFMCommunicate request_size=4 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 13 00 00 [11:26:11]Write to MH i2c: E2 08 00 ED 19 80 13 00 00 00 00 00 00 82 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 62 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 62 00 ED 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 46 49 00 00 0E 04 04 00 B5 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 59 [11:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 46 49 00 00 0E 04 04 00 B5 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 [11:26:12]wFMCommunicate OK [11:26:12]SAM_PROTO_GetFieldsCounters done [11:26:12]requested_item shift.num is exist - process it [11:26:12]requested_item shift.opened is exist - process it [11:26:12]req_shift_opened [11:26:12]FM_GetShiftState [11:26:12]SAM_PROTO_GetShiftState [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 13 01 00 [11:26:12]Write to MH i2c: E2 08 00 EE 19 80 13 01 00 00 00 00 00 84 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 0E 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 0E 00 EE 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1C [11:26:12]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:26:12]wFMCommunicate OK [11:26:12]SAM_PROTO_GetShiftState done [11:26:12]FM_GetShiftState done [11:26:12]req_shift_opened done [11:26:12]requested_item shift.open_date is exist - process it [11:26:12]req_shift_open_date [11:26:12]req_shift_open_date done [11:26:12]produce_requested_data done [11:26:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18758,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [11:26:12]process_action_free close_receipt [11:26:12]json_value_free [11:26:12]json_value_free done [11:26:12]process_json_proto returns [11:26:12]Send response to host [11:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18758,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [11:26:12]free response buf [11:26:12]execute_script done [11:26:12]execute_script returns [11:26:12]free content buf [11:26:12]Sock 8.Close socket [11:26:12]Sock 8.Thread stoped [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:53]accept exits with 9 [11:44:53]New connection [11:44:53]New thread 3067129188 created [11:44:53]Thread 3067272548 joined [11:44:53]Waiting for new connection... [11:44:53] Sock 9.Parse request [11:44:53]Sock 9.Check first char [11:44:53]Sock 9.First char is OK [11:44:53]request: POST /json_proto HTTP/1.0 [11:44:53]Method: POST [11:44:53]URL: /json_proto [11:44:53]Method is POST - this is cgi request [11:44:53]url: /json_proto [11:44:53]query_string will be loaded in cgi processing [11:44:53]execute_cgi json_proto POST (null) [11:44:53]execute_cgi path=json_proto method=POST [11:44:53]POST find Content-Length [11:44:53]Host: 172.17.62.196:8080 [11:44:53]Content-Length: 671 [11:44:53]Content-Type: application/json [11:44:53] [11:44:53]POST finish read [11:44:53]Found Content-Length = 671 [11:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16679", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:53]execute_script... [11:44:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16679", "tax_sys" : 0, "items" : [ { "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:53]POST & json_proto [11:44:53]process_json_proto [11:44:53]json parsed OK: [11:44:53]protocol is kg_v1.0 [11:44:53]action value=close_receipt [11:44:53]process_action close_receipt [11:44:53]cmd_close_receipt [11:44:53]MH_GetDate [11:44:53]Write to MH i2c: F0 00 00 EF 19 F7 [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: F0 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: F0 09 00 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: F0 09 00 EF 19 00 BB 54 F1 66 CE CC 0E 66 74 [11:44:53]GetLastDocTimeStamp 1727090773 [11:44:53]current date 1727091899 [11:44:53]FM_GetShiftState [11:44:53]SAM_PROTO_GetShiftState [11:44:53]wFMCommunicate request_size=4 [11:44:53]MH_SAM_APDU [11:44:53]CAPDU: 80 13 01 00 [11:44:53]Write to MH i2c: E2 08 00 F0 19 80 13 01 00 00 00 00 00 86 [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:53]Read from MH i2c: E2 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 0E 00 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 0E 00 F0 19 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1E [11:44:53]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:44:53]wFMCommunicate OK [11:44:53]SAM_PROTO_GetShiftState done [11:44:53]FM_GetShiftState done [11:44:53]opened in 1727050372 [11:44:53]opened+sec_in_day 1727136772 [11:44:53]quantity*price = 14000 [11:44:53]sum+1 = 14001 [11:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 35 23.09.2024 11:44 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18759 ФПД: 263404895609246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114459&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18759&fm=263404895609246&tin=02508201610067®Number=0000000000152968&sum=14000 0 [11:44:54]StoreToDocumentArchive [11:44:54]shift 181 fd 18759 [11:44:54]save to /storage/0181/doc_00018759 [11:44:54]save last doc name /storage/0181/doc_00018759 to /storage/kkm_last_doc_name [11:44:54]save OK [11:44:54]Clear old archive folders... [11:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:44:54]tlvbuf is 00243430 [11:44:54]SAM_PROTO_ClearQueue [11:44:54]wFMCommunicate request_size=4 [11:44:54]MH_SAM_APDU [11:44:54]CAPDU: 80 09 00 00 [11:44:54]Write to MH i2c: E2 08 00 FD 19 80 09 00 00 00 00 00 00 88 [11:44:54]Write i2c OK [11:44:54]MH_I2C_Read... [11:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:54]Read from MH i2c: E2 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 03 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 03 00 FD 19 00 90 00 8A [11:44:54]RAPDU: 90 00 [11:44:54]wFMCommunicate OK [11:44:54]SAM_PROTO_ClearQueue done [11:44:54]KKMCreateOFDPacket [11:44:54]OFDProtocolAddRootSTLVToBuf [11:44:54]FM_MakeSignedData [11:44:54]FM_MakeSignedData [11:44:54]SAM_PROTO_SignData [11:44:54]wFMCommunicate request_size=4 [11:44:54]MH_SAM_APDU [11:44:54]CAPDU: 80 0D 01 02 [11:44:54]Write to MH i2c: E2 08 00 FE 19 80 0D 01 02 00 00 00 00 90 [11:44:54]Write i2c OK [11:44:54]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 03 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 03 00 FE 19 00 90 00 8B [11:44:55]RAPDU: 90 00 [11:44:55]wFMCommunicate OK [11:44:55]wFMCommunicate request_size=255 [11:44:55]MH_SAM_APDU [11:44:55]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BB 54 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [11:44:55]Write to MH i2c: E2 02 01 FF 19 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BB 54 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 53 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 03 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 03 00 FF 19 00 90 00 8C [11:44:55]RAPDU: 90 00 [11:44:55]wFMCommunicate OK [11:44:55]wFMCommunicate request_size=43 [11:44:55]MH_SAM_APDU [11:44:55]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 47 49 00 00 35 04 06 00 EF 90 BB 3C 21 9E [11:44:55]Write to MH i2c: E2 2E 00 00 1A 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 47 49 00 00 35 04 06 00 EF 90 BB 3C 21 9E 00 00 47 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 03 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [11:44:55]RAPDU: 90 00 [11:44:55]wFMCommunicate OK [11:44:55]wFMCommunicate request_size=4 [11:44:55]MH_SAM_APDU [11:44:55]CAPDU: 80 0D 03 02 [11:44:55]Write to MH i2c: E2 08 00 01 1A 80 0D 03 02 00 00 00 00 96 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 0B 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 0B 00 01 1A 00 45 24 F8 51 69 0F 87 73 90 00 BB [11:44:55]RAPDU: 45 24 F8 51 69 0F 87 73 90 00 [11:44:55]wFMCommunicate OK [11:44:55]SAM_PROTO_SignData done [11:44:55]FM_MakeSignedData done [11:44:55]CreateOFDProtocolMessage [11:44:55]wFMCommunicate request_size=4 [11:44:55]MH_SAM_APDU [11:44:55]CAPDU: 80 11 00 00 [11:44:55]Write to MH i2c: E2 08 00 02 1A 80 11 00 00 00 00 00 00 96 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 17 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 17 00 02 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 EF [11:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:44:55]wFMCommunicate OK [11:44:55]CreateOFDProtocolMessage done [11:44:55]OFDSenderStorePacket 18759 [11:44:55]StoreOFDPacket docnum=18759 [11:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 B2 73 28 01 5F AE 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BB 54 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 47 49 00 00 35 04 06 00 EF 90 BB 3C 21 9E 45 24 F8 51 69 0F 87 73 [11:44:55]CheckFolder [11:44:55]dirname=/storage/ofd_packets [11:44:55]CheckFolder done [11:44:55]ProducePacketName [11:44:55]name=ofd_packets/00018759 [11:44:55]NVStorageSaveData ofd_packets/00018759 [11:44:55]File name is /storage/ofd_packets/00018759 [11:44:55]Write 334 bytes [11:44:55]NVStorageSaveData done [11:44:55]OFDSenderStorePacket done [11:44:55]KKMCreateOFDPacket done [11:44:55]NVStorageSaveData kkm_last_timestamp [11:44:55]File name is /storage/kkm_last_timestamp [11:44:55]Write 4 bytes [11:44:55]NVStorageSaveData done [11:44:55]ExternCall_PrintAddStr [11:44:55]wPrintStart [11:44:55]Write to MH i2c: 01 00 00 03 1A 1D [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: 01 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: 01 07 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: 01 07 00 03 1A 00 00 00 00 00 FF 0F 32 [11:44:55]RasterBufferAndPrint [11:44:55]line Счет N : (3)16679 [11:44:55]line ИНН: 02508201610067 [11:44:55]line Контрольно-Кассовый Чек [11:44:55]line ПРОДАЖА [11:44:55]line Товар: 4620006995702 [11:44:55]line Водка Зеленая Марка 0,1л [11:44:55]line 1.000 * 140.00 [11:44:55]line = 140.00 [11:44:55]line НДС 12% НСП 1% [11:44:55]line > о реализуемом товаре [11:44:55]line ИТОГО: 140.00 [11:44:55]line НСП 1% : 1.24 [11:44:55]line НДС 12% : 14.87 [11:44:55]line Наличными: 140.00 [11:44:55]line Безнал.: 0.00 [11:44:55]line Место: АЗС № 176 "Партнер Нефть" [11:44:55]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:44:55]line СНО: Общий режим [11:44:55]line Чек 35 23.09.2024 11:44 [11:44:55]line Смена: 181 ФФД: 1.0 [11:44:55]line ЗНМ: 0300000010 [11:44:55]line РНМ: 0000000000152968 [11:44:55]line Версия ККМ: v1.0 [11:44:55]line ФМ: 0000000000959456 [11:44:55]line ФД: 18759 [11:44:55]line ФПД: 263404895609246 [11:44:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114459&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18759&fm=263404895609246&tin=02508201610067®Number=0000000000152968&sum=14000 [11:44:55]line 0 [11:44:55]OFD Sender: Processing packet 18759 [packets to send 7, broken 6] [11:44:55]ProducePacketName [11:44:55]name=ofd_packets/00018759 [11:44:55]OFD Sender: To server: pG, [11:44:55]CommunicateWithHost lk.salyk.kg:30040 [11:44:55]ConnectInit lk.salyk.kg [11:44:55]written 0, free lines is 4095 [11:44:56]Connected sock=10 [11:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 B2 73 28 01 5F AE 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BB 54 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 47 49 00 00 35 04 06 00 EF 90 BB 3C 21 9E 45 24 F8 51 69 0F 87 73 [11:44:56]Write to MH i2c: 01 00 00 2B 1A 45 [11:44:56]Write i2c OK [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: 01 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: 01 07 00 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: 01 07 00 2B 1A 00 00 00 00 00 23 0D 7C [11:44:56]RasterBufferAndPrint [11:44:56]line [11:44:56]line [11:44:56]line [11:44:56]line [11:44:56]line [11:44:56]written 0, free lines is 3372 [11:44:56]MH_Cut [11:44:56]Write to MH i2c: D1 01 00 32 1A 01 1E [11:44:56]Write i2c OK [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: D1 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: D1 01 00 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: D1 01 00 32 1A 00 1D [11:44:56]Write to MH i2c: 01 00 00 33 1A 4D [11:44:56]Write i2c OK [11:44:56]MH_I2C_Read... [11:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 46 24 47 00 0E 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 35 39 34 35 36 10 04 04 00 47 49 00 00 F4 03 04 00 1F FE F0 66 B6 04 01 00 00 BF C8 A2 E6 AE 1F 76 EA [11:44:56]CommunicateWithHost err = 0 [11:44:56]CheckOFDResponse [11:44:56]1017 (14) - 77093643461234 [11:44:56]1041 (16) - 0000000000959456 [11:44:56]1040 (4) - 18759 [11:44:56]1012 (4) - 23.09.2024 05:35 [11:44:56]1206 (1) - 0 [11:44:56]OFD Sender: Remove packet 18759 [11:44:56]ProducePacketName [11:44:56]name=ofd_packets/00018759 [11:44:56]NVStorageDeleteData [11:44:56]OFD Sender: No OFD packet to send [11:44:56]*** Cut start [11:44:56]*** Partial cut [11:44:56]*** CUTSNS_PIN = 1 [11:44:56]*** CUTSNS_PIN = 0 [11:44:57]*** Brake cut motor [11:44:57]Read from MH i2c: 01 [11:44:57]MH_I2C_Read... [11:44:57]*** Stop cut motor [11:44:57]*** Cut end [11:44:57]Read from MH i2c: 01 07 00 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: 01 07 00 33 1A 00 00 00 00 00 FF 0F 62 [11:44:57]process_action close_receipt done [11:44:57]requested_data is exist [11:44:57]produce_requested_data [11:44:57]requested_item fm.sn is exist - process it [11:44:57]wFMCommunicate request_size=4 [11:44:57]MH_SAM_APDU [11:44:57]CAPDU: 80 11 00 00 [11:44:57]Write to MH i2c: E2 08 00 34 1A 80 11 00 00 00 00 00 00 C8 [11:44:57]Write i2c OK [11:44:57]MH_I2C_Read... [11:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:57]Read from MH i2c: E2 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 17 00 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 17 00 34 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 21 [11:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:44:57]wFMCommunicate OK [11:44:57]requested_item fd.num is exist - process it [11:44:57]SAM_PROTO_GetFieldsCounters [11:44:57]wFMCommunicate request_size=4 [11:44:57]MH_SAM_APDU [11:44:57]CAPDU: 80 13 00 00 [11:44:57]Write to MH i2c: E2 08 00 35 1A 80 13 00 00 00 00 00 00 CB [11:44:57]Write i2c OK [11:44:57]MH_I2C_Read... [11:44:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:57]Read from MH i2c: E2 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 62 00 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 62 00 35 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 47 49 00 00 0E 04 04 00 B5 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 A6 [11:44:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 47 49 00 00 0E 04 04 00 B5 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 [11:44:57]wFMCommunicate OK [11:44:57]SAM_PROTO_GetFieldsCounters done [11:44:57]requested_item shift.num is exist - process it [11:44:57]requested_item shift.opened is exist - process it [11:44:57]req_shift_opened [11:44:57]FM_GetShiftState [11:44:57]SAM_PROTO_GetShiftState [11:44:57]wFMCommunicate request_size=4 [11:44:57]MH_SAM_APDU [11:44:57]CAPDU: 80 13 01 00 [11:44:57]Write to MH i2c: E2 08 00 36 1A 80 13 01 00 00 00 00 00 CD [11:44:57]Write i2c OK [11:44:57]MH_I2C_Read... [11:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:57]Read from MH i2c: E2 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 0E 00 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 0E 00 36 1A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 65 [11:44:57]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:44:57]wFMCommunicate OK [11:44:57]SAM_PROTO_GetShiftState done [11:44:57]FM_GetShiftState done [11:44:57]req_shift_opened done [11:44:57]requested_item shift.open_date is exist - process it [11:44:57]req_shift_open_date [11:44:57]req_shift_open_date done [11:44:57]produce_requested_data done [11:44:57]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18759,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [11:44:57]process_action_free close_receipt [11:44:57]json_value_free [11:44:57]json_value_free done [11:44:57]process_json_proto returns [11:44:57]Send response to host [11:44:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18759,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [11:44:57]free response buf [11:44:57]execute_script done [11:44:57]execute_script returns [11:44:57]free content buf [11:44:57]Sock 9.Close socket [11:44:57]Sock 9.Thread stoped [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:32]accept exits with 8 [11:46:32]New connection [11:46:32]New thread 3067272548 created [11:46:32]Thread 3067129188 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.62.196:8080 [11:46:32]Content-Length: 707 [11:46:32]Content-Type: application/json [11:46:32] [11:46:32]POST finish read [11:46:32]Found Content-Length = 707 [11:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16680", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "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 : (3)16680", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "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 37 1A 40 [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 37 1A 00 1E 55 F1 66 CE CC 0E 66 21 [11:46:32]GetLastDocTimeStamp 1727091899 [11:46:32]current date 1727091998 [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 38 1A 80 13 01 00 00 00 00 00 CF [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 38 1A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 67 [11:46:32]RAPDU: 09 00 01 84 B2 F0 66 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 1727050372 [11:46:32]opened+sec_in_day 1727136772 [11:46:32]quantity*price = 8500 [11:46:32]sum+1 = 8501 [11:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 36 23.09.2024 11:46 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18760 ФПД: 167613347628640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114638&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18760&fm=167613347628640&tin=02508201610067®Number=0000000000152968&sum=8500 0 [11:46:33]StoreToDocumentArchive [11:46:33]shift 181 fd 18760 [11:46:33]save to /storage/0181/doc_00018760 [11:46:33]save last doc name /storage/0181/doc_00018760 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=299 [11:46:33]tlvbuf is 001CA220 [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 45 1A 80 09 00 00 00 00 00 00 D1 [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 45 1A 00 90 00 D3 [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 46 1A 80 0D 01 02 00 00 00 00 D9 [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 46 1A 00 90 00 D4 [11:46:34]RAPDU: 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=255 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 1E 55 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [11:46:34]Write to MH i2c: E2 02 01 47 1A 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 1E 55 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 6E [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 47 1A 00 90 00 D5 [11:46:34]RAPDU: 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=58 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 48 49 00 00 35 04 06 00 98 71 86 0B 86 60 [11:46:34]Write to MH i2c: E2 3D 00 48 1A 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 48 49 00 00 35 04 06 00 98 71 86 0B 86 60 00 00 E8 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 48 1A 00 90 00 D6 [11:46:34]RAPDU: 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 0D 03 02 [11:46:34]Write to MH i2c: E2 08 00 49 1A 80 0D 03 02 00 00 00 00 DE [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 0B 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 0B 00 49 1A 00 CA F6 C4 C4 24 FD 8D 62 90 00 37 [11:46:34]RAPDU: CA F6 C4 C4 24 FD 8D 62 90 00 [11:46:34]wFMCommunicate OK [11:46:34]SAM_PROTO_SignData done [11:46:34]FM_MakeSignedData done [11:46:34]CreateOFDProtocolMessage [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 11 00 00 [11:46:34]Write to MH i2c: E2 08 00 4A 1A 80 11 00 00 00 00 00 00 DE [11:46:34]Write i2c OK [11:46:34]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 4A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 37 [11:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:46:34]wFMCommunicate OK [11:46:34]CreateOFDProtocolMessage done [11:46:34]OFDSenderStorePacket 18760 [11:46:34]StoreOFDPacket docnum=18760 [11:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 E0 7E 37 01 0E 3E 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 1E 55 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 48 49 00 00 35 04 06 00 98 71 86 0B 86 60 CA F6 C4 C4 24 FD 8D 62 [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/00018760 [11:46:34]NVStorageSaveData ofd_packets/00018760 [11:46:34]File name is /storage/ofd_packets/00018760 [11:46:34]Write 349 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 4B 1A 65 [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 4B 1A 00 00 00 00 00 FF 0F 7A [11:46:34]RasterBufferAndPrint [11:46:34]line Счет N : (3)16680 [11:46:34]line ИНН: 02508201610067 [11:46:34]line Контрольно-Кассовый Чек [11:46:34]line ПРОДАЖА [11:46:34]line Товар: 4660085515163 [11:46:34]line Шок Батончик Сникерс супер 95/80г [11:46:34]line 1.000 * 85.00 [11:46:34]line = 85.00 [11:46:34]line НДС 12% НСП 1% [11:46:34]line > о реализуемом товаре [11:46:34]line ИТОГО: 85.00 [11:46:34]line НСП 1% : 0.75 [11:46:34]line НДС 12% : 9.03 [11:46:34]line Наличными: 85.00 [11:46:34]line Безнал.: 0.00 [11:46:34]line Место: АЗС № 176 "Партнер Нефть" [11:46:34]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:46:34]line СНО: Общий режим [11:46:34]line Чек 36 23.09.2024 11:46 [11:46:34]line Смена: 181 ФФД: 1.0 [11:46:34]line ЗНМ: 0300000010 [11:46:34]line РНМ: 0000000000152968 [11:46:34]line Версия ККМ: v1.0 [11:46:34]line ФМ: 0000000000959456 [11:46:34]line ФД: 18760 [11:46:34]line ФПД: 167613347628640 [11:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T114638&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18760&fm=167613347628640&tin=02508201610067®Number=0000000000152968&sum=8500 [11:46:34]line 0 [11:46:34]OFD Sender: Processing packet 18760 [packets to send 7, broken 6] [11:46:34]ProducePacketName [11:46:34]name=ofd_packets/00018760 [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:35]Connected sock=11 [11:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 E0 7E 37 01 0E 3E 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 1E 55 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 48 49 00 00 35 04 06 00 98 71 86 0B 86 60 CA F6 C4 C4 24 FD 8D 62 [11:46:35]Write to MH i2c: 01 00 00 74 1A 8E [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 74 1A 00 00 00 00 00 05 0D A7 [11:46:35]RasterBufferAndPrint [11:46:35]line [11:46:35]line [11:46:35]line [11:46:35]line [11:46:35]line [11:46:35]written 0, free lines is 3339 [11:46:35]MH_Cut [11:46:35]Write to MH i2c: D1 01 00 7B 1A 01 67 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: D1 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: D1 01 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: D1 01 00 7B 1A 00 66 [11:46:35]Write to MH i2c: 01 00 00 7C 1A 96 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 EA D1 47 00 BA 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 35 39 34 35 36 10 04 04 00 48 49 00 00 F4 03 04 00 82 FE F0 66 B6 04 01 00 00 B1 89 95 EE BB D6 28 AE [11:46:35]CommunicateWithHost err = 0 [11:46:35]CheckOFDResponse [11:46:35]1017 (14) - 77093643461234 [11:46:35]1041 (16) - 0000000000959456 [11:46:35]1040 (4) - 18760 [11:46:35]1012 (4) - 23.09.2024 05:37 [11:46:35]1206 (1) - 0 [11:46:35]OFD Sender: Remove packet 18760 [11:46:35]ProducePacketName [11:46:35]name=ofd_packets/00018760 [11:46:35]NVStorageDeleteData [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:36]*** 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 7C 1A 00 00 00 00 00 FF 0F AB [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 7D 1A 80 11 00 00 00 00 00 00 11 [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 7D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6A [11:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 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 7E 1A 80 13 00 00 00 00 00 00 14 [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 7E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 48 49 00 00 0E 04 04 00 B5 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 F3 [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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 48 49 00 00 0E 04 04 00 B5 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 [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 7F 1A 80 13 01 00 00 00 00 00 16 [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 7F 1A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 AE [11:46:36]RAPDU: 09 00 01 84 B2 F0 66 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":"0000000000959456","fd.num":18760,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [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":"0000000000959456","fd.num":18760,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [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:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48: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:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:12]accept exits with 9 [11:53:12]New connection [11:53:12]New thread 3067129188 created [11:53:12]Thread 3067272548 joined [11:53:12]Waiting for new connection... [11:53:12] Sock 9.Parse request [11:53:12]Sock 9.Check first char [11:53:12]Sock 9.First char is OK [11:53:12]request: POST /json_proto HTTP/1.0 [11:53:12]Method: POST [11:53:12]URL: /json_proto [11:53:12]Method is POST - this is cgi request [11:53:12]url: /json_proto [11:53:12]query_string will be loaded in cgi processing [11:53:12]execute_cgi json_proto POST (null) [11:53:12]execute_cgi path=json_proto method=POST [11:53:12]POST find Content-Length [11:53:12]Host: 172.17.62.196:8080 [11:53:12]Content-Length: 629 [11:53:12]Content-Type: application/json [11:53:12] [11:53:12]POST finish read [11:53:12]Found Content-Length = 629 [11:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16681", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:12]execute_script... [11:53:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16681", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:12]POST & json_proto [11:53:12]process_json_proto [11:53:12]json parsed OK: [11:53:12]protocol is kg_v1.0 [11:53:12]action value=close_receipt [11:53:12]process_action close_receipt [11:53:12]cmd_close_receipt [11:53:12]MH_GetDate [11:53:12]Write to MH i2c: F0 00 00 80 1A 89 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: F0 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: F0 09 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: F0 09 00 80 1A 00 AE 56 F1 66 CE CC 0E 66 FB [11:53:12]GetLastDocTimeStamp 1727091998 [11:53:12]current date 1727092398 [11:53:12]FM_GetShiftState [11:53:12]SAM_PROTO_GetShiftState [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 13 01 00 [11:53:12]Write to MH i2c: E2 08 00 81 1A 80 13 01 00 00 00 00 00 18 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0E 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 0E 00 81 1A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B0 [11:53:12]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_GetShiftState done [11:53:12]FM_GetShiftState done [11:53:12]opened in 1727050372 [11:53:12]opened+sec_in_day 1727136772 [11:53:12]quantity*price = 5000 [11:53:12]sum+1 = 5001 [11:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 37 23.09.2024 11:53 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18761 ФПД: 154792752018109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115318&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18761&fm=154792752018109&tin=02508201610067®Number=0000000000152968&sum=5000 0 [11:53:13]StoreToDocumentArchive [11:53:13]shift 181 fd 18761 [11:53:13]save to /storage/0181/doc_00018761 [11:53:13]save last doc name /storage/0181/doc_00018761 to /storage/kkm_last_doc_name [11:53:13]save OK [11:53:13]Clear old archive folders... [11:53:13]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:53:13]tlvbuf is B6EF6490 [11:53:13]SAM_PROTO_ClearQueue [11:53:13]wFMCommunicate request_size=4 [11:53:13]MH_SAM_APDU [11:53:13]CAPDU: 80 09 00 00 [11:53:13]Write to MH i2c: E2 08 00 8E 1A 80 09 00 00 00 00 00 00 1A [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:13]Read from MH i2c: E2 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 03 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 03 00 8E 1A 00 90 00 1C [11:53:13]RAPDU: 90 00 [11:53:13]wFMCommunicate OK [11:53:13]SAM_PROTO_ClearQueue done [11:53:13]KKMCreateOFDPacket [11:53:13]OFDProtocolAddRootSTLVToBuf [11:53:13]FM_MakeSignedData [11:53:13]FM_MakeSignedData [11:53:13]SAM_PROTO_SignData [11:53:13]wFMCommunicate request_size=4 [11:53:13]MH_SAM_APDU [11:53:13]CAPDU: 80 0D 01 02 [11:53:13]Write to MH i2c: E2 08 00 8F 1A 80 0D 01 02 00 00 00 00 22 [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:14]Read from MH i2c: E2 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 03 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [11:53:14]RAPDU: 90 00 [11:53:14]wFMCommunicate OK [11:53:14]wFMCommunicate request_size=255 [11:53:14]MH_SAM_APDU [11:53:14]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AE 56 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [11:53:14]Write to MH i2c: E2 02 01 90 1A 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AE 56 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 75 [11:53:14]Write i2c OK [11:53:14]MH_I2C_Read... [11:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:14]Read from MH i2c: E2 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 03 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 03 00 90 1A 00 90 00 1E [11:53:14]RAPDU: 90 00 [11:53:14]wFMCommunicate OK [11:53:14]wFMCommunicate request_size=28 [11:53:14]MH_SAM_APDU [11:53:14]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 49 49 00 00 35 04 06 00 8C C8 7E FF 72 BD [11:53:14]Write to MH i2c: E2 1F 00 91 1A 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 49 49 00 00 35 04 06 00 8C C8 7E FF 72 BD 00 00 49 [11:53:14]Write i2c OK [11:53:14]MH_I2C_Read... [11:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:14]Read from MH i2c: E2 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 03 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 03 00 91 1A 00 90 00 1F [11:53:14]RAPDU: 90 00 [11:53:14]wFMCommunicate OK [11:53:14]wFMCommunicate request_size=4 [11:53:14]MH_SAM_APDU [11:53:14]CAPDU: 80 0D 03 02 [11:53:14]Write to MH i2c: E2 08 00 92 1A 80 0D 03 02 00 00 00 00 27 [11:53:14]Write i2c OK [11:53:14]MH_I2C_Read... [11:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:14]Read from MH i2c: E2 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 0B 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 0B 00 92 1A 00 80 0B A6 8F EF C1 6B C1 90 00 C4 [11:53:14]RAPDU: 80 0B A6 8F EF C1 6B C1 90 00 [11:53:14]wFMCommunicate OK [11:53:14]SAM_PROTO_SignData done [11:53:14]FM_MakeSignedData done [11:53:14]CreateOFDProtocolMessage [11:53:14]wFMCommunicate request_size=4 [11:53:14]MH_SAM_APDU [11:53:14]CAPDU: 80 11 00 00 [11:53:14]Write to MH i2c: E2 08 00 93 1A 80 11 00 00 00 00 00 00 27 [11:53:14]Write i2c OK [11:53:14]MH_I2C_Read... [11:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:14]Read from MH i2c: E2 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 17 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: E2 17 00 93 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 80 [11:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:53:14]wFMCommunicate OK [11:53:14]CreateOFDProtocolMessage done [11:53:14]OFDSenderStorePacket 18761 [11:53:14]StoreOFDPacket docnum=18761 [11:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 04 0F 19 01 DA 41 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AE 56 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 49 49 00 00 35 04 06 00 8C C8 7E FF 72 BD 80 0B A6 8F EF C1 6B C1 [11:53:14]CheckFolder [11:53:14]dirname=/storage/ofd_packets [11:53:14]CheckFolder done [11:53:14]ProducePacketName [11:53:14]name=ofd_packets/00018761 [11:53:14]NVStorageSaveData ofd_packets/00018761 [11:53:14]File name is /storage/ofd_packets/00018761 [11:53:14]Write 319 bytes [11:53:14]NVStorageSaveData done [11:53:14]OFDSenderStorePacket done [11:53:14]KKMCreateOFDPacket done [11:53:14]NVStorageSaveData kkm_last_timestamp [11:53:14]File name is /storage/kkm_last_timestamp [11:53:14]Write 4 bytes [11:53:14]NVStorageSaveData done [11:53:14]ExternCall_PrintAddStr [11:53:14]wPrintStart [11:53:14]Write to MH i2c: 01 00 00 94 1A AE [11:53:14]Write i2c OK [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: 01 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: 01 07 00 [11:53:14]MH_I2C_Read... [11:53:14]Read from MH i2c: 01 07 00 94 1A 00 00 00 00 00 FF 0F C3 [11:53:14]RasterBufferAndPrint [11:53:14]line Счет N : (3)16681 [11:53:14]line ИНН: 02508201610067 [11:53:14]line Контрольно-Кассовый Чек [11:53:14]line ПРОДАЖА [11:53:14]line Товар: 4700000160358 [11:53:14]line Вода Легенда 1л [11:53:14]line 1.000 * 50.00 [11:53:14]line = 50.00 [11:53:14]line НДС 12% НСП 1% [11:53:14]line > о реализуемом товаре [11:53:14]line ИТОГО: 50.00 [11:53:14]line НСП 1% : 0.44 [11:53:14]line НДС 12% : 5.31 [11:53:14]line Наличными: 50.00 [11:53:14]line Безнал.: 0.00 [11:53:14]line Место: АЗС № 176 "Партнер Нефть" [11:53:14]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:53:14]line СНО: Общий режим [11:53:14]line Чек 37 23.09.2024 11:53 [11:53:14]line Смена: 181 ФФД: 1.0 [11:53:14]line ЗНМ: 0300000010 [11:53:14]line РНМ: 0000000000152968 [11:53:14]line Версия ККМ: v1.0 [11:53:14]line ФМ: 0000000000959456 [11:53:14]line ФД: 18761 [11:53:14]line ФПД: 154792752018109 [11:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115318&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18761&fm=154792752018109&tin=02508201610067®Number=0000000000152968&sum=5000 [11:53:14]line 0 [11:53:14]OFD Sender: Processing packet 18761 [packets to send 7, broken 6] [11:53:14]ProducePacketName [11:53:14]name=ofd_packets/00018761 [11:53:14]OFD Sender: To server: pG, [11:53:14]CommunicateWithHost lk.salyk.kg:30040 [11:53:14]ConnectInit lk.salyk.kg [11:53:14]written 0, free lines is 4095 [11:53:14]Connected sock=10 [11:53:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 04 0F 19 01 DA 41 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AE 56 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 49 49 00 00 35 04 06 00 8C C8 7E FF 72 BD 80 0B A6 8F EF C1 6B C1 [11:53:15]Write to MH i2c: 01 00 00 BC 1A D6 [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: 01 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: 01 07 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: 01 07 00 BC 1A 00 00 00 00 00 14 0D FE [11:53:15]RasterBufferAndPrint [11:53:15]line [11:53:15]line [11:53:15]line [11:53:15]line [11:53:15]line [11:53:15]written 0, free lines is 3357 [11:53:15]MH_Cut [11:53:15]Write to MH i2c: D1 01 00 C3 1A 01 AF [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: D1 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: D1 01 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: D1 01 00 C3 1A 00 AE [11:53:15]Write to MH i2c: 01 00 00 C4 1A DE [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 2D 92 47 00 C8 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 35 39 34 35 36 10 04 04 00 49 49 00 00 F4 03 04 00 12 00 F1 66 B6 04 01 00 00 46 F7 AD 08 0D 69 59 D6 [11:53:15]CommunicateWithHost err = 0 [11:53:15]CheckOFDResponse [11:53:15]1017 (14) - 77093643461234 [11:53:15]1041 (16) - 0000000000959456 [11:53:15]1040 (4) - 18761 [11:53:15]1012 (4) - 23.09.2024 05:43 [11:53:15]1206 (1) - 0 [11:53:15]OFD Sender: Remove packet 18761 [11:53:15]ProducePacketName [11:53:15]name=ofd_packets/00018761 [11:53:15]NVStorageDeleteData [11:53:15]OFD Sender: No OFD packet to send [11:53:15]*** Cut start [11:53:15]*** Partial cut [11:53:15]*** CUTSNS_PIN = 1 [11:53:15]*** CUTSNS_PIN = 0 [11:53:16]*** Brake cut motor [11:53:16]Read from MH i2c: 01 [11:53:16]MH_I2C_Read... [11:53:16]*** Stop cut motor [11:53:16]*** Cut end [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 C4 1A 00 00 00 00 00 FF 0F F3 [11:53:16]process_action close_receipt done [11:53:16]requested_data is exist [11:53:16]produce_requested_data [11:53:16]requested_item fm.sn is exist - process it [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 C5 1A 80 11 00 00 00 00 00 00 59 [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 C5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B2 [11:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:53:16]wFMCommunicate OK [11:53:16]requested_item fd.num is exist - process it [11:53:16]SAM_PROTO_GetFieldsCounters [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 13 00 00 [11:53:16]Write to MH i2c: E2 08 00 C6 1A 80 13 00 00 00 00 00 00 5C [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 62 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 62 00 C6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 49 49 00 00 0E 04 04 00 B5 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 3F [11:53:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 49 49 00 00 0E 04 04 00 B5 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 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_GetFieldsCounters done [11:53:16]requested_item shift.num is exist - process it [11:53:16]requested_item shift.opened is exist - process it [11:53:16]req_shift_opened [11:53:16]FM_GetShiftState [11:53:16]SAM_PROTO_GetShiftState [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 13 01 00 [11:53:16]Write to MH i2c: E2 08 00 C7 1A 80 13 01 00 00 00 00 00 5E [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0E 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0E 00 C7 1A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F6 [11:53:16]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_GetShiftState done [11:53:16]FM_GetShiftState done [11:53:16]req_shift_opened done [11:53:16]requested_item shift.open_date is exist - process it [11:53:16]req_shift_open_date [11:53:16]req_shift_open_date done [11:53:16]produce_requested_data done [11:53:16]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18761,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [11:53:16]process_action_free close_receipt [11:53:16]json_value_free [11:53:16]json_value_free done [11:53:16]process_json_proto returns [11:53:16]Send response to host [11:53:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18761,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [11:53:16]free response buf [11:53:16]execute_script done [11:53:16]execute_script returns [11:53:16]free content buf [11:53:16]Sock 9.Close socket [11:53:16]Sock 9.Thread stoped [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:04]accept exits with 8 [11:58:04]New connection [11:58:04]New thread 3067272548 created [11:58:04]Thread 3067129188 joined [11:58:04]Waiting for new connection... [11:58:04] Sock 8.Parse request [11:58:04]Sock 8.Check first char [11:58:04]Sock 8.First char is OK [11:58:04]request: POST /json_proto HTTP/1.0 [11:58:04]Method: POST [11:58:04]URL: /json_proto [11:58:04]Method is POST - this is cgi request [11:58:04]url: /json_proto [11:58:04]query_string will be loaded in cgi processing [11:58:04]execute_cgi json_proto POST (null) [11:58:04]execute_cgi path=json_proto method=POST [11:58:04]POST find Content-Length [11:58:04]Host: 172.17.62.196:8080 [11:58:04]Content-Length: 710 [11:58:04]Content-Type: application/json [11:58:04] [11:58:04]POST finish read [11:58:04]Found Content-Length = 710 [11:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16682", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:04]execute_script... [11:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16682", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:04]POST & json_proto [11:58:04]process_json_proto [11:58:04]json parsed OK: [11:58:04]protocol is kg_v1.0 [11:58:04]action value=close_receipt [11:58:04]process_action close_receipt [11:58:04]cmd_close_receipt [11:58:04]MH_GetDate [11:58:04]Write to MH i2c: F0 00 00 C8 1A D1 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: F0 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: F0 09 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: F0 09 00 C8 1A 00 D2 57 F1 66 CE CC 0E 66 68 [11:58:04]GetLastDocTimeStamp 1727092398 [11:58:04]current date 1727092690 [11:58:04]FM_GetShiftState [11:58:04]SAM_PROTO_GetShiftState [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 13 01 00 [11:58:04]Write to MH i2c: E2 08 00 C9 1A 80 13 01 00 00 00 00 00 60 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0E 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0E 00 C9 1A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F8 [11:58:04]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_GetShiftState done [11:58:04]FM_GetShiftState done [11:58:04]opened in 1727050372 [11:58:04]opened+sec_in_day 1727136772 [11:58:04]quantity*price = 7000 [11:58:04]sum+1 = 7001 [11:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 38 23.09.2024 11:58 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18762 ФПД: 25414716956535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115810&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18762&fm=25414716956535&tin=02508201610067®Number=0000000000152968&sum=7000 0 [11:58:06]StoreToDocumentArchive [11:58:06]shift 181 fd 18762 [11:58:06]save to /storage/0181/doc_00018762 [11:58:06]save last doc name /storage/0181/doc_00018762 to /storage/kkm_last_doc_name [11:58:06]save OK [11:58:06]Clear old archive folders... [11:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:58:06]tlvbuf is 0024A730 [11:58:06]SAM_PROTO_ClearQueue [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 09 00 00 [11:58:06]Write to MH i2c: E2 08 00 D6 1A 80 09 00 00 00 00 00 00 62 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 D6 1A 00 90 00 64 [11:58:06]RAPDU: 90 00 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_ClearQueue done [11:58:06]KKMCreateOFDPacket [11:58:06]OFDProtocolAddRootSTLVToBuf [11:58:06]FM_MakeSignedData [11:58:06]FM_MakeSignedData [11:58:06]SAM_PROTO_SignData [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 0D 01 02 [11:58:06]Write to MH i2c: E2 08 00 D7 1A 80 0D 01 02 00 00 00 00 6A [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]OFD Sender: No OFD packet to send [11:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 D7 1A 00 90 00 65 [11:58:06]RAPDU: 90 00 [11:58:06]wFMCommunicate OK [11:58:06]wFMCommunicate request_size=255 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D2 57 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 [11:58:06]Write to MH i2c: E2 02 01 D8 1A 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D2 57 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 00 00 CD [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 D8 1A 00 90 00 66 [11:58:06]RAPDU: 90 00 [11:58:06]wFMCommunicate OK [11:58:06]wFMCommunicate request_size=61 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4A 49 00 00 35 04 06 00 17 1D 53 2D 1F 77 [11:58:06]Write to MH i2c: E2 40 00 D9 1A 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4A 49 00 00 35 04 06 00 17 1D 53 2D 1F 77 00 00 8B [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 03 00 D9 1A 00 90 00 67 [11:58:06]RAPDU: 90 00 [11:58:06]wFMCommunicate OK [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 0D 03 02 [11:58:06]Write to MH i2c: E2 08 00 DA 1A 80 0D 03 02 00 00 00 00 6F [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0B 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0B 00 DA 1A 00 E3 AF AA A4 05 BA CA 69 90 00 42 [11:58:06]RAPDU: E3 AF AA A4 05 BA CA 69 90 00 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_SignData done [11:58:06]FM_MakeSignedData done [11:58:06]CreateOFDProtocolMessage [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 11 00 00 [11:58:06]Write to MH i2c: E2 08 00 DB 1A 80 11 00 00 00 00 00 00 6F [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 17 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 17 00 DB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C8 [11:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:58:06]wFMCommunicate OK [11:58:06]CreateOFDProtocolMessage done [11:58:06]OFDSenderStorePacket 18762 [11:58:06]StoreOFDPacket docnum=18762 [11:58:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 42 01 00 00 69 07 3A 01 A8 B0 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D2 57 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4A 49 00 00 35 04 06 00 17 1D 53 2D 1F 77 E3 AF AA A4 05 BA CA 69 [11:58:06]CheckFolder [11:58:06]dirname=/storage/ofd_packets [11:58:06]CheckFolder done [11:58:06]ProducePacketName [11:58:06]name=ofd_packets/00018762 [11:58:06]NVStorageSaveData ofd_packets/00018762 [11:58:06]File name is /storage/ofd_packets/00018762 [11:58:06]Write 352 bytes [11:58:06]NVStorageSaveData done [11:58:06]OFDSenderStorePacket done [11:58:06]KKMCreateOFDPacket done [11:58:06]NVStorageSaveData kkm_last_timestamp [11:58:06]File name is /storage/kkm_last_timestamp [11:58:06]Write 4 bytes [11:58:06]NVStorageSaveData done [11:58:06]ExternCall_PrintAddStr [11:58:06]wPrintStart [11:58:06]Write to MH i2c: 01 00 00 DC 1A F6 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 07 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 FF 0F 0B [11:58:06]RasterBufferAndPrint [11:58:06]line Счет N : (3)16682 [11:58:06]line ИНН: 02508201610067 [11:58:06]line Контрольно-Кассовый Чек [11:58:06]line ПРОДАЖА [11:58:06]line Товар: 4870001571030 [11:58:06]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [11:58:06]line 1.000 * 70.00 [11:58:06]line = 70.00 [11:58:06]line НДС 12% НСП 1% [11:58:06]line > о реализуемом товаре [11:58:06]line ИТОГО: 70.00 [11:58:06]line НСП 1% : 0.62 [11:58:06]line НДС 12% : 7.43 [11:58:06]line Наличными: 70.00 [11:58:06]line Безнал.: 0.00 [11:58:06]line Место: АЗС № 176 "Партнер Нефть" [11:58:06]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [11:58:06]line СНО: Общий режим [11:58:06]line Чек 38 23.09.2024 11:58 [11:58:06]line Смена: 181 ФФД: 1.0 [11:58:06]line ЗНМ: 0300000010 [11:58:06]line РНМ: 0000000000152968 [11:58:06]line Версия ККМ: v1.0 [11:58:06]line ФМ: 0000000000959456 [11:58:06]line ФД: 18762 [11:58:06]line ФПД: 25414716956535 [11:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T115810&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18762&fm=25414716956535&tin=02508201610067®Number=0000000000152968&sum=7000 [11:58:06]line 0 [11:58:06]OFD Sender: Processing packet 18762 [packets to send 7, broken 6] [11:58:06]ProducePacketName [11:58:06]name=ofd_packets/00018762 [11:58:06]OFD Sender: To server: pG, [11:58:06]CommunicateWithHost lk.salyk.kg:30040 [11:58:06]ConnectInit lk.salyk.kg [11:58:06]written 0, free lines is 4095 [11:58:07]Connected sock=10 [11:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 42 01 00 00 69 07 3A 01 A8 B0 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 D2 57 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4A 49 00 00 35 04 06 00 17 1D 53 2D 1F 77 E3 AF AA A4 05 BA CA 69 [11:58:07]Write to MH i2c: 01 00 00 05 1B 20 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: 01 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: 01 07 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: 01 07 00 05 1B 00 00 00 00 00 05 0D 39 [11:58:07]RasterBufferAndPrint [11:58:07]line [11:58:07]line [11:58:07]line [11:58:07]line [11:58:07]line [11:58:07]written 0, free lines is 3339 [11:58:07]MH_Cut [11:58:07]Write to MH i2c: D1 01 00 0C 1B 01 F9 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: D1 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: D1 01 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: D1 01 00 0C 1B 00 F8 [11:58:07]Write to MH i2c: 01 00 00 0D 1B 28 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 04 30 47 00 B6 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 35 39 34 35 36 10 04 04 00 4A 49 00 00 F4 03 04 00 36 01 F1 66 B6 04 01 00 00 6F F6 96 0E BC 8C 4C F1 [11:58:07]CommunicateWithHost err = 0 [11:58:07]CheckOFDResponse [11:58:07]1017 (14) - 77093643461234 [11:58:07]1041 (16) - 0000000000959456 [11:58:07]1040 (4) - 18762 [11:58:07]1012 (4) - 23.09.2024 05:48 [11:58:07]1206 (1) - 0 [11:58:07]OFD Sender: Remove packet 18762 [11:58:07]ProducePacketName [11:58:07]name=ofd_packets/00018762 [11:58:07]NVStorageDeleteData [11:58:07]OFD Sender: No OFD packet to send [11:58:08]*** Cut start [11:58:08]*** Partial cut [11:58:08]*** CUTSNS_PIN = 1 [11:58:08]*** CUTSNS_PIN = 0 [11:58:08]*** Brake cut motor [11:58:08]Read from MH i2c: 01 [11:58:08]MH_I2C_Read... [11:58:08]*** Stop cut motor [11:58:08]*** Cut end [11:58:08]Read from MH i2c: 01 07 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 07 00 0D 1B 00 00 00 00 00 FF 0F 3D [11:58:08]process_action close_receipt done [11:58:08]requested_data is exist [11:58:08]produce_requested_data [11:58:08]requested_item fm.sn is exist - process it [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 11 00 00 [11:58:08]Write to MH i2c: E2 08 00 0E 1B 80 11 00 00 00 00 00 00 A3 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 17 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 17 00 0E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FC [11:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [11:58:08]wFMCommunicate OK [11:58:08]requested_item fd.num is exist - process it [11:58:08]SAM_PROTO_GetFieldsCounters [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 13 00 00 [11:58:08]Write to MH i2c: E2 08 00 0F 1B 80 13 00 00 00 00 00 00 A6 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 62 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 62 00 0F 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4A 49 00 00 0E 04 04 00 B5 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 8D [11:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4A 49 00 00 0E 04 04 00 B5 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 [11:58:08]wFMCommunicate OK [11:58:08]SAM_PROTO_GetFieldsCounters done [11:58:08]requested_item shift.num is exist - process it [11:58:08]requested_item shift.opened is exist - process it [11:58:08]req_shift_opened [11:58:08]FM_GetShiftState [11:58:08]SAM_PROTO_GetShiftState [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 13 01 00 [11:58:08]Write to MH i2c: E2 08 00 10 1B 80 13 01 00 00 00 00 00 A8 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 0E 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 0E 00 10 1B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 40 [11:58:08]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [11:58:08]wFMCommunicate OK [11:58:08]SAM_PROTO_GetShiftState done [11:58:08]FM_GetShiftState done [11:58:08]req_shift_opened done [11:58:08]requested_item shift.open_date is exist - process it [11:58:08]req_shift_open_date [11:58:08]req_shift_open_date done [11:58:08]produce_requested_data done [11:58:08]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18762,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [11:58:08]process_action_free close_receipt [11:58:08]json_value_free [11:58:08]json_value_free done [11:58:08]process_json_proto returns [11:58:08]Send response to host [11:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18762,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [11:58:08]free response buf [11:58:08]execute_script done [11:58:08]execute_script returns [11:58:08]free content buf [11:58:08]Sock 8.Close socket [11:58:08]Sock 8.Thread stoped [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:08]accept exits with 9 [13:04:08]New connection [13:04:08]New thread 3067129188 created [13:04:08]Thread 3067272548 joined [13:04:08]Waiting for new connection... [13:04:08] Sock 9.Parse request [13:04:08]Sock 9.Check first char [13:04:08]Sock 9.First char is OK [13:04:08]request: POST /json_proto HTTP/1.0 [13:04:08]Method: POST [13:04:08]URL: /json_proto [13:04:08]Method is POST - this is cgi request [13:04:08]url: /json_proto [13:04:08]query_string will be loaded in cgi processing [13:04:08]execute_cgi json_proto POST (null) [13:04:08]execute_cgi path=json_proto method=POST [13:04:08]POST find Content-Length [13:04:08]Host: 172.17.62.196:8080 [13:04:08]Content-Length: 883 [13:04:08]Content-Type: application/json [13:04:08] [13:04:08]POST finish read [13:04:08]Found Content-Length = 883 [13:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16683", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 284.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:08]execute_script... [13: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 : (3)16683", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 284.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:08]POST & json_proto [13:04:08]process_json_proto [13:04:08]json parsed OK: [13:04:08]protocol is kg_v1.0 [13:04:08]action value=close_receipt [13:04:08]process_action close_receipt [13:04:08]cmd_close_receipt [13:04:08]MH_GetDate [13:04:08]Write to MH i2c: F0 00 00 11 1B 1B [13:04:08]Write i2c OK [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: F0 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: F0 09 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: F0 09 00 11 1B 00 4E 67 F1 66 CE CC 0E 66 3E [13:04:08]GetLastDocTimeStamp 1727092690 [13:04:08]current date 1727096654 [13:04:08]FM_GetShiftState [13:04:08]SAM_PROTO_GetShiftState [13:04:08]wFMCommunicate request_size=4 [13:04:08]MH_SAM_APDU [13:04:08]CAPDU: 80 13 01 00 [13:04:08]Write to MH i2c: E2 08 00 12 1B 80 13 01 00 00 00 00 00 AA [13:04:08]Write i2c OK [13:04:08]MH_I2C_Read... [13:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:08]Read from MH i2c: E2 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 0E 00 [13:04:08]MH_I2C_Read... [13:04:08]Read from MH i2c: E2 0E 00 12 1B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 42 [13:04:08]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:04:08]wFMCommunicate OK [13:04:08]SAM_PROTO_GetShiftState done [13:04:08]FM_GetShiftState done [13:04:08]opened in 1727050372 [13:04:08]opened+sec_in_day 1727136772 [13:04:08]quantity*price = 15400 [13:04:08]sum+1 = 15401 [13:04:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 284.00 НСП 1% : 2.51 НДС 12% : 30.15 Наличными: 284.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 39 23.09.2024 13:04 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18763 ФПД: 13049328104110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130414&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18763&fm=13049328104110&tin=02508201610067®Number=0000000000152968&sum=28400 0 [13:04:09]StoreToDocumentArchive [13:04:09]shift 181 fd 18763 [13:04:09]save to /storage/0181/doc_00018763 [13:04:09]save last doc name /storage/0181/doc_00018763 to /storage/kkm_last_doc_name [13:04:09]save OK [13:04:09]Clear old archive folders... [13:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=386 [13:04:09]tlvbuf is 0024A320 [13:04:09]SAM_PROTO_ClearQueue [13:04:09]wFMCommunicate request_size=4 [13:04:09]MH_SAM_APDU [13:04:09]CAPDU: 80 09 00 00 [13:04:09]Write to MH i2c: E2 08 00 1F 1B 80 09 00 00 00 00 00 00 AC [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:09]Read from MH i2c: E2 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 1F 1B 00 90 00 AE [13:04:09]RAPDU: 90 00 [13:04:09]wFMCommunicate OK [13:04:09]SAM_PROTO_ClearQueue done [13:04:09]KKMCreateOFDPacket [13:04:09]OFDProtocolAddRootSTLVToBuf [13:04:09]FM_MakeSignedData [13:04:09]FM_MakeSignedData [13:04:09]SAM_PROTO_SignData [13:04:09]wFMCommunicate request_size=4 [13:04:09]MH_SAM_APDU [13:04:09]CAPDU: 80 0D 01 02 [13:04:09]Write to MH i2c: E2 08 00 20 1B 80 0D 01 02 00 00 00 00 B4 [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:09]Read from MH i2c: E2 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 20 1B 00 90 00 AF [13:04:09]RAPDU: 90 00 [13:04:09]wFMCommunicate OK [13:04:09]wFMCommunicate request_size=255 [13:04:09]MH_SAM_APDU [13:04:09]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [13:04:09]Write to MH i2c: E2 02 01 21 1B 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 C5 [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:09]Read from MH i2c: E2 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 21 1B 00 90 00 B0 [13:04:09]RAPDU: 90 00 [13:04:09]wFMCommunicate OK [13:04:09]wFMCommunicate request_size=145 [13:04:09]MH_SAM_APDU [13:04:09]CAPDU: 80 0D 02 02 8C 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 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 4E 67 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4B 49 00 00 35 04 06 00 0B DE 48 90 F2 AE [13:04:09]Write to MH i2c: E2 94 00 22 1B 80 0D 02 02 8C 00 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 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 4E 67 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4B 49 00 00 35 04 06 00 0B DE 48 90 F2 AE 00 00 16 [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:09]Read from MH i2c: E2 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 03 00 22 1B 00 90 00 B1 [13:04:09]RAPDU: 90 00 [13:04:09]wFMCommunicate OK [13:04:09]wFMCommunicate request_size=4 [13:04:09]MH_SAM_APDU [13:04:09]CAPDU: 80 0D 03 02 [13:04:09]Write to MH i2c: E2 08 00 23 1B 80 0D 03 02 00 00 00 00 B9 [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:09]Read from MH i2c: E2 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 0B 00 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 0B 00 23 1B 00 97 60 54 F9 0E 90 D9 D2 90 00 47 [13:04:09]RAPDU: 97 60 54 F9 0E 90 D9 D2 90 00 [13:04:09]wFMCommunicate OK [13:04:09]SAM_PROTO_SignData done [13:04:09]FM_MakeSignedData done [13:04:09]CreateOFDProtocolMessage [13:04:09]wFMCommunicate request_size=4 [13:04:09]MH_SAM_APDU [13:04:09]CAPDU: 80 11 00 00 [13:04:09]Write to MH i2c: E2 08 00 24 1B 80 11 00 00 00 00 00 00 B9 [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:09]Read from MH i2c: E2 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 17 00 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: E2 17 00 24 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 12 [13:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:04:09]wFMCommunicate OK [13:04:09]CreateOFDProtocolMessage done [13:04:09]OFDSenderStorePacket 18763 [13:04:09]StoreOFDPacket docnum=18763 [13:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 96 01 00 00 64 4E 8E 01 41 8F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 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 4E 67 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4B 49 00 00 35 04 06 00 0B DE 48 90 F2 AE 97 60 54 F9 0E 90 D9 D2 [13:04:09]CheckFolder [13:04:09]dirname=/storage/ofd_packets [13:04:09]CheckFolder done [13:04:09]ProducePacketName [13:04:09]name=ofd_packets/00018763 [13:04:09]NVStorageSaveData ofd_packets/00018763 [13:04:09]File name is /storage/ofd_packets/00018763 [13:04:09]Write 436 bytes [13:04:09]NVStorageSaveData done [13:04:09]OFDSenderStorePacket done [13:04:09]KKMCreateOFDPacket done [13:04:09]NVStorageSaveData kkm_last_timestamp [13:04:09]File name is /storage/kkm_last_timestamp [13:04:09]Write 4 bytes [13:04:09]NVStorageSaveData done [13:04:09]ExternCall_PrintAddStr [13:04:09]wPrintStart [13:04:09]Write to MH i2c: 01 00 00 25 1B 40 [13:04:09]Write i2c OK [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: 01 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: 01 07 00 [13:04:09]MH_I2C_Read... [13:04:09]Read from MH i2c: 01 07 00 25 1B 00 00 00 00 00 FF 0F 55 [13:04:09]RasterBufferAndPrint [13:04:09]line Счет N : (3)16683 [13:04:10]line ИНН: 02508201610067 [13:04:10]line Контрольно-Кассовый Чек [13:04:10]line ПРОДАЖА [13:04:10]line Товар: 46230614 [13:04:10]line Сигареты Richmond Red Edition [13:04:10]line 1.000 * 154.00 [13:04:10]line = 154.00 [13:04:10]line НДС 12% НСП 1% [13:04:10]line > о реализуемом товаре [13:04:10]line Товар: 2000036220012 [13:04:10]line Кофе Капучино XL(GABB TRADE) [13:04:10]line 1.000 * 130.00 [13:04:10]line = 130.00 [13:04:10]line НДС 12% НСП 1% [13:04:10]line > о реализуемом товаре [13:04:10]line ИТОГО: 284.00 [13:04:10]line НСП 1% : 2.51 [13:04:10]line НДС 12% : 30.15 [13:04:10]line Наличными: 284.00 [13:04:10]line Безнал.: 0.00 [13:04:10]line Место: АЗС № 176 "Партнер Нефть" [13:04:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:04:10]line СНО: Общий режим [13:04:10]line Чек 39 23.09.2024 13:04 [13:04:10]line Смена: 181 ФФД: 1.0 [13:04:10]line ЗНМ: 0300000010 [13:04:10]line РНМ: 0000000000152968 [13:04:10]line Версия ККМ: v1.0 [13:04:10]line ФМ: 0000000000959456 [13:04:10]line ФД: 18763 [13:04:10]line ФПД: 13049328104110 [13:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130414&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18763&fm=13049328104110&tin=02508201610067®Number=0000000000152968&sum=28400 [13:04:10]line 0 [13:04:10]OFD Sender: Processing packet 18763 [packets to send 7, broken 6] [13:04:10]ProducePacketName [13:04:10]name=ofd_packets/00018763 [13:04:10]OFD Sender: To server: pG, [13:04:10]CommunicateWithHost lk.salyk.kg:30040 [13:04:10]ConnectInit lk.salyk.kg [13:04:10]written 0, free lines is 4095 [13:04:10]Connected sock=10 [13:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 96 01 00 00 64 4E 8E 01 41 8F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0B 00 00 00 00 07 04 06 00 F0 6E 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 4E 67 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4B 49 00 00 35 04 06 00 0B DE 48 90 F2 AE 97 60 54 F9 0E 90 D9 D2 [13:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 07 FA 47 00 72 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 35 39 34 35 36 10 04 04 00 4B 49 00 00 F4 03 04 00 B2 10 F1 66 B6 04 01 00 00 B2 61 B7 B9 68 BB 4A 04 [13:04:10]CommunicateWithHost err = 0 [13:04:10]CheckOFDResponse [13:04:10]1017 (14) - 77093643461234 [13:04:10]1041 (16) - 0000000000959456 [13:04:10]1040 (4) - 18763 [13:04:10]1012 (4) - 23.09.2024 06:54 [13:04:10]1206 (1) - 0 [13:04:10]OFD Sender: Remove packet 18763 [13:04:10]ProducePacketName [13:04:10]name=ofd_packets/00018763 [13:04:10]NVStorageDeleteData [13:04:10]Write to MH i2c: 01 00 00 55 1B 70 [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: 01 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: 01 07 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: 01 07 00 55 1B 00 00 00 00 00 A7 0C 2A [13:04:10]RasterBufferAndPrint [13:04:10]line [13:04:10]line [13:04:10]line [13:04:10]line [13:04:10]line [13:04:10]written 0, free lines is 3246 [13:04:10]MH_Cut [13:04:10]Write to MH i2c: D1 01 00 5C 1B 01 49 [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: D1 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: D1 01 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: D1 01 00 5C 1B 00 48 [13:04:10]Write to MH i2c: 01 00 00 5D 1B 78 [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:11]OFD Sender: No OFD packet to send [13:04:11]*** Cut start [13:04:11]*** Partial cut [13:04:11]*** CUTSNS_PIN = 1 [13:04:11]*** CUTSNS_PIN = 0 [13:04:11]*** Brake cut motor [13:04:12]Read from MH i2c: 01 [13:04:12]MH_I2C_Read... [13:04:12]*** Stop cut motor [13:04:12]*** Cut end [13:04:12]Read from MH i2c: 01 07 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 5D 1B 00 00 00 00 00 FF 0F 8D [13:04:12]process_action close_receipt done [13:04:12]requested_data is exist [13:04:12]produce_requested_data [13:04:12]requested_item fm.sn is exist - process it [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 11 00 00 [13:04:12]Write to MH i2c: E2 08 00 5E 1B 80 11 00 00 00 00 00 00 F3 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 5E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4C [13:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:04:12]wFMCommunicate OK [13:04:12]requested_item fd.num is exist - process it [13:04:12]SAM_PROTO_GetFieldsCounters [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 13 00 00 [13:04:12]Write to MH i2c: E2 08 00 5F 1B 80 13 00 00 00 00 00 00 F6 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 62 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 62 00 5F 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4B 49 00 00 0E 04 04 00 B5 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 E1 [13: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4B 49 00 00 0E 04 04 00 B5 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 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_GetFieldsCounters done [13:04:12]requested_item shift.num is exist - process it [13:04:12]requested_item shift.opened is exist - process it [13:04:12]req_shift_opened [13:04:12]FM_GetShiftState [13:04:12]SAM_PROTO_GetShiftState [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 13 01 00 [13:04:12]Write to MH i2c: E2 08 00 60 1B 80 13 01 00 00 00 00 00 F8 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0E 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0E 00 60 1B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 90 [13:04:12]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_GetShiftState done [13:04:12]FM_GetShiftState done [13:04:12]req_shift_opened done [13:04:12]requested_item shift.open_date is exist - process it [13:04:12]req_shift_open_date [13:04:12]req_shift_open_date done [13:04:12]produce_requested_data done [13:04:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18763,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [13:04:12]process_action_free close_receipt [13:04:12]json_value_free [13:04:12]json_value_free done [13:04:12]process_json_proto returns [13:04:12]Send response to host [13:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18763,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [13:04:12]free response buf [13:04:12]execute_script done [13:04:12]execute_script returns [13:04:12]free content buf [13:04:12]Sock 9.Close socket [13:04:12]Sock 9.Thread stoped [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:23]accept exits with 8 [13:07:23]New connection [13:07:23]New thread 3067272548 created [13:07:23]Thread 3067129188 joined [13:07:23]Waiting for new connection... [13:07:23] Sock 8.Parse request [13:07:23]Sock 8.Check first char [13:07:23]Sock 8.First char is OK [13:07:23]request: POST /json_proto HTTP/1.0 [13:07:23]Method: POST [13:07:23]URL: /json_proto [13:07:23]Method is POST - this is cgi request [13:07:23]url: /json_proto [13:07:23]query_string will be loaded in cgi processing [13:07:23]execute_cgi json_proto POST (null) [13:07:23]execute_cgi path=json_proto method=POST [13:07:23]POST find Content-Length [13:07:23]Host: 172.17.62.196:8080 [13:07:23]Content-Length: 907 [13:07:23]Content-Type: application/json [13:07:23] [13:07:23]POST finish read [13:07:23]Found Content-Length = 907 [13:07:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16687", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:23]execute_script... [13:07:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16687", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:23]POST & json_proto [13:07:23]process_json_proto [13:07:23]json parsed OK: [13:07:23]protocol is kg_v1.0 [13:07:23]action value=close_receipt [13:07:23]process_action close_receipt [13:07:23]cmd_close_receipt [13:07:23]MH_GetDate [13:07:23]Write to MH i2c: F0 00 00 61 1B 6B [13:07:23]Write i2c OK [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: F0 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: F0 09 00 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: F0 09 00 61 1B 00 11 68 F1 66 CE CC 0E 66 52 [13:07:23]GetLastDocTimeStamp 1727096654 [13:07:23]current date 1727096849 [13:07:23]FM_GetShiftState [13:07:23]SAM_PROTO_GetShiftState [13:07:23]wFMCommunicate request_size=4 [13:07:23]MH_SAM_APDU [13:07:23]CAPDU: 80 13 01 00 [13:07:23]Write to MH i2c: E2 08 00 62 1B 80 13 01 00 00 00 00 00 FA [13:07:23]Write i2c OK [13:07:23]MH_I2C_Read... [13:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:23]Read from MH i2c: E2 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: E2 0E 00 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: E2 0E 00 62 1B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 92 [13:07:23]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:07:23]wFMCommunicate OK [13:07:23]SAM_PROTO_GetShiftState done [13:07:23]FM_GetShiftState done [13:07:23]opened in 1727050372 [13:07:23]opened+sec_in_day 1727136772 [13:07:23]quantity*price = 13000 [13:07:23]sum+1 = 13001 [13:07:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 40 23.09.2024 13:07 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18764 ФПД: 234412760471167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130729&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18764&fm=234412760471167&tin=02508201610067®Number=0000000000152968&sum=21500 0 [13:07:24]StoreToDocumentArchive [13:07:24]shift 181 fd 18764 [13:07:24]save to /storage/0181/doc_00018764 [13:07:24]save last doc name /storage/0181/doc_00018764 to /storage/kkm_last_doc_name [13:07:24]save OK [13:07:24]Clear old archive folders... [13:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=396 [13:07:24]tlvbuf is B6F287E0 [13:07:24]SAM_PROTO_ClearQueue [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 09 00 00 [13:07:24]Write to MH i2c: E2 08 00 6F 1B 80 09 00 00 00 00 00 00 FC [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 6F 1B 00 90 00 FE [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]SAM_PROTO_ClearQueue done [13:07:24]KKMCreateOFDPacket [13:07:24]OFDProtocolAddRootSTLVToBuf [13:07:24]FM_MakeSignedData [13:07:24]FM_MakeSignedData [13:07:24]SAM_PROTO_SignData [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 01 02 [13:07:24]Write to MH i2c: E2 08 00 70 1B 80 0D 01 02 00 00 00 00 04 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]wFMCommunicate request_size=255 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF [13:07:24]Write to MH i2c: E2 02 01 71 1B 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 00 00 2B [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]wFMCommunicate request_size=155 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 11 68 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4C 49 00 00 35 04 06 00 D5 32 79 51 96 7F [13:07:24]Write to MH i2c: E2 9E 00 72 1B 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 11 68 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4C 49 00 00 35 04 06 00 D5 32 79 51 96 7F 00 00 A1 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 03 02 [13:07:24]Write to MH i2c: E2 08 00 73 1B 80 0D 03 02 00 00 00 00 09 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0B 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0B 00 73 1B 00 81 5F 5B 12 0B FF F2 FD 90 00 50 [13:07:24]RAPDU: 81 5F 5B 12 0B FF F2 FD 90 00 [13:07:24]wFMCommunicate OK [13:07:24]SAM_PROTO_SignData done [13:07:24]FM_MakeSignedData done [13:07:24]CreateOFDProtocolMessage [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 11 00 00 [13:07:24]Write to MH i2c: E2 08 00 74 1B 80 11 00 00 00 00 00 00 09 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 17 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 17 00 74 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 62 [13:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:07:24]wFMCommunicate OK [13:07:24]CreateOFDProtocolMessage done [13:07:24]OFDSenderStorePacket 18764 [13:07:24]StoreOFDPacket docnum=18764 [13:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A0 01 00 00 D7 3D 98 01 7D E5 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 11 68 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4C 49 00 00 35 04 06 00 D5 32 79 51 96 7F 81 5F 5B 12 0B FF F2 FD [13:07:24]CheckFolder [13:07:24]dirname=/storage/ofd_packets [13:07:24]CheckFolder done [13:07:24]ProducePacketName [13:07:24]name=ofd_packets/00018764 [13:07:24]NVStorageSaveData ofd_packets/00018764 [13:07:24]File name is /storage/ofd_packets/00018764 [13:07:24]Write 446 bytes [13:07:24]NVStorageSaveData done [13:07:24]OFDSenderStorePacket done [13:07:24]KKMCreateOFDPacket done [13:07:24]NVStorageSaveData kkm_last_timestamp [13:07:24]File name is /storage/kkm_last_timestamp [13:07:24]Write 4 bytes [13:07:24]NVStorageSaveData done [13:07:24]ExternCall_PrintAddStr [13:07:24]wPrintStart [13:07:24]Write to MH i2c: 01 00 00 75 1B 90 [13:07:25]OFD Sender: Processing packet 18764 [packets to send 7, broken 6] [13:07:25]ProducePacketName [13:07:25]name=ofd_packets/00018764 [13:07:25]OFD Sender: To server: pG, [13:07:25]CommunicateWithHost lk.salyk.kg:30040 [13:07:25]ConnectInit lk.salyk.kg [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 07 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 FF 0F A5 [13:07:25]RasterBufferAndPrint [13:07:25]line Счет N : (3)16687 [13:07:25]line ИНН: 02508201610067 [13:07:25]line Контрольно-Кассовый Чек [13:07:25]line ПРОДАЖА [13:07:25]line Товар: 48745291 [13:07:25]line Сигареты Parliament SOHO NYC COMPACT BLU [13:07:25]line 1.000 * 130.00 [13:07:25]line = 130.00 [13:07:25]line НДС 12% НСП 1% [13:07:25]line > о реализуемом товаре [13:07:25]line Товар: 5449000000996 [13:07:25]line Напиток Кока-Кола 0,33л [13:07:25]line 1.000 * 85.00 [13:07:25]line = 85.00 [13:07:25]line НДС 12% НСП 1% [13:07:25]line > о реализуемом товаре [13:07:25]line ИТОГО: 215.00 [13:07:25]line НСП 1% : 1.90 [13:07:25]line НДС 12% : 22.83 [13:07:25]line Наличными: 215.00 [13:07:25]line Безнал.: 0.00 [13:07:25]line Место: АЗС № 176 "Партнер Нефть" [13:07:25]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:07:25]line СНО: Общий режим [13:07:25]line Чек 40 23.09.2024 13:07 [13:07:25]line Смена: 181 ФФД: 1.0 [13:07:25]line ЗНМ: 0300000010 [13:07:25]line РНМ: 0000000000152968 [13:07:25]line Версия ККМ: v1.0 [13:07:25]line ФМ: 0000000000959456 [13:07:25]line ФД: 18764 [13:07:25]line ФПД: 234412760471167 [13:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T130729&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18764&fm=234412760471167&tin=02508201610067®Number=0000000000152968&sum=21500 [13:07:25]line 0 [13:07:25]written 0, free lines is 4095 [13:07:25]Connected sock=10 [13:07:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A0 01 00 00 D7 3D 98 01 7D E5 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 11 68 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4C 49 00 00 35 04 06 00 D5 32 79 51 96 7F 81 5F 5B 12 0B FF F2 FD [13:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 31 C9 47 00 BA 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 35 39 34 35 36 10 04 04 00 4C 49 00 00 F4 03 04 00 75 11 F1 66 B6 04 01 00 00 B8 52 74 52 CC 67 1E 79 [13:07:25]CommunicateWithHost err = 0 [13:07:25]CheckOFDResponse [13:07:25]1017 (14) - 77093643461234 [13:07:25]1041 (16) - 0000000000959456 [13:07:25]1040 (4) - 18764 [13:07:25]1012 (4) - 23.09.2024 06:57 [13:07:25]1206 (1) - 0 [13:07:25]OFD Sender: Remove packet 18764 [13:07:25]ProducePacketName [13:07:25]name=ofd_packets/00018764 [13:07:25]NVStorageDeleteData [13:07:25]Write to MH i2c: 01 00 00 A4 1B BF [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 07 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 07 00 A4 1B 00 00 00 00 00 CB 0C 9D [13:07:25]RasterBufferAndPrint [13:07:25]line [13:07:25]line [13:07:25]line [13:07:25]line [13:07:25]line [13:07:25]written 0, free lines is 3281 [13:07:25]MH_Cut [13:07:25]Write to MH i2c: D1 01 00 AB 1B 01 98 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: D1 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: D1 01 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: D1 01 00 AB 1B 00 97 [13:07:25]Write to MH i2c: 01 00 00 AC 1B C7 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:26]OFD Sender: No OFD packet to send [13:07:26]*** Cut start [13:07:26]*** Partial cut [13:07:26]*** CUTSNS_PIN = 1 [13:07:26]*** CUTSNS_PIN = 0 [13:07:26]*** Brake cut motor [13:07:27]Read from MH i2c: 01 [13:07:27]MH_I2C_Read... [13:07:27]*** Stop cut motor [13:07:27]*** Cut end [13:07:27]Read from MH i2c: 01 07 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [13:07:27]process_action close_receipt done [13:07:27]requested_data is exist [13:07:27]produce_requested_data [13:07:27]requested_item fm.sn is exist - process it [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 11 00 00 [13:07:27]Write to MH i2c: E2 08 00 AD 1B 80 11 00 00 00 00 00 00 42 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 17 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 17 00 AD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9B [13:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:07:27]wFMCommunicate OK [13:07:27]requested_item fd.num is exist - process it [13:07:27]SAM_PROTO_GetFieldsCounters [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 13 00 00 [13:07:27]Write to MH i2c: E2 08 00 AE 1B 80 13 00 00 00 00 00 00 45 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 62 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 62 00 AE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4C 49 00 00 0E 04 04 00 B5 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 34 [13:07:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4C 49 00 00 0E 04 04 00 B5 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 [13:07:27]wFMCommunicate OK [13:07:27]SAM_PROTO_GetFieldsCounters done [13:07:27]requested_item shift.num is exist - process it [13:07:27]requested_item shift.opened is exist - process it [13:07:27]req_shift_opened [13:07:27]FM_GetShiftState [13:07:27]SAM_PROTO_GetShiftState [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 13 01 00 [13:07:27]Write to MH i2c: E2 08 00 AF 1B 80 13 01 00 00 00 00 00 47 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 AF 1B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 DF [13:07:27]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:07:27]wFMCommunicate OK [13:07:27]SAM_PROTO_GetShiftState done [13:07:27]FM_GetShiftState done [13:07:27]req_shift_opened done [13:07:27]requested_item shift.open_date is exist - process it [13:07:27]req_shift_open_date [13:07:27]req_shift_open_date done [13:07:27]produce_requested_data done [13:07:27]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18764,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [13:07:27]process_action_free close_receipt [13:07:27]json_value_free [13:07:27]json_value_free done [13:07:27]process_json_proto returns [13:07:27]Send response to host [13:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18764,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [13:07:27]free response buf [13:07:27]execute_script done [13:07:27]execute_script returns [13:07:27]free content buf [13:07:27]Sock 8.Close socket [13:07:27]Sock 8.Thread stoped [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:24]accept exits with 9 [13:17:24]New connection [13:17:24]New thread 3067129188 created [13:17:24]Thread 3067272548 joined [13:17:24]Waiting for new connection... [13:17:24] Sock 9.Parse request [13:17:24]Sock 9.Check first char [13:17:24]Sock 9.First char is OK [13:17:24]request: POST /json_proto HTTP/1.0 [13:17:24]Method: POST [13:17:24]URL: /json_proto [13:17:24]Method is POST - this is cgi request [13:17:24]url: /json_proto [13:17:24]query_string will be loaded in cgi processing [13:17:24]execute_cgi json_proto POST (null) [13:17:24]execute_cgi path=json_proto method=POST [13:17:24]POST find Content-Length [13:17:24]Host: 172.17.62.196:8080 [13:17:24]Content-Length: 904 [13:17:24]Content-Type: application/json [13:17:24] [13:17:24]POST finish read [13:17:24]Found Content-Length = 904 [13:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16688", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:24]execute_script... [13:17:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16688", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:24]POST & json_proto [13:17:24]process_json_proto [13:17:24]json parsed OK: [13:17:24]protocol is kg_v1.0 [13:17:24]action value=close_receipt [13:17:24]process_action close_receipt [13:17:24]cmd_close_receipt [13:17:24]MH_GetDate [13:17:24]Write to MH i2c: F0 00 00 B0 1B BA [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: F0 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: F0 09 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: F0 09 00 B0 1B 00 6B 6A F1 66 CE CC 0E 66 FD [13:17:24]GetLastDocTimeStamp 1727096849 [13:17:24]current date 1727097451 [13:17:24]FM_GetShiftState [13:17:24]SAM_PROTO_GetShiftState [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 13 01 00 [13:17:24]Write to MH i2c: E2 08 00 B1 1B 80 13 01 00 00 00 00 00 49 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 B1 1B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 E1 [13:17:25]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetShiftState done [13:17:25]FM_GetShiftState done [13:17:25]opened in 1727050372 [13:17:25]opened+sec_in_day 1727136772 [13:17:25]quantity*price = 9000 [13:17:25]sum+1 = 9001 [13:17:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 156.00 = 156.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 246.00 НСП 1% : 2.18 НДС 12% : 26.13 Наличными: 246.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 41 23.09.2024 13:17 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18765 ФПД: 250864938428425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131731&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18765&fm=250864938428425&tin=02508201610067®Number=0000000000152968&sum=24600 0 [13:17:26]StoreToDocumentArchive [13:17:26]shift 181 fd 18765 [13:17:26]save to /storage/0181/doc_00018765 [13:17:26]save last doc name /storage/0181/doc_00018765 to /storage/kkm_last_doc_name [13:17:26]save OK [13:17:26]Clear old archive folders... [13:17:26]ProcessDocumentItem done err = 0, tmpTLVsize=397 [13:17:26]tlvbuf is B6F0F410 [13:17:26]SAM_PROTO_ClearQueue [13:17:26]wFMCommunicate request_size=4 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 09 00 00 [13:17:26]Write to MH i2c: E2 08 00 BE 1B 80 09 00 00 00 00 00 00 4B [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [13:17:26]RAPDU: 90 00 [13:17:26]wFMCommunicate OK [13:17:26]SAM_PROTO_ClearQueue done [13:17:26]KKMCreateOFDPacket [13:17:26]OFDProtocolAddRootSTLVToBuf [13:17:26]FM_MakeSignedData [13:17:26]FM_MakeSignedData [13:17:26]SAM_PROTO_SignData [13:17:26]wFMCommunicate request_size=4 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 0D 01 02 [13:17:26]Write to MH i2c: E2 08 00 BF 1B 80 0D 01 02 00 00 00 00 53 [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [13:17:26]RAPDU: 90 00 [13:17:26]wFMCommunicate OK [13:17:26]wFMCommunicate request_size=255 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 [13:17:26]Write to MH i2c: E2 02 01 C0 1B 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 00 00 00 [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [13:17:26]RAPDU: 90 00 [13:17:26]wFMCommunicate OK [13:17:26]wFMCommunicate request_size=156 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6B 6A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4D 49 00 00 35 04 06 00 E4 29 0B 8A A8 09 [13:17:26]Write to MH i2c: E2 9F 00 C1 1B 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6B 6A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4D 49 00 00 35 04 06 00 E4 29 0B 8A A8 09 00 00 3D [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [13:17:26]RAPDU: 90 00 [13:17:26]wFMCommunicate OK [13:17:26]wFMCommunicate request_size=4 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 0D 03 02 [13:17:26]Write to MH i2c: E2 08 00 C2 1B 80 0D 03 02 00 00 00 00 58 [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 0B 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 0B 00 C2 1B 00 C0 BB 1E 1E 6D F6 BF 41 90 00 73 [13:17:26]RAPDU: C0 BB 1E 1E 6D F6 BF 41 90 00 [13:17:26]wFMCommunicate OK [13:17:26]SAM_PROTO_SignData done [13:17:26]FM_MakeSignedData done [13:17:26]CreateOFDProtocolMessage [13:17:26]wFMCommunicate request_size=4 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 11 00 00 [13:17:26]Write to MH i2c: E2 08 00 C3 1B 80 11 00 00 00 00 00 00 58 [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]OFD Sender: No OFD packet to send [13:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 17 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 17 00 C3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B1 [13:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:17:26]wFMCommunicate OK [13:17:26]CreateOFDProtocolMessage done [13:17:26]OFDSenderStorePacket 18765 [13:17:26]StoreOFDPacket docnum=18765 [13:17:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A1 01 00 00 F8 02 99 01 A2 B7 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6B 6A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4D 49 00 00 35 04 06 00 E4 29 0B 8A A8 09 C0 BB 1E 1E 6D F6 BF 41 [13:17:26]CheckFolder [13:17:26]dirname=/storage/ofd_packets [13:17:26]CheckFolder done [13:17:26]ProducePacketName [13:17:26]name=ofd_packets/00018765 [13:17:26]NVStorageSaveData ofd_packets/00018765 [13:17:26]File name is /storage/ofd_packets/00018765 [13:17:26]Write 447 bytes [13:17:26]NVStorageSaveData done [13:17:26]OFDSenderStorePacket done [13:17:26]KKMCreateOFDPacket done [13:17:26]NVStorageSaveData kkm_last_timestamp [13:17:26]File name is /storage/kkm_last_timestamp [13:17:26]Write 4 bytes [13:17:26]NVStorageSaveData done [13:17:27]ExternCall_PrintAddStr [13:17:27]wPrintStart [13:17:27]Write to MH i2c: 01 00 00 C4 1B DF [13:17:27]OFD Sender: Processing packet 18765 [packets to send 7, broken 6] [13:17:27]ProducePacketName [13:17:27]name=ofd_packets/00018765 [13:17:27]OFD Sender: To server: pG, [13:17:27]CommunicateWithHost lk.salyk.kg:30040 [13:17:27]Write i2c OK [13:17:27]ConnectInit lk.salyk.kg [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 C4 1B 00 00 00 00 00 FF 0F F4 [13:17:27]RasterBufferAndPrint [13:17:27]line Счет N : (3)16688 [13:17:27]line ИНН: 02508201610067 [13:17:27]line Контрольно-Кассовый Чек [13:17:27]line ПРОДАЖА [13:17:27]line Товар: 4870022003305 [13:17:27]line Напиток Gorilla эн нат ж/б 0,5/0,45л [13:17:27]line 1.000 * 90.00 [13:17:27]line = 90.00 [13:17:27]line НДС 12% НСП 1% [13:17:27]line > о реализуемом товаре [13:17:27]line Товар: 48741958 [13:17:27]line Сигареты Parliament Aqua Blue [13:17:27]line 1.000 * 156.00 [13:17:27]line = 156.00 [13:17:27]line НДС 12% НСП 1% [13:17:27]line > о реализуемом товаре [13:17:27]line ИТОГО: 246.00 [13:17:27]line НСП 1% : 2.18 [13:17:27]line НДС 12% : 26.13 [13:17:27]line Наличными: 246.00 [13:17:27]line Безнал.: 0.00 [13:17:27]line Место: АЗС № 176 "Партнер Нефть" [13:17:27]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:17:27]line СНО: Общий режим [13:17:27]line Чек 41 23.09.2024 13:17 [13:17:27]line Смена: 181 ФФД: 1.0 [13:17:27]line ЗНМ: 0300000010 [13:17:27]line РНМ: 0000000000152968 [13:17:27]line Версия ККМ: v1.0 [13:17:27]line ФМ: 0000000000959456 [13:17:27]line ФД: 18765 [13:17:27]line ФПД: 250864938428425 [13:17:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T131731&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18765&fm=250864938428425&tin=02508201610067®Number=0000000000152968&sum=24600 [13:17:27]line 0 [13:17:27]written 0, free lines is 4095 [13:17:27]Connected sock=10 [13:17:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A1 01 00 00 F8 02 99 01 A2 B7 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 6B 6A F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4D 49 00 00 35 04 06 00 E4 29 0B 8A A8 09 C0 BB 1E 1E 6D F6 BF 41 [13:17:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 11 AE 47 00 53 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 35 39 34 35 36 10 04 04 00 4D 49 00 00 F4 03 04 00 CF 13 F1 66 B6 04 01 00 00 27 73 C1 89 4B AC 5B 4B [13:17:27]CommunicateWithHost err = 0 [13:17:27]CheckOFDResponse [13:17:27]1017 (14) - 77093643461234 [13:17:27]1041 (16) - 0000000000959456 [13:17:27]1040 (4) - 18765 [13:17:27]1012 (4) - 23.09.2024 07:07 [13:17:27]1206 (1) - 0 [13:17:27]OFD Sender: Remove packet 18765 [13:17:27]ProducePacketName [13:17:27]name=ofd_packets/00018765 [13:17:27]NVStorageDeleteData [13:17:27]Write to MH i2c: 01 00 00 F4 1B 0F [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 B5 0C D7 [13:17:27]RasterBufferAndPrint [13:17:27]line [13:17:27]line [13:17:27]line [13:17:27]line [13:17:27]line [13:17:27]written 0, free lines is 3259 [13:17:27]MH_Cut [13:17:27]Write to MH i2c: D1 01 00 FB 1B 01 E8 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: D1 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: D1 01 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: D1 01 00 FB 1B 00 E7 [13:17:27]Write to MH i2c: 01 00 00 FC 1B 17 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:28]OFD Sender: No OFD packet to send [13:17:28]*** Cut start [13:17:28]*** Partial cut [13:17:28]*** CUTSNS_PIN = 1 [13:17:28]*** CUTSNS_PIN = 0 [13:17:28]*** Brake cut motor [13:17:28]Read from MH i2c: 01 [13:17:28]MH_I2C_Read... [13:17:28]*** Stop cut motor [13:17:28]*** Cut end [13:17:28]Read from MH i2c: 01 07 00 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: 01 07 00 FC 1B 00 00 00 00 00 FF 0F 2C [13:17:28]process_action close_receipt done [13:17:28]requested_data is exist [13:17:28]produce_requested_data [13:17:28]requested_item fm.sn is exist - process it [13:17:28]wFMCommunicate request_size=4 [13:17:28]MH_SAM_APDU [13:17:28]CAPDU: 80 11 00 00 [13:17:28]Write to MH i2c: E2 08 00 FD 1B 80 11 00 00 00 00 00 00 92 [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:28]Read from MH i2c: E2 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: E2 17 00 [13:17:28]MH_I2C_Read... [13:17:28]Read from MH i2c: E2 17 00 FD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 EB [13:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:17:28]wFMCommunicate OK [13:17:28]requested_item fd.num is exist - process it [13:17:28]SAM_PROTO_GetFieldsCounters [13:17:28]wFMCommunicate request_size=4 [13:17:28]MH_SAM_APDU [13:17:28]CAPDU: 80 13 00 00 [13:17:28]Write to MH i2c: E2 08 00 FE 1B 80 13 00 00 00 00 00 00 95 [13:17:28]Write i2c OK [13:17:28]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 62 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 62 00 FE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4D 49 00 00 0E 04 04 00 B5 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 88 [13:17:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4D 49 00 00 0E 04 04 00 B5 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 [13:17:29]wFMCommunicate OK [13:17:29]SAM_PROTO_GetFieldsCounters done [13:17:29]requested_item shift.num is exist - process it [13:17:29]requested_item shift.opened is exist - process it [13:17:29]req_shift_opened [13:17:29]FM_GetShiftState [13:17:29]SAM_PROTO_GetShiftState [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 13 01 00 [13:17:29]Write to MH i2c: E2 08 00 FF 1B 80 13 01 00 00 00 00 00 97 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:29]Read from MH i2c: E2 0E 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 0E 00 FF 1B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 2F [13:17:29]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:17:29]wFMCommunicate OK [13:17:29]SAM_PROTO_GetShiftState done [13:17:29]FM_GetShiftState done [13:17:29]req_shift_opened done [13:17:29]requested_item shift.open_date is exist - process it [13:17:29]req_shift_open_date [13:17:29]req_shift_open_date done [13:17:29]produce_requested_data done [13:17:29]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18765,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [13:17:29]process_action_free close_receipt [13:17:29]json_value_free [13:17:29]json_value_free done [13:17:29]process_json_proto returns [13:17:29]Send response to host [13:17:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18765,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [13:17:29]free response buf [13:17:29]execute_script done [13:17:29]execute_script returns [13:17:29]free content buf [13:17:29]Sock 9.Close socket [13:17:29]Sock 9.Thread stoped [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:15]accept exits with 8 [13:23:15]New connection [13:23:15]New thread 3067272548 created [13:23:15]Thread 3067129188 joined [13:23:15]Waiting for new connection... [13:23:15] Sock 8.Parse request [13:23:15]Sock 8.Check first char [13:23:15]Sock 8.First char is OK [13:23:15]request: POST /json_proto HTTP/1.0 [13:23:15]Method: POST [13:23:15]URL: /json_proto [13:23:15]Method is POST - this is cgi request [13:23:15]url: /json_proto [13:23:15]query_string will be loaded in cgi processing [13:23:15]execute_cgi json_proto POST (null) [13:23:15]execute_cgi path=json_proto method=POST [13:23:15]POST find Content-Length [13:23:15]Host: 172.17.62.196:8080 [13:23:15]Content-Length: 632 [13:23:15]Content-Type: application/json [13:23:15] [13:23:15]POST finish read [13:23:15]Found Content-Length = 632 [13:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16689", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:15]execute_script... [13:23:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16689", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:15]POST & json_proto [13:23:15]process_json_proto [13:23:15]json parsed OK: [13:23:15]protocol is kg_v1.0 [13:23:15]action value=close_receipt [13:23:15]process_action close_receipt [13:23:15]cmd_close_receipt [13:23:15]MH_GetDate [13:23:15]Write to MH i2c: F0 00 00 00 1C 0B [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 00 1C 00 C9 6B F1 66 CE CC 0E 66 AD [13:23:15]GetLastDocTimeStamp 1727097451 [13:23:15]current date 1727097801 [13:23:15]FM_GetShiftState [13:23:15]SAM_PROTO_GetShiftState [13:23:15]wFMCommunicate request_size=4 [13:23:15]MH_SAM_APDU [13:23:15]CAPDU: 80 13 01 00 [13:23:15]Write to MH i2c: E2 08 00 01 1C 80 13 01 00 00 00 00 00 9A [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:15]Read from MH i2c: E2 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 01 1C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 32 [13:23:15]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:23:15]wFMCommunicate OK [13:23:15]SAM_PROTO_GetShiftState done [13:23:15]FM_GetShiftState done [13:23:15]opened in 1727050372 [13:23:15]opened+sec_in_day 1727136772 [13:23:15]quantity*price = 26000 [13:23:15]sum+1 = 26001 [13:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 42 23.09.2024 13:23 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18766 ФПД: 76560550656549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132322&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18766&fm=76560550656549&tin=02508201610067®Number=0000000000152968&sum=26000 0 [13:23:17]StoreToDocumentArchive [13:23:17]shift 181 fd 18766 [13:23:17]save to /storage/0181/doc_00018766 [13:23:17]save last doc name /storage/0181/doc_00018766 to /storage/kkm_last_doc_name [13:23:17]save OK [13:23:17]Clear old archive folders... [13:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=285 [13:23:17]tlvbuf is 0026F2C0 [13:23:17]SAM_PROTO_ClearQueue [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 09 00 00 [13:23:17]Write to MH i2c: E2 08 00 0E 1C 80 09 00 00 00 00 00 00 9C [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]SAM_PROTO_ClearQueue done [13:23:17]KKMCreateOFDPacket [13:23:17]OFDProtocolAddRootSTLVToBuf [13:23:17]FM_MakeSignedData [13:23:17]FM_MakeSignedData [13:23:17]SAM_PROTO_SignData [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 01 02 [13:23:17]Write to MH i2c: E2 08 00 0F 1C 80 0D 01 02 00 00 00 00 A4 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]wFMCommunicate request_size=255 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 6B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 [13:23:17]Write to MH i2c: E2 02 01 10 1C 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 6B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 00 00 90 [13:23:17]ConnectInit Can't connect to host [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]wFMCommunicate request_size=44 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 02 02 27 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4E 49 00 00 35 04 06 00 45 A1 A4 6C FA 25 [13:23:17]Write to MH i2c: E2 2F 00 11 1C 80 0D 02 02 27 00 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4E 49 00 00 35 04 06 00 45 A1 A4 6C FA 25 00 00 7B [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 03 02 [13:23:17]Write to MH i2c: E2 08 00 12 1C 80 0D 03 02 00 00 00 00 A9 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0B 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0B 00 12 1C 00 2F B4 22 AF DD 79 D4 B0 90 00 38 [13:23:17]RAPDU: 2F B4 22 AF DD 79 D4 B0 90 00 [13:23:17]wFMCommunicate OK [13:23:17]SAM_PROTO_SignData done [13:23:17]FM_MakeSignedData done [13:23:17]CreateOFDProtocolMessage [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 11 00 00 [13:23:17]Write to MH i2c: E2 08 00 13 1C 80 11 00 00 00 00 00 00 A9 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 17 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 17 00 13 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 02 [13:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:23:17]wFMCommunicate OK [13:23:17]CreateOFDProtocolMessage done [13:23:17]OFDSenderStorePacket 18766 [13:23:17]StoreOFDPacket docnum=18766 [13:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 31 01 00 00 D3 92 29 01 32 7C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 6B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4E 49 00 00 35 04 06 00 45 A1 A4 6C FA 25 2F B4 22 AF DD 79 D4 B0 [13:23:17]CheckFolder [13:23:17]dirname=/storage/ofd_packets [13:23:17]CheckFolder done [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00018766 [13:23:17]NVStorageSaveData ofd_packets/00018766 [13:23:17]File name is /storage/ofd_packets/00018766 [13:23:17]Write 335 bytes [13:23:17]NVStorageSaveData done [13:23:17]OFDSenderStorePacket done [13:23:17]KKMCreateOFDPacket done [13:23:17]NVStorageSaveData kkm_last_timestamp [13:23:17]File name is /storage/kkm_last_timestamp [13:23:17]Write 4 bytes [13:23:17]NVStorageSaveData done [13:23:17]ExternCall_PrintAddStr [13:23:17]wPrintStart [13:23:17]Write to MH i2c: 01 00 00 14 1C 30 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 14 1C 00 00 00 00 00 FF 0F 45 [13:23:17]RasterBufferAndPrint [13:23:17]line Счет N : (3)16689 [13:23:17]line ИНН: 02508201610067 [13:23:17]line Контрольно-Кассовый Чек [13:23:17]line ПРОДАЖА [13:23:17]line Товар: 48745291 [13:23:17]line Сигареты Parliament SOHO NYC COMPACT BLU [13:23:17]line 2.000 * 130.00 [13:23:17]line = 260.00 [13:23:17]line НДС 12% НСП 1% [13:23:17]line > о реализуемом товаре [13:23:17]line ИТОГО: 260.00 [13:23:17]line НСП 1% : 2.30 [13:23:17]line НДС 12% : 27.61 [13:23:17]line Наличными: 260.00 [13:23:17]line Безнал.: 0.00 [13:23:17]line Место: АЗС № 176 "Партнер Нефть" [13:23:17]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:23:17]line СНО: Общий режим [13:23:17]line Чек 42 23.09.2024 13:23 [13:23:17]line Смена: 181 ФФД: 1.0 [13:23:17]line ЗНМ: 0300000010 [13:23:17]line РНМ: 0000000000152968 [13:23:17]line Версия ККМ: v1.0 [13:23:17]line ФМ: 0000000000959456 [13:23:17]line ФД: 18766 [13:23:17]line ФПД: 76560550656549 [13:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T132322&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18766&fm=76560550656549&tin=02508201610067®Number=0000000000152968&sum=26000 [13:23:17]OFD Sender: Processing packet 18766 [packets to send 7, broken 6] [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00018766 [13:23:17]OFD Sender: To server: pG, [13:23:17]CommunicateWithHost lk.salyk.kg:30040 [13:23:17]ConnectInit lk.salyk.kg [13:23:17]line 0 [13:23:17]written 0, free lines is 4095 [13:23:18]Write to MH i2c: 01 00 00 3D 1C 59 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 07 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 08 0D 75 [13:23:18]RasterBufferAndPrint [13:23:18]line [13:23:18]line [13:23:18]line [13:23:18]line [13:23:18]line [13:23:18]written 0, free lines is 3342 [13:23:18]MH_Cut [13:23:18]Write to MH i2c: D1 01 00 44 1C 01 32 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: D1 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: D1 01 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: D1 01 00 44 1C 00 31 [13:23:18]Write to MH i2c: 01 00 00 45 1C 61 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]Connected sock=9 [13:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 31 01 00 00 D3 92 29 01 32 7C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 CA 6B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4E 49 00 00 35 04 06 00 45 A1 A4 6C FA 25 2F B4 22 AF DD 79 D4 B0 [13:23:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 01 71 47 00 99 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 35 39 34 35 36 10 04 04 00 4E 49 00 00 F4 03 04 00 2E 15 F1 66 B6 04 01 00 00 30 5C 97 85 11 12 F9 54 [13:23:19]CommunicateWithHost err = 0 [13:23:19]CheckOFDResponse [13:23:19]1017 (14) - 77093643461234 [13:23:19]1041 (16) - 0000000000959456 [13:23:19]1040 (4) - 18766 [13:23:19]1012 (4) - 23.09.2024 07:13 [13:23:19]1206 (1) - 0 [13:23:19]OFD Sender: Remove packet 18766 [13:23:19]ProducePacketName [13:23:19]name=ofd_packets/00018766 [13:23:19]NVStorageDeleteData [13:23:19]*** Cut start [13:23:19]*** Partial cut [13:23:19]*** CUTSNS_PIN = 1 [13:23:19]*** CUTSNS_PIN = 0 [13:23:19]*** Brake cut motor [13:23:19]OFD Sender: No OFD packet to send [13:23:19]Read from MH i2c: 01 [13:23:19]MH_I2C_Read... [13:23:19]*** Stop cut motor [13:23:19]*** Cut end [13:23:19]Read from MH i2c: 01 07 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: 01 07 00 45 1C 00 00 00 00 00 FF 0F 76 [13:23:19]process_action close_receipt done [13:23:19]requested_data is exist [13:23:19]produce_requested_data [13:23:19]requested_item fm.sn is exist - process it [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 11 00 00 [13:23:19]Write to MH i2c: E2 08 00 46 1C 80 11 00 00 00 00 00 00 DC [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 17 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 17 00 46 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 35 [13:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:23:19]wFMCommunicate OK [13:23:19]requested_item fd.num is exist - process it [13:23:19]SAM_PROTO_GetFieldsCounters [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 13 00 00 [13:23:19]Write to MH i2c: E2 08 00 47 1C 80 13 00 00 00 00 00 00 DF [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 62 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 62 00 47 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4E 49 00 00 0E 04 04 00 B5 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 D6 [13:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4E 49 00 00 0E 04 04 00 B5 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 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_GetFieldsCounters done [13:23:19]requested_item shift.num is exist - process it [13:23:19]requested_item shift.opened is exist - process it [13:23:19]req_shift_opened [13:23:19]FM_GetShiftState [13:23:19]SAM_PROTO_GetShiftState [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 13 01 00 [13:23:19]Write to MH i2c: E2 08 00 48 1C 80 13 01 00 00 00 00 00 E1 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 48 1C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 79 [13:23:19]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_GetShiftState done [13:23:19]FM_GetShiftState done [13:23:19]req_shift_opened done [13:23:19]requested_item shift.open_date is exist - process it [13:23:19]req_shift_open_date [13:23:19]req_shift_open_date done [13:23:19]produce_requested_data done [13:23:19]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18766,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [13:23:19]process_action_free close_receipt [13:23:19]json_value_free [13:23:19]json_value_free done [13:23:19]process_json_proto returns [13:23:19]Send response to host [13:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18766,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [13:23:19]free response buf [13:23:19]execute_script done [13:23:19]execute_script returns [13:23:19]free content buf [13:23:19]Sock 8.Close socket [13:23:19]Sock 8.Thread stoped [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:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:46]accept exits with 10 [13:32:46]New connection [13:32:46]New thread 3067129188 created [13:32:46]Thread 3067272548 joined [13:32:46]Waiting for new connection... [13:32:46] Sock 10.Parse request [13:32:46]Sock 10.Check first char [13:32:46]Sock 10.First char is OK [13:32:46]request: POST /json_proto HTTP/1.0 [13:32:46]Method: POST [13:32:46]URL: /json_proto [13:32:46]Method is POST - this is cgi request [13:32:46]url: /json_proto [13:32:46]query_string will be loaded in cgi processing [13:32:46]execute_cgi json_proto POST (null) [13:32:46]execute_cgi path=json_proto method=POST [13:32:46]POST find Content-Length [13:32:46]Host: 172.17.62.196:8080 [13:32:46]Content-Length: 1167 [13:32:46]Content-Type: application/json [13:32:46] [13:32:46]POST finish read [13:32:46]Found Content-Length = 1167 [13:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16690", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:46]execute_script... [13: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 : (3)16690", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:46]POST & json_proto [13:32:46]process_json_proto [13:32:46]json parsed OK: [13:32:46]protocol is kg_v1.0 [13:32:46]action value=close_receipt [13:32:46]process_action close_receipt [13:32:46]cmd_close_receipt [13:32:46]MH_GetDate [13:32:46]Write to MH i2c: F0 00 00 49 1C 54 [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: F0 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: F0 09 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: F0 09 00 49 1C 00 04 6E F1 66 CE CC 0E 66 34 [13:32:46]GetLastDocTimeStamp 1727097802 [13:32:46]current date 1727098372 [13:32:46]FM_GetShiftState [13:32:46]SAM_PROTO_GetShiftState [13:32:46]wFMCommunicate request_size=4 [13:32:46]MH_SAM_APDU [13:32:46]CAPDU: 80 13 01 00 [13:32:46]Write to MH i2c: E2 08 00 4A 1C 80 13 01 00 00 00 00 00 E3 [13:32:46]Write i2c OK [13:32:46]MH_I2C_Read... [13:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:46]Read from MH i2c: E2 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 0E 00 [13:32:46]MH_I2C_Read... [13:32:46]Read from MH i2c: E2 0E 00 4A 1C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 7B [13:32:46]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:32:46]wFMCommunicate OK [13:32:46]SAM_PROTO_GetShiftState done [13:32:46]FM_GetShiftState done [13:32:46]opened in 1727050372 [13:32:46]opened+sec_in_day 1727136772 [13:32:46]quantity*price = 7500 [13:32:46]sum+1 = 7501 [13:32:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.32 НДС 12% : 15.92 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 43 23.09.2024 13:32 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18767 ФПД: 267046044416587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133252&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18767&fm=267046044416587&tin=02508201610067®Number=0000000000152968&sum=15000 0 [13:32:47]StoreToDocumentArchive [13:32:47]shift 181 fd 18767 [13:32:47]save to /storage/0181/doc_00018767 [13:32:47]save last doc name /storage/0181/doc_00018767 to /storage/kkm_last_doc_name [13:32:47]save OK [13:32:47]Clear old archive folders... [13:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=425 [13:32:47]tlvbuf is 0026ECB0 [13:32:47]SAM_PROTO_ClearQueue [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 09 00 00 [13:32:47]Write to MH i2c: E2 08 00 57 1C 80 09 00 00 00 00 00 00 E5 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]SAM_PROTO_ClearQueue done [13:32:47]KKMCreateOFDPacket [13:32:47]OFDProtocolAddRootSTLVToBuf [13:32:47]FM_MakeSignedData [13:32:47]FM_MakeSignedData [13:32:47]SAM_PROTO_SignData [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 01 02 [13:32:47]Write to MH i2c: E2 08 00 58 1C 80 0D 01 02 00 00 00 00 ED [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]wFMCommunicate request_size=255 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 02 02 FA 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 [13:32:47]Write to MH i2c: E2 02 01 59 1C 80 0D 02 02 FA 00 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 00 00 A2 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]wFMCommunicate request_size=184 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 6E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4F 49 00 00 35 04 06 00 F2 E0 80 9D BA 4B [13:32:47]Write to MH i2c: E2 BB 00 5A 1C 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 6E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4F 49 00 00 35 04 06 00 F2 E0 80 9D BA 4B 00 00 01 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [13:32:47]RAPDU: 90 00 [13:32:47]wFMCommunicate OK [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 0D 03 02 [13:32:47]Write to MH i2c: E2 08 00 5B 1C 80 0D 03 02 00 00 00 00 F2 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 0B 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 0B 00 5B 1C 00 6A 69 F0 53 41 7D 78 73 90 00 B2 [13:32:47]RAPDU: 6A 69 F0 53 41 7D 78 73 90 00 [13:32:47]wFMCommunicate OK [13:32:47]SAM_PROTO_SignData done [13:32:47]FM_MakeSignedData done [13:32:47]CreateOFDProtocolMessage [13:32:47]wFMCommunicate request_size=4 [13:32:47]MH_SAM_APDU [13:32:47]CAPDU: 80 11 00 00 [13:32:47]Write to MH i2c: E2 08 00 5C 1C 80 11 00 00 00 00 00 00 F2 [13:32:47]Write i2c OK [13:32:47]MH_I2C_Read... [13:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:47]Read from MH i2c: E2 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 17 00 [13:32:47]MH_I2C_Read... [13:32:47]Read from MH i2c: E2 17 00 5C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4B [13:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:32:47]wFMCommunicate OK [13:32:47]CreateOFDProtocolMessage done [13:32:47]OFDSenderStorePacket 18767 [13:32:47]StoreOFDPacket docnum=18767 [13:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 BD 01 00 00 EF E2 B5 01 88 F6 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 6E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4F 49 00 00 35 04 06 00 F2 E0 80 9D BA 4B 6A 69 F0 53 41 7D 78 73 [13:32:47]CheckFolder [13:32:47]dirname=/storage/ofd_packets [13:32:47]CheckFolder done [13:32:48]ProducePacketName [13:32:48]name=ofd_packets/00018767 [13:32:48]NVStorageSaveData ofd_packets/00018767 [13:32:48]File name is /storage/ofd_packets/00018767 [13:32:48]Write 475 bytes [13:32:48]NVStorageSaveData done [13:32:48]OFDSenderStorePacket done [13:32:48]KKMCreateOFDPacket done [13:32:48]NVStorageSaveData kkm_last_timestamp [13:32:48]File name is /storage/kkm_last_timestamp [13:32:48]Write 4 bytes [13:32:48]NVStorageSaveData done [13:32:48]ExternCall_PrintAddStr [13:32:48]wPrintStart [13:32:48]Write to MH i2c: 01 00 00 5D 1C 79 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 07 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FF 0F 8E [13:32:48]RasterBufferAndPrint [13:32:48]line Счет N : (3)16690 [13:32:48]line ИНН: 02508201610067 [13:32:48]line Контрольно-Кассовый Чек [13:32:48]line ПРОДАЖА [13:32:48]line Товар: 5449000189349 [13:32:48]line Холодный чай Fuse манго ананас 0,5л [13:32:48]line 1.000 * 75.00 [13:32:48]line = 75.00 [13:32:48]line НДС 12% НСП 1% [13:32:48]line > о реализуемом товаре [13:32:48]line Товар: 5449000027450 [13:32:48]line Напиток FuzeTea чай манго,ром 0,5л [13:32:48]line 1.000 * 75.00 [13:32:48]line = 75.00 [13:32:48]line НДС 12% НСП 1% [13:32:48]line > о реализуемом товаре [13:32:48]line ИТОГО: 150.00 [13:32:48]line НСП 1% : 1.32 [13:32:48]line НДС 12% : 15.92 [13:32:48]line Наличными: 0.00 [13:32:48]line Безнал.: 150.00 [13:32:48]line Место: АЗС № 176 "Партнер Нефть" [13:32:48]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [13:32:48]line СНО: Общий режим [13:32:48]line Чек 43 23.09.2024 13:32 [13:32:48]line Смена: 181 ФФД: 1.0 [13:32:48]line ЗНМ: 0300000010 [13:32:48]line РНМ: 0000000000152968 [13:32:48]line Версия ККМ: v1.0 [13:32:48]line Платежная система: O! деньги [13:32:48]line ФМ: 0000000000959456 [13:32:48]line ФД: 18767 [13:32:48]line ФПД: 267046044416587 [13:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T133252&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18767&fm=267046044416587&tin=02508201610067®Number=0000000000152968&sum=15000 [13:32:48]line 0 [13:32:48]written 0, free lines is 4095 [13:32:48]OFD Sender: Processing packet 18767 [packets to send 7, broken 6] [13:32:48]ProducePacketName [13:32:48]name=ofd_packets/00018767 [13:32:48]OFD Sender: To server: pG, [13:32:48]CommunicateWithHost lk.salyk.kg:30040 [13:32:48]ConnectInit lk.salyk.kg [13:32:48]Connected sock=11 [13:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 BD 01 00 00 EF E2 B5 01 88 F6 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 04 6E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 4F 49 00 00 35 04 06 00 F2 E0 80 9D BA 4B 6A 69 F0 53 41 7D 78 73 [13:32:48]Write to MH i2c: 01 00 00 8F 1C AB [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 07 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: 01 07 00 8F 1C 00 00 00 00 00 88 0C 46 [13:32:48]RasterBufferAndPrint [13:32:48]line [13:32:48]line [13:32:48]line [13:32:48]line [13:32:48]line [13:32:48]written 0, free lines is 3214 [13:32:48]MH_Cut [13:32:48]Write to MH i2c: D1 01 00 96 1C 01 84 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: D1 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: D1 01 00 [13:32:48]MH_I2C_Read... [13:32:48]Read from MH i2c: D1 01 00 96 1C 00 83 [13:32:48]Write to MH i2c: 01 00 00 97 1C B3 [13:32:48]Write i2c OK [13:32:48]MH_I2C_Read... [13:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 06 52 47 00 2D 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 35 39 34 35 36 10 04 04 00 4F 49 00 00 F4 03 04 00 68 17 F1 66 B6 04 01 00 00 27 82 C6 49 C9 0C C9 C6 [13:32:48]CommunicateWithHost err = 0 [13:32:48]CheckOFDResponse [13:32:48]1017 (14) - 77093643461234 [13:32:48]1041 (16) - 0000000000959456 [13:32:48]1040 (4) - 18767 [13:32:48]1012 (4) - 23.09.2024 07:23 [13:32:48]1206 (1) - 0 [13:32:48]OFD Sender: Remove packet 18767 [13:32:48]ProducePacketName [13:32:48]name=ofd_packets/00018767 [13:32:48]NVStorageDeleteData [13:32:49]OFD Sender: No OFD packet to send [13:32:49]*** Cut start [13:32:49]*** Partial cut [13:32:49]*** CUTSNS_PIN = 1 [13:32:49]*** CUTSNS_PIN = 0 [13:32:49]*** Brake cut motor [13:32:50]Read from MH i2c: 01 [13:32:50]MH_I2C_Read... [13:32:50]*** Stop cut motor [13:32:50]*** Cut end [13:32:50]Read from MH i2c: 01 07 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: 01 07 00 97 1C 00 00 00 00 00 FF 0F C8 [13:32:50]process_action close_receipt done [13:32:50]requested_data is exist [13:32:50]produce_requested_data [13:32:50]requested_item fm.sn is exist - process it [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 11 00 00 [13:32:50]Write to MH i2c: E2 08 00 98 1C 80 11 00 00 00 00 00 00 2E [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:50]Read from MH i2c: E2 17 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 17 00 98 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 87 [13:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [13:32:50]wFMCommunicate OK [13:32:50]requested_item fd.num is exist - process it [13:32:50]SAM_PROTO_GetFieldsCounters [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 13 00 00 [13:32:50]Write to MH i2c: E2 08 00 99 1C 80 13 00 00 00 00 00 00 31 [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 62 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 62 00 99 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4F 49 00 00 0E 04 04 00 B5 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 2C [13: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 4F 49 00 00 0E 04 04 00 B5 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 [13:32:50]wFMCommunicate OK [13:32:50]SAM_PROTO_GetFieldsCounters done [13:32:50]requested_item shift.num is exist - process it [13:32:50]requested_item shift.opened is exist - process it [13:32:50]req_shift_opened [13:32:50]FM_GetShiftState [13:32:50]SAM_PROTO_GetShiftState [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 13 01 00 [13:32:50]Write to MH i2c: E2 08 00 9A 1C 80 13 01 00 00 00 00 00 33 [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 0E 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 0E 00 9A 1C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 CB [13:32:50]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [13:32:50]wFMCommunicate OK [13:32:50]SAM_PROTO_GetShiftState done [13:32:50]FM_GetShiftState done [13:32:50]req_shift_opened done [13:32:50]requested_item shift.open_date is exist - process it [13:32:50]req_shift_open_date [13:32:50]req_shift_open_date done [13:32:50]produce_requested_data done [13:32:50]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18767,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [13:32:50]process_action_free close_receipt [13:32:50]json_value_free [13:32:50]json_value_free done [13:32:50]process_json_proto returns [13:32:50]Send response to host [13:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18767,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [13:32:50]free response buf [13:32:50]execute_script done [13:32:50]execute_script returns [13:32:50]free content buf [13:32:50]Sock 10.Close socket [13:32:50]Sock 10.Thread stoped [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]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:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]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:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:51]accept exits with 8 [14:28:51]New connection [14:28:51]New thread 3067272548 created [14:28:51]Thread 3067129188 joined [14:28:51]Waiting for new connection... [14:28:51] Sock 8.Parse request [14:28:51]Sock 8.Check first char [14:28:51]Sock 8.First char is OK [14:28:51]request: POST /json_proto HTTP/1.0 [14:28:51]Method: POST [14:28:51]URL: /json_proto [14:28:51]Method is POST - this is cgi request [14:28:51]url: /json_proto [14:28:51]query_string will be loaded in cgi processing [14:28:51]execute_cgi json_proto POST (null) [14:28:51]execute_cgi path=json_proto method=POST [14:28:51]POST find Content-Length [14:28:51]Host: 172.17.62.196:8080 [14:28:51]Content-Length: 918 [14:28:51]Content-Type: application/json [14:28:51] [14:28:51]POST finish read [14:28:51]Found Content-Length = 918 [14:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16691", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:51]execute_script... [14: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 : (3)16691", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:51]POST & json_proto [14:28:51]process_json_proto [14:28:51]json parsed OK: [14:28:51]protocol is kg_v1.0 [14:28:51]action value=close_receipt [14:28:51]process_action close_receipt [14:28:51]cmd_close_receipt [14:28:51]MH_GetDate [14:28:51]Write to MH i2c: F0 00 00 9B 1C A6 [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: F0 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: F0 09 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: F0 09 00 9B 1C 00 29 7B F1 66 CE CC 0E 66 B8 [14:28:51]GetLastDocTimeStamp 1727098372 [14:28:51]current date 1727101737 [14:28:51]FM_GetShiftState [14:28:51]SAM_PROTO_GetShiftState [14:28:51]wFMCommunicate request_size=4 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 13 01 00 [14:28:51]Write to MH i2c: E2 08 00 9C 1C 80 13 01 00 00 00 00 00 35 [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:51]Read from MH i2c: E2 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 0E 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: E2 0E 00 9C 1C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 CD [14:28:51]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:28:51]wFMCommunicate OK [14:28:51]SAM_PROTO_GetShiftState done [14:28:51]FM_GetShiftState done [14:28:51]opened in 1727050372 [14:28:51]opened+sec_in_day 1727136772 [14:28:51]quantity*price = 7500 [14:28:51]sum+1 = 7501 [14:28:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.18 НДС 12% : 14.22 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 44 23.09.2024 14:28 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18768 ФПД: 181987827790992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T142857&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18768&fm=181987827790992&tin=02508201610067®Number=0000000000152968&sum=13400 0 [14:28:52]StoreToDocumentArchive [14:28:52]shift 181 fd 18768 [14:28:52]save to /storage/0181/doc_00018768 [14:28:52]save last doc name /storage/0181/doc_00018768 to /storage/kkm_last_doc_name [14:28:52]save OK [14:28:52]Clear old archive folders... [14:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=381 [14:28:52]tlvbuf is 0021F5F0 [14:28:52]SAM_PROTO_ClearQueue [14:28:52]wFMCommunicate request_size=4 [14:28:52]MH_SAM_APDU [14:28:52]CAPDU: 80 09 00 00 [14:28:52]Write to MH i2c: E2 08 00 A9 1C 80 09 00 00 00 00 00 00 37 [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:52]Read from MH i2c: E2 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 A9 1C 00 90 00 39 [14:28:52]RAPDU: 90 00 [14:28:52]wFMCommunicate OK [14:28:52]SAM_PROTO_ClearQueue done [14:28:52]KKMCreateOFDPacket [14:28:52]OFDProtocolAddRootSTLVToBuf [14:28:52]FM_MakeSignedData [14:28:52]FM_MakeSignedData [14:28:52]SAM_PROTO_SignData [14:28:52]wFMCommunicate request_size=4 [14:28:52]MH_SAM_APDU [14:28:52]CAPDU: 80 0D 01 02 [14:28:52]Write to MH i2c: E2 08 00 AA 1C 80 0D 01 02 00 00 00 00 3F [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:52]Read from MH i2c: E2 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 AA 1C 00 90 00 3A [14:28:52]RAPDU: 90 00 [14:28:52]wFMCommunicate OK [14:28:52]wFMCommunicate request_size=255 [14:28:52]MH_SAM_APDU [14:28:52]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 [14:28:52]Write to MH i2c: E2 02 01 AB 1C 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 54 [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:52]Read from MH i2c: E2 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 AB 1C 00 90 00 3B [14:28:52]RAPDU: 90 00 [14:28:52]wFMCommunicate OK [14:28:52]wFMCommunicate request_size=140 [14:28:52]MH_SAM_APDU [14:28:52]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 29 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 50 49 00 00 35 04 06 00 A5 84 57 D4 34 90 [14:28:52]Write to MH i2c: E2 8F 00 AC 1C 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 29 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 50 49 00 00 35 04 06 00 A5 84 57 D4 34 90 00 00 35 [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:52]Read from MH i2c: E2 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 03 00 AC 1C 00 90 00 3C [14:28:52]RAPDU: 90 00 [14:28:52]wFMCommunicate OK [14:28:52]wFMCommunicate request_size=4 [14:28:52]MH_SAM_APDU [14:28:52]CAPDU: 80 0D 03 02 [14:28:52]Write to MH i2c: E2 08 00 AD 1C 80 0D 03 02 00 00 00 00 44 [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:52]Read from MH i2c: E2 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 0B 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 0B 00 AD 1C 00 DE 94 35 CD F8 42 DC E4 90 00 B3 [14:28:52]RAPDU: DE 94 35 CD F8 42 DC E4 90 00 [14:28:52]wFMCommunicate OK [14:28:52]SAM_PROTO_SignData done [14:28:52]FM_MakeSignedData done [14:28:52]CreateOFDProtocolMessage [14:28:52]wFMCommunicate request_size=4 [14:28:52]MH_SAM_APDU [14:28:52]CAPDU: 80 11 00 00 [14:28:52]Write to MH i2c: E2 08 00 AE 1C 80 11 00 00 00 00 00 00 44 [14:28:52]Write i2c OK [14:28:52]MH_I2C_Read... [14:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:52]Read from MH i2c: E2 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 17 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 17 00 AE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 9D [14:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:28:52]wFMCommunicate OK [14:28:52]CreateOFDProtocolMessage done [14:28:52]OFDSenderStorePacket 18768 [14:28:52]StoreOFDPacket docnum=18768 [14:28:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 91 01 00 00 1D 05 89 01 F7 CB 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 29 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 50 49 00 00 35 04 06 00 A5 84 57 D4 34 90 DE 94 35 CD F8 42 DC E4 [14:28:53]CheckFolder [14:28:53]dirname=/storage/ofd_packets [14:28:53]CheckFolder done [14:28:53]ProducePacketName [14:28:53]name=ofd_packets/00018768 [14:28:53]NVStorageSaveData ofd_packets/00018768 [14:28:53]File name is /storage/ofd_packets/00018768 [14:28:53]Write 431 bytes [14:28:53]NVStorageSaveData done [14:28:53]OFDSenderStorePacket done [14:28:53]KKMCreateOFDPacket done [14:28:53]NVStorageSaveData kkm_last_timestamp [14:28:53]File name is /storage/kkm_last_timestamp [14:28:53]Write 4 bytes [14:28:53]NVStorageSaveData done [14:28:53]ExternCall_PrintAddStr [14:28:53]wPrintStart [14:28:53]Write to MH i2c: 01 00 00 AF 1C CB [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 07 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 07 00 AF 1C 00 00 00 00 00 FF 0F E0 [14:28:53]RasterBufferAndPrint [14:28:53]line Счет N : (3)16691 [14:28:53]line ИНН: 02508201610067 [14:28:53]line Контрольно-Кассовый Чек [14:28:53]line ПРОДАЖА [14:28:53]line Товар: 40822938 [14:28:53]line Напиток Фанта 0,5л [14:28:53]line 1.000 * 75.00 [14:28:53]line = 75.00 [14:28:53]line НДС 12% НСП 1% [14:28:53]line > о реализуемом товаре [14:28:53]line Товар: 4011100977624 [14:28:53]line Шок Батончик Баунти 55г [14:28:53]line 1.000 * 59.00 [14:28:53]line = 59.00 [14:28:53]line НДС 12% НСП 1% [14:28:53]line > о реализуемом товаре [14:28:53]line ИТОГО: 134.00 [14:28:53]line НСП 1% : 1.18 [14:28:53]line НДС 12% : 14.22 [14:28:53]line Наличными: 134.00 [14:28:53]line Безнал.: 0.00 [14:28:53]line Место: АЗС № 176 "Партнер Нефть" [14:28:53]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:28:53]line СНО: Общий режим [14:28:53]line Чек 44 23.09.2024 14:28 [14:28:53]line Смена: 181 ФФД: 1.0 [14:28:53]line ЗНМ: 0300000010 [14:28:53]line РНМ: 0000000000152968 [14:28:53]line Версия ККМ: v1.0 [14:28:53]line ФМ: 0000000000959456 [14:28:53]line ФД: 18768 [14:28:53]line ФПД: 181987827790992 [14:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T142857&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18768&fm=181987827790992&tin=02508201610067®Number=0000000000152968&sum=13400 [14:28:53]line 0 [14:28:53]OFD Sender: Processing packet 18768 [packets to send 7, broken 6] [14:28:53]ProducePacketName [14:28:53]name=ofd_packets/00018768 [14:28:53]OFD Sender: To server: pG, [14:28:53]CommunicateWithHost lk.salyk.kg:30040 [14:28:53]ConnectInit lk.salyk.kg [14:28:53]written 0, free lines is 4095 [14:28:53]Connected sock=10 [14:28:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 91 01 00 00 1D 05 89 01 F7 CB 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 29 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 50 49 00 00 35 04 06 00 A5 84 57 D4 34 90 DE 94 35 CD F8 42 DC E4 [14:28:53]Write to MH i2c: 01 00 00 DD 1C F9 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 07 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 D9 0C E5 [14:28:53]RasterBufferAndPrint [14:28:53]line [14:28:53]line [14:28:53]line [14:28:53]line [14:28:53]line [14:28:53]written 0, free lines is 3298 [14:28:53]MH_Cut [14:28:53]Write to MH i2c: D1 01 00 E4 1C 01 D2 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: D1 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: D1 01 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: D1 01 00 E4 1C 00 D1 [14:28:53]Write to MH i2c: 01 00 00 E5 1C 01 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 40 7E 47 00 22 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 35 39 34 35 36 10 04 04 00 50 49 00 00 F4 03 04 00 8D 24 F1 66 B6 04 01 00 00 70 88 28 EA 68 16 D9 14 [14:28:53]CommunicateWithHost err = 0 [14:28:53]CheckOFDResponse [14:28:53]1017 (14) - 77093643461234 [14:28:53]1041 (16) - 0000000000959456 [14:28:53]1040 (4) - 18768 [14:28:53]1012 (4) - 23.09.2024 08:19 [14:28:53]1206 (1) - 0 [14:28:53]OFD Sender: Remove packet 18768 [14:28:53]ProducePacketName [14:28:53]name=ofd_packets/00018768 [14:28:53]NVStorageDeleteData [14:28:54]OFD Sender: No OFD packet to send [14:28:54]*** Cut start [14:28:54]*** Partial cut [14:28:54]*** CUTSNS_PIN = 1 [14:28:54]*** CUTSNS_PIN = 0 [14:28:54]*** Brake cut motor [14:28:55]Read from MH i2c: 01 [14:28:55]MH_I2C_Read... [14:28:55]*** Stop cut motor [14:28:55]*** Cut end [14:28:55]Read from MH i2c: 01 07 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 07 00 E5 1C 00 00 00 00 00 FF 0F 16 [14:28:55]process_action close_receipt done [14:28:55]requested_data is exist [14:28:55]produce_requested_data [14:28:55]requested_item fm.sn is exist - process it [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 11 00 00 [14:28:55]Write to MH i2c: E2 08 00 E6 1C 80 11 00 00 00 00 00 00 7C [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 17 00 [14:28:55]MH_I2C_Read... [14:28:55]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 35 39 34 35 36 90 00 D5 [14:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:28:55]wFMCommunicate OK [14:28:55]requested_item fd.num is exist - process it [14:28:55]SAM_PROTO_GetFieldsCounters [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 13 00 00 [14:28:55]Write to MH i2c: E2 08 00 E7 1C 80 13 00 00 00 00 00 00 7F [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 62 00 [14:28:55]MH_I2C_Read... [14:28:55]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 50 49 00 00 0E 04 04 00 B5 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 7E [14: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 50 49 00 00 0E 04 04 00 B5 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 [14:28:55]wFMCommunicate OK [14:28:55]SAM_PROTO_GetFieldsCounters done [14:28:55]requested_item shift.num is exist - process it [14:28:55]requested_item shift.opened is exist - process it [14:28:55]req_shift_opened [14:28:55]FM_GetShiftState [14:28:55]SAM_PROTO_GetShiftState [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 13 01 00 [14:28:55]Write to MH i2c: E2 08 00 E8 1C 80 13 01 00 00 00 00 00 81 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 0E 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 0E 00 E8 1C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 19 [14:28:55]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:28:55]wFMCommunicate OK [14:28:55]SAM_PROTO_GetShiftState done [14:28:55]FM_GetShiftState done [14:28:55]req_shift_opened done [14:28:55]requested_item shift.open_date is exist - process it [14:28:55]req_shift_open_date [14:28:55]req_shift_open_date done [14:28:55]produce_requested_data done [14:28:55]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18768,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [14:28:55]process_action_free close_receipt [14:28:55]json_value_free [14:28:55]json_value_free done [14:28:55]process_json_proto returns [14:28:55]Send response to host [14:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18768,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [14:28:55]free response buf [14:28:55]execute_script done [14:28:55]execute_script returns [14:28:55]free content buf [14:28:55]Sock 8.Close socket [14:28:55]Sock 8.Thread stoped [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:32]accept exits with 9 [14:30:32]New connection [14:30:32]New thread 3067129188 created [14:30:32]Thread 3067272548 joined [14:30:32]Waiting for new connection... [14:30:32] Sock 9.Parse request [14:30:32]Sock 9.Check first char [14:30:32]Sock 9.First char is OK [14:30:32]request: POST /json_proto HTTP/1.0 [14:30:32]Method: POST [14:30:32]URL: /json_proto [14:30:32]Method is POST - this is cgi request [14:30:32]url: /json_proto [14:30:32]query_string will be loaded in cgi processing [14:30:32]execute_cgi json_proto POST (null) [14:30:32]execute_cgi path=json_proto method=POST [14:30:32]POST find Content-Length [14:30:32]Host: 172.17.62.196:8080 [14:30:32]Content-Length: 697 [14:30:32]Content-Type: application/json [14:30:32] [14:30:32]POST finish read [14:30:32]Found Content-Length = 697 [14:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16692", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]execute_script... [14:30:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16692", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]POST & json_proto [14:30:32]process_json_proto [14:30:32]json parsed OK: [14:30:32]protocol is kg_v1.0 [14:30:32]action value=close_receipt [14:30:32]process_action close_receipt [14:30:32]cmd_close_receipt [14:30:32]MH_GetDate [14:30:32]Write to MH i2c: F0 00 00 E9 1C F4 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 09 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 09 00 E9 1C 00 8F 7B F1 66 CE CC 0E 66 6C [14:30:32]GetLastDocTimeStamp 1727101737 [14:30:32]current date 1727101839 [14:30:32]FM_GetShiftState [14:30:32]SAM_PROTO_GetShiftState [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 13 01 00 [14:30:32]Write to MH i2c: E2 08 00 EA 1C 80 13 01 00 00 00 00 00 83 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 EA 1C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1B [14:30:32]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_GetShiftState done [14:30:32]FM_GetShiftState done [14:30:32]opened in 1727050372 [14:30:32]opened+sec_in_day 1727136772 [14:30:32]quantity*price = 10000 [14:30:32]sum+1 = 10001 [14:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 45 23.09.2024 14:30 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18769 ФПД: 273285365586655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143039&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18769&fm=273285365586655&tin=02508201610067®Number=0000000000152968&sum=10000 0 [14:30:34]StoreToDocumentArchive [14:30:34]shift 181 fd 18769 [14:30:34]save to /storage/0181/doc_00018769 [14:30:34]save last doc name /storage/0181/doc_00018769 to /storage/kkm_last_doc_name [14:30:34]save OK [14:30:34]Clear old archive folders... [14:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=298 [14:30:34]tlvbuf is B6F28D20 [14:30:34]SAM_PROTO_ClearQueue [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 09 00 00 [14:30:34]Write to MH i2c: E2 08 00 F7 1C 80 09 00 00 00 00 00 00 85 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 F7 1C 00 90 00 87 [14:30:34]RAPDU: 90 00 [14:30:34]wFMCommunicate OK [14:30:34]SAM_PROTO_ClearQueue done [14:30:34]KKMCreateOFDPacket [14:30:34]OFDProtocolAddRootSTLVToBuf [14:30:34]FM_MakeSignedData [14:30:34]FM_MakeSignedData [14:30:34]SAM_PROTO_SignData [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 0D 01 02 [14:30:34]Write to MH i2c: E2 08 00 F8 1C 80 0D 01 02 00 00 00 00 8D [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 F8 1C 00 90 00 88 [14:30:34]RAPDU: 90 00 [14:30:34]wFMCommunicate OK [14:30:34]wFMCommunicate request_size=255 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8F 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [14:30:34]Write to MH i2c: E2 02 01 F9 1C 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8F 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 39 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 F9 1C 00 90 00 89 [14:30:34]RAPDU: 90 00 [14:30:34]wFMCommunicate OK [14:30:34]wFMCommunicate request_size=57 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 51 49 00 00 35 04 06 00 F8 8D 35 23 5A DF [14:30:34]Write to MH i2c: E2 3C 00 FA 1C 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 51 49 00 00 35 04 06 00 F8 8D 35 23 5A DF 00 00 09 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 FA 1C 00 90 00 8A [14:30:34]RAPDU: 90 00 [14:30:34]wFMCommunicate OK [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 0D 03 02 [14:30:34]Write to MH i2c: E2 08 00 FB 1C 80 0D 03 02 00 00 00 00 92 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0B 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0B 00 FB 1C 00 B0 C6 33 EB A6 3D 1F C8 90 00 F1 [14:30:34]RAPDU: B0 C6 33 EB A6 3D 1F C8 90 00 [14:30:34]wFMCommunicate OK [14:30:34]SAM_PROTO_SignData done [14:30:34]FM_MakeSignedData done [14:30:34]CreateOFDProtocolMessage [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 11 00 00 [14:30:34]Write to MH i2c: E2 08 00 FC 1C 80 11 00 00 00 00 00 00 92 [14:30:34]OFD Sender: No OFD packet to send [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 17 00 [14:30:34]MH_I2C_Read... [14:30:34]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 35 39 34 35 36 90 00 EB [14:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:30:34]wFMCommunicate OK [14:30:34]CreateOFDProtocolMessage done [14:30:34]OFDSenderStorePacket 18769 [14:30:34]StoreOFDPacket docnum=18769 [14:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3E 01 00 00 93 DB 36 01 03 40 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8F 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 51 49 00 00 35 04 06 00 F8 8D 35 23 5A DF B0 C6 33 EB A6 3D 1F C8 [14:30:34]CheckFolder [14:30:34]dirname=/storage/ofd_packets [14:30:34]CheckFolder done [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00018769 [14:30:34]NVStorageSaveData ofd_packets/00018769 [14:30:34]File name is /storage/ofd_packets/00018769 [14:30:34]Write 348 bytes [14:30:34]NVStorageSaveData done [14:30:34]OFDSenderStorePacket done [14:30:34]KKMCreateOFDPacket done [14:30:34]NVStorageSaveData kkm_last_timestamp [14:30:34]File name is /storage/kkm_last_timestamp [14:30:34]Write 4 bytes [14:30:34]NVStorageSaveData done [14:30:34]ExternCall_PrintAddStr [14:30:34]wPrintStart [14:30:34]Write to MH i2c: 01 00 00 FD 1C 19 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 FD 1C 00 00 00 00 00 FF 0F 2E [14:30:34]RasterBufferAndPrint [14:30:34]line Счет N : (3)16692 [14:30:34]line ИНН: 02508201610067 [14:30:34]line Контрольно-Кассовый Чек [14:30:34]line ПРОДАЖА [14:30:34]line Товар: 4870001571528 [14:30:34]line Вода ASU пит н.газ персик ПЭТ 1,0 л [14:30:34]line 1.000 * 100.00 [14:30:34]line = 100.00 [14:30:34]line НДС 12% НСП 1% [14:30:34]line > о реализуемом товаре [14:30:34]line ИТОГО: 100.00 [14:30:34]line НСП 1% : 0.88 [14:30:34]line НДС 12% : 10.62 [14:30:34]line Наличными: 100.00 [14:30:34]line Безнал.: 0.00 [14:30:34]line Место: АЗС № 176 "Партнер Нефть" [14:30:34]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:30:34]line СНО: Общий режим [14:30:34]line Чек 45 23.09.2024 14:30 [14:30:34]line Смена: 181 ФФД: 1.0 [14:30:34]line ЗНМ: 0300000010 [14:30:34]line РНМ: 0000000000152968 [14:30:34]line Версия ККМ: v1.0 [14:30:34]line ФМ: 0000000000959456 [14:30:34]line ФД: 18769 [14:30:34]line ФПД: 273285365586655 [14:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143039&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18769&fm=273285365586655&tin=02508201610067®Number=0000000000152968&sum=10000 [14:30:34]line 0 [14:30:34]OFD Sender: Processing packet 18769 [packets to send 7, broken 6] [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00018769 [14:30:34]OFD Sender: To server: pG, [14:30:34]CommunicateWithHost lk.salyk.kg:30040 [14:30:34]ConnectInit lk.salyk.kg [14:30:34]written 0, free lines is 4095 [14:30:35]Connected sock=10 [14:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3E 01 00 00 93 DB 36 01 03 40 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8F 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 51 49 00 00 35 04 06 00 F8 8D 35 23 5A DF B0 C6 33 EB A6 3D 1F C8 [14:30:35]Write to MH i2c: 01 00 00 26 1D 43 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 07 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 07 00 26 1D 00 00 00 00 00 12 0D 69 [14:30:35]RasterBufferAndPrint [14:30:35]line [14:30:35]line [14:30:35]line [14:30:35]line [14:30:35]line [14:30:35]written 0, free lines is 3353 [14:30:35]MH_Cut [14:30:35]Write to MH i2c: D1 01 00 2D 1D 01 1C [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: D1 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: D1 01 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: D1 01 00 2D 1D 00 1B [14:30:35]Write to MH i2c: 01 00 00 2E 1D 4B [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 73 AA 47 00 66 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 51 49 00 00 F4 03 04 00 F3 24 F1 66 B6 04 01 00 00 F5 0B 11 52 33 C1 F3 6C [14:30:35]CommunicateWithHost err = 0 [14:30:35]CheckOFDResponse [14:30:35]1017 (14) - 77093643461234 [14:30:35]1041 (16) - 0000000000959456 [14:30:35]1040 (4) - 18769 [14:30:35]1012 (4) - 23.09.2024 08:21 [14:30:35]1206 (1) - 0 [14:30:35]OFD Sender: Remove packet 18769 [14:30:35]ProducePacketName [14:30:35]name=ofd_packets/00018769 [14:30:35]NVStorageDeleteData [14:30:35]OFD Sender: No OFD packet to send [14:30:36]*** Cut start [14:30:36]*** Partial cut [14:30:36]*** CUTSNS_PIN = 1 [14:30:36]*** CUTSNS_PIN = 0 [14:30:36]*** Brake cut motor [14:30:36]Read from MH i2c: 01 [14:30:36]MH_I2C_Read... [14:30:36]*** Stop cut motor [14:30:36]*** Cut end [14:30:36]Read from MH i2c: 01 07 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 FF 0F 60 [14:30:36]process_action close_receipt done [14:30:36]requested_data is exist [14:30:36]produce_requested_data [14:30:36]requested_item fm.sn is exist - process it [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 11 00 00 [14:30:36]Write to MH i2c: E2 08 00 2F 1D 80 11 00 00 00 00 00 00 C6 [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 2F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 1F [14:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:30:36]wFMCommunicate OK [14:30:36]requested_item fd.num is exist - process it [14:30:36]SAM_PROTO_GetFieldsCounters [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 13 00 00 [14:30:36]Write to MH i2c: E2 08 00 30 1D 80 13 00 00 00 00 00 00 C9 [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 62 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 62 00 30 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 51 49 00 00 0E 04 04 00 B5 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 CC [14:30:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 51 49 00 00 0E 04 04 00 B5 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 [14:30:36]wFMCommunicate OK [14:30:36]SAM_PROTO_GetFieldsCounters done [14:30:36]requested_item shift.num is exist - process it [14:30:36]requested_item shift.opened is exist - process it [14:30:36]req_shift_opened [14:30:36]FM_GetShiftState [14:30:36]SAM_PROTO_GetShiftState [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 13 01 00 [14:30:36]Write to MH i2c: E2 08 00 31 1D 80 13 01 00 00 00 00 00 CB [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0E 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0E 00 31 1D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 63 [14:30:36]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:30:36]wFMCommunicate OK [14:30:36]SAM_PROTO_GetShiftState done [14:30:36]FM_GetShiftState done [14:30:36]req_shift_opened done [14:30:36]requested_item shift.open_date is exist - process it [14:30:36]req_shift_open_date [14:30:36]req_shift_open_date done [14:30:36]produce_requested_data done [14:30:36]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18769,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [14:30:36]process_action_free close_receipt [14:30:36]json_value_free [14:30:36]json_value_free done [14:30:36]process_json_proto returns [14:30:36]Send response to host [14:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18769,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [14:30:36]free response buf [14:30:36]execute_script done [14:30:36]execute_script returns [14:30:36]free content buf [14:30:36]Sock 9.Close socket [14:30:36]Sock 9.Thread stoped [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:51]accept exits with 8 [14:30:51]New connection [14:30:51]New thread 3067272548 created [14:30:51]Thread 3067129188 joined [14:30:51]Waiting for new connection... [14:30:51] Sock 8.Parse request [14:30:51]Sock 8.Check first char [14:30:51]Sock 8.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.62.196:8080 [14:30:51]Content-Length: 631 [14:30:51]Content-Type: application/json [14:30:51] [14:30:51]POST finish read [14:30:51]Found Content-Length = 631 [14:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16693", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 : (3)16693", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 32 1D 3E [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 32 1D 00 A2 7B F1 66 CE CC 0E 66 C9 [14:30:51]GetLastDocTimeStamp 1727101839 [14:30:51]current date 1727101858 [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 33 1D 80 13 01 00 00 00 00 00 CD [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 0E 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 0E 00 33 1D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 65 [14:30:52]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:30:52]wFMCommunicate OK [14:30:52]SAM_PROTO_GetShiftState done [14:30:52]FM_GetShiftState done [14:30:52]opened in 1727050372 [14:30:52]opened+sec_in_day 1727136772 [14:30:52]quantity*price = 6000 [14:30:52]sum+1 = 6001 [14:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 46 23.09.2024 14:30 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18770 ФПД: 216977596127182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143058&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18770&fm=216977596127182&tin=02508201610067®Number=0000000000152968&sum=6000 0 [14:30:53]StoreToDocumentArchive [14:30:53]shift 181 fd 18770 [14:30:53]save to /storage/0181/doc_00018770 [14:30:53]save last doc name /storage/0181/doc_00018770 to /storage/kkm_last_doc_name [14:30:53]save OK [14:30:53]Clear old archive folders... [14:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:30:53]tlvbuf is 0023F0A0 [14:30:53]SAM_PROTO_ClearQueue [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 09 00 00 [14:30:53]Write to MH i2c: E2 08 00 40 1D 80 09 00 00 00 00 00 00 CF [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 09 00 00... 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 40 1D 00 90 00 D1 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_ClearQueue done [14:30:53]KKMCreateOFDPacket [14:30:53]OFDProtocolAddRootSTLVToBuf [14:30:53]FM_MakeSignedData [14:30:53]FM_MakeSignedData [14:30:53]SAM_PROTO_SignData [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 01 02 [14:30:53]Write to MH i2c: E2 08 00 41 1D 80 0D 01 02 00 00 00 00 D7 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 01 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 41 1D 00 90 00 D2 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=255 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A2 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:30:53]Write to MH i2c: E2 02 01 42 1D 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A2 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 63 [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 42 1D 00 90 00 D3 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=30 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 02 02 19 30 39 35 39 34 35 36 10 04 04 00 52 49 00 00 35 04 06 00 C5 57 08 8A 97 CE [14:30:53]Write to MH i2c: E2 21 00 43 1D 80 0D 02 02 19 00 30 39 35 39 34 35 36 10 04 04 00 52 49 00 00 35 04 06 00 C5 57 08 8A 97 CE 00 00 87 [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 43 1D 00 90 00 D4 [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 44 1D 80 0D 03 02 00 00 00 00 DC [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 44 1D 00 DF 98 12 36 5B 2B B6 9B 90 00 73 [14:30:53]RAPDU: DF 98 12 36 5B 2B B6 9B 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 45 1D 80 11 00 00 00 00 00 00 DC [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 45 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 35 [14:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:30:53]wFMCommunicate OK [14:30:53]CreateOFDProtocolMessage done [14:30:53]OFDSenderStorePacket 18770 [14:30:53]StoreOFDPacket docnum=18770 [14:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 23 01 00 00 F6 12 1B 01 02 94 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A2 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 52 49 00 00 35 04 06 00 C5 57 08 8A 97 CE DF 98 12 36 5B 2B B6 9B [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/00018770 [14:30:53]NVStorageSaveData ofd_packets/00018770 [14:30:53]File name is /storage/ofd_packets/00018770 [14:30:53]Write 321 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 46 1D 63 [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 46 1D 00 00 00 00 00 FF 0F 78 [14:30:53]RasterBufferAndPrint [14:30:53]line Счет N : (3)16693 [14:30:53]line ИНН: 02508201610067 [14:30:53]line Контрольно-Кассовый Чек [14:30:53]line ПРОДАЖА [14:30:53]line Товар: 4700000160204 [14:30:53]line Вода Легенда 1,5л [14:30:53]line 1.000 * 60.00 [14:30:53]line = 60.00 [14:30:53]line НДС 12% НСП 1% [14:30:53]line > о реализуемом товаре [14:30:53]line ИТОГО: 60.00 [14:30:53]line НСП 1% : 0.53 [14:30:53]line НДС 12% : 6.37 [14:30:53]line Наличными: 60.00 [14:30:53]line Безнал.: 0.00 [14:30:53]line Место: АЗС № 176 "Партнер Нефть" [14:30:53]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:30:53]line СНО: Общий режим [14:30:53]line Чек 46 23.09.2024 14:30 [14:30:53]line Смена: 181 ФФД: 1.0 [14:30:53]line ЗНМ: 0300000010 [14:30:53]line РНМ: 0000000000152968 [14:30:53]line Версия ККМ: v1.0 [14:30:53]line ФМ: 0000000000959456 [14:30:53]line ФД: 18770 [14:30:53]line ФПД: 216977596127182 [14:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T143058&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18770&fm=216977596127182&tin=02508201610067®Number=0000000000152968&sum=6000 [14:30:54]line 0 [14:30:54]OFD Sender: Processing packet 18770 [packets to send 7, broken 6] [14:30:54]ProducePacketName [14:30:54]name=ofd_packets/00018770 [14:30:54]OFD Sender: To server: pG, [14:30:54]CommunicateWithHost lk.salyk.kg:30040 [14:30:54]ConnectInit lk.salyk.kg [14:30:54]written 0, free lines is 4095 [14:30:54]Connected sock=9 [14:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 23 01 00 00 F6 12 1B 01 02 94 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A2 7B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 52 49 00 00 35 04 06 00 C5 57 08 8A 97 CE DF 98 12 36 5B 2B B6 9B [14:30:54]Write to MH i2c: 01 00 00 6E 1D 8B [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 6E 1D 00 00 00 00 00 07 0D A6 [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 3341 [14:30:54]MH_Cut [14:30:54]Write to MH i2c: D1 01 00 75 1D 01 64 [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 75 1D 00 63 [14:30:54]Write to MH i2c: 01 00 00 76 1D 93 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 84 EF 47 00 81 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 35 39 34 35 36 10 04 04 00 52 49 00 00 F4 03 04 00 06 25 F1 66 B6 04 01 00 00 28 FB 7C 71 48 83 A9 43 [14:30:54]CommunicateWithHost err = 0 [14:30:54]CheckOFDResponse [14:30:54]1017 (14) - 77093643461234 [14:30:54]1041 (16) - 0000000000959456 [14:30:54]1040 (4) - 18770 [14:30:54]1012 (4) - 23.09.2024 08:21 [14:30:54]1206 (1) - 0 [14:30:54]OFD Sender: Remove packet 18770 [14:30:54]ProducePacketName [14:30:54]name=ofd_packets/00018770 [14:30:54]NVStorageDeleteData [14:30:55]*** Cut start [14:30:55]*** Partial cut [14:30:55]*** CUTSNS_PIN = 1 [14:30:55]OFD Sender: No OFD packet to send [14:30:55]*** 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 76 1D 00 00 00 00 00 FF 0F A8 [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 77 1D 80 11 00 00 00 00 00 00 0E [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 77 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 67 [14:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 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 78 1D 80 13 00 00 00 00 00 00 11 [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 78 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 52 49 00 00 0E 04 04 00 B5 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 18 [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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 52 49 00 00 0E 04 04 00 B5 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 [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 79 1D 80 13 01 00 00 00 00 00 13 [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 79 1D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 AB [14:30:55]RAPDU: 09 00 01 84 B2 F0 66 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":"0000000000959456","fd.num":18770,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [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":"0000000000959456","fd.num":18770,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [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 8.Close socket [14:30:55]Sock 8.Thread stoped [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:44]accept exits with 10 [14:47:44]New connection [14:47:44]New thread 3067129188 created [14:47:44]Thread 3067272548 joined [14:47:44]Waiting for new connection... [14:47:44] Sock 10.Parse request [14:47:44]Sock 10.Check first char [14:47:44]Sock 10.First char is OK [14:47:44]request: POST /json_proto HTTP/1.0 [14:47:44]Method: POST [14:47:44]URL: /json_proto [14:47:44]Method is POST - this is cgi request [14:47:44]url: /json_proto [14:47:44]query_string will be loaded in cgi processing [14:47:44]execute_cgi json_proto POST (null) [14:47:44]execute_cgi path=json_proto method=POST [14:47:44]POST find Content-Length [14:47:44]Host: 172.17.62.196:8080 [14:47:44]Content-Length: 1200 [14:47:44]Content-Type: application/json [14:47:44] [14:47:44]POST finish read [14:47:44]Found Content-Length = 1200 [14:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16694", "tax_sys" : 0, "items" : [ { "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077618161", "name": "\u0412\u0430\u0444 \u0442\u0440\u0443\u0431 Konafetto \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0435 140 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:44]execute_script... [14: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 : (3)16694", "tax_sys" : 0, "items" : [ { "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077618161", "name": "\u0412\u0430\u0444 \u0442\u0440\u0443\u0431 Konafetto \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0435 140 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210309396", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \"OREO\" 38 \u0433\u0440", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:44]POST & json_proto [14:47:44]process_json_proto [14:47:44]json parsed OK: [14:47:44]protocol is kg_v1.0 [14:47:44]action value=close_receipt [14:47:44]process_action close_receipt [14:47:44]cmd_close_receipt [14:47:44]MH_GetDate [14:47:44]Write to MH i2c: F0 00 00 7A 1D 86 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: F0 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: F0 09 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: F0 09 00 7A 1D 00 96 7F F1 66 CE CC 0E 66 09 [14:47:44]GetLastDocTimeStamp 1727101858 [14:47:44]current date 1727102870 [14:47:44]FM_GetShiftState [14:47:44]SAM_PROTO_GetShiftState [14:47:44]wFMCommunicate request_size=4 [14:47:44]MH_SAM_APDU [14:47:44]CAPDU: 80 13 01 00 [14:47:44]Write to MH i2c: E2 08 00 7B 1D 80 13 01 00 00 00 00 00 15 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 0E 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 0E 00 7B 1D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 AD [14:47:44]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:47:44]wFMCommunicate OK [14:47:44]SAM_PROTO_GetShiftState done [14:47:44]FM_GetShiftState done [14:47:44]opened in 1727050372 [14:47:44]opened+sec_in_day 1727136772 [14:47:44]quantity*price = 7500 [14:47:44]sum+1 = 7501 [14:47:44]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4823077618161 Ваф труб Konafetto молочные 140 гр 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622210309396 Печенье "OREO" 38 гр 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.38 НДС 12% : 28.66 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 47 23.09.2024 14:47 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18771 ФПД: 21218437671821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T144750&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18771&fm=21218437671821&tin=02508201610067®Number=0000000000152968&sum=27000 0 [14:47:45]StoreToDocumentArchive [14:47:45]shift 181 fd 18771 [14:47:45]save to /storage/0181/doc_00018771 [14:47:45]save last doc name /storage/0181/doc_00018771 to /storage/kkm_last_doc_name [14:47:45]save OK [14:47:45]Clear old archive folders... [14:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=511 [14:47:45]tlvbuf is 00242EE0 [14:47:45]SAM_PROTO_ClearQueue [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 09 00 00 [14:47:45]Write to MH i2c: E2 08 00 88 1D 80 09 00 00 00 00 00 00 17 [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:45]Read from MH i2c: E2 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 03 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [14:47:45]RAPDU: 90 00 [14:47:45]wFMCommunicate OK [14:47:45]SAM_PROTO_ClearQueue done [14:47:45]KKMCreateOFDPacket [14:47:45]OFDProtocolAddRootSTLVToBuf [14:47:45]FM_MakeSignedData [14:47:45]FM_MakeSignedData [14:47:45]SAM_PROTO_SignData [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 0D 01 02 [14:47:45]Write to MH i2c: E2 08 00 89 1D 80 0D 01 02 00 00 00 00 1F [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:45]Read from MH i2c: E2 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 03 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [14:47:45]RAPDU: 90 00 [14:47:45]wFMCommunicate OK [14:47:45]wFMCommunicate request_size=255 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 0D 02 02 FA 03 00 FF 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 31 38 31 36 31 06 04 33 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B5 20 31 34 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [14:47:45]Write to MH i2c: E2 02 01 8A 1D 80 0D 02 02 FA 00 03 00 FF 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 31 38 31 36 31 06 04 33 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B5 20 31 34 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 15 [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]OFD Sender: No OFD packet to send [14:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 8A 1D 00 90 00 1B [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=255 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 02 02 FA 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 96 7F F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 [14:47:46]Write to MH i2c: E2 02 01 8B 1D 80 0D 02 02 FA 00 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 96 7F F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 00 88 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 8B 1D 00 90 00 1C [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=20 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 02 02 0F 00 53 49 00 00 35 04 06 00 13 4C 4D 70 AB 8D [14:47:46]Write to MH i2c: E2 17 00 8C 1D 80 0D 02 02 0F 00 00 53 49 00 00 35 04 06 00 13 4C 4D 70 AB 8D 00 00 70 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 8C 1D 00 90 00 1D [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=4 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 03 02 [14:47:46]Write to MH i2c: E2 08 00 8D 1D 80 0D 03 02 00 00 00 00 25 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 0B 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 0B 00 8D 1D 00 62 A6 98 12 15 BB 4A 4F 90 00 41 [14:47:46]RAPDU: 62 A6 98 12 15 BB 4A 4F 90 00 [14:47:46]wFMCommunicate OK [14:47:46]SAM_PROTO_SignData done [14:47:46]FM_MakeSignedData done [14:47:46]CreateOFDProtocolMessage [14:47:46]wFMCommunicate request_size=4 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 11 00 00 [14:47:46]Write to MH i2c: E2 08 00 8E 1D 80 11 00 00 00 00 00 00 25 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 17 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 17 00 8E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7E [14:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:47:46]wFMCommunicate OK [14:47:46]CreateOFDProtocolMessage done [14:47:46]OFDSenderStorePacket 18771 [14:47:46]StoreOFDPacket docnum=18771 [14:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 13 02 00 00 17 B8 0B 02 4C BA 5A 03 01 00 03 00 FF 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 31 38 31 36 31 06 04 33 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B5 20 31 34 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 37 36 32 32 32 31 30 33 30 39 33 39 36 06 04 1D 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 22 4F 52 45 4F 22 20 33 38 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 96 7F F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 53 49 00 00 35 04 06 00 13 4C 4D 70 AB 8D 62 A6 98 12 15 BB 4A 4F [14:47:46]CheckFolder [14:47:46]dirname=/storage/ofd_packets [14:47:46]CheckFolder done [14:47:46]ProducePacketName [14:47:46]name=ofd_packets/00018771 [14:47:46]NVStorageSaveData ofd_packets/00018771 [14:47:46]File name is /storage/ofd_packets/00018771 [14:47:46]Write 561 bytes [14:47:46]NVStorageSaveData done [14:47:46]OFDSenderStorePacket done [14:47:46]KKMCreateOFDPacket done [14:47:46]NVStorageSaveData kkm_last_timestamp [14:47:46]File name is /storage/kkm_last_timestamp [14:47:46]Write 4 bytes [14:47:46]NVStorageSaveData done [14:47:46]ExternCall_PrintAddStr [14:47:46]wPrintStart [14:47:46]Write to MH i2c: 01 00 00 8F 1D AC [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: 01 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: 01 07 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: 01 07 00 8F 1D 00 00 00 00 00 FF 0F C1 [14:47:46]RasterBufferAndPrint [14:47:46]line Счет N : (3)16694 [14:47:46]line ИНН: 02508201610067 [14:47:46]line Контрольно-Кассовый Чек [14:47:46]line ПРОДАЖА [14:47:46]line Товар: 5449000189301 [14:47:46]line Холодный чай Fuse лимон 0,5л [14:47:46]line 1.000 * 75.00 [14:47:46]line = 75.00 [14:47:46]line НДС 12% НСП 1% [14:47:46]line > о реализуемом товаре [14:47:46]line Товар: 4823077618161 [14:47:46]line Ваф труб Konafetto молочные 140 гр [14:47:46]line 1.000 * 130.00 [14:47:46]line = 130.00 [14:47:46]line НДС 12% НСП 1% [14:47:46]line > о реализуемом товаре [14:47:46]line Товар: 7622210309396 [14:47:46]line Печенье "OREO" 38 гр [14:47:46]line 1.000 * 65.00 [14:47:46]line = 65.00 [14:47:46]line НДС 12% НСП 1% [14:47:46]line > о реализуемом товаре [14:47:46]line ИТОГО: 270.00 [14:47:46]line НСП 1% : 2.38 [14:47:46]line НДС 12% : 28.66 [14:47:46]line Наличными: 270.00 [14:47:46]line Безнал.: 0.00 [14:47:46]line Место: АЗС № 176 "Партнер Нефть" [14:47:46]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:47:46]line СНО: Общий режим [14:47:46]line Чек 47 23.09.2024 14:47 [14:47:46]line Смена: 181 ФФД: 1.0 [14:47:46]line ЗНМ: 0300000010 [14:47:46]line РНМ: 0000000000152968 [14:47:46]line Версия ККМ: v1.0 [14:47:46]line ФМ: 0000000000959456 [14:47:46]line ФД: 18771 [14:47:46]line ФПД: 21218437671821 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]/dev/ttyS4 opened [00:00:09]Malloc ok [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 B0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 55 [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: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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [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 54000000005725B0 (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: 14856957+1712245966=1727102923 [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 = 0x33560624 [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 B0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 56 [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 60 00 FF FF 7F [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 CB 7F F1 66 CE CC 0E 66 AE [14:48:43]Current date/time: 23.09.2024 14:48 [14:48:43]FM_Init [14:48:43]wFMConnect [14:48:43]MH_SAM_On [14:48:43]Write to MH i2c: E0 00 00 08 00 E7 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_init finished! [14:48:43]*** atr: [14:48:43]*** 0F 3B D5 18 FF 81 91 FE [14:48:43]*** 1F C3 80 73 C8 21 10 0A [14:48:43]*** 00 00 00 00 00 00 00 00 [14:48:43]*** 00 00 00 00 00 00 00 00 [14:48:43]*** 00 00 00 00 00 00 00 00 [14:48:43]*** 00 00 00 00 00 00 00 00 [14:48:43]*** 00 00 00 00 00 00 00 00 [14:48:43]*** 00 00 00 00 00 00 00 00 [14:48:43]Read from MH i2c: E0 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E0 10 00 [14:48:43]MH_I2C_Read... [14:48: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 [14:48:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:48:43]wFMCommunicate request_size=10 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:48:43]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 11 00 00 [14:48:43]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 17 00 [14:48:43]MH_I2C_Read... [14:48: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 35 39 34 35 36 90 00 DD [14:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:48:43]wFMCommunicate OK [14:48:43]Detected FM SN is 0000000000959456 [14:48:43]Stored FM SN is 0000000000959456 [14:48:43]wFMCommunicate request_size=9 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 16 00 00 04 88 15 00 00 [14:48:43]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 88 15 00 00 00 00 2F [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]FM PIN OK [14:48:43]wFMCommunicate request_size=8 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 14 04 00 03 02 00 01 [14:48:43]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=13 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:48: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 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 11 00 00 [14:48:43]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 17 00 [14:48:43]MH_I2C_Read... [14:48: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 35 39 34 35 36 90 00 E1 [14:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:48:43]wFMCommunicate OK [14:48:43]DocumentArchiveInit [14:48:43]Start Httpd... [14:48:43]Httpd thread 3067039076 created [14:48:43]Write to MH i2c: 01 00 00 0F 00 0F [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: 01 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: 01 07 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:48:43]MH Int Process started [14:48:43]Allocated Socket 8 [14:48:43]Bind OK [14:48:43]Listen OK [14:48:43]httpd running on port 8080 [14:48:43]Waiting for new connection... [14:48:43]OFD Sender: No OFD packet to send [14:48:44]accept exits with 9 [14:48:44]New connection [14:48:44]New thread 3066752356 created [14:48:44]Waiting for new connection... [14:48:44] Sock 9.Parse request [14:48:44]Sock 9.Check first char [14:48:44]Sock 9.First char is OK [14:48:44]request: POST /json_proto HTTP/1.0 [14:48:44]Method: POST [14:48:44]URL: /json_proto [14:48:44]Method is POST - this is cgi request [14:48:44]url: /json_proto [14:48:44]query_string will be loaded in cgi processing [14:48:44]execute_cgi json_proto POST (null) [14:48:44]execute_cgi path=json_proto method=POST [14:48:44]POST find Content-Length [14:48:44]Host: 172.17.62.196:8080 [14:48:44]Content-Length: 215 [14:48:44]Content-Type: application/json [14:48:44] [14:48:44]POST finish read [14:48:44]Found Content-Length = 215 [14:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:44]execute_script... [14:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:44]POST & json_proto [14:48:44]process_json_proto [14:48:44]json parsed OK: [14:48:44]protocol is kg_v1.0 [14:48:44]action value=get_value [14:48:44]process_action get_value [14:48:44]cmd_get_value [14:48:44]process_action get_value done [14:48:44]requested_data is exist [14:48:44]produce_requested_data [14:48:44]requested_item kkm.sn is exist - process it [14:48:44]requested_item kkm.ver is exist - process it [14:48:44]requested_item fm.sn is exist - process it [14:48:44]wFMCommunicate request_size=4 [14:48:44]MH_SAM_APDU [14:48:44]CAPDU: 80 11 00 00 [14:48:44]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 [14:48:44]MH_I2C_Read... [14:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:44]Read from MH i2c: E2 17 00 [14:48:44]MH_I2C_Read... [14:48:44]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 35 39 34 35 36 90 00 E3 [14:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:48:44]wFMCommunicate OK [14:48:44]requested_item fd.num is exist - process it [14:48:44]SAM_PROTO_GetFieldsCounters [14:48:44]wFMCommunicate request_size=4 [14:48:44]MH_SAM_APDU [14:48:44]CAPDU: 80 13 00 00 [14:48:44]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:44]Read from MH i2c: E2 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 62 00 [14:48:44]MH_I2C_Read... [14:48:44]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 53 49 00 00 0E 04 04 00 B5 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 98 [14:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 53 49 00 00 0E 04 04 00 B5 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 [14:48:44]wFMCommunicate OK [14:48:44]SAM_PROTO_GetFieldsCounters done [14:48:44]requested_item shift.num is exist - process it [14:48:44]requested_item shift.opened is exist - process it [14:48:44]req_shift_opened [14:48:44]FM_GetShiftState [14:48:44]SAM_PROTO_GetShiftState [14:48:44]wFMCommunicate request_size=4 [14:48:44]MH_SAM_APDU [14:48:44]CAPDU: 80 13 01 00 [14:48:44]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:44]Read from MH i2c: E2 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 0E 00 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 27 [14:48:44]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:48:44]wFMCommunicate OK [14:48:44]SAM_PROTO_GetShiftState done [14:48:44]FM_GetShiftState done [14:48:44]req_shift_opened done [14:48:44]requested_item shift.open_date is exist - process it [14:48:44]req_shift_open_date [14:48:44]req_shift_open_date done [14:48:44]produce_requested_data done [14:48:44]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18771,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [14:48:44]process_action_free get_value [14:48:44]json_value_free [14:48:44]json_value_free done [14:48:44]process_json_proto returns [14:48:44]Send response to host [14:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18771,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [14:48:44]free response buf [14:48:44]execute_script done [14:48:44]execute_script returns [14:48:44]free content buf [14:48:44]Sock 9.Close socket [14:48:44]Sock 9.Thread stoped [14:48:44]accept exits with 6 [14:48:44]New connection [14:48:44]New thread 3066608996 created [14:48:44]Thread 3066752356 joined [14:48:44]Waiting for new connection... [14:48:44] Sock 6.Parse request [14:48:44]Sock 6.Check first char [14:48:44]Sock 6.First char is OK [14:48:44]request: POST /json_proto HTTP/1.0 [14:48:44]Method: POST [14:48:44]URL: /json_proto [14:48:44]Method is POST - this is cgi request [14:48:44]url: /json_proto [14:48:44]query_string will be loaded in cgi processing [14:48:44]execute_cgi json_proto POST (null) [14:48:44]execute_cgi path=json_proto method=POST [14:48:44]POST find Content-Length [14:48:44]Host: 172.17.62.196:8080 [14:48:44]Content-Length: 331 [14:48:44]Content-Type: application/json [14:48:44] [14:48:44]POST finish read [14:48:44]Found Content-Length = 331 [14:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:48:44]execute_script... [14:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:48:44]POST & json_proto [14:48:44]process_json_proto [14:48:44]json parsed OK: [14:48:44]protocol is kg_v1.0 [14:48:44]action value=get_value [14:48:44]process_action get_value [14:48:44]cmd_get_value [14:48:44]process_action get_value done [14:48:44]requested_data is exist [14:48:44]produce_requested_data [14:48:44]requested_item fm.sale.total is exist - process it [14:48:44]SAM_PROTO_GetFMData [14:48:44]wFMCommunicate request_size=4 [14:48:44]MH_SAM_APDU [14:48:44]CAPDU: 80 13 03 00 [14:48:44]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 13 00 00 BE 04 85 04 BA 04 6E 04 04 00 E9 47 00 00 69 04 A0 00 6F 04 04 00 DA 47 00 00 B1 04 04 00 52 4F 7A 31 70 04 04 00 70 4C 1A 1F 72 04 04 00 E2 02 60 12 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 CF 38 41 05 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 56 13 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 5C [14:48:45]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 E9 47 00 00 69 04 A0 00 6F 04 04 00 DA 47 00 00 B1 04 04 00 52 4F 7A 31 70 04 04 00 70 4C 1A 1F 72 04 04 00 E2 02 60 12 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 CF 38 41 05 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 56 13 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [14:48:45]wFMCommunicate OK [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 17 00 00 [14:48:45]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 14 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [14:48:45]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:48:45]wFMCommunicate OK [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 17 00 00 [14:48:45]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [14:48:45]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:48:45]wFMCommunicate OK [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 17 00 00 [14:48:45]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 FD 00 16 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 11 [14:48:45]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [14:48:45]wFMCommunicate OK [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 17 00 00 [14:48:45]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [14:48:46]Read from MH i2c: E2 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 DB 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 DB 00 17 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 79 [14:48:46]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:48:46]wFMCommunicate OK [14:48:46]SAM_PROTO_GetFMData done [14:48:46]requested_item fm.sale_refund.total is exist - process it [14:48:46]requested_item fm.buy.total is exist - process it [14:48:46]requested_item shift.sale.total is exist - process it [14:48:46]SAM_PROTO_GetShiftData [14:48:46]wFMCommunicate request_size=4 [14:48:46]MH_SAM_APDU [14:48:46]CAPDU: 80 13 02 00 [14:48:46]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:48:46]Write i2c OK [14:48:46]MH_I2C_Read... [14:48:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:48:46]Read from MH i2c: E2 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 FD 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 50 44 11 70 04 03 00 F8 4D 0F 72 04 03 00 58 F6 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 D5 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 87 [14:48:46]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2F 00 00 00 B1 04 03 00 50 44 11 70 04 03 00 F8 4D 0F 72 04 03 00 58 F6 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 73 D5 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [14:48:46]wFMCommunicate OK [14:48:46]wFMCommunicate request_size=4 [14:48:46]MH_SAM_APDU [14:48:46]CAPDU: 80 17 00 00 [14:48:46]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:48:46]Write i2c OK [14:48:46]MH_I2C_Read... [14:48:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:46]Read from MH i2c: E2 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 FD 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [14:48:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [14:48:46]wFMCommunicate OK [14:48:46]wFMCommunicate request_size=4 [14:48:46]MH_SAM_APDU [14:48:46]CAPDU: 80 17 00 00 [14:48:46]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:48:46]Write i2c OK [14:48:46]MH_I2C_Read... [14:48:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:47]Read from MH i2c: E2 [14:48:47]MH_I2C_Read... [14:48:47]Read from MH i2c: E2 FD 00 [14:48:47]MH_I2C_Read... [14:48:47]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [14:48:47]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [14:48:47]wFMCommunicate OK [14:48:47]wFMCommunicate request_size=4 [14:48:47]MH_SAM_APDU [14:48:47]CAPDU: 80 17 00 00 [14:48:47]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:48:47]Write i2c OK [14:48:47]MH_I2C_Read... [14:48:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:48:47]Read from MH i2c: E2 [14:48:47]MH_I2C_Read... [14:48:47]Read from MH i2c: E2 FD 00 [14:48:47]MH_I2C_Read... [14:48:47]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [14:48:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [14:48:47]wFMCommunicate OK [14:48:47]wFMCommunicate request_size=4 [14:48:47]MH_SAM_APDU [14:48:47]CAPDU: 80 17 00 00 [14:48:47]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:48:47]Write i2c OK [14:48:47]MH_I2C_Read... [14:48:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:48:47]Read from MH i2c: E2 [14:48:47]MH_I2C_Read... [14:48:47]Read from MH i2c: E2 CB 00 [14:48:47]MH_I2C_Read... [14:48:47]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [14:48:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:48:47]wFMCommunicate OK [14:48:47]SAM_PROTO_GetShiftData done [14:48:47]requested_item shift.sale.total_cash is exist - process it [14:48:47]requested_item shift.sale_refund.total is exist - process it [14:48:47]requested_item shift.sale_refund.total_cash is exist - process it [14:48:47]requested_item shift.buy.total is exist - process it [14:48:47]requested_item shift.buy.total_cash is exist - process it [14:48:47]produce_requested_data done [14:48:47]produce_requested_data return {"fm.sale.total":8300992.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":11316.00,"shift.sale.total_cash":10030.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:48:47]process_action_free get_value [14:48:47]json_value_free [14:48:47]json_value_free done [14:48:47]process_json_proto returns [14:48:47]Send response to host [14:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8300992.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":11316.00,"shift.sale.total_cash":10030.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:48:47]free response buf [14:48:47]execute_script done [14:48:47]execute_script returns [14:48:47]free content buf [14:48:47]Sock 6.Close socket [14:48:47]Sock 6.Thread stoped [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]accept exits with 9 [14:54:13]New connection [14:54:13]New thread 3066752356 created [14:54:13]Thread 3066608996 joined [14:54:13]Waiting for new connection... [14:54:13] Sock 9.Parse request [14:54:13]Sock 9.Check first char [14:54:13]Sock 9.First char is OK [14:54:13]request: POST /json_proto HTTP/1.0 [14:54:13]Method: POST [14:54:13]URL: /json_proto [14:54:13]Method is POST - this is cgi request [14:54:13]url: /json_proto [14:54:13]query_string will be loaded in cgi processing [14:54:13]execute_cgi json_proto POST (null) [14:54:13]execute_cgi path=json_proto method=POST [14:54:13]POST find Content-Length [14:54:13]Host: 172.17.62.196:8080 [14:54:13]Content-Length: 621 [14:54:13]Content-Type: application/json [14:54:13] [14:54:13]POST finish read [14:54:13]Found Content-Length = 621 [14:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16695", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:13]execute_script... [14:54:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16695", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:13]POST & json_proto [14:54:13]process_json_proto [14:54:13]json parsed OK: [14:54:13]protocol is kg_v1.0 [14:54:13]action value=close_receipt [14:54:13]process_action close_receipt [14:54:13]cmd_close_receipt [14:54:13]MH_GetDate [14:54:13]Write to MH i2c: F0 00 00 1D 00 0C [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: F0 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: F0 09 00 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: F0 09 00 1D 00 00 16 81 F1 66 CE CC 0E 66 11 [14:54:13]GetLastDocTimeStamp 1727102870 [14:54:13]current date 1727103254 [14:54:13]FM_GetShiftState [14:54:13]SAM_PROTO_GetShiftState [14:54:13]wFMCommunicate request_size=4 [14:54:13]MH_SAM_APDU [14:54:13]CAPDU: 80 13 01 00 [14:54:13]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:13]Read from MH i2c: E2 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: E2 0E 00 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 33 [14:54:13]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:54:13]wFMCommunicate OK [14:54:13]SAM_PROTO_GetShiftState done [14:54:13]FM_GetShiftState done [14:54:13]opened in 1727050372 [14:54:13]opened+sec_in_day 1727136772 [14:54:13]quantity*price = 15600 [14:54:13]sum+1 = 15601 [14:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 48 23.09.2024 14:54 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18772 ФПД: 52390545498368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145414&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18772&fm=52390545498368&tin=02508201610067®Number=0000000000152968&sum=15600 0 [14:54:14]StoreToDocumentArchive [14:54:14]shift 181 fd 18772 [14:54:14]save to /storage/0181/doc_00018772 [14:54:14]save last doc name /storage/0181/doc_00018772 to /storage/kkm_last_doc_name [14:54:14]save OK [14:54:14]Clear old archive folders... [14:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:54:14]tlvbuf is 00C006E0 [14:54:14]SAM_PROTO_ClearQueue [14:54:14]wFMCommunicate request_size=4 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 09 00 00 [14:54:14]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:54:14]RAPDU: 90 00 [14:54:14]wFMCommunicate OK [14:54:14]SAM_PROTO_ClearQueue done [14:54:14]KKMCreateOFDPacket [14:54:14]OFDProtocolAddRootSTLVToBuf [14:54:14]FM_MakeSignedData [14:54:14]FM_MakeSignedData [14:54:14]SAM_PROTO_SignData [14:54:14]wFMCommunicate request_size=4 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 0D 01 02 [14:54:14]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:54:14]RAPDU: 90 00 [14:54:14]wFMCommunicate OK [14:54:14]wFMCommunicate request_size=255 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 16 81 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [14:54:14]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 16 81 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 59 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=33 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 54 49 00 00 35 04 06 00 2F A6 1F DA A1 00 [14:54:15]Write to MH i2c: E2 24 00 2E 00 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 54 49 00 00 35 04 06 00 2F A6 1F DA A1 00 00 00 49 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 03 02 [14:54:15]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0B 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0B 00 2F 00 00 73 07 C7 4B F7 C8 5A C9 90 00 19 [14:54:15]RAPDU: 73 07 C7 4B F7 C8 5A C9 90 00 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_SignData done [14:54:15]FM_MakeSignedData done [14:54:15]CreateOFDProtocolMessage [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 11 00 00 [14:54:15]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 03 [14:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:54:15]wFMCommunicate OK [14:54:15]CreateOFDProtocolMessage done [14:54:15]OFDSenderStorePacket 18772 [14:54:15]StoreOFDPacket docnum=18772 [14:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 A6 09 1E 01 6F 7F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 16 81 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 54 49 00 00 35 04 06 00 2F A6 1F DA A1 00 73 07 C7 4B F7 C8 5A C9 [14:54:15]CheckFolder [14:54:15]dirname=/storage/ofd_packets [14:54:15]CheckFolder done [14:54:15]ProducePacketName [14:54:15]name=ofd_packets/00018772 [14:54:15]NVStorageSaveData ofd_packets/00018772 [14:54:15]File name is /storage/ofd_packets/00018772 [14:54:15]Write 324 bytes [14:54:15]NVStorageSaveData done [14:54:15]OFDSenderStorePacket done [14:54:15]KKMCreateOFDPacket done [14:54:15]NVStorageSaveData kkm_last_timestamp [14:54:15]File name is /storage/kkm_last_timestamp [14:54:15]Write 4 bytes [14:54:15]NVStorageSaveData done [14:54:15]ExternCall_PrintAddStr [14:54:15]wPrintStart [14:54:15]Write to MH i2c: 01 00 00 31 00 31 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:54:15]RasterBufferAndPrint [14:54:15]line Счет N : (3)16695 [14:54:15]line ИНН: 02508201610067 [14:54:15]line Контрольно-Кассовый Чек [14:54:15]line ПРОДАЖА [14:54:15]line Товар: 48741958 [14:54:15]line Сигареты Parliament Aqua Blue [14:54:15]line 1.000 * 156.00 [14:54:15]line = 156.00 [14:54:15]line НДС 12% НСП 1% [14:54:15]line > о реализуемом товаре [14:54:15]line ИТОГО: 156.00 [14:54:15]line НСП 1% : 1.38 [14:54:15]line НДС 12% : 16.57 [14:54:15]line Наличными: 156.00 [14:54:15]line Безнал.: 0.00 [14:54:15]line Место: АЗС № 176 "Партнер Нефть" [14:54:15]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [14:54:15]line СНО: Общий режим [14:54:15]line Чек 48 23.09.2024 14:54 [14:54:15]line Смена: 181 ФФД: 1.0 [14:54:15]line ЗНМ: 0300000010 [14:54:15]line РНМ: 0000000000152968 [14:54:15]line Версия ККМ: v1.0 [14:54:15]line ФМ: 0000000000959456 [14:54:15]line ФД: 18772 [14:54:15]line ФПД: 52390545498368 [14:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T145414&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18772&fm=52390545498368&tin=02508201610067®Number=0000000000152968&sum=15600 [14:54:15]line 0 [14:54:15]written 0, free lines is 4095 [14:54:15]OFD Sender: Processing packet 18772 [packets to send 7, broken 6] [14:54:15]ProducePacketName [14:54:15]name=ofd_packets/00018772 [14:54:15]OFD Sender: To server: pG, [14:54:15]CommunicateWithHost lk.salyk.kg:30040 [14:54:15]ConnectInit lk.salyk.kg [14:54:15]Connected sock=10 [14:54:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 A6 09 1E 01 6F 7F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 16 81 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 54 49 00 00 35 04 06 00 2F A6 1F DA A1 00 73 07 C7 4B F7 C8 5A C9 [14:54:15]Write to MH i2c: 01 00 00 5A 00 5A [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 0F 0D 7D [14:54:15]RasterBufferAndPrint [14:54:15]line [14:54:15]line [14:54:15]line [14:54:15]line [14:54:15]line [14:54:15]written 0, free lines is 3349 [14:54:15]MH_Cut [14:54:15]Write to MH i2c: D1 01 00 61 00 01 33 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: D1 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: D1 01 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: D1 01 00 61 00 00 32 [14:54:15]Write to MH i2c: 01 00 00 62 00 62 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 BE 8A 47 00 A7 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 54 49 00 00 F4 03 04 00 7A 2A F1 66 B6 04 01 00 00 13 FD F1 30 4B E3 02 EC [14:54:16]CommunicateWithHost err = 0 [14:54:16]CheckOFDResponse [14:54:16]1017 (14) - 77093643461234 [14:54:16]1041 (16) - 0000000000959456 [14:54:16]1040 (4) - 18772 [14:54:16]1012 (4) - 23.09.2024 08:44 [14:54:16]1206 (1) - 0 [14:54:16]OFD Sender: Remove packet 18772 [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00018772 [14:54:16]NVStorageDeleteData [14:54:16]*** Cut start [14:54:16]*** Partial cut [14:54:16]*** CUTSNS_PIN = 1 [14:54:16]*** CUTSNS_PIN = 0 [14:54:16]OFD Sender: No OFD packet to send [14:54:16]*** Brake cut motor [14:54:17]Read from MH i2c: 01 [14:54:17]MH_I2C_Read... [14:54:17]*** Stop cut motor [14:54:17]*** Cut end [14:54:17]Read from MH i2c: 01 07 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [14:54:17]process_action close_receipt done [14:54:17]requested_data is exist [14:54:17]produce_requested_data [14:54:17]requested_item fm.sn is exist - process it [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 11 00 00 [14:54:17]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:17]Read from MH i2c: E2 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 17 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 36 [14:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [14:54:17]wFMCommunicate OK [14:54:17]requested_item fd.num is exist - process it [14:54:17]SAM_PROTO_GetFieldsCounters [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 13 00 00 [14:54:17]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:17]Read from MH i2c: E2 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 62 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 54 49 00 00 0E 04 04 00 B5 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 EF [14:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 54 49 00 00 0E 04 04 00 B5 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 [14:54:17]wFMCommunicate OK [14:54:17]SAM_PROTO_GetFieldsCounters done [14:54:17]requested_item shift.num is exist - process it [14:54:17]requested_item shift.opened is exist - process it [14:54:17]req_shift_opened [14:54:17]FM_GetShiftState [14:54:17]SAM_PROTO_GetShiftState [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 13 01 00 [14:54:17]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:17]Read from MH i2c: E2 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 0E 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 7A [14:54:17]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [14:54:17]wFMCommunicate OK [14:54:17]SAM_PROTO_GetShiftState done [14:54:17]FM_GetShiftState done [14:54:17]req_shift_opened done [14:54:17]requested_item shift.open_date is exist - process it [14:54:17]req_shift_open_date [14:54:17]req_shift_open_date done [14:54:17]produce_requested_data done [14:54:17]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18772,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [14:54:17]process_action_free close_receipt [14:54:17]json_value_free [14:54:17]json_value_free done [14:54:17]process_json_proto returns [14:54:17]Send response to host [14:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18772,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [14:54:17]free response buf [14:54:17]execute_script done [14:54:17]execute_script returns [14:54:17]free content buf [14:54:17]Sock 9.Close socket [14:54:17]Sock 9.Thread stoped [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03: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:56]accept exits with 7 [15:03:56]New connection [15:03:56]New thread 3066608996 created [15:03:56]Thread 3066752356 joined [15:03:56]Waiting for new connection... [15:03:56] Sock 7.Parse request [15:03:56]Sock 7.Check first char [15:03:56]Sock 7.First char is OK [15:03:56]request: POST /json_proto HTTP/1.0 [15:03:56]Method: POST [15:03:56]URL: /json_proto [15:03:56]Method is POST - this is cgi request [15:03:56]url: /json_proto [15:03:56]query_string will be loaded in cgi processing [15:03:56]execute_cgi json_proto POST (null) [15:03:56]execute_cgi path=json_proto method=POST [15:03:56]POST find Content-Length [15:03:56]Host: 172.17.62.196:8080 [15:03:56]Content-Length: 654 [15:03:56]Content-Type: application/json [15:03:56] [15:03:56]POST finish read [15:03:56]Found Content-Length = 654 [15:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16696", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:56]execute_script... [15:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16696", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:56]POST & json_proto [15:03:56]process_json_proto [15:03:56]json parsed OK: [15:03:56]protocol is kg_v1.0 [15:03:56]action value=close_receipt [15:03:56]process_action close_receipt [15:03:56]cmd_close_receipt [15:03:56]MH_GetDate [15:03:56]Write to MH i2c: F0 00 00 66 00 55 [15:03:56]Write i2c OK [15:03:56]MH_I2C_Read... [15:03:56]Read from MH i2c: F0 [15:03:56]MH_I2C_Read... [15:03:56]Read from MH i2c: F0 09 00 [15:03:56]MH_I2C_Read... [15:03:56]Read from MH i2c: F0 09 00 66 00 00 5D 83 F1 66 CE CC 0E 66 A3 [15:03:56]GetLastDocTimeStamp 1727103254 [15:03:56]current date 1727103837 [15:03:56]FM_GetShiftState [15:03:56]SAM_PROTO_GetShiftState [15:03:56]wFMCommunicate request_size=4 [15:03:56]MH_SAM_APDU [15:03:56]CAPDU: 80 13 01 00 [15:03:56]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:03:56]Write i2c OK [15:03:56]MH_I2C_Read... [15:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:57]OFD Sender: No OFD packet to send [15:03:57]Read from MH i2c: E2 [15:03:57]MH_I2C_Read... [15:03:57]Read from MH i2c: E2 0E 00 [15:03:57]MH_I2C_Read... [15:03:57]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 7C [15:03:57]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:03:57]wFMCommunicate OK [15:03:57]SAM_PROTO_GetShiftState done [15:03:57]FM_GetShiftState done [15:03:57]opened in 1727050372 [15:03:57]opened+sec_in_day 1727136772 [15:03:57]quantity*price = 8500 [15:03:57]sum+1 = 8501 [15:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 49 23.09.2024 15:03 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18773 ФПД: 102092324395383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T150357&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18773&fm=102092324395383&tin=02508201610067®Number=0000000000152968&sum=8500 0 [15:03:58]StoreToDocumentArchive [15:03:58]shift 181 fd 18773 [15:03:58]save to /storage/0181/doc_00018773 [15:03:58]save last doc name /storage/0181/doc_00018773 to /storage/kkm_last_doc_name [15:03:58]save OK [15:03:58]Clear old archive folders... [15:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:03:58]tlvbuf is 00C00AD0 [15:03:58]SAM_PROTO_ClearQueue [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 09 00 00 [15:03:58]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]SAM_PROTO_ClearQueue done [15:03:58]KKMCreateOFDPacket [15:03:58]OFDProtocolAddRootSTLVToBuf [15:03:58]FM_MakeSignedData [15:03:58]FM_MakeSignedData [15:03:58]SAM_PROTO_SignData [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 0D 01 02 [15:03:58]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]wFMCommunicate request_size=255 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D 83 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:03:58]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D 83 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 EF [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]wFMCommunicate request_size=53 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 0D 02 02 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 55 49 00 00 35 04 06 00 5C DA 38 BA D9 77 [15:03:58]Write to MH i2c: E2 38 00 77 00 80 0D 02 02 30 00 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 55 49 00 00 35 04 06 00 5C DA 38 BA D9 77 00 00 08 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:03:58]RAPDU: 90 00 [15:03:58]wFMCommunicate OK [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 0D 03 02 [15:03:58]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 0B 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 0B 00 78 00 00 9A 20 16 75 F1 E2 9A E7 90 00 8D [15:03:58]RAPDU: 9A 20 16 75 F1 E2 9A E7 90 00 [15:03:58]wFMCommunicate OK [15:03:58]SAM_PROTO_SignData done [15:03:58]FM_MakeSignedData done [15:03:58]CreateOFDProtocolMessage [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 11 00 00 [15:03:58]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 17 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4C [15:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:03:58]wFMCommunicate OK [15:03:58]CreateOFDProtocolMessage done [15:03:58]OFDSenderStorePacket 18773 [15:03:58]StoreOFDPacket docnum=18773 [15:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 05 A1 32 01 EF 4E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D 83 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 55 49 00 00 35 04 06 00 5C DA 38 BA D9 77 9A 20 16 75 F1 E2 9A E7 [15:03:58]CheckFolder [15:03:58]dirname=/storage/ofd_packets [15:03:58]CheckFolder done [15:03:58]ProducePacketName [15:03:58]name=ofd_packets/00018773 [15:03:58]NVStorageSaveData ofd_packets/00018773 [15:03:58]File name is /storage/ofd_packets/00018773 [15:03:58]Write 344 bytes [15:03:58]NVStorageSaveData done [15:03:58]OFDSenderStorePacket done [15:03:58]KKMCreateOFDPacket done [15:03:58]NVStorageSaveData kkm_last_timestamp [15:03:58]File name is /storage/kkm_last_timestamp [15:03:58]Write 4 bytes [15:03:58]NVStorageSaveData done [15:03:58]ExternCall_PrintAddStr [15:03:58]wPrintStart [15:03:58]Write to MH i2c: 01 00 00 7A 00 7A [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: 01 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: 01 07 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [15:03:58]RasterBufferAndPrint [15:03:58]line Счет N : (3)16696 [15:03:58]line ИНН: 02508201610067 [15:03:58]line Контрольно-Кассовый Чек [15:03:58]line ПРОДАЖА [15:03:58]line Товар: 4600682557456 [15:03:58]line Напиток FLash up energy эн ж/б 0,5/0,45л [15:03:58]line 1.000 * 85.00 [15:03:58]line = 85.00 [15:03:58]line НДС 12% НСП 1% [15:03:58]line > о реализуемом товаре [15:03:58]line ИТОГО: 85.00 [15:03:58]line НСП 1% : 0.75 [15:03:58]line НДС 12% : 9.03 [15:03:58]line Наличными: 85.00 [15:03:58]line Безнал.: 0.00 [15:03:58]line Место: АЗС № 176 "Партнер Нефть" [15:03:58]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:03:58]line СНО: Общий режим [15:03:58]line Чек 49 23.09.2024 15:03 [15:03:58]line Смена: 181 ФФД: 1.0 [15:03:58]line ЗНМ: 0300000010 [15:03:58]line РНМ: 0000000000152968 [15:03:58]line Версия ККМ: v1.0 [15:03:58]line ФМ: 0000000000959456 [15:03:58]line ФД: 18773 [15:03:58]line ФПД: 102092324395383 [15:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T150357&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18773&fm=102092324395383&tin=02508201610067®Number=0000000000152968&sum=8500 [15:03:59]line 0 [15:03:59]OFD Sender: Processing packet 18773 [packets to send 7, broken 6] [15:03:59]ProducePacketName [15:03:59]name=ofd_packets/00018773 [15:03:59]OFD Sender: To server: pG, [15:03:59]CommunicateWithHost lk.salyk.kg:30040 [15:03:59]ConnectInit lk.salyk.kg [15:03:59]written 0, free lines is 4095 [15:03:59]Write to MH i2c: 01 00 00 A3 00 A3 [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: 01 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: 01 07 00 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 01 0D B8 [15:03:59]RasterBufferAndPrint [15:03:59]line [15:03:59]line [15:03:59]line [15:03:59]line [15:03:59]line [15:03:59]written 0, free lines is 3335 [15:03:59]MH_Cut [15:03:59]Write to MH i2c: D1 01 00 AA 00 01 7C [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: D1 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: D1 01 00 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: D1 01 00 AA 00 00 7B [15:03:59]Write to MH i2c: 01 00 00 AB 00 AB [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]Connected sock=9 [15:03:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3A 01 00 00 05 A1 32 01 EF 4E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D 83 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 55 49 00 00 35 04 06 00 5C DA 38 BA D9 77 9A 20 16 75 F1 E2 9A E7 [15:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 BF 4D 47 00 89 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 35 39 34 35 36 10 04 04 00 55 49 00 00 F4 03 04 00 C2 2C F1 66 B6 04 01 00 00 AE 11 EC 00 69 D6 AE 66 [15:03:59]CommunicateWithHost err = 0 [15:03:59]CheckOFDResponse [15:03:59]1017 (14) - 77093643461234 [15:03:59]1041 (16) - 0000000000959456 [15:03:59]1040 (4) - 18773 [15:03:59]1012 (4) - 23.09.2024 08:54 [15:03:59]1206 (1) - 0 [15:03:59]OFD Sender: Remove packet 18773 [15:03:59]ProducePacketName [15:03:59]name=ofd_packets/00018773 [15:03:59]NVStorageDeleteData [15:04:00]*** Cut start [15:04:00]*** Partial cut [15:04:00]*** CUTSNS_PIN = 1 [15:04:00]*** CUTSNS_PIN = 0 [15:04:00]*** Brake cut motor [15:04:00]OFD Sender: No OFD packet to send [15:04:00]Read from MH i2c: 01 [15:04:00]MH_I2C_Read... [15:04:00]*** Stop cut motor [15:04:00]*** Cut end [15:04:00]Read from MH i2c: 01 07 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [15:04:00]process_action close_receipt done [15:04:00]requested_data is exist [15:04:00]produce_requested_data [15:04:00]requested_item fm.sn is exist - process it [15:04:00]wFMCommunicate request_size=4 [15:04:00]MH_SAM_APDU [15:04:00]CAPDU: 80 11 00 00 [15:04:00]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:00]Read from MH i2c: E2 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 17 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7F [15:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:04:00]wFMCommunicate OK [15:04:00]requested_item fd.num is exist - process it [15:04:00]SAM_PROTO_GetFieldsCounters [15:04:00]wFMCommunicate request_size=4 [15:04:00]MH_SAM_APDU [15:04:00]CAPDU: 80 13 00 00 [15:04:00]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:00]Read from MH i2c: E2 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 62 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 62 00 AD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 55 49 00 00 0E 04 04 00 B5 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 3C [15:04:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 55 49 00 00 0E 04 04 00 B5 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 [15:04:00]wFMCommunicate OK [15:04:00]SAM_PROTO_GetFieldsCounters done [15:04:00]requested_item shift.num is exist - process it [15:04:00]requested_item shift.opened is exist - process it [15:04:00]req_shift_opened [15:04:00]FM_GetShiftState [15:04:00]SAM_PROTO_GetShiftState [15:04:00]wFMCommunicate request_size=4 [15:04:00]MH_SAM_APDU [15:04:00]CAPDU: 80 13 01 00 [15:04:00]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:00]Read from MH i2c: E2 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 0E 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C3 [15:04:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:04:00]wFMCommunicate OK [15:04:00]SAM_PROTO_GetShiftState done [15:04:00]FM_GetShiftState done [15:04:00]req_shift_opened done [15:04:00]requested_item shift.open_date is exist - process it [15:04:00]req_shift_open_date [15:04:00]req_shift_open_date done [15:04:00]produce_requested_data done [15:04:00]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18773,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [15:04:00]process_action_free close_receipt [15:04:00]json_value_free [15:04:00]json_value_free done [15:04:00]process_json_proto returns [15:04:00]Send response to host [15:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18773,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [15:04:00]free response buf [15:04:00]execute_script done [15:04:00]execute_script returns [15:04:00]free content buf [15:04:00]Sock 7.Close socket [15:04:00]Sock 7.Thread stoped [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09: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:47]accept exits with 10 [15:09:47]New connection [15:09:47]New thread 3066752356 created [15:09:47]Thread 3066608996 joined [15:09:47]Waiting for new connection... [15:09:47] Sock 10.Parse request [15:09:47]Sock 10.Check first char [15:09:47]Sock 10.First char is OK [15:09:47]request: POST /json_proto HTTP/1.0 [15:09:47]Method: POST [15:09:47]URL: /json_proto [15:09:47]Method is POST - this is cgi request [15:09:47]url: /json_proto [15:09:47]query_string will be loaded in cgi processing [15:09:47]execute_cgi json_proto POST (null) [15:09:47]execute_cgi path=json_proto method=POST [15:09:47]POST find Content-Length [15:09:47]Host: 172.17.62.196:8080 [15:09:47]Content-Length: 893 [15:09:47]Content-Type: application/json [15:09:47] [15:09:47]POST finish read [15:09:47]Found Content-Length = 893 [15:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16697", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:47]execute_script... [15:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16697", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:47]POST & json_proto [15:09:47]process_json_proto [15:09:47]json parsed OK: [15:09:47]protocol is kg_v1.0 [15:09:47]action value=close_receipt [15:09:47]process_action close_receipt [15:09:47]cmd_close_receipt [15:09:47]MH_GetDate [15:09:47]Write to MH i2c: F0 00 00 AF 00 9E [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: F0 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: F0 09 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: F0 09 00 AF 00 00 BC 84 F1 66 CE CC 0E 66 4C [15:09:47]GetLastDocTimeStamp 1727103837 [15:09:47]current date 1727104188 [15:09:47]FM_GetShiftState [15:09:47]SAM_PROTO_GetShiftState [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 13 01 00 [15:09:47]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0E 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C5 [15:09:47]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:09:47]wFMCommunicate OK [15:09:47]SAM_PROTO_GetShiftState done [15:09:47]FM_GetShiftState done [15:09:47]opened in 1727050372 [15:09:47]opened+sec_in_day 1727136772 [15:09:47]quantity*price = 15400 [15:09:47]sum+1 = 15401 [15:09:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 156.00 = 156.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 50 23.09.2024 15:09 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18774 ФПД: 160238109658899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T150948&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18774&fm=160238109658899&tin=02508201610067®Number=0000000000152968&sum=31000 0 [15:09:48]StoreToDocumentArchive [15:09:48]shift 181 fd 18774 [15:09:48]save to /storage/0181/doc_00018774 [15:09:48]save last doc name /storage/0181/doc_00018774 to /storage/kkm_last_doc_name [15:09:48]save OK [15:09:48]Clear old archive folders... [15:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=397 [15:09:48]tlvbuf is 00C03BF0 [15:09:48]SAM_PROTO_ClearQueue [15:09:48]wFMCommunicate request_size=4 [15:09:48]MH_SAM_APDU [15:09:48]CAPDU: 80 09 00 00 [15:09:48]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [15:09:48]Write i2c OK [15:09:48]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]SAM_PROTO_ClearQueue done [15:09:49]KKMCreateOFDPacket [15:09:49]OFDProtocolAddRootSTLVToBuf [15:09:49]FM_MakeSignedData [15:09:49]FM_MakeSignedData [15:09:49]SAM_PROTO_SignData [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 01 02 [15:09:49]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]wFMCommunicate request_size=255 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 [15:09:49]Write to MH i2c: E2 02 01 BF 00 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 00 00 A0 [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]wFMCommunicate request_size=156 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC 84 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 56 49 00 00 35 04 06 00 91 BC 57 9B 0F 13 [15:09:49]Write to MH i2c: E2 9F 00 C0 00 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC 84 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 56 49 00 00 35 04 06 00 91 BC 57 9B 0F 13 00 00 A7 [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 03 02 [15:09:49]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 0B 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 0B 00 C1 00 00 8E EC 4B 8C FF 32 12 4D 90 00 1E [15:09:49]RAPDU: 8E EC 4B 8C FF 32 12 4D 90 00 [15:09:49]wFMCommunicate OK [15:09:49]SAM_PROTO_SignData done [15:09:49]FM_MakeSignedData done [15:09:49]CreateOFDProtocolMessage [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 11 00 00 [15:09:49]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 17 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 95 [15:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:09:49]wFMCommunicate OK [15:09:49]CreateOFDProtocolMessage done [15:09:49]OFDSenderStorePacket 18774 [15:09:49]StoreOFDPacket docnum=18774 [15:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A1 01 00 00 49 25 99 01 B9 62 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC 84 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 56 49 00 00 35 04 06 00 91 BC 57 9B 0F 13 8E EC 4B 8C FF 32 12 4D [15:09:49]CheckFolder [15:09:49]dirname=/storage/ofd_packets [15:09:49]CheckFolder done [15:09:49]ProducePacketName [15:09:49]name=ofd_packets/00018774 [15:09:49]NVStorageSaveData ofd_packets/00018774 [15:09:49]File name is /storage/ofd_packets/00018774 [15:09:49]Write 447 bytes [15:09:49]NVStorageSaveData done [15:09:49]OFDSenderStorePacket done [15:09:49]KKMCreateOFDPacket done [15:09:49]NVStorageSaveData kkm_last_timestamp [15:09:49]File name is /storage/kkm_last_timestamp [15:09:49]Write 4 bytes [15:09:49]NVStorageSaveData done [15:09:49]ExternCall_PrintAddStr [15:09:49]wPrintStart [15:09:49]Write to MH i2c: 01 00 00 C3 00 C3 [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: 01 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: 01 07 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [15:09:49]RasterBufferAndPrint [15:09:49]line Счет N : (3)16697 [15:09:49]line ИНН: 02508201610067 [15:09:49]line Контрольно-Кассовый Чек [15:09:49]line ПРОДАЖА [15:09:49]line Товар: 4700000480050 [15:09:49]line Напиток Nitro Energy эн green ж/б 0,45л [15:09:49]line 2.000 * 77.00 [15:09:49]line = 154.00 [15:09:49]line НДС 12% НСП 1% [15:09:49]line > о реализуемом товаре [15:09:49]line Товар: 48741958 [15:09:49]line Сигареты Parliament Aqua Blue [15:09:49]line 1.000 * 156.00 [15:09:49]line = 156.00 [15:09:49]line НДС 12% НСП 1% [15:09:49]line > о реализуемом товаре [15:09:49]line ИТОГО: 310.00 [15:09:49]line НСП 1% : 2.74 [15:09:49]line НДС 12% : 32.92 [15:09:49]line Наличными: 310.00 [15:09:49]line Безнал.: 0.00 [15:09:49]line Место: АЗС № 176 "Партнер Нефть" [15:09:49]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:09:49]line СНО: Общий режим [15:09:49]line Чек 50 23.09.2024 15:09 [15:09:49]line Смена: 181 ФФД: 1.0 [15:09:49]line ЗНМ: 0300000010 [15:09:49]line РНМ: 0000000000152968 [15:09:49]line Версия ККМ: v1.0 [15:09:49]line ФМ: 0000000000959456 [15:09:49]line ФД: 18774 [15:09:49]line ФПД: 160238109658899 [15:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T150948&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18774&fm=160238109658899&tin=02508201610067®Number=0000000000152968&sum=31000 [15:09:49]line 0 [15:09:49]OFD Sender: Processing packet 18774 [packets to send 7, broken 6] [15:09:49]ProducePacketName [15:09:49]name=ofd_packets/00018774 [15:09:49]OFD Sender: To server: pG, [15:09:49]CommunicateWithHost lk.salyk.kg:30040 [15:09:49]ConnectInit lk.salyk.kg [15:09:49]written 0, free lines is 4095 [15:09:50]Connected sock=9 [15:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 A1 01 00 00 49 25 99 01 B9 62 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 BC 84 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 56 49 00 00 35 04 06 00 91 BC 57 9B 0F 13 8E EC 4B 8C FF 32 12 4D [15:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 56 F8 47 00 55 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 35 39 34 35 36 10 04 04 00 56 49 00 00 F4 03 04 00 20 2E F1 66 B6 04 01 00 00 57 A9 3D 98 57 C9 C3 F5 [15:09:50]CommunicateWithHost err = 0 [15:09:50]CheckOFDResponse [15:09:50]1017 (14) - 77093643461234 [15:09:50]1041 (16) - 0000000000959456 [15:09:50]1040 (4) - 18774 [15:09:50]1012 (4) - 23.09.2024 09:00 [15:09:50]1206 (1) - 0 [15:09:50]OFD Sender: Remove packet 18774 [15:09:50]ProducePacketName [15:09:50]name=ofd_packets/00018774 [15:09:50]NVStorageDeleteData [15:09:50]Write to MH i2c: 01 00 00 F3 00 F3 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 07 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 A7 0C AD [15:09:50]RasterBufferAndPrint [15:09:50]line [15:09:50]line [15:09:50]line [15:09:50]line [15:09:50]line [15:09:50]written 0, free lines is 3245 [15:09:50]MH_Cut [15:09:50]Write to MH i2c: D1 01 00 FA 00 01 CC [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: D1 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: D1 01 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: D1 01 00 FA 00 00 CB [15:09:50]Write to MH i2c: 01 00 00 FB 00 FB [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]OFD Sender: No OFD packet to send [15:09:51]*** Cut start [15:09:51]*** Partial cut [15:09:51]*** CUTSNS_PIN = 1 [15:09:51]*** CUTSNS_PIN = 0 [15:09:51]*** Brake cut motor [15:09:51]Read from MH i2c: 01 [15:09:51]MH_I2C_Read... [15:09:51]*** Stop cut motor [15:09:51]*** Cut end [15:09:51]Read from MH i2c: 01 07 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [15:09:51]process_action close_receipt done [15:09:51]requested_data is exist [15:09:51]produce_requested_data [15:09:51]requested_item fm.sn is exist - process it [15:09:51]wFMCommunicate request_size=4 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 11 00 00 [15:09:51]Write to MH i2c: E2 08 00 FC 00 80 11 00 00 00 00 00 00 76 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 17 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 17 00 FC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CF [15:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:09:51]wFMCommunicate OK [15:09:51]requested_item fd.num is exist - process it [15:09:51]SAM_PROTO_GetFieldsCounters [15:09:51]wFMCommunicate request_size=4 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 13 00 00 [15:09:51]Write to MH i2c: E2 08 00 FD 00 80 13 00 00 00 00 00 00 79 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 62 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 62 00 FD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 56 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [15:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 56 49 00 00 0E 04 04 00 B5 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 [15:09:51]wFMCommunicate OK [15:09:51]SAM_PROTO_GetFieldsCounters done [15:09:51]requested_item shift.num is exist - process it [15:09:51]requested_item shift.opened is exist - process it [15:09:51]req_shift_opened [15:09:51]FM_GetShiftState [15:09:51]SAM_PROTO_GetShiftState [15:09:51]wFMCommunicate request_size=4 [15:09:51]MH_SAM_APDU [15:09:51]CAPDU: 80 13 01 00 [15:09:51]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:51]Read from MH i2c: E2 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 0E 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 13 [15:09:51]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:09:51]wFMCommunicate OK [15:09:51]SAM_PROTO_GetShiftState done [15:09:51]FM_GetShiftState done [15:09:51]req_shift_opened done [15:09:51]requested_item shift.open_date is exist - process it [15:09:51]req_shift_open_date [15:09:51]req_shift_open_date done [15:09:51]produce_requested_data done [15:09:51]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18774,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [15:09:51]process_action_free close_receipt [15:09:51]json_value_free [15:09:51]json_value_free done [15:09:51]process_json_proto returns [15:09:51]Send response to host [15:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18774,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [15:09:51]free response buf [15:09:51]execute_script done [15:09:51]execute_script returns [15:09:51]free content buf [15:09:51]Sock 10.Close socket [15:09:51]Sock 10.Thread stoped [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22: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]accept exits with 7 [15:24:51]New connection [15:24:51]New thread 3066608996 created [15:24:51]Thread 3066752356 joined [15:24:51]Waiting for new connection... [15:24:51] Sock 7.Parse request [15:24:51]Sock 7.Check first char [15:24:51]Sock 7.First char is OK [15:24:51]request: POST /json_proto HTTP/1.0 [15:24:51]Method: POST [15:24:51]URL: /json_proto [15:24:51]Method is POST - this is cgi request [15:24:51]url: /json_proto [15:24:51]query_string will be loaded in cgi processing [15:24:51]execute_cgi json_proto POST (null) [15:24:51]execute_cgi path=json_proto method=POST [15:24:51]POST find Content-Length [15:24:51]Host: 172.17.62.196:8080 [15:24:51]Content-Length: 695 [15:24:51]Content-Type: application/json [15:24:51] [15:24:51]POST finish read [15:24:51]Found Content-Length = 695 [15:24:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16698", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:51]execute_script... [15:24:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16698", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:51]POST & json_proto [15:24:51]process_json_proto [15:24:51]json parsed OK: [15:24:51]protocol is kg_v1.0 [15:24:51]action value=close_receipt [15:24:51]process_action close_receipt [15:24:51]cmd_close_receipt [15:24:51]MH_GetDate [15:24:51]Write to MH i2c: F0 00 00 FF 00 EE [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: F0 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: F0 09 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: F0 09 00 FF 00 00 44 88 F1 66 CE CC 0E 66 28 [15:24:51]GetLastDocTimeStamp 1727104188 [15:24:51]current date 1727105092 [15:24:51]FM_GetShiftState [15:24:51]SAM_PROTO_GetShiftState [15:24:51]wFMCommunicate request_size=4 [15:24:51]MH_SAM_APDU [15:24:51]CAPDU: 80 13 01 00 [15:24:51]Write to MH i2c: E2 08 00 00 01 80 13 01 00 00 00 00 00 7E [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:51]Read from MH i2c: E2 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 0E 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 0E 00 00 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 16 [15:24:51]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:24:51]wFMCommunicate OK [15:24:51]SAM_PROTO_GetShiftState done [15:24:51]FM_GetShiftState done [15:24:51]opened in 1727050372 [15:24:51]opened+sec_in_day 1727136772 [15:24:51]quantity*price = 9500 [15:24:51]sum+1 = 9501 [15:24:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 51 23.09.2024 15:24 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18775 ФПД: 92343531075983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T152452&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18775&fm=92343531075983&tin=02508201610067®Number=0000000000152968&sum=9500 0 [15:24:52]StoreToDocumentArchive [15:24:52]shift 181 fd 18775 [15:24:52]save to /storage/0181/doc_00018775 [15:24:52]save last doc name /storage/0181/doc_00018775 to /storage/kkm_last_doc_name [15:24:52]save OK [15:24:52]Clear old archive folders... [15:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=299 [15:24:52]tlvbuf is B6F27780 [15:24:52]SAM_PROTO_ClearQueue [15:24:52]wFMCommunicate request_size=4 [15:24:52]MH_SAM_APDU [15:24:52]CAPDU: 80 09 00 00 [15:24:52]Write to MH i2c: E2 08 00 0D 01 80 09 00 00 00 00 00 00 80 [15:24:52]Write i2c OK [15:24:52]MH_I2C_Read... [15:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:52]Read from MH i2c: E2 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [15:24:52]RAPDU: 90 00 [15:24:52]wFMCommunicate OK [15:24:52]SAM_PROTO_ClearQueue done [15:24:52]KKMCreateOFDPacket [15:24:52]OFDProtocolAddRootSTLVToBuf [15:24:52]FM_MakeSignedData [15:24:52]FM_MakeSignedData [15:24:52]SAM_PROTO_SignData [15:24:52]wFMCommunicate request_size=4 [15:24:52]MH_SAM_APDU [15:24:52]CAPDU: 80 0D 01 02 [15:24:52]Write to MH i2c: E2 08 00 0E 01 80 0D 01 02 00 00 00 00 88 [15:24:52]Write i2c OK [15:24:52]MH_I2C_Read... [15:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:52]Read from MH i2c: E2 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [15:24:52]RAPDU: 90 00 [15:24:52]wFMCommunicate OK [15:24:52]wFMCommunicate request_size=255 [15:24:52]MH_SAM_APDU [15:24:52]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 44 88 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [15:24:52]Write to MH i2c: E2 02 01 0F 01 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 44 88 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 C4 [15:24:52]Write i2c OK [15:24:52]MH_I2C_Read... [15:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:53]Read from MH i2c: E2 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 03 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [15:24:53]RAPDU: 90 00 [15:24:53]wFMCommunicate OK [15:24:53]wFMCommunicate request_size=58 [15:24:53]MH_SAM_APDU [15:24:53]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 57 49 00 00 35 04 06 00 53 FC 67 5D F9 8F [15:24:53]Write to MH i2c: E2 3D 00 10 01 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 57 49 00 00 35 04 06 00 53 FC 67 5D F9 8F 00 00 C1 [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:53]Read from MH i2c: E2 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 03 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [15:24:53]RAPDU: 90 00 [15:24:53]wFMCommunicate OK [15:24:53]wFMCommunicate request_size=4 [15:24:53]MH_SAM_APDU [15:24:53]CAPDU: 80 0D 03 02 [15:24:53]Write to MH i2c: E2 08 00 11 01 80 0D 03 02 00 00 00 00 8D [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:53]Read from MH i2c: E2 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 0B 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 0B 00 11 01 00 F8 4F 75 BD C0 F2 7E B4 90 00 EB [15:24:53]RAPDU: F8 4F 75 BD C0 F2 7E B4 90 00 [15:24:53]wFMCommunicate OK [15:24:53]SAM_PROTO_SignData done [15:24:53]FM_MakeSignedData done [15:24:53]CreateOFDProtocolMessage [15:24:53]wFMCommunicate request_size=4 [15:24:53]MH_SAM_APDU [15:24:53]CAPDU: 80 11 00 00 [15:24:53]Write to MH i2c: E2 08 00 12 01 80 11 00 00 00 00 00 00 8D [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:53]Read from MH i2c: E2 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 17 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: E2 17 00 12 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E6 [15:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:24:53]wFMCommunicate OK [15:24:53]CreateOFDProtocolMessage done [15:24:53]OFDSenderStorePacket 18775 [15:24:53]StoreOFDPacket docnum=18775 [15:24:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 0D 06 37 01 29 5C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 44 88 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 57 49 00 00 35 04 06 00 53 FC 67 5D F9 8F F8 4F 75 BD C0 F2 7E B4 [15:24:53]CheckFolder [15:24:53]dirname=/storage/ofd_packets [15:24:53]CheckFolder done [15:24:53]ProducePacketName [15:24:53]name=ofd_packets/00018775 [15:24:53]NVStorageSaveData ofd_packets/00018775 [15:24:53]File name is /storage/ofd_packets/00018775 [15:24:53]Write 349 bytes [15:24:53]NVStorageSaveData done [15:24:53]OFDSenderStorePacket done [15:24:53]KKMCreateOFDPacket done [15:24:53]NVStorageSaveData kkm_last_timestamp [15:24:53]File name is /storage/kkm_last_timestamp [15:24:53]Write 4 bytes [15:24:53]NVStorageSaveData done [15:24:53]ExternCall_PrintAddStr [15:24:53]wPrintStart [15:24:53]Write to MH i2c: 01 00 00 13 01 14 [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 07 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 07 00 13 01 00 00 00 00 00 FF 0F 29 [15:24:53]RasterBufferAndPrint [15:24:53]line Счет N : (3)16698 [15:24:53]line ИНН: 02508201610067 [15:24:53]line Контрольно-Кассовый Чек [15:24:53]line ПРОДАЖА [15:24:53]line Товар: 4700000480364 [15:24:53]line Напиток энерг Nitro экзотик 0.45 ж/б [15:24:53]line 1.000 * 95.00 [15:24:53]line = 95.00 [15:24:53]line НДС 12% НСП 1% [15:24:53]line > о реализуемом товаре [15:24:53]line ИТОГО: 95.00 [15:24:53]line НСП 1% : 0.84 [15:24:53]line НДС 12% : 10.09 [15:24:53]line Наличными: 95.00 [15:24:53]line Безнал.: 0.00 [15:24:53]line Место: АЗС № 176 "Партнер Нефть" [15:24:53]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:24:53]line СНО: Общий режим [15:24:53]line Чек 51 23.09.2024 15:24 [15:24:53]line Смена: 181 ФФД: 1.0 [15:24:53]line ЗНМ: 0300000010 [15:24:53]line РНМ: 0000000000152968 [15:24:53]line Версия ККМ: v1.0 [15:24:53]line ФМ: 0000000000959456 [15:24:53]line ФД: 18775 [15:24:53]line ФПД: 92343531075983 [15:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T152452&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18775&fm=92343531075983&tin=02508201610067®Number=0000000000152968&sum=9500 [15:24:53]line 0 [15:24:53]OFD Sender: Processing packet 18775 [packets to send 7, broken 6] [15:24:53]ProducePacketName [15:24:53]name=ofd_packets/00018775 [15:24:53]OFD Sender: To server: pG, [15:24:53]CommunicateWithHost lk.salyk.kg:30040 [15:24:53]ConnectInit lk.salyk.kg [15:24:53]written 0, free lines is 4095 [15:24:53]Connected sock=10 [15:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3F 01 00 00 0D 06 37 01 29 5C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 44 88 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 57 49 00 00 35 04 06 00 53 FC 67 5D F9 8F F8 4F 75 BD C0 F2 7E B4 [15:24:53]Write to MH i2c: 01 00 00 3C 01 3D [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 07 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 08 0D 59 [15:24:53]RasterBufferAndPrint [15:24:53]line [15:24:53]line [15:24:53]line [15:24:53]line [15:24:53]line [15:24:54]written 0, free lines is 3342 [15:24:54]MH_Cut [15:24:54]Write to MH i2c: D1 01 00 43 01 01 16 [15:24:54]Write i2c OK [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: D1 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: D1 01 00 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: D1 01 00 43 01 00 15 [15:24:54]Write to MH i2c: 01 00 00 44 01 45 [15:24:54]Write i2c OK [15:24:54]MH_I2C_Read... [15:24:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 D4 EF 47 00 07 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 57 49 00 00 F4 03 04 00 A8 31 F1 66 B6 04 01 00 00 40 78 00 33 1A 46 B0 D5 [15:24:54]CommunicateWithHost err = 0 [15:24:54]CheckOFDResponse [15:24:54]1017 (14) - 77093643461234 [15:24:54]1041 (16) - 0000000000959456 [15:24:54]1040 (4) - 18775 [15:24:54]1012 (4) - 23.09.2024 09:15 [15:24:54]1206 (1) - 0 [15:24:54]OFD Sender: Remove packet 18775 [15:24:54]ProducePacketName [15:24:54]name=ofd_packets/00018775 [15:24:54]NVStorageDeleteData [15:24:54]OFD Sender: No OFD packet to send [15:24:54]*** Cut start [15:24:54]*** Partial cut [15:24:54]*** CUTSNS_PIN = 1 [15:24:54]*** CUTSNS_PIN = 0 [15:24:54]*** Brake cut motor [15:24:55]Read from MH i2c: 01 [15:24:55]MH_I2C_Read... [15:24:55]*** Stop cut motor [15:24:55]*** Cut end [15:24:55]Read from MH i2c: 01 07 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [15:24:55]process_action close_receipt done [15:24:55]requested_data is exist [15:24:55]produce_requested_data [15:24:55]requested_item fm.sn is exist - process it [15:24:55]wFMCommunicate request_size=4 [15:24:55]MH_SAM_APDU [15:24:55]CAPDU: 80 11 00 00 [15:24:55]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:55]Read from MH i2c: E2 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 17 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 19 [15:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:24:55]wFMCommunicate OK [15:24:55]requested_item fd.num is exist - process it [15:24:55]SAM_PROTO_GetFieldsCounters [15:24:55]wFMCommunicate request_size=4 [15:24:55]MH_SAM_APDU [15:24:55]CAPDU: 80 13 00 00 [15:24:55]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:55]Read from MH i2c: E2 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 62 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 57 49 00 00 0E 04 04 00 B5 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 DE [15:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 57 49 00 00 0E 04 04 00 B5 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 [15:24:55]wFMCommunicate OK [15:24:55]SAM_PROTO_GetFieldsCounters done [15:24:55]requested_item shift.num is exist - process it [15:24:55]requested_item shift.opened is exist - process it [15:24:55]req_shift_opened [15:24:55]FM_GetShiftState [15:24:55]SAM_PROTO_GetShiftState [15:24:55]wFMCommunicate request_size=4 [15:24:55]MH_SAM_APDU [15:24:55]CAPDU: 80 13 01 00 [15:24:55]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:55]Read from MH i2c: E2 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 0E 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 5D [15:24:55]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:24:55]wFMCommunicate OK [15:24:55]SAM_PROTO_GetShiftState done [15:24:55]FM_GetShiftState done [15:24:55]req_shift_opened done [15:24:55]requested_item shift.open_date is exist - process it [15:24:55]req_shift_open_date [15:24:55]req_shift_open_date done [15:24:55]produce_requested_data done [15:24:55]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18775,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [15:24:55]process_action_free close_receipt [15:24:55]json_value_free [15:24:55]json_value_free done [15:24:55]process_json_proto returns [15:24:55]Send response to host [15:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18775,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [15:24:55]free response buf [15:24:55]execute_script done [15:24:55]execute_script returns [15:24:55]free content buf [15:24:55]Sock 7.Close socket [15:24:55]Sock 7.Thread stoped [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:30]accept exits with 9 [15:27:30]New connection [15:27:30]New thread 3066752356 created [15:27:30]Thread 3066608996 joined [15:27:30]Waiting for new connection... [15:27:30] Sock 9.Parse request [15:27:30]Sock 9.Check first char [15:27:30]Sock 9.First char is OK [15:27:30]request: POST /json_proto HTTP/1.0 [15:27:30]Method: POST [15:27:30]URL: /json_proto [15:27:30]Method is POST - this is cgi request [15:27:30]url: /json_proto [15:27:30]query_string will be loaded in cgi processing [15:27:30]execute_cgi json_proto POST (null) [15:27:30]execute_cgi path=json_proto method=POST [15:27:30]POST find Content-Length [15:27:30]Host: 172.17.62.196:8080 [15:27:30]Content-Length: 215 [15:27:30]Content-Type: application/json [15:27:30] [15:27:30]POST finish read [15:27:30]Found Content-Length = 215 [15:27:30]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" ] } } [15:27:30]execute_script... [15:27:30]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" ] } } [15:27:30]POST & json_proto [15:27:30]process_json_proto [15:27:30]json parsed OK: [15:27:30]protocol is kg_v1.0 [15:27:30]action value=get_value [15:27:30]process_action get_value [15:27:30]cmd_get_value [15:27:30]process_action get_value done [15:27:30]requested_data is exist [15:27:30]produce_requested_data [15:27:30]requested_item kkm.sn is exist - process it [15:27:30]requested_item kkm.ver is exist - process it [15:27:30]requested_item fm.sn is exist - process it [15:27:30]wFMCommunicate request_size=4 [15:27:30]MH_SAM_APDU [15:27:30]CAPDU: 80 11 00 00 [15:27:30]Write to MH i2c: E2 08 00 48 01 80 11 00 00 00 00 00 00 C3 [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:30]Read from MH i2c: E2 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: E2 17 00 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: E2 17 00 48 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 1C [15:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:27:30]wFMCommunicate OK [15:27:30]requested_item fd.num is exist - process it [15:27:30]SAM_PROTO_GetFieldsCounters [15:27:30]wFMCommunicate request_size=4 [15:27:30]MH_SAM_APDU [15:27:30]CAPDU: 80 13 00 00 [15:27:30]Write to MH i2c: E2 08 00 49 01 80 13 00 00 00 00 00 00 C6 [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:30]Read from MH i2c: E2 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: E2 62 00 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: E2 62 00 49 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 57 49 00 00 0E 04 04 00 B5 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 E1 [15:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 57 49 00 00 0E 04 04 00 B5 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 [15:27:30]wFMCommunicate OK [15:27:30]SAM_PROTO_GetFieldsCounters done [15:27:30]requested_item shift.num is exist - process it [15:27:30]requested_item shift.opened is exist - process it [15:27:30]req_shift_opened [15:27:30]FM_GetShiftState [15:27:30]SAM_PROTO_GetShiftState [15:27:30]wFMCommunicate request_size=4 [15:27:30]MH_SAM_APDU [15:27:30]CAPDU: 80 13 01 00 [15:27:30]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:30]Read from MH i2c: E2 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: E2 0E 00 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 60 [15:27:30]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:27:30]wFMCommunicate OK [15:27:30]SAM_PROTO_GetShiftState done [15:27:30]FM_GetShiftState done [15:27:30]req_shift_opened done [15:27:30]requested_item shift.open_date is exist - process it [15:27:30]req_shift_open_date [15:27:30]req_shift_open_date done [15:27:30]produce_requested_data done [15:27:30]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18775,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [15:27:30]process_action_free get_value [15:27:30]json_value_free [15:27:30]json_value_free done [15:27:30]process_json_proto returns [15:27:30]Send response to host [15:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18775,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [15:27:30]free response buf [15:27:30]execute_script done [15:27:30]execute_script returns [15:27:30]free content buf [15:27:30]Sock 9.Close socket [15:27:30]Sock 9.Thread stoped [15:27:30]accept exits with 7 [15:27:30]New connection [15:27:30]New thread 3066608996 created [15:27:30]Thread 3066752356 joined [15:27:30]Waiting for new connection... [15:27:30] Sock 7.Parse request [15:27:30]Sock 7.Check first char [15:27:30]Sock 7.First char is OK [15:27:30]request: POST /json_proto HTTP/1.0 [15:27:30]Method: POST [15:27:30]URL: /json_proto [15:27:30]Method is POST - this is cgi request [15:27:30]url: /json_proto [15:27:30]query_string will be loaded in cgi processing [15:27:30]execute_cgi json_proto POST (null) [15:27:30]execute_cgi path=json_proto method=POST [15:27:30]POST find Content-Length [15:27:30]Host: 172.17.62.196:8080 [15:27:30]Content-Length: 331 [15:27:30]Content-Type: application/json [15:27:30] [15:27:30]POST finish read [15:27:30]Found Content-Length = 331 [15:27:30]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" ] } } [15:27:30]execute_script... [15:27:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:27:30]POST & json_proto [15:27:30]process_json_proto [15:27:30]json parsed OK: [15:27:30]protocol is kg_v1.0 [15:27:30]action value=get_value [15:27:30]process_action get_value [15:27:30]cmd_get_value [15:27:30]process_action get_value done [15:27:30]requested_data is exist [15:27:30]produce_requested_data [15:27:30]requested_item fm.sale.total is exist - process it [15:27:30]SAM_PROTO_GetFMData [15:27:30]wFMCommunicate request_size=4 [15:27:30]MH_SAM_APDU [15:27:30]CAPDU: 80 13 03 00 [15:27:30]Write to MH i2c: E2 08 00 4B 01 80 13 03 00 00 00 00 00 CB [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:27:31]Read from MH i2c: E2 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 4B 01 00 BE 04 85 04 BA 04 6E 04 04 00 ED 47 00 00 69 04 A0 00 6F 04 04 00 DE 47 00 00 B1 04 04 00 AA 4B 7B 31 70 04 04 00 C8 48 1B 1F 72 04 04 00 E2 02 60 12 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 9C 53 41 05 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 91 15 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 6C [15:27:31]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 ED 47 00 00 69 04 A0 00 6F 04 04 00 DE 47 00 00 B1 04 04 00 AA 4B 7B 31 70 04 04 00 C8 48 1B 1F 72 04 04 00 E2 02 60 12 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 9C 53 41 05 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 91 15 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [15:27:31]wFMCommunicate OK [15:27:31]wFMCommunicate request_size=4 [15:27:31]MH_SAM_APDU [15:27:31]CAPDU: 80 17 00 00 [15:27:31]Write to MH i2c: E2 08 00 4C 01 80 17 00 00 00 00 00 00 CD [15:27:31]Write i2c OK [15:27:31]MH_I2C_Read... [15:27:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:31]Read from MH i2c: E2 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 4C 01 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [15:27:31]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:27:31]wFMCommunicate OK [15:27:31]wFMCommunicate request_size=4 [15:27:31]MH_SAM_APDU [15:27:31]CAPDU: 80 17 00 00 [15:27:31]Write to MH i2c: E2 08 00 4D 01 80 17 00 00 00 00 00 00 CE [15:27:31]Write i2c OK [15:27:31]MH_I2C_Read... [15:27:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:31]Read from MH i2c: E2 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 4D 01 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [15:27:31]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:27:31]wFMCommunicate OK [15:27:31]wFMCommunicate request_size=4 [15:27:31]MH_SAM_APDU [15:27:31]CAPDU: 80 17 00 00 [15:27:31]Write to MH i2c: E2 08 00 4E 01 80 17 00 00 00 00 00 00 CF [15:27:31]Write i2c OK [15:27:31]MH_I2C_Read... [15:27:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:31]Read from MH i2c: E2 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 [15:27:31]MH_I2C_Read... [15:27:31]Read from MH i2c: E2 FD 00 4E 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [15:27:31]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [15:27:31]wFMCommunicate OK [15:27:31]wFMCommunicate request_size=4 [15:27:31]MH_SAM_APDU [15:27:31]CAPDU: 80 17 00 00 [15:27:31]Write to MH i2c: E2 08 00 4F 01 80 17 00 00 00 00 00 00 D0 [15:27:31]Write i2c OK [15:27:31]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 DB 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 DB 00 4F 01 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B2 [15:27:32]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:27:32]wFMCommunicate OK [15:27:32]SAM_PROTO_GetFMData done [15:27:32]requested_item fm.sale_refund.total is exist - process it [15:27:32]requested_item fm.buy.total is exist - process it [15:27:32]requested_item shift.sale.total is exist - process it [15:27:32]SAM_PROTO_GetShiftData [15:27:32]wFMCommunicate request_size=4 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 13 02 00 [15:27:32]Write to MH i2c: E2 08 00 50 01 80 13 02 00 00 00 00 00 CF [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 FD 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 FD 00 50 01 00 AE 04 AA 04 AA 04 6E 04 04 00 33 00 00 00 69 04 9B 00 6F 04 04 00 33 00 00 00 B1 04 03 00 A8 40 12 70 04 03 00 50 4A 10 72 04 03 00 58 F6 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 40 F0 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 55 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 98 [15:27:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 33 00 00 00 69 04 9B 00 6F 04 04 00 33 00 00 00 B1 04 03 00 A8 40 12 70 04 03 00 50 4A 10 72 04 03 00 58 F6 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 40 F0 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 55 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:27:32]wFMCommunicate OK [15:27:32]wFMCommunicate request_size=4 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 17 00 00 [15:27:32]Write to MH i2c: E2 08 00 51 01 80 17 00 00 00 00 00 00 D2 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:32]Read from MH i2c: E2 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 FD 00 [15:27:32]MH_I2C_Read... [15:27:32]Read from MH i2c: E2 FD 00 51 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 F4 [15:27:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:27:32]wFMCommunicate OK [15:27:32]wFMCommunicate request_size=4 [15:27:32]MH_SAM_APDU [15:27:32]CAPDU: 80 17 00 00 [15:27:32]Write to MH i2c: E2 08 00 52 01 80 17 00 00 00 00 00 00 D3 [15:27:32]Write i2c OK [15:27:32]MH_I2C_Read... [15:27:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:33]Read from MH i2c: E2 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 FD 00 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 FD 00 52 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 8A [15:27:33]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:27:33]wFMCommunicate OK [15:27:33]wFMCommunicate request_size=4 [15:27:33]MH_SAM_APDU [15:27:33]CAPDU: 80 17 00 00 [15:27:33]Write to MH i2c: E2 08 00 53 01 80 17 00 00 00 00 00 00 D4 [15:27:33]Write i2c OK [15:27:33]MH_I2C_Read... [15:27:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:27:33]Read from MH i2c: E2 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 FD 00 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 FD 00 53 01 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 46 [15:27:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:27:33]wFMCommunicate OK [15:27:33]wFMCommunicate request_size=4 [15:27:33]MH_SAM_APDU [15:27:33]CAPDU: 80 17 00 00 [15:27:33]Write to MH i2c: E2 08 00 54 01 80 17 00 00 00 00 00 00 D5 [15:27:33]Write i2c OK [15:27:33]MH_I2C_Read... [15:27:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:27:33]Read from MH i2c: E2 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 CB 00 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 CB 00 54 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BE [15:27:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:27:33]wFMCommunicate OK [15:27:33]SAM_PROTO_GetShiftData done [15:27:33]requested_item shift.sale.total_cash is exist - process it [15:27:33]requested_item shift.sale_refund.total is exist - process it [15:27:33]requested_item shift.sale_refund.total_cash is exist - process it [15:27:33]requested_item shift.buy.total is exist - process it [15:27:33]requested_item shift.buy.total_cash is exist - process it [15:27:33]produce_requested_data done [15:27:33]produce_requested_data return {"fm.sale.total":8301638.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":11962.00,"shift.sale.total_cash":10676.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} [15:27:33]process_action_free get_value [15:27:33]json_value_free [15:27:33]json_value_free done [15:27:33]process_json_proto returns [15:27:33]Send response to host [15:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8301638.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":11962.00,"shift.sale.total_cash":10676.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}}} [15:27:33]free response buf [15:27:33]execute_script done [15:27:33]execute_script returns [15:27:33]free content buf [15:27:33]Sock 7.Close socket [15:27:33]Sock 7.Thread stoped [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]accept exits with 9 [15:31:19]New connection [15:31:19]New thread 3066752356 created [15:31:19]Thread 3066608996 joined [15:31:19]Waiting for new connection... [15:31:19] Sock 9.Parse request [15:31:19]Sock 9.Check first char [15:31:19]Sock 9.First char is OK [15:31:19]request: POST /json_proto HTTP/1.0 [15:31:19]Method: POST [15:31:19]URL: /json_proto [15:31:19]Method is POST - this is cgi request [15:31:19]url: /json_proto [15:31:19]query_string will be loaded in cgi processing [15:31:19]execute_cgi json_proto POST (null) [15:31:19]execute_cgi path=json_proto method=POST [15:31:19]POST find Content-Length [15:31:19]Host: 172.17.62.196:8080 [15:31:19]Content-Length: 814 [15:31:19]Content-Type: application/json [15:31:19] [15:31:19]POST finish read [15:31:19]Found Content-Length = 814 [15:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16699", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:19]execute_script... [15:31:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16699", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:19]POST & json_proto [15:31:19]process_json_proto [15:31:19]json parsed OK: [15:31:19]protocol is kg_v1.0 [15:31:19]action value=close_receipt [15:31:19]process_action close_receipt [15:31:19]cmd_close_receipt [15:31:19]MH_GetDate [15:31:19]Write to MH i2c: F0 00 00 55 01 45 [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: F0 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: F0 09 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: F0 09 00 55 01 00 C8 89 F1 66 CE CC 0E 66 04 [15:31:19]GetLastDocTimeStamp 1727105092 [15:31:19]current date 1727105480 [15:31:19]FM_GetShiftState [15:31:19]SAM_PROTO_GetShiftState [15:31:19]wFMCommunicate request_size=4 [15:31:19]MH_SAM_APDU [15:31:19]CAPDU: 80 13 01 00 [15:31:19]Write to MH i2c: E2 08 00 56 01 80 13 01 00 00 00 00 00 D4 [15:31:19]Write i2c OK [15:31:19]MH_I2C_Read... [15:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:19]Read from MH i2c: E2 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 [15:31:19]MH_I2C_Read... [15:31:19]Read from MH i2c: E2 0E 00 56 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 6C [15:31:19]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:31:19]wFMCommunicate OK [15:31:19]SAM_PROTO_GetShiftState done [15:31:19]FM_GetShiftState done [15:31:19]opened in 1727050372 [15:31:19]opened+sec_in_day 1727136772 [15:31:19]quantity*price = 7700 [15:31:19]sum+1 = 7701 [15:31:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 52 23.09.2024 15:31 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18776 ФПД: 260758293525176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153120&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18776&fm=260758293525176&tin=02508201610067®Number=0000000000152968&sum=7700 0 [15:31:20]StoreToDocumentArchive [15:31:20]shift 181 fd 18776 [15:31:20]save to /storage/0181/doc_00018776 [15:31:20]save last doc name /storage/0181/doc_00018776 to /storage/kkm_last_doc_name [15:31:20]save OK [15:31:20]Clear old archive folders... [15:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:31:20]tlvbuf is 00BF8AC0 [15:31:20]SAM_PROTO_ClearQueue [15:31:20]wFMCommunicate request_size=4 [15:31:20]MH_SAM_APDU [15:31:20]CAPDU: 80 09 00 00 [15:31:20]Write to MH i2c: E2 08 00 63 01 80 09 00 00 00 00 00 00 D6 [15:31:20]Write i2c OK [15:31:20]MH_I2C_Read... [15:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:20]Read from MH i2c: E2 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [15:31:20]RAPDU: 90 00 [15:31:20]wFMCommunicate OK [15:31:20]SAM_PROTO_ClearQueue done [15:31:20]KKMCreateOFDPacket [15:31:20]OFDProtocolAddRootSTLVToBuf [15:31:20]FM_MakeSignedData [15:31:20]FM_MakeSignedData [15:31:20]SAM_PROTO_SignData [15:31:20]wFMCommunicate request_size=4 [15:31:20]MH_SAM_APDU [15:31:20]CAPDU: 80 0D 01 02 [15:31:20]Write to MH i2c: E2 08 00 64 01 80 0D 01 02 00 00 00 00 DE [15:31:20]Write i2c OK [15:31:20]MH_I2C_Read... [15:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:20]Read from MH i2c: E2 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 [15:31:20]MH_I2C_Read... [15:31:20]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [15:31:20]RAPDU: 90 00 [15:31:20]wFMCommunicate OK [15:31:20]wFMCommunicate request_size=255 [15:31:20]MH_SAM_APDU [15:31:20]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C8 89 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:31:20]Write to MH i2c: E2 02 01 65 01 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C8 89 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 04 [15:31:20]Write i2c OK [15:31:20]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [15:31:21]RAPDU: 90 00 [15:31:21]wFMCommunicate OK [15:31:21]wFMCommunicate request_size=52 [15:31:21]MH_SAM_APDU [15:31:21]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 58 49 00 00 35 04 06 00 ED 28 85 75 32 B8 [15:31:21]Write to MH i2c: E2 37 00 66 01 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 58 49 00 00 35 04 06 00 ED 28 85 75 32 B8 00 00 4A [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 03 00 66 01 00 90 00 DB [15:31:21]RAPDU: 90 00 [15:31:21]wFMCommunicate OK [15:31:21]wFMCommunicate request_size=4 [15:31:21]MH_SAM_APDU [15:31:21]CAPDU: 80 0D 03 02 [15:31:21]Write to MH i2c: E2 08 00 67 01 80 0D 03 02 00 00 00 00 E3 [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 0B 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 0B 00 67 01 00 29 83 34 3B 10 AD CA 6D 90 00 F3 [15:31:21]RAPDU: 29 83 34 3B 10 AD CA 6D 90 00 [15:31:21]wFMCommunicate OK [15:31:21]SAM_PROTO_SignData done [15:31:21]FM_MakeSignedData done [15:31:21]CreateOFDProtocolMessage [15:31:21]wFMCommunicate request_size=4 [15:31:21]MH_SAM_APDU [15:31:21]CAPDU: 80 11 00 00 [15:31:21]Write to MH i2c: E2 08 00 68 01 80 11 00 00 00 00 00 00 E3 [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:21]Read from MH i2c: E2 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 17 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: E2 17 00 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3C [15:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:31:21]wFMCommunicate OK [15:31:21]CreateOFDProtocolMessage done [15:31:21]OFDSenderStorePacket 18776 [15:31:21]StoreOFDPacket docnum=18776 [15:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 B1 A7 31 01 53 75 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C8 89 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 58 49 00 00 35 04 06 00 ED 28 85 75 32 B8 29 83 34 3B 10 AD CA 6D [15:31:21]CheckFolder [15:31:21]dirname=/storage/ofd_packets [15:31:21]CheckFolder done [15:31:21]ProducePacketName [15:31:21]name=ofd_packets/00018776 [15:31:21]NVStorageSaveData ofd_packets/00018776 [15:31:21]File name is /storage/ofd_packets/00018776 [15:31:21]Write 343 bytes [15:31:21]NVStorageSaveData done [15:31:21]OFDSenderStorePacket done [15:31:21]KKMCreateOFDPacket done [15:31:21]NVStorageSaveData kkm_last_timestamp [15:31:21]File name is /storage/kkm_last_timestamp [15:31:21]Write 4 bytes [15:31:21]NVStorageSaveData done [15:31:21]ExternCall_PrintAddStr [15:31:21]wPrintStart [15:31:21]Write to MH i2c: 01 00 00 69 01 6A [15:31:21]Write i2c OK [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: 01 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: 01 07 00 [15:31:21]MH_I2C_Read... [15:31:21]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 FF 0F 7F [15:31:21]RasterBufferAndPrint [15:31:21]line Счет N : (3)16699 [15:31:21]line ИНН: 02508201610067 [15:31:21]line Контрольно-Кассовый Чек [15:31:21]line ПРОДАЖА [15:31:21]line Товар: 4700000480050 [15:31:21]line Напиток Nitro Energy эн green ж/б 0,45л [15:31:21]line 1.000 * 77.00 [15:31:21]line = 77.00 [15:31:21]line НДС 12% НСП 1% [15:31:21]line > о реализуемом товаре [15:31:21]line ИТОГО: 77.00 [15:31:21]line НСП 1% : 0.68 [15:31:21]line НДС 12% : 8.18 [15:31:21]line Наличными: 0.00 [15:31:21]line Безнал.: 77.00 [15:31:21]line Место: АЗС № 176 "Партнер Нефть" [15:31:21]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:31:21]line СНО: Общий режим [15:31:21]line Чек 52 23.09.2024 15:31 [15:31:21]line Смена: 181 ФФД: 1.0 [15:31:21]line ЗНМ: 0300000010 [15:31:21]line РНМ: 0000000000152968 [15:31:21]line Версия ККМ: v1.0 [15:31:21]line Платежная система: O! деньги [15:31:21]line ФМ: 0000000000959456 [15:31:21]line ФД: 18776 [15:31:21]line ФПД: 260758293525176 [15:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T153120&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18776&fm=260758293525176&tin=02508201610067®Number=0000000000152968&sum=7700 [15:31:21]line 0 [15:31:21]OFD Sender: Processing packet 18776 [packets to send 7, broken 6] [15:31:21]ProducePacketName [15:31:21]name=ofd_packets/00018776 [15:31:21]OFD Sender: To server: pG, [15:31:21]CommunicateWithHost lk.salyk.kg:30040 [15:31:21]ConnectInit lk.salyk.kg [15:31:21]written 0, free lines is 4095 [15:31:21]Connected sock=10 [15:31:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 B1 A7 31 01 53 75 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 C8 89 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 58 49 00 00 35 04 06 00 ED 28 85 75 32 B8 29 83 34 3B 10 AD CA 6D [15:31:22]Write to MH i2c: 01 00 00 94 01 95 [15:31:22]Write i2c OK [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: 01 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: 01 07 00 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: 01 07 00 94 01 00 00 00 00 00 E7 0C 8F [15:31:22]RasterBufferAndPrint [15:31:22]line [15:31:22]line [15:31:22]line [15:31:22]line [15:31:22]line [15:31:22]written 0, free lines is 3309 [15:31:22]MH_Cut [15:31:22]Write to MH i2c: D1 01 00 9B 01 01 6E [15:31:22]Write i2c OK [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: D1 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: D1 01 00 [15:31:22]MH_I2C_Read... [15:31:22]Read from MH i2c: D1 01 00 9B 01 00 6D [15:31:22]Write to MH i2c: 01 00 00 9C 01 9D [15:31:22]Write i2c OK [15:31:22]MH_I2C_Read... [15:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 09 43 47 00 29 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 58 49 00 00 F4 03 04 00 2C 33 F1 66 B6 04 01 00 00 75 E4 20 02 FD 1A B6 64 [15:31:22]CommunicateWithHost err = 0 [15:31:22]CheckOFDResponse [15:31:22]1017 (14) - 77093643461234 [15:31:22]1041 (16) - 0000000000959456 [15:31:22]1040 (4) - 18776 [15:31:22]1012 (4) - 23.09.2024 09:21 [15:31:22]1206 (1) - 0 [15:31:22]OFD Sender: Remove packet 18776 [15:31:22]ProducePacketName [15:31:22]name=ofd_packets/00018776 [15:31:22]NVStorageDeleteData [15:31:22]OFD Sender: No OFD packet to send [15:31:22]*** Cut start [15:31:22]*** Partial cut [15:31:22]*** CUTSNS_PIN = 1 [15:31:22]*** CUTSNS_PIN = 0 [15:31:22]*** Brake cut motor [15:31:23]Read from MH i2c: 01 [15:31:23]MH_I2C_Read... [15:31:23]*** Stop cut motor [15:31:23]*** Cut end [15:31:23]Read from MH i2c: 01 07 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: 01 07 00 9C 01 00 00 00 00 00 FF 0F B2 [15:31:23]process_action close_receipt done [15:31:23]requested_data is exist [15:31:23]produce_requested_data [15:31:23]requested_item fm.sn is exist - process it [15:31:23]wFMCommunicate request_size=4 [15:31:23]MH_SAM_APDU [15:31:23]CAPDU: 80 11 00 00 [15:31:23]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:23]Read from MH i2c: E2 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 17 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 71 [15:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:31:23]wFMCommunicate OK [15:31:23]requested_item fd.num is exist - process it [15:31:23]SAM_PROTO_GetFieldsCounters [15:31:23]wFMCommunicate request_size=4 [15:31:23]MH_SAM_APDU [15:31:23]CAPDU: 80 13 00 00 [15:31:23]Write to MH i2c: E2 08 00 9E 01 80 13 00 00 00 00 00 00 1B [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:23]Read from MH i2c: E2 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 62 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 62 00 9E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 58 49 00 00 0E 04 04 00 B5 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 3A [15:31:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 58 49 00 00 0E 04 04 00 B5 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 [15:31:23]wFMCommunicate OK [15:31:23]SAM_PROTO_GetFieldsCounters done [15:31:23]requested_item shift.num is exist - process it [15:31:23]requested_item shift.opened is exist - process it [15:31:23]req_shift_opened [15:31:23]FM_GetShiftState [15:31:23]SAM_PROTO_GetShiftState [15:31:23]wFMCommunicate request_size=4 [15:31:23]MH_SAM_APDU [15:31:23]CAPDU: 80 13 01 00 [15:31:23]Write to MH i2c: E2 08 00 9F 01 80 13 01 00 00 00 00 00 1D [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:23]Read from MH i2c: E2 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 0E 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 0E 00 9F 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B5 [15:31:23]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:31:23]wFMCommunicate OK [15:31:23]SAM_PROTO_GetShiftState done [15:31:23]FM_GetShiftState done [15:31:23]req_shift_opened done [15:31:23]requested_item shift.open_date is exist - process it [15:31:23]req_shift_open_date [15:31:23]req_shift_open_date done [15:31:23]produce_requested_data done [15:31:23]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18776,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [15:31:23]process_action_free close_receipt [15:31:23]json_value_free [15:31:23]json_value_free done [15:31:23]process_json_proto returns [15:31:23]Send response to host [15:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18776,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [15:31:23]free response buf [15:31:23]execute_script done [15:31:23]execute_script returns [15:31:23]free content buf [15:31:23]Sock 9.Close socket [15:31:23]Sock 9.Thread stoped [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:06]accept exits with 7 [15:59:06]New connection [15:59:06]New thread 3066608996 created [15:59:06]Thread 3066752356 joined [15:59:06]Waiting for new connection... [15:59:06] Sock 7.Parse request [15:59:06]Sock 7.Check first char [15:59:06]Sock 7.First char is OK [15:59:06]request: POST /json_proto HTTP/1.0 [15:59:06]Method: POST [15:59:06]URL: /json_proto [15:59:06]Method is POST - this is cgi request [15:59:06]url: /json_proto [15:59:06]query_string will be loaded in cgi processing [15:59:06]execute_cgi json_proto POST (null) [15:59:06]execute_cgi path=json_proto method=POST [15:59:06]POST find Content-Length [15:59:06]Host: 172.17.62.196:8080 [15:59:06]Content-Length: 612 [15:59:06]Content-Type: application/json [15:59:06] [15:59:06]POST finish read [15:59:06]Found Content-Length = 612 [15:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16700", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:06]execute_script... [15:59:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16700", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:06]POST & json_proto [15:59:06]process_json_proto [15:59:06]json parsed OK: [15:59:06]protocol is kg_v1.0 [15:59:06]action value=close_receipt [15:59:06]process_action close_receipt [15:59:06]cmd_close_receipt [15:59:06]MH_GetDate [15:59:06]Write to MH i2c: F0 00 00 A0 01 90 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: F0 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: F0 09 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: F0 09 00 A0 01 00 4B 90 F1 66 CE CC 0E 66 D9 [15:59:06]GetLastDocTimeStamp 1727105480 [15:59:06]current date 1727107147 [15:59:06]FM_GetShiftState [15:59:06]SAM_PROTO_GetShiftState [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 13 01 00 [15:59:06]Write to MH i2c: E2 08 00 A1 01 80 13 01 00 00 00 00 00 1F [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0E 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0E 00 A1 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B7 [15:59:06]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_GetShiftState done [15:59:06]FM_GetShiftState done [15:59:06]opened in 1727050372 [15:59:06]opened+sec_in_day 1727136772 [15:59:06]quantity*price = 8000 [15:59:06]sum+1 = 8001 [15:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 53 23.09.2024 15:59 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18777 ФПД: 119498521545825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T155907&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18777&fm=119498521545825&tin=02508201610067®Number=0000000000152968&sum=8000 0 [15:59:07]StoreToDocumentArchive [15:59:07]shift 181 fd 18777 [15:59:07]save to /storage/0181/doc_00018777 [15:59:07]save last doc name /storage/0181/doc_00018777 to /storage/kkm_last_doc_name [15:59:07]save OK [15:59:07]Clear old archive folders... [15:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:59:07]tlvbuf is 00C11170 [15:59:07]SAM_PROTO_ClearQueue [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 09 00 00 [15:59:07]Write to MH i2c: E2 08 00 AE 01 80 09 00 00 00 00 00 00 21 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]SAM_PROTO_ClearQueue done [15:59:07]KKMCreateOFDPacket [15:59:07]OFDProtocolAddRootSTLVToBuf [15:59:07]FM_MakeSignedData [15:59:07]FM_MakeSignedData [15:59:07]SAM_PROTO_SignData [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 01 02 [15:59:07]Write to MH i2c: E2 08 00 AF 01 80 0D 01 02 00 00 00 00 29 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]wFMCommunicate request_size=255 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4B 90 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 [15:59:07]Write to MH i2c: E2 02 01 B0 01 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4B 90 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 00 00 5D [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [15:59:08]RAPDU: 90 00 [15:59:08]wFMCommunicate OK [15:59:08]wFMCommunicate request_size=27 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 0D 02 02 16 39 34 35 36 10 04 04 00 59 49 00 00 35 04 06 00 6C AE EA ED 8C 61 [15:59:08]Write to MH i2c: E2 1E 00 B1 01 80 0D 02 02 16 00 39 34 35 36 10 04 04 00 59 49 00 00 35 04 06 00 6C AE EA ED 8C 61 00 00 07 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 B1 01 00 90 00 26 [15:59:08]RAPDU: 90 00 [15:59:08]wFMCommunicate OK [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 0D 03 02 [15:59:08]Write to MH i2c: E2 08 00 B2 01 80 0D 03 02 00 00 00 00 2E [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 0B 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 0B 00 B2 01 00 8C DE C5 AF CD 06 E1 9A 90 00 5B [15:59:08]RAPDU: 8C DE C5 AF CD 06 E1 9A 90 00 [15:59:08]wFMCommunicate OK [15:59:08]SAM_PROTO_SignData done [15:59:08]FM_MakeSignedData done [15:59:08]CreateOFDProtocolMessage [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 11 00 00 [15:59:08]Write to MH i2c: E2 08 00 B3 01 80 11 00 00 00 00 00 00 2E [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 17 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 17 00 B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 87 [15:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:59:08]wFMCommunicate OK [15:59:08]CreateOFDProtocolMessage done [15:59:08]OFDSenderStorePacket 18777 [15:59:08]StoreOFDPacket docnum=18777 [15:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 20 01 00 00 41 28 18 01 B1 F7 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4B 90 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 59 49 00 00 35 04 06 00 6C AE EA ED 8C 61 8C DE C5 AF CD 06 E1 9A [15:59:08]CheckFolder [15:59:08]dirname=/storage/ofd_packets [15:59:08]CheckFolder done [15:59:08]ProducePacketName [15:59:08]name=ofd_packets/00018777 [15:59:08]NVStorageSaveData ofd_packets/00018777 [15:59:08]File name is /storage/ofd_packets/00018777 [15:59:08]Write 318 bytes [15:59:08]NVStorageSaveData done [15:59:08]OFDSenderStorePacket done [15:59:08]KKMCreateOFDPacket done [15:59:08]NVStorageSaveData kkm_last_timestamp [15:59:08]File name is /storage/kkm_last_timestamp [15:59:08]Write 4 bytes [15:59:08]NVStorageSaveData done [15:59:08]ExternCall_PrintAddStr [15:59:08]wPrintStart [15:59:08]Write to MH i2c: 01 00 00 B4 01 B5 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 07 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 07 00 B4 01 00 00 00 00 00 FF 0F CA [15:59:08]RasterBufferAndPrint [15:59:08]line Счет N : (3)16700 [15:59:08]line ИНН: 02508201610067 [15:59:08]line Контрольно-Кассовый Чек [15:59:08]line ПРОДАЖА [15:59:08]line Товар: 4870001570057 [15:59:08]line Напиток Pepsi 0,5л [15:59:08]line 1.000 * 80.00 [15:59:08]line = 80.00 [15:59:08]line НДС 12% НСП 1% [15:59:08]line > о реализуемом товаре [15:59:08]line ИТОГО: 80.00 [15:59:08]line НСП 1% : 0.71 [15:59:08]line НДС 12% : 8.50 [15:59:08]line Наличными: 80.00 [15:59:08]line Безнал.: 0.00 [15:59:08]line Место: АЗС № 176 "Партнер Нефть" [15:59:08]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [15:59:08]line СНО: Общий режим [15:59:08]line Чек 53 23.09.2024 15:59 [15:59:08]line Смена: 181 ФФД: 1.0 [15:59:08]line ЗНМ: 0300000010 [15:59:08]line РНМ: 0000000000152968 [15:59:08]line Версия ККМ: v1.0 [15:59:08]line ФМ: 0000000000959456 [15:59:08]line ФД: 18777 [15:59:08]line ФПД: 119498521545825 [15:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T155907&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18777&fm=119498521545825&tin=02508201610067®Number=0000000000152968&sum=8000 [15:59:08]line 0 [15:59:08]OFD Sender: Processing packet 18777 [packets to send 7, broken 6] [15:59:08]ProducePacketName [15:59:08]name=ofd_packets/00018777 [15:59:08]OFD Sender: To server: pG, [15:59:08]CommunicateWithHost lk.salyk.kg:30040 [15:59:08]ConnectInit lk.salyk.kg [15:59:08]written 0, free lines is 4095 [15:59:08]Connected sock=10 [15:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 20 01 00 00 41 28 18 01 B1 F7 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 4B 90 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 59 49 00 00 35 04 06 00 6C AE EA ED 8C 61 8C DE C5 AF CD 06 E1 9A [15:59:09]Write to MH i2c: 01 00 00 DC 01 DD [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 10 0D 01 [15:59:09]RasterBufferAndPrint [15:59:09]line [15:59:09]line [15:59:09]line [15:59:09]line [15:59:09]line [15:59:09]written 0, free lines is 3350 [15:59:09]MH_Cut [15:59:09]Write to MH i2c: D1 01 00 E3 01 01 B6 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: D1 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: D1 01 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: D1 01 00 E3 01 00 B5 [15:59:09]Write to MH i2c: 01 00 00 E4 01 E5 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 1E DF 47 00 C9 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 35 39 34 35 36 10 04 04 00 59 49 00 00 F4 03 04 00 AF 39 F1 66 B6 04 01 00 00 45 BB F1 05 95 5C 53 2F [15:59:09]CommunicateWithHost err = 0 [15:59:09]CheckOFDResponse [15:59:09]1017 (14) - 77093643461234 [15:59:09]1041 (16) - 0000000000959456 [15:59:09]1040 (4) - 18777 [15:59:09]1012 (4) - 23.09.2024 09:49 [15:59:09]1206 (1) - 0 [15:59:09]OFD Sender: Remove packet 18777 [15:59:09]ProducePacketName [15:59:09]name=ofd_packets/00018777 [15:59:09]NVStorageDeleteData [15:59:09]OFD Sender: No OFD packet to send [15:59:09]*** Cut start [15:59:09]*** Partial cut [15:59:09]*** CUTSNS_PIN = 1 [15:59:09]*** CUTSNS_PIN = 0 [15:59:09]*** Brake cut motor [15:59:10]Read from MH i2c: 01 [15:59:10]MH_I2C_Read... [15:59:10]*** Stop cut motor [15:59:10]*** Cut end [15:59:10]Read from MH i2c: 01 07 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [15:59:10]process_action close_receipt done [15:59:10]requested_data is exist [15:59:10]produce_requested_data [15:59:10]requested_item fm.sn is exist - process it [15:59:10]wFMCommunicate request_size=4 [15:59:10]MH_SAM_APDU [15:59:10]CAPDU: 80 11 00 00 [15:59:10]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [15:59:10]Write i2c OK [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 [15:59:10]MH_I2C_Read... [15:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:10]Read from MH i2c: E2 17 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B9 [15:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [15:59:10]wFMCommunicate OK [15:59:10]requested_item fd.num is exist - process it [15:59:10]SAM_PROTO_GetFieldsCounters [15:59:10]wFMCommunicate request_size=4 [15:59:10]MH_SAM_APDU [15:59:10]CAPDU: 80 13 00 00 [15:59:10]Write to MH i2c: E2 08 00 E6 01 80 13 00 00 00 00 00 00 63 [15:59:10]Write i2c OK [15:59:10]MH_I2C_Read... [15:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:10]Read from MH i2c: E2 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 62 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 62 00 E6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 59 49 00 00 0E 04 04 00 B5 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 86 [15:59:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 59 49 00 00 0E 04 04 00 B5 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 [15:59:10]wFMCommunicate OK [15:59:10]SAM_PROTO_GetFieldsCounters done [15:59:10]requested_item shift.num is exist - process it [15:59:10]requested_item shift.opened is exist - process it [15:59:10]req_shift_opened [15:59:10]FM_GetShiftState [15:59:10]SAM_PROTO_GetShiftState [15:59:10]wFMCommunicate request_size=4 [15:59:10]MH_SAM_APDU [15:59:10]CAPDU: 80 13 01 00 [15:59:10]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [15:59:10]Write i2c OK [15:59:10]MH_I2C_Read... [15:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:10]Read from MH i2c: E2 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 0E 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FD [15:59:10]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [15:59:10]wFMCommunicate OK [15:59:10]SAM_PROTO_GetShiftState done [15:59:10]FM_GetShiftState done [15:59:10]req_shift_opened done [15:59:10]requested_item shift.open_date is exist - process it [15:59:10]req_shift_open_date [15:59:10]req_shift_open_date done [15:59:10]produce_requested_data done [15:59:10]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18777,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [15:59:10]process_action_free close_receipt [15:59:10]json_value_free [15:59:10]json_value_free done [15:59:10]process_json_proto returns [15:59:10]Send response to host [15:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18777,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [15:59:10]free response buf [15:59:10]execute_script done [15:59:10]execute_script returns [15:59:10]free content buf [15:59:10]Sock 7.Close socket [15:59:10]Sock 7.Thread stoped [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:06]accept exits with 9 [16:29:06]New connection [16:29:06]New thread 3066752356 created [16:29:06]Thread 3066608996 joined [16:29:06]Waiting for new connection... [16:29:06] Sock 9.Parse request [16:29:06]Sock 9.Check first char [16:29:06]Sock 9.First char is OK [16:29:06]request: POST /json_proto HTTP/1.0 [16:29:06]Method: POST [16:29:06]URL: /json_proto [16:29:06]Method is POST - this is cgi request [16:29:06]url: /json_proto [16:29:06]query_string will be loaded in cgi processing [16:29:06]execute_cgi json_proto POST (null) [16:29:06]execute_cgi path=json_proto method=POST [16:29:06]POST find Content-Length [16:29:06]Host: 172.17.62.196:8080 [16:29:06]Content-Length: 657 [16:29:06]Content-Type: application/json [16:29:06] [16:29:06]POST finish read [16:29:06]Found Content-Length = 657 [16:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16701", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:06]execute_script... [16:29:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16701", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:06]POST & json_proto [16:29:06]process_json_proto [16:29:06]json parsed OK: [16:29:06]protocol is kg_v1.0 [16:29:06]action value=close_receipt [16:29:06]process_action close_receipt [16:29:06]cmd_close_receipt [16:29:06]MH_GetDate [16:29:06]Write to MH i2c: F0 00 00 E8 01 D8 [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: F0 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: F0 09 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: F0 09 00 E8 01 00 53 97 F1 66 CE CC 0E 66 30 [16:29:06]GetLastDocTimeStamp 1727107147 [16:29:06]current date 1727108947 [16:29:06]FM_GetShiftState [16:29:06]SAM_PROTO_GetShiftState [16:29:06]wFMCommunicate request_size=4 [16:29:06]MH_SAM_APDU [16:29:06]CAPDU: 80 13 01 00 [16:29:06]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [16:29:06]Write i2c OK [16:29:06]MH_I2C_Read... [16:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:06]Read from MH i2c: E2 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 0E 00 [16:29:06]MH_I2C_Read... [16:29:06]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FF [16:29:06]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:29:06]wFMCommunicate OK [16:29:06]SAM_PROTO_GetShiftState done [16:29:06]FM_GetShiftState done [16:29:06]opened in 1727050372 [16:29:06]opened+sec_in_day 1727136772 [16:29:06]quantity*price = 8500 [16:29:06]sum+1 = 8501 [16:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 54 23.09.2024 16:29 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18778 ФПД: 209575099179355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T162907&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18778&fm=209575099179355&tin=02508201610067®Number=0000000000152968&sum=8500 0 [16:29:07]StoreToDocumentArchive [16:29:07]shift 181 fd 18778 [16:29:07]save to /storage/0181/doc_00018778 [16:29:07]save last doc name /storage/0181/doc_00018778 to /storage/kkm_last_doc_name [16:29:07]save OK [16:29:07]Clear old archive folders... [16:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:29:07]tlvbuf is 00C0AF40 [16:29:07]SAM_PROTO_ClearQueue [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 09 00 00 [16:29:07]Write to MH i2c: E2 08 00 F6 01 80 09 00 00 00 00 00 00 69 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [16:29:07]RAPDU: 90 00 [16:29:07]wFMCommunicate OK [16:29:07]SAM_PROTO_ClearQueue done [16:29:07]KKMCreateOFDPacket [16:29:07]OFDProtocolAddRootSTLVToBuf [16:29:07]FM_MakeSignedData [16:29:07]FM_MakeSignedData [16:29:07]SAM_PROTO_SignData [16:29:07]wFMCommunicate request_size=4 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 0D 01 02 [16:29:07]Write to MH i2c: E2 08 00 F7 01 80 0D 01 02 00 00 00 00 71 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:07]Read from MH i2c: E2 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 [16:29:07]MH_I2C_Read... [16:29:07]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [16:29:07]RAPDU: 90 00 [16:29:07]wFMCommunicate OK [16:29:07]wFMCommunicate request_size=255 [16:29:07]MH_SAM_APDU [16:29:07]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 53 97 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 [16:29:07]Write to MH i2c: E2 02 01 F8 01 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 53 97 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 03 [16:29:07]Write i2c OK [16:29:07]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [16:29:08]RAPDU: 90 00 [16:29:08]wFMCommunicate OK [16:29:08]wFMCommunicate request_size=40 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5A 49 00 00 35 04 06 00 BE 9B 81 57 21 5B [16:29:08]Write to MH i2c: E2 2B 00 F9 01 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5A 49 00 00 35 04 06 00 BE 9B 81 57 21 5B 00 00 87 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [16:29:08]RAPDU: 90 00 [16:29:08]wFMCommunicate OK [16:29:08]wFMCommunicate request_size=4 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 0D 03 02 [16:29:08]Write to MH i2c: E2 08 00 FA 01 80 0D 03 02 00 00 00 00 76 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 0B 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 0B 00 FA 01 00 0B BA F7 42 38 88 59 16 90 00 A4 [16:29:08]RAPDU: 0B BA F7 42 38 88 59 16 90 00 [16:29:08]wFMCommunicate OK [16:29:08]SAM_PROTO_SignData done [16:29:08]FM_MakeSignedData done [16:29:08]CreateOFDProtocolMessage [16:29:08]wFMCommunicate request_size=4 [16:29:08]MH_SAM_APDU [16:29:08]CAPDU: 80 11 00 00 [16:29:08]Write to MH i2c: E2 08 00 FB 01 80 11 00 00 00 00 00 00 76 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:08]Read from MH i2c: E2 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 17 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: E2 17 00 FB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CF [16:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:29:08]wFMCommunicate OK [16:29:08]CreateOFDProtocolMessage done [16:29:08]OFDSenderStorePacket 18778 [16:29:08]StoreOFDPacket docnum=18778 [16:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 B3 D4 25 01 32 E8 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 53 97 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5A 49 00 00 35 04 06 00 BE 9B 81 57 21 5B 0B BA F7 42 38 88 59 16 [16:29:08]CheckFolder [16:29:08]dirname=/storage/ofd_packets [16:29:08]CheckFolder done [16:29:08]ProducePacketName [16:29:08]name=ofd_packets/00018778 [16:29:08]NVStorageSaveData ofd_packets/00018778 [16:29:08]File name is /storage/ofd_packets/00018778 [16:29:08]Write 331 bytes [16:29:08]NVStorageSaveData done [16:29:08]OFDSenderStorePacket done [16:29:08]KKMCreateOFDPacket done [16:29:08]NVStorageSaveData kkm_last_timestamp [16:29:08]File name is /storage/kkm_last_timestamp [16:29:08]Write 4 bytes [16:29:08]NVStorageSaveData done [16:29:08]ExternCall_PrintAddStr [16:29:08]wPrintStart [16:29:08]Write to MH i2c: 01 00 00 FC 01 FD [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 FF 0F 12 [16:29:08]RasterBufferAndPrint [16:29:08]line Счет N : (3)16701 [16:29:08]line ИНН: 02508201610067 [16:29:08]line Контрольно-Кассовый Чек [16:29:08]line ПРОДАЖА [16:29:08]line Товар: 5449000000996 [16:29:08]line Напиток Кока-Кола 0,33л [16:29:08]line 1.000 * 85.00 [16:29:08]line = 85.00 [16:29:08]line НДС 12% НСП 1% [16:29:08]line > о реализуемом товаре [16:29:08]line ИТОГО: 85.00 [16:29:08]line НСП 1% : 0.75 [16:29:08]line НДС 12% : 9.03 [16:29:08]line Наличными: 85.00 [16:29:08]line Безнал.: 0.00 [16:29:08]line Место: АЗС № 176 "Партнер Нефть" [16:29:08]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:29:08]line СНО: Общий режим [16:29:08]line Чек 54 23.09.2024 16:29 [16:29:08]line Смена: 181 ФФД: 1.0 [16:29:08]line ЗНМ: 0300000010 [16:29:08]line РНМ: 0000000000152968 [16:29:08]line Версия ККМ: v1.0 [16:29:08]line ФМ: 0000000000959456 [16:29:08]line ФД: 18778 [16:29:08]line ФПД: 209575099179355 [16:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T162907&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18778&fm=209575099179355&tin=02508201610067®Number=0000000000152968&sum=8500 [16:29:08]line 0 [16:29:08]OFD Sender: Processing packet 18778 [packets to send 7, broken 6] [16:29:08]ProducePacketName [16:29:08]name=ofd_packets/00018778 [16:29:08]OFD Sender: To server: pG, [16:29:08]CommunicateWithHost lk.salyk.kg:30040 [16:29:08]ConnectInit lk.salyk.kg [16:29:08]written 0, free lines is 4095 [16:29:08]Connected sock=10 [16:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 B3 D4 25 01 32 E8 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 53 97 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5A 49 00 00 35 04 06 00 BE 9B 81 57 21 5B 0B BA F7 42 38 88 59 16 [16:29:09]Write to MH i2c: 01 00 00 24 02 26 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 14 0D 4E [16:29:09]RasterBufferAndPrint [16:29:09]line [16:29:09]line [16:29:09]line [16:29:09]line [16:29:09]line [16:29:09]written 0, free lines is 3354 [16:29:09]MH_Cut [16:29:09]Write to MH i2c: D1 01 00 2B 02 01 FF [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: D1 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: D1 01 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: D1 01 00 2B 02 00 FE [16:29:09]Write to MH i2c: 01 00 00 2C 02 2E [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 76 CF 47 00 08 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 35 39 34 35 36 10 04 04 00 5A 49 00 00 F4 03 04 00 B7 40 F1 66 B6 04 01 00 00 09 96 34 8A DB EF D4 9A [16:29:09]CommunicateWithHost err = 0 [16:29:09]CheckOFDResponse [16:29:09]1017 (14) - 77093643461234 [16:29:09]1041 (16) - 0000000000959456 [16:29:09]1040 (4) - 18778 [16:29:09]1012 (4) - 23.09.2024 10:19 [16:29:09]1206 (1) - 0 [16:29:09]OFD Sender: Remove packet 18778 [16:29:09]ProducePacketName [16:29:09]name=ofd_packets/00018778 [16:29:09]NVStorageDeleteData [16:29:09]OFD Sender: No OFD packet to send [16:29:09]*** Cut start [16:29:09]*** Partial cut [16:29:09]*** CUTSNS_PIN = 1 [16:29:09]*** CUTSNS_PIN = 0 [16:29:09]*** Brake cut motor [16:29:10]Read from MH i2c: 01 [16:29:10]MH_I2C_Read... [16:29:10]*** Stop cut motor [16:29:10]*** Cut end [16:29:10]Read from MH i2c: 01 07 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: 01 07 00 2C 02 00 00 00 00 00 FF 0F 43 [16:29:10]process_action close_receipt done [16:29:10]requested_data is exist [16:29:10]produce_requested_data [16:29:10]requested_item fm.sn is exist - process it [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 11 00 00 [16:29:10]Write to MH i2c: E2 08 00 2D 02 80 11 00 00 00 00 00 00 A9 [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 17 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 17 00 2D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 02 [16:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:29:10]wFMCommunicate OK [16:29:10]requested_item fd.num is exist - process it [16:29:10]SAM_PROTO_GetFieldsCounters [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 13 00 00 [16:29:10]Write to MH i2c: E2 08 00 2E 02 80 13 00 00 00 00 00 00 AC [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 62 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 62 00 2E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5A 49 00 00 0E 04 04 00 B5 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 D3 [16:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5A 49 00 00 0E 04 04 00 B5 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 [16:29:10]wFMCommunicate OK [16:29:10]SAM_PROTO_GetFieldsCounters done [16:29:10]requested_item shift.num is exist - process it [16:29:10]requested_item shift.opened is exist - process it [16:29:10]req_shift_opened [16:29:10]FM_GetShiftState [16:29:10]SAM_PROTO_GetShiftState [16:29:10]wFMCommunicate request_size=4 [16:29:10]MH_SAM_APDU [16:29:10]CAPDU: 80 13 01 00 [16:29:10]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [16:29:10]Write i2c OK [16:29:10]MH_I2C_Read... [16:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:10]Read from MH i2c: E2 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 0E 00 [16:29:10]MH_I2C_Read... [16:29:10]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 46 [16:29:10]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:29:10]wFMCommunicate OK [16:29:10]SAM_PROTO_GetShiftState done [16:29:10]FM_GetShiftState done [16:29:10]req_shift_opened done [16:29:10]requested_item shift.open_date is exist - process it [16:29:10]req_shift_open_date [16:29:10]req_shift_open_date done [16:29:10]produce_requested_data done [16:29:10]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18778,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [16:29:10]process_action_free close_receipt [16:29:10]json_value_free [16:29:10]json_value_free done [16:29:10]process_json_proto returns [16:29:10]Send response to host [16:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18778,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [16:29:10]free response buf [16:29:10]execute_script done [16:29:10]execute_script returns [16:29:10]free content buf [16:29:10]Sock 9.Close socket [16:29:10]Sock 9.Thread stoped [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:31]accept exits with 7 [16:38:31]New connection [16:38:31]New thread 3066608996 created [16:38:31]Thread 3066752356 joined [16:38:31]Waiting for new connection... [16:38:31] Sock 7.Parse request [16:38:31]Sock 7.Check first char [16:38:31]Sock 7.First char is OK [16:38:31]request: POST /json_proto HTTP/1.0 [16:38:31]Method: POST [16:38:31]URL: /json_proto [16:38:31]Method is POST - this is cgi request [16:38:31]url: /json_proto [16:38:31]query_string will be loaded in cgi processing [16:38:31]execute_cgi json_proto POST (null) [16:38:31]execute_cgi path=json_proto method=POST [16:38:31]POST find Content-Length [16:38:31]Host: 172.17.62.196:8080 [16:38:31]Content-Length: 657 [16:38:31]Content-Type: application/json [16:38:31] [16:38:31]POST finish read [16:38:31]Found Content-Length = 657 [16:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16702", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:31]execute_script... [16:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16702", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:31]POST & json_proto [16:38:31]process_json_proto [16:38:31]json parsed OK: [16:38:31]protocol is kg_v1.0 [16:38:31]action value=close_receipt [16:38:31]process_action close_receipt [16:38:31]cmd_close_receipt [16:38:31]MH_GetDate [16:38:31]Write to MH i2c: F0 00 00 30 02 21 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: F0 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: F0 09 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: F0 09 00 30 02 00 88 99 F1 66 CE CC 0E 66 B0 [16:38:31]GetLastDocTimeStamp 1727108947 [16:38:31]current date 1727109512 [16:38:31]FM_GetShiftState [16:38:31]SAM_PROTO_GetShiftState [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 13 01 00 [16:38:31]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0E 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 48 [16:38:31]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:38:31]wFMCommunicate OK [16:38:31]SAM_PROTO_GetShiftState done [16:38:31]FM_GetShiftState done [16:38:31]opened in 1727050372 [16:38:31]opened+sec_in_day 1727136772 [16:38:31]quantity*price = 8500 [16:38:31]sum+1 = 8501 [16:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 55 23.09.2024 16:38 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18779 ФПД: 250687295355404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163832&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18779&fm=250687295355404&tin=02508201610067®Number=0000000000152968&sum=8500 0 [16:38:32]StoreToDocumentArchive [16:38:32]shift 181 fd 18779 [16:38:32]save to /storage/0181/doc_00018779 [16:38:32]save last doc name /storage/0181/doc_00018779 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=281 [16:38:32]tlvbuf is 00BEB6D0 [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 3E 02 80 09 00 00 00 00 00 00 B2 [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 3E 02 00 90 00 B4 [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 3F 02 80 0D 01 02 00 00 00 00 BA [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 3F 02 00 90 00 B5 [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 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 88 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 [16:38:32]Write to MH i2c: E2 02 01 40 02 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 88 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 84 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [16:38:33]RAPDU: 90 00 [16:38:33]wFMCommunicate OK [16:38:33]wFMCommunicate request_size=40 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5B 49 00 00 35 04 06 00 E3 FF AF 30 7A 0C [16:38:33]Write to MH i2c: E2 2B 00 41 02 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5B 49 00 00 35 04 06 00 E3 FF AF 30 7A 0C 00 00 6B [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [16:38:33]RAPDU: 90 00 [16:38:33]wFMCommunicate OK [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 0D 03 02 [16:38:33]Write to MH i2c: E2 08 00 42 02 80 0D 03 02 00 00 00 00 BF [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0B 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0B 00 42 02 00 8A B0 6E DE 3E C0 92 9C 90 00 72 [16:38:33]RAPDU: 8A B0 6E DE 3E C0 92 9C 90 00 [16:38:33]wFMCommunicate OK [16:38:33]SAM_PROTO_SignData done [16:38:33]FM_MakeSignedData done [16:38:33]CreateOFDProtocolMessage [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 11 00 00 [16:38:33]Write to MH i2c: E2 08 00 43 02 80 11 00 00 00 00 00 00 BF [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 17 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 17 00 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 18 [16:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:38:33]wFMCommunicate OK [16:38:33]CreateOFDProtocolMessage done [16:38:33]OFDSenderStorePacket 18779 [16:38:33]StoreOFDPacket docnum=18779 [16:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 CC 04 25 01 CA 0D 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 88 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5B 49 00 00 35 04 06 00 E3 FF AF 30 7A 0C 8A B0 6E DE 3E C0 92 9C [16:38:33]CheckFolder [16:38:33]dirname=/storage/ofd_packets [16:38:33]CheckFolder done [16:38:33]ProducePacketName [16:38:33]name=ofd_packets/00018779 [16:38:33]NVStorageSaveData ofd_packets/00018779 [16:38:33]File name is /storage/ofd_packets/00018779 [16:38:33]Write 331 bytes [16:38:33]NVStorageSaveData done [16:38:33]OFDSenderStorePacket done [16:38:33]KKMCreateOFDPacket done [16:38:33]NVStorageSaveData kkm_last_timestamp [16:38:33]File name is /storage/kkm_last_timestamp [16:38:33]Write 4 bytes [16:38:33]NVStorageSaveData done [16:38:33]ExternCall_PrintAddStr [16:38:33]wPrintStart [16:38:33]Write to MH i2c: 01 00 00 44 02 46 [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 44 02 00 00 00 00 00 FF 0F 5B [16:38:33]RasterBufferAndPrint [16:38:33]line Счет N : (3)16702 [16:38:33]line ИНН: 02508201610067 [16:38:33]line Контрольно-Кассовый Чек [16:38:33]line ПРОДАЖА [16:38:33]line Товар: 5449000000996 [16:38:33]line Напиток Кока-Кола 0,33л [16:38:33]line 1.000 * 85.00 [16:38:33]line = 85.00 [16:38:33]line НДС 12% НСП 1% [16:38:33]line > о реализуемом товаре [16:38:33]line ИТОГО: 85.00 [16:38:33]line НСП 1% : 0.75 [16:38:33]line НДС 12% : 9.03 [16:38:33]line Наличными: 85.00 [16:38:33]line Безнал.: 0.00 [16:38:33]line Место: АЗС № 176 "Партнер Нефть" [16:38:33]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:38:33]line СНО: Общий режим [16:38:33]line Чек 55 23.09.2024 16:38 [16:38:33]line Смена: 181 ФФД: 1.0 [16:38:33]line ЗНМ: 0300000010 [16:38:33]line РНМ: 0000000000152968 [16:38:33]line Версия ККМ: v1.0 [16:38:33]line ФМ: 0000000000959456 [16:38:33]line ФД: 18779 [16:38:33]line ФПД: 250687295355404 [16:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163832&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18779&fm=250687295355404&tin=02508201610067®Number=0000000000152968&sum=8500 [16:38:33]line 0 [16:38:33]OFD Sender: Processing packet 18779 [packets to send 7, broken 6] [16:38:33]ProducePacketName [16:38:33]name=ofd_packets/00018779 [16:38:33]OFD Sender: To server: pG, [16:38:33]CommunicateWithHost lk.salyk.kg:30040 [16:38:33]ConnectInit lk.salyk.kg [16:38:33]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 35 39 34 35 36 2D 01 00 00 CC 04 25 01 CA 0D 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 88 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5B 49 00 00 35 04 06 00 E3 FF AF 30 7A 0C 8A B0 6E DE 3E C0 92 9C [16:38:34]Write to MH i2c: 01 00 00 6C 02 6E [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 [16:38:34]MH_I2C_Read... [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 6C 02 00 00 00 00 00 24 0D A6 [16:38:34]RasterBufferAndPrint [16:38:34]line [16:38:34]line [16:38:34]line [16:38:34]line [16:38:34]line [16:38:34]written 0, free lines is 3370 [16:38:34]MH_Cut [16:38:34]Write to MH i2c: D1 01 00 73 02 01 47 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: D1 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: D1 01 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: D1 01 00 73 02 00 46 [16:38:34]Write to MH i2c: 01 00 00 74 02 76 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 70 95 47 00 62 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 35 39 34 35 36 10 04 04 00 5B 49 00 00 F4 03 04 00 EC 42 F1 66 B6 04 01 00 00 B9 1C D9 1E AE F3 05 86 [16:38:34]CommunicateWithHost err = 0 [16:38:34]CheckOFDResponse [16:38:34]1017 (14) - 77093643461234 [16:38:34]1041 (16) - 0000000000959456 [16:38:34]1040 (4) - 18779 [16:38:34]1012 (4) - 23.09.2024 10:29 [16:38:34]1206 (1) - 0 [16:38:34]OFD Sender: Remove packet 18779 [16:38:34]ProducePacketName [16:38:34]name=ofd_packets/00018779 [16:38:34]NVStorageDeleteData [16:38:34]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:35]Read from MH i2c: 01 [16:38:35]MH_I2C_Read... [16:38:35]*** Stop cut motor [16:38:35]*** Cut end [16:38:35]Read from MH i2c: 01 07 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [16:38:35]process_action close_receipt done [16:38:35]requested_data is exist [16:38:35]produce_requested_data [16:38:35]requested_item fm.sn is exist - process it [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 11 00 00 [16:38:35]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 17 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4A [16:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:38:35]wFMCommunicate OK [16:38:35]requested_item fd.num is exist - process it [16:38:35]SAM_PROTO_GetFieldsCounters [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 13 00 00 [16:38:35]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 62 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 62 00 76 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5B 49 00 00 0E 04 04 00 B5 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 1F [16:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5B 49 00 00 0E 04 04 00 B5 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 [16:38:35]wFMCommunicate OK [16:38:35]SAM_PROTO_GetFieldsCounters done [16:38:35]requested_item shift.num is exist - process it [16:38:35]requested_item shift.opened is exist - process it [16:38:35]req_shift_opened [16:38:35]FM_GetShiftState [16:38:35]SAM_PROTO_GetShiftState [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 13 01 00 [16:38:35]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:35]Read from MH i2c: E2 0E 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8E [16:38:35]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:38:35]wFMCommunicate OK [16:38:35]SAM_PROTO_GetShiftState done [16:38:35]FM_GetShiftState done [16:38:35]req_shift_opened done [16:38:35]requested_item shift.open_date is exist - process it [16:38:35]req_shift_open_date [16:38:35]req_shift_open_date done [16:38:35]produce_requested_data done [16:38:35]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18779,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [16:38:35]process_action_free close_receipt [16:38:35]json_value_free [16:38:35]json_value_free done [16:38:35]process_json_proto returns [16:38:35]Send response to host [16:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18779,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [16:38:35]free response buf [16:38:35]execute_script done [16:38:35]execute_script returns [16:38:35]free content buf [16:38:35]Sock 7.Close socket [16:38:35]Sock 7.Thread stoped [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:11]accept exits with 9 [16:39:11]New connection [16:39:11]New thread 3066752356 created [16:39:11]Thread 3066608996 joined [16:39:11]Waiting for new connection... [16:39:11] Sock 9.Parse request [16:39:11]Sock 9.Check first char [16:39:11]Sock 9.First char is OK [16:39:11]request: POST /json_proto HTTP/1.0 [16:39:11]Method: POST [16:39:11]URL: /json_proto [16:39:11]Method is POST - this is cgi request [16:39:11]url: /json_proto [16:39:11]query_string will be loaded in cgi processing [16:39:11]execute_cgi json_proto POST (null) [16:39:11]execute_cgi path=json_proto method=POST [16:39:11]POST find Content-Length [16:39:11]Host: 172.17.62.196:8080 [16:39:11]Content-Length: 661 [16:39:11]Content-Type: application/json [16:39:11] [16:39:11]POST finish read [16:39:11]Found Content-Length = 661 [16:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16703", "tax_sys" : 0, "items" : [ { "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 38.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:11]execute_script... [16:39:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16703", "tax_sys" : 0, "items" : [ { "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 38.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:11]POST & json_proto [16:39:11]process_json_proto [16:39:11]json parsed OK: [16:39:11]protocol is kg_v1.0 [16:39:11]action value=close_receipt [16:39:11]process_action close_receipt [16:39:11]cmd_close_receipt [16:39:11]MH_GetDate [16:39:11]Write to MH i2c: F0 00 00 78 02 69 [16:39:11]Write i2c OK [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: F0 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: F0 09 00 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: F0 09 00 78 02 00 B0 99 F1 66 CE CC 0E 66 20 [16:39:11]GetLastDocTimeStamp 1727109512 [16:39:11]current date 1727109552 [16:39:11]FM_GetShiftState [16:39:11]SAM_PROTO_GetShiftState [16:39:11]wFMCommunicate request_size=4 [16:39:11]MH_SAM_APDU [16:39:11]CAPDU: 80 13 01 00 [16:39:11]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [16:39:11]Write i2c OK [16:39:11]MH_I2C_Read... [16:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:11]Read from MH i2c: E2 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 0E 00 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 90 [16:39:11]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:39:11]wFMCommunicate OK [16:39:11]SAM_PROTO_GetShiftState done [16:39:11]FM_GetShiftState done [16:39:11]opened in 1727050372 [16:39:11]opened+sec_in_day 1727136772 [16:39:11]quantity*price = 3800 [16:39:11]sum+1 = 3801 [16:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 38.00 НСП 1% : 0.34 НДС 12% : 4.03 Наличными: 38.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 56 23.09.2024 16:39 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18780 ФПД: 205025059270478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163912&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18780&fm=205025059270478&tin=02508201610067®Number=0000000000152968&sum=3800 0 [16:39:12]StoreToDocumentArchive [16:39:12]shift 181 fd 18780 [16:39:12]save to /storage/0181/doc_00018780 [16:39:12]save last doc name /storage/0181/doc_00018780 to /storage/kkm_last_doc_name [16:39:12]save OK [16:39:12]Clear old archive folders... [16:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:39:12]tlvbuf is 00C01870 [16:39:12]SAM_PROTO_ClearQueue [16:39:12]wFMCommunicate request_size=4 [16:39:12]MH_SAM_APDU [16:39:12]CAPDU: 80 09 00 00 [16:39:12]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [16:39:12]RAPDU: 90 00 [16:39:12]wFMCommunicate OK [16:39:12]SAM_PROTO_ClearQueue done [16:39:12]KKMCreateOFDPacket [16:39:12]OFDProtocolAddRootSTLVToBuf [16:39:12]FM_MakeSignedData [16:39:12]FM_MakeSignedData [16:39:12]SAM_PROTO_SignData [16:39:12]wFMCommunicate request_size=4 [16:39:12]MH_SAM_APDU [16:39:12]CAPDU: 80 0D 01 02 [16:39:12]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [16:39:12]RAPDU: 90 00 [16:39:12]wFMCommunicate OK [16:39:12]wFMCommunicate request_size=255 [16:39:12]MH_SAM_APDU [16:39:12]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B0 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 [16:39:12]Write to MH i2c: E2 02 01 88 02 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B0 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 B4 [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [16:39:13]RAPDU: 90 00 [16:39:13]wFMCommunicate OK [16:39:13]wFMCommunicate request_size=40 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5C 49 00 00 35 04 06 00 BA 78 1D D3 EF 4E [16:39:13]Write to MH i2c: E2 2B 00 89 02 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5C 49 00 00 35 04 06 00 BA 78 1D D3 EF 4E 00 00 CC [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [16:39:13]RAPDU: 90 00 [16:39:13]wFMCommunicate OK [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 0D 03 02 [16:39:13]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 0B 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 0B 00 8A 02 00 FD 58 87 8E C4 09 A2 C1 90 00 A2 [16:39:13]RAPDU: FD 58 87 8E C4 09 A2 C1 90 00 [16:39:13]wFMCommunicate OK [16:39:13]SAM_PROTO_SignData done [16:39:13]FM_MakeSignedData done [16:39:13]CreateOFDProtocolMessage [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 11 00 00 [16:39:13]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 17 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 60 [16:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:39:13]wFMCommunicate OK [16:39:13]CreateOFDProtocolMessage done [16:39:13]OFDSenderStorePacket 18780 [16:39:13]StoreOFDPacket docnum=18780 [16:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 E6 DB 25 01 A6 6A 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B0 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5C 49 00 00 35 04 06 00 BA 78 1D D3 EF 4E FD 58 87 8E C4 09 A2 C1 [16:39:13]CheckFolder [16:39:13]dirname=/storage/ofd_packets [16:39:13]CheckFolder done [16:39:13]ProducePacketName [16:39:13]name=ofd_packets/00018780 [16:39:13]NVStorageSaveData ofd_packets/00018780 [16:39:13]File name is /storage/ofd_packets/00018780 [16:39:13]Write 331 bytes [16:39:13]NVStorageSaveData done [16:39:13]OFDSenderStorePacket done [16:39:13]KKMCreateOFDPacket done [16:39:13]NVStorageSaveData kkm_last_timestamp [16:39:13]File name is /storage/kkm_last_timestamp [16:39:13]Write 4 bytes [16:39:13]NVStorageSaveData done [16:39:13]ExternCall_PrintAddStr [16:39:13]wPrintStart [16:39:13]Write to MH i2c: 01 00 00 8C 02 8E [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 07 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [16:39:13]RasterBufferAndPrint [16:39:13]line Счет N : (3)16703 [16:39:13]line ИНН: 02508201610067 [16:39:13]line Контрольно-Кассовый Чек [16:39:13]line ПРОДАЖА [16:39:13]line Товар: 4607120858977 [16:39:13]line Чипсы Чипсоны краб 40г [16:39:13]line 1.000 * 38.00 [16:39:13]line = 38.00 [16:39:13]line НДС 12% НСП 1% [16:39:13]line > о реализуемом товаре [16:39:13]line ИТОГО: 38.00 [16:39:13]line НСП 1% : 0.34 [16:39:13]line НДС 12% : 4.03 [16:39:13]line Наличными: 38.00 [16:39:13]line Безнал.: 0.00 [16:39:13]line Место: АЗС № 176 "Партнер Нефть" [16:39:13]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:39:13]line СНО: Общий режим [16:39:13]line Чек 56 23.09.2024 16:39 [16:39:13]line Смена: 181 ФФД: 1.0 [16:39:13]line ЗНМ: 0300000010 [16:39:13]line РНМ: 0000000000152968 [16:39:13]line Версия ККМ: v1.0 [16:39:13]line ФМ: 0000000000959456 [16:39:13]line ФД: 18780 [16:39:13]line ФПД: 205025059270478 [16:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T163912&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18780&fm=205025059270478&tin=02508201610067®Number=0000000000152968&sum=3800 [16:39:13]line 0 [16:39:13]OFD Sender: Processing packet 18780 [packets to send 7, broken 6] [16:39:13]ProducePacketName [16:39:13]name=ofd_packets/00018780 [16:39:13]OFD Sender: To server: pG, [16:39:13]CommunicateWithHost lk.salyk.kg:30040 [16:39:13]ConnectInit lk.salyk.kg [16:39:13]written 0, free lines is 4095 [16:39:13]Connected sock=10 [16:39:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 E6 DB 25 01 A6 6A 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 B0 99 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5C 49 00 00 35 04 06 00 BA 78 1D D3 EF 4E FD 58 87 8E C4 09 A2 C1 [16:39:14]Write to MH i2c: 01 00 00 B4 02 B6 [16:39:14]Write i2c OK [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: 01 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: 01 07 00 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 0C 0D D6 [16:39:14]RasterBufferAndPrint [16:39:14]line [16:39:14]line [16:39:14]line [16:39:14]line [16:39:14]line [16:39:14]written 0, free lines is 3346 [16:39:14]MH_Cut [16:39:14]Write to MH i2c: D1 01 00 BB 02 01 8F [16:39:14]Write i2c OK [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: D1 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: D1 01 00 [16:39:14]MH_I2C_Read... [16:39:14]Read from MH i2c: D1 01 00 BB 02 00 8E [16:39:14]Write to MH i2c: 01 00 00 BC 02 BE [16:39:14]Write i2c OK [16:39:14]MH_I2C_Read... [16:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 C3 F2 47 00 94 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 35 39 34 35 36 10 04 04 00 5C 49 00 00 F4 03 04 00 14 43 F1 66 B6 04 01 00 00 F3 85 6B B5 52 04 E2 CF [16:39:14]CommunicateWithHost err = 0 [16:39:14]CheckOFDResponse [16:39:14]1017 (14) - 77093643461234 [16:39:14]1041 (16) - 0000000000959456 [16:39:14]1040 (4) - 18780 [16:39:14]1012 (4) - 23.09.2024 10:29 [16:39:14]1206 (1) - 0 [16:39:14]OFD Sender: Remove packet 18780 [16:39:14]ProducePacketName [16:39:14]name=ofd_packets/00018780 [16:39:14]NVStorageDeleteData [16:39:14]OFD Sender: No OFD packet to send [16:39:14]*** Cut start [16:39:14]*** Partial cut [16:39:14]*** CUTSNS_PIN = 1 [16:39:14]*** CUTSNS_PIN = 0 [16:39:14]*** Brake cut motor [16:39:15]Read from MH i2c: 01 [16:39:15]MH_I2C_Read... [16:39:15]*** Stop cut motor [16:39:15]*** Cut end [16:39:15]Read from MH i2c: 01 07 00 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [16:39:15]process_action close_receipt done [16:39:15]requested_data is exist [16:39:15]produce_requested_data [16:39:15]requested_item fm.sn is exist - process it [16:39:15]wFMCommunicate request_size=4 [16:39:15]MH_SAM_APDU [16:39:15]CAPDU: 80 11 00 00 [16:39:15]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [16:39:15]Write i2c OK [16:39:15]MH_I2C_Read... [16:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:15]Read from MH i2c: E2 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 17 00 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 92 [16:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:39:15]wFMCommunicate OK [16:39:15]requested_item fd.num is exist - process it [16:39:15]SAM_PROTO_GetFieldsCounters [16:39:15]wFMCommunicate request_size=4 [16:39:15]MH_SAM_APDU [16:39:15]CAPDU: 80 13 00 00 [16:39:15]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [16:39:15]Write i2c OK [16:39:15]MH_I2C_Read... [16:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:15]Read from MH i2c: E2 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 62 00 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5C 49 00 00 0E 04 04 00 B5 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 6B [16:39:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5C 49 00 00 0E 04 04 00 B5 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 [16:39:15]wFMCommunicate OK [16:39:15]SAM_PROTO_GetFieldsCounters done [16:39:15]requested_item shift.num is exist - process it [16:39:15]requested_item shift.opened is exist - process it [16:39:15]req_shift_opened [16:39:15]FM_GetShiftState [16:39:15]SAM_PROTO_GetShiftState [16:39:15]wFMCommunicate request_size=4 [16:39:15]MH_SAM_APDU [16:39:15]CAPDU: 80 13 01 00 [16:39:15]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [16:39:15]Write i2c OK [16:39:15]MH_I2C_Read... [16:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:15]Read from MH i2c: E2 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 0E 00 [16:39:15]MH_I2C_Read... [16:39:15]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D6 [16:39:15]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:39:15]wFMCommunicate OK [16:39:15]SAM_PROTO_GetShiftState done [16:39:15]FM_GetShiftState done [16:39:15]req_shift_opened done [16:39:15]requested_item shift.open_date is exist - process it [16:39:15]req_shift_open_date [16:39:15]req_shift_open_date done [16:39:15]produce_requested_data done [16:39:15]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18780,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [16:39:15]process_action_free close_receipt [16:39:15]json_value_free [16:39:15]json_value_free done [16:39:15]process_json_proto returns [16:39:15]Send response to host [16:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18780,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [16:39:15]free response buf [16:39:15]execute_script done [16:39:15]execute_script returns [16:39:15]free content buf [16:39:15]Sock 9.Close socket [16:39:15]Sock 9.Thread stoped [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:08]accept exits with 7 [16:45:08]New connection [16:45:08]New thread 3066608996 created [16:45:08]Thread 3066752356 joined [16:45:08]Waiting for new connection... [16:45:08] Sock 7.Parse request [16:45:08]Sock 7.Check first char [16:45:08]Sock 7.First char is OK [16:45:08]request: POST /json_proto HTTP/1.0 [16:45:08]Method: POST [16:45:08]URL: /json_proto [16:45:08]Method is POST - this is cgi request [16:45:08]url: /json_proto [16:45:08]query_string will be loaded in cgi processing [16:45:08]execute_cgi json_proto POST (null) [16:45:08]execute_cgi path=json_proto method=POST [16:45:08]POST find Content-Length [16:45:08]Host: 172.17.62.196:8080 [16:45:08]Content-Length: 636 [16:45:08]Content-Type: application/json [16:45:08] [16:45:08]POST finish read [16:45:08]Found Content-Length = 636 [16:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16704", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:08]execute_script... [16:45:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16704", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:08]POST & json_proto [16:45:08]process_json_proto [16:45:08]json parsed OK: [16:45:08]protocol is kg_v1.0 [16:45:08]action value=close_receipt [16:45:08]process_action close_receipt [16:45:08]cmd_close_receipt [16:45:08]MH_GetDate [16:45:08]Write to MH i2c: F0 00 00 C0 02 B1 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: F0 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: F0 09 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: F0 09 00 C0 02 00 15 9B F1 66 CE CC 0E 66 CF [16:45:08]GetLastDocTimeStamp 1727109552 [16:45:08]current date 1727109909 [16:45:08]FM_GetShiftState [16:45:08]SAM_PROTO_GetShiftState [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 13 01 00 [16:45:08]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 0E 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D8 [16:45:08]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:45:08]wFMCommunicate OK [16:45:08]SAM_PROTO_GetShiftState done [16:45:08]FM_GetShiftState done [16:45:08]opened in 1727050372 [16:45:08]opened+sec_in_day 1727136772 [16:45:08]quantity*price = 7000 [16:45:08]sum+1 = 7001 [16:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 57 23.09.2024 16:45 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18781 ФПД: 102313848080219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T164509&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18781&fm=102313848080219&tin=02508201610067®Number=0000000000152968&sum=7000 0 [16:45:09]StoreToDocumentArchive [16:45:09]shift 181 fd 18781 [16:45:09]save to /storage/0181/doc_00018781 [16:45:09]save last doc name /storage/0181/doc_00018781 to /storage/kkm_last_doc_name [16:45:09]save OK [16:45:09]Clear old archive folders... [16:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:45:09]tlvbuf is 00C01750 [16:45:09]SAM_PROTO_ClearQueue [16:45:09]wFMCommunicate request_size=4 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 09 00 00 [16:45:09]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [16:45:09]RAPDU: 90 00 [16:45:09]wFMCommunicate OK [16:45:09]SAM_PROTO_ClearQueue done [16:45:09]KKMCreateOFDPacket [16:45:09]OFDProtocolAddRootSTLVToBuf [16:45:09]FM_MakeSignedData [16:45:09]FM_MakeSignedData [16:45:09]SAM_PROTO_SignData [16:45:09]wFMCommunicate request_size=4 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 0D 01 02 [16:45:09]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [16:45:09]RAPDU: 90 00 [16:45:09]wFMCommunicate OK [16:45:09]wFMCommunicate request_size=255 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 15 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 [16:45:09]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 15 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 47 [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]OFD Sender: No OFD packet to send [16:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 03 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [16:45:10]RAPDU: 90 00 [16:45:10]wFMCommunicate OK [16:45:10]wFMCommunicate request_size=31 [16:45:10]MH_SAM_APDU [16:45:10]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 34 35 36 10 04 04 00 5D 49 00 00 35 04 06 00 5D 0D CC 92 07 5B [16:45:10]Write to MH i2c: E2 22 00 D1 02 80 0D 02 02 1A 00 30 30 39 35 39 34 35 36 10 04 04 00 5D 49 00 00 35 04 06 00 5D 0D CC 92 07 5B 00 00 4E [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 03 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [16:45:10]RAPDU: 90 00 [16:45:10]wFMCommunicate OK [16:45:10]wFMCommunicate request_size=4 [16:45:10]MH_SAM_APDU [16:45:10]CAPDU: 80 0D 03 02 [16:45:10]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 0B 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 0B 00 D2 02 00 82 BC 62 85 60 2C 92 88 90 00 1B [16:45:10]RAPDU: 82 BC 62 85 60 2C 92 88 90 00 [16:45:10]wFMCommunicate OK [16:45:10]SAM_PROTO_SignData done [16:45:10]FM_MakeSignedData done [16:45:10]CreateOFDProtocolMessage [16:45:10]wFMCommunicate request_size=4 [16:45:10]MH_SAM_APDU [16:45:10]CAPDU: 80 11 00 00 [16:45:10]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:10]Read from MH i2c: E2 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 17 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A8 [16:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:45:10]wFMCommunicate OK [16:45:10]CreateOFDProtocolMessage done [16:45:10]OFDSenderStorePacket 18781 [16:45:10]StoreOFDPacket docnum=18781 [16:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 D7 A2 1C 01 F2 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 15 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5D 49 00 00 35 04 06 00 5D 0D CC 92 07 5B 82 BC 62 85 60 2C 92 88 [16:45:10]CheckFolder [16:45:10]dirname=/storage/ofd_packets [16:45:10]CheckFolder done [16:45:10]ProducePacketName [16:45:10]name=ofd_packets/00018781 [16:45:10]NVStorageSaveData ofd_packets/00018781 [16:45:10]File name is /storage/ofd_packets/00018781 [16:45:10]Write 322 bytes [16:45:10]NVStorageSaveData done [16:45:10]OFDSenderStorePacket done [16:45:10]KKMCreateOFDPacket done [16:45:10]NVStorageSaveData kkm_last_timestamp [16:45:10]File name is /storage/kkm_last_timestamp [16:45:10]Write 4 bytes [16:45:10]NVStorageSaveData done [16:45:10]ExternCall_PrintAddStr [16:45:10]wPrintStart [16:45:10]Write to MH i2c: 01 00 00 D4 02 D6 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 07 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [16:45:10]RasterBufferAndPrint [16:45:10]line Счет N : (3)16704 [16:45:10]line ИНН: 02508201610067 [16:45:10]line Контрольно-Кассовый Чек [16:45:10]line ПРОДАЖА [16:45:10]line Товар: 4630007400358 [16:45:10]line Семечки ДЖИНН 70г [16:45:10]line 1.000 * 70.00 [16:45:10]line = 70.00 [16:45:10]line НДС 12% НСП 1% [16:45:10]line > о реализуемом товаре [16:45:10]line ИТОГО: 70.00 [16:45:10]line НСП 1% : 0.62 [16:45:10]line НДС 12% : 7.43 [16:45:10]line Наличными: 70.00 [16:45:10]line Безнал.: 0.00 [16:45:10]line Место: АЗС № 176 "Партнер Нефть" [16:45:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:45:10]line СНО: Общий режим [16:45:10]line Чек 57 23.09.2024 16:45 [16:45:10]line Смена: 181 ФФД: 1.0 [16:45:10]line ЗНМ: 0300000010 [16:45:10]line РНМ: 0000000000152968 [16:45:10]line Версия ККМ: v1.0 [16:45:10]line ФМ: 0000000000959456 [16:45:10]line ФД: 18781 [16:45:10]line ФПД: 102313848080219 [16:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T164509&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18781&fm=102313848080219&tin=02508201610067®Number=0000000000152968&sum=7000 [16:45:10]line 0 [16:45:10]written 0, free lines is 4095 [16:45:10]OFD Sender: Processing packet 18781 [packets to send 7, broken 6] [16:45:10]ProducePacketName [16:45:10]name=ofd_packets/00018781 [16:45:10]OFD Sender: To server: pG, [16:45:10]CommunicateWithHost lk.salyk.kg:30040 [16:45:10]ConnectInit lk.salyk.kg [16:45:10]Connected sock=9 [16:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 D7 A2 1C 01 F2 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 15 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5D 49 00 00 35 04 06 00 5D 0D CC 92 07 5B 82 BC 62 85 60 2C 92 88 [16:45:10]Write to MH i2c: 01 00 00 FC 02 FE [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 07 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 1E 0D 30 [16:45:10]RasterBufferAndPrint [16:45:10]line [16:45:10]line [16:45:10]line [16:45:10]line [16:45:10]line [16:45:10]written 0, free lines is 3363 [16:45:10]MH_Cut [16:45:10]Write to MH i2c: D1 01 00 03 03 01 D8 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: D1 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: D1 01 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: D1 01 00 03 03 00 D7 [16:45:10]Write to MH i2c: 01 00 00 04 03 07 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4F 99 47 00 54 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 35 39 34 35 36 10 04 04 00 5D 49 00 00 F4 03 04 00 79 44 F1 66 B6 04 01 00 00 A8 62 1D A9 B3 D0 E6 D7 [16:45:10]CommunicateWithHost err = 0 [16:45:10]CheckOFDResponse [16:45:10]1017 (14) - 77093643461234 [16:45:10]1041 (16) - 0000000000959456 [16:45:10]1040 (4) - 18781 [16:45:10]1012 (4) - 23.09.2024 10:35 [16:45:10]1206 (1) - 0 [16:45:10]OFD Sender: Remove packet 18781 [16:45:10]ProducePacketName [16:45:10]name=ofd_packets/00018781 [16:45:10]NVStorageDeleteData [16:45:11]OFD Sender: No OFD packet to send [16:45:11]*** Cut start [16:45:11]*** Partial cut [16:45:11]*** CUTSNS_PIN = 1 [16:45:11]*** CUTSNS_PIN = 0 [16:45:11]*** Brake cut motor [16:45:11]Read from MH i2c: 01 [16:45:11]MH_I2C_Read... [16:45:11]*** Stop cut motor [16:45:11]*** Cut end [16:45:11]Read from MH i2c: 01 07 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [16:45:11]process_action close_receipt done [16:45:11]requested_data is exist [16:45:11]produce_requested_data [16:45:11]requested_item fm.sn is exist - process it [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 11 00 00 [16:45:11]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DB [16:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:45:11]wFMCommunicate OK [16:45:11]requested_item fd.num is exist - process it [16:45:11]SAM_PROTO_GetFieldsCounters [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 13 00 00 [16:45:11]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:12]Read from MH i2c: E2 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: E2 62 00 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: E2 62 00 06 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5D 49 00 00 0E 04 04 00 B5 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 B8 [16:45:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5D 49 00 00 0E 04 04 00 B5 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 [16:45:12]wFMCommunicate OK [16:45:12]SAM_PROTO_GetFieldsCounters done [16:45:12]requested_item shift.num is exist - process it [16:45:12]requested_item shift.opened is exist - process it [16:45:12]req_shift_opened [16:45:12]FM_GetShiftState [16:45:12]SAM_PROTO_GetShiftState [16:45:12]wFMCommunicate request_size=4 [16:45:12]MH_SAM_APDU [16:45:12]CAPDU: 80 13 01 00 [16:45:12]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [16:45:12]Write i2c OK [16:45:12]MH_I2C_Read... [16:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:12]Read from MH i2c: E2 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: E2 0E 00 [16:45:12]MH_I2C_Read... [16:45:12]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1F [16:45:12]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:45:12]wFMCommunicate OK [16:45:12]SAM_PROTO_GetShiftState done [16:45:12]FM_GetShiftState done [16:45:12]req_shift_opened done [16:45:12]requested_item shift.open_date is exist - process it [16:45:12]req_shift_open_date [16:45:12]req_shift_open_date done [16:45:12]produce_requested_data done [16:45:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18781,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [16:45:12]process_action_free close_receipt [16:45:12]json_value_free [16:45:12]json_value_free done [16:45:12]process_json_proto returns [16:45:12]Send response to host [16:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18781,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [16:45:12]free response buf [16:45:12]execute_script done [16:45:12]execute_script returns [16:45:12]free content buf [16:45:12]Sock 7.Close socket [16:45:12]Sock 7.Thread stoped [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:02]accept exits with 10 [16:49:02]New connection [16:49:02]New thread 3066752356 created [16:49:02]Thread 3066608996 joined [16:49:02]Waiting for new connection... [16:49:02] Sock 10.Parse request [16:49:02]Sock 10.Check first char [16:49:02]Sock 10.First char is OK [16:49:02]request: POST /json_proto HTTP/1.0 [16:49:02]Method: POST [16:49:02]URL: /json_proto [16:49:02]Method is POST - this is cgi request [16:49:02]url: /json_proto [16:49:02]query_string will be loaded in cgi processing [16:49:02]execute_cgi json_proto POST (null) [16:49:02]execute_cgi path=json_proto method=POST [16:49:02]POST find Content-Length [16:49:02]Host: 172.17.62.196:8080 [16:49:02]Content-Length: 647 [16:49:02]Content-Type: application/json [16:49:02] [16:49:02]POST finish read [16:49:02]Found Content-Length = 647 [16:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16705", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:02]execute_script... [16:49:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16705", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:02]POST & json_proto [16:49:02]process_json_proto [16:49:02]json parsed OK: [16:49:02]protocol is kg_v1.0 [16:49:02]action value=close_receipt [16:49:02]process_action close_receipt [16:49:02]cmd_close_receipt [16:49:02]MH_GetDate [16:49:02]Write to MH i2c: F0 00 00 08 03 FA [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: F0 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: F0 09 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: F0 09 00 08 03 00 FF 9B F1 66 CE CC 0E 66 02 [16:49:02]GetLastDocTimeStamp 1727109909 [16:49:02]current date 1727110143 [16:49:02]FM_GetShiftState [16:49:02]SAM_PROTO_GetShiftState [16:49:02]wFMCommunicate request_size=4 [16:49:02]MH_SAM_APDU [16:49:02]CAPDU: 80 13 01 00 [16:49:02]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:02]Read from MH i2c: E2 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0E 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 21 [16:49:02]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:49:02]wFMCommunicate OK [16:49:02]SAM_PROTO_GetShiftState done [16:49:02]FM_GetShiftState done [16:49:02]opened in 1727050372 [16:49:02]opened+sec_in_day 1727136772 [16:49:02]quantity*price = 16000 [16:49:02]sum+1 = 16001 [16:49:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 58 23.09.2024 16:49 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18782 ФПД: 110230661902067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T164903&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18782&fm=110230661902067&tin=02508201610067®Number=0000000000152968&sum=16000 0 [16:49:03]StoreToDocumentArchive [16:49:03]shift 181 fd 18782 [16:49:03]save to /storage/0181/doc_00018782 [16:49:03]save last doc name /storage/0181/doc_00018782 to /storage/kkm_last_doc_name [16:49:03]save OK [16:49:03]Clear old archive folders... [16:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:49:03]tlvbuf is 00C08320 [16:49:03]SAM_PROTO_ClearQueue [16:49:03]wFMCommunicate request_size=4 [16:49:03]MH_SAM_APDU [16:49:03]CAPDU: 80 09 00 00 [16:49:03]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:03]Read from MH i2c: E2 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: E2 03 00 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [16:49:03]RAPDU: 90 00 [16:49:03]wFMCommunicate OK [16:49:03]SAM_PROTO_ClearQueue done [16:49:03]KKMCreateOFDPacket [16:49:03]OFDProtocolAddRootSTLVToBuf [16:49:03]FM_MakeSignedData [16:49:03]FM_MakeSignedData [16:49:03]SAM_PROTO_SignData [16:49:03]wFMCommunicate request_size=4 [16:49:03]MH_SAM_APDU [16:49:03]CAPDU: 80 0D 01 02 [16:49:03]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:03]Read from MH i2c: E2 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: E2 03 00 [16:49:03]MH_I2C_Read... [16:49:03]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [16:49:03]RAPDU: 90 00 [16:49:03]wFMCommunicate OK [16:49:03]wFMCommunicate request_size=255 [16:49:03]MH_SAM_APDU [16:49:03]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FF 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [16:49:03]Write to MH i2c: E2 02 01 18 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FF 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 DB [16:49:03]Write i2c OK [16:49:03]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 03 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [16:49:04]RAPDU: 90 00 [16:49:04]wFMCommunicate OK [16:49:04]wFMCommunicate request_size=35 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5E 49 00 00 35 04 06 00 64 41 13 72 2E F3 [16:49:04]Write to MH i2c: E2 26 00 19 03 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5E 49 00 00 35 04 06 00 64 41 13 72 2E F3 00 00 81 [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 03 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [16:49:04]RAPDU: 90 00 [16:49:04]wFMCommunicate OK [16:49:04]wFMCommunicate request_size=4 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 0D 03 02 [16:49:04]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0B 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0B 00 1A 03 00 47 A1 55 8B A1 08 FD 0A 90 00 11 [16:49:04]RAPDU: 47 A1 55 8B A1 08 FD 0A 90 00 [16:49:04]wFMCommunicate OK [16:49:04]SAM_PROTO_SignData done [16:49:04]FM_MakeSignedData done [16:49:04]CreateOFDProtocolMessage [16:49:04]wFMCommunicate request_size=4 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 11 00 00 [16:49:04]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 17 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F1 [16:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:49:04]wFMCommunicate OK [16:49:04]CreateOFDProtocolMessage done [16:49:04]OFDSenderStorePacket 18782 [16:49:04]StoreOFDPacket docnum=18782 [16:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 36 38 20 01 43 60 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FF 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5E 49 00 00 35 04 06 00 64 41 13 72 2E F3 47 A1 55 8B A1 08 FD 0A [16:49:04]CheckFolder [16:49:04]dirname=/storage/ofd_packets [16:49:04]CheckFolder done [16:49:04]ProducePacketName [16:49:04]name=ofd_packets/00018782 [16:49:04]NVStorageSaveData ofd_packets/00018782 [16:49:04]File name is /storage/ofd_packets/00018782 [16:49:04]Write 326 bytes [16:49:04]NVStorageSaveData done [16:49:04]OFDSenderStorePacket done [16:49:04]KKMCreateOFDPacket done [16:49:04]NVStorageSaveData kkm_last_timestamp [16:49:04]File name is /storage/kkm_last_timestamp [16:49:04]Write 4 bytes [16:49:04]NVStorageSaveData done [16:49:04]ExternCall_PrintAddStr [16:49:04]wPrintStart [16:49:04]Write to MH i2c: 01 00 00 1C 03 1F [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: 01 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: 01 07 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [16:49:04]RasterBufferAndPrint [16:49:04]line Счет N : (3)16705 [16:49:04]line ИНН: 02508201610067 [16:49:04]line Контрольно-Кассовый Чек [16:49:04]line ПРОДАЖА [16:49:04]line Товар: 4860019001346 [16:49:04]line Вода Боржоми 0,5л ст [16:49:04]line 1.000 * 160.00 [16:49:04]line = 160.00 [16:49:04]line НДС 12% НСП 1% [16:49:04]line > о реализуемом товаре [16:49:04]line ИТОГО: 160.00 [16:49:04]line НСП 1% : 1.42 [16:49:04]line НДС 12% : 16.99 [16:49:04]line Наличными: 160.00 [16:49:04]line Безнал.: 0.00 [16:49:04]line Место: АЗС № 176 "Партнер Нефть" [16:49:04]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:49:04]line СНО: Общий режим [16:49:04]line Чек 58 23.09.2024 16:49 [16:49:04]line Смена: 181 ФФД: 1.0 [16:49:04]line ЗНМ: 0300000010 [16:49:04]line РНМ: 0000000000152968 [16:49:04]line Версия ККМ: v1.0 [16:49:04]line ФМ: 0000000000959456 [16:49:04]line ФД: 18782 [16:49:04]line ФПД: 110230661902067 [16:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T164903&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18782&fm=110230661902067&tin=02508201610067®Number=0000000000152968&sum=16000 [16:49:04]line 0 [16:49:04]OFD Sender: Processing packet 18782 [packets to send 7, broken 6] [16:49:04]ProducePacketName [16:49:04]name=ofd_packets/00018782 [16:49:04]OFD Sender: To server: pG, [16:49:04]CommunicateWithHost lk.salyk.kg:30040 [16:49:04]ConnectInit lk.salyk.kg [16:49:04]written 0, free lines is 4095 [16:49:04]Connected sock=9 [16:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 36 38 20 01 43 60 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 FF 9B F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5E 49 00 00 35 04 06 00 64 41 13 72 2E F3 47 A1 55 8B A1 08 FD 0A [16:49:05]Write to MH i2c: 01 00 00 44 03 47 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: 01 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: 01 07 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 13 0D 6E [16:49:05]RasterBufferAndPrint [16:49:05]line [16:49:05]line [16:49:05]line [16:49:05]line [16:49:05]line [16:49:05]written 0, free lines is 3353 [16:49:05]MH_Cut [16:49:05]Write to MH i2c: D1 01 00 4B 03 01 20 [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: D1 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: D1 01 00 [16:49:05]MH_I2C_Read... [16:49:05]Read from MH i2c: D1 01 00 4B 03 00 1F [16:49:05]Write to MH i2c: 01 00 00 4C 03 4F [16:49:05]Write i2c OK [16:49:05]MH_I2C_Read... [16:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 6D 36 47 00 BD 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 35 39 34 35 36 10 04 04 00 5E 49 00 00 F4 03 04 00 63 45 F1 66 B6 04 01 00 00 2F A0 7C 7E A1 4C E7 3A [16:49:05]CommunicateWithHost err = 0 [16:49:05]CheckOFDResponse [16:49:05]1017 (14) - 77093643461234 [16:49:05]1041 (16) - 0000000000959456 [16:49:05]1040 (4) - 18782 [16:49:05]1012 (4) - 23.09.2024 10:39 [16:49:05]1206 (1) - 0 [16:49:05]OFD Sender: Remove packet 18782 [16:49:05]ProducePacketName [16:49:05]name=ofd_packets/00018782 [16:49:05]NVStorageDeleteData [16:49:05]OFD Sender: No OFD packet to send [16:49:05]*** Cut start [16:49:05]*** Partial cut [16:49:05]*** CUTSNS_PIN = 1 [16:49:05]*** CUTSNS_PIN = 0 [16:49:05]*** Brake cut motor [16:49:06]Read from MH i2c: 01 [16:49:06]MH_I2C_Read... [16:49:06]*** Stop cut motor [16:49:06]*** Cut end [16:49:06]Read from MH i2c: 01 07 00 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [16:49:06]process_action close_receipt done [16:49:06]requested_data is exist [16:49:06]produce_requested_data [16:49:06]requested_item fm.sn is exist - process it [16:49:06]wFMCommunicate request_size=4 [16:49:06]MH_SAM_APDU [16:49:06]CAPDU: 80 11 00 00 [16:49:06]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:06]Read from MH i2c: E2 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: E2 17 00 [16:49:06]MH_I2C_Read... [16:49:06]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 35 39 34 35 36 90 00 23 [16:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:49:06]wFMCommunicate OK [16:49:06]requested_item fd.num is exist - process it [16:49:06]SAM_PROTO_GetFieldsCounters [16:49:06]wFMCommunicate request_size=4 [16:49:06]MH_SAM_APDU [16:49:06]CAPDU: 80 13 00 00 [16:49:06]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:06]Read from MH i2c: E2 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: E2 62 00 [16:49:06]MH_I2C_Read... [16:49:06]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5E 49 00 00 0E 04 04 00 B5 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 04 [16:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5E 49 00 00 0E 04 04 00 B5 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 [16:49:06]wFMCommunicate OK [16:49:06]SAM_PROTO_GetFieldsCounters done [16:49:06]requested_item shift.num is exist - process it [16:49:06]requested_item shift.opened is exist - process it [16:49:06]req_shift_opened [16:49:06]FM_GetShiftState [16:49:06]SAM_PROTO_GetShiftState [16:49:06]wFMCommunicate request_size=4 [16:49:06]MH_SAM_APDU [16:49:06]CAPDU: 80 13 01 00 [16:49:06]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [16:49:06]Write i2c OK [16:49:06]MH_I2C_Read... [16:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:06]Read from MH i2c: E2 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: E2 0E 00 [16:49:06]MH_I2C_Read... [16:49:06]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 67 [16:49:06]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:49:06]wFMCommunicate OK [16:49:06]SAM_PROTO_GetShiftState done [16:49:06]FM_GetShiftState done [16:49:06]req_shift_opened done [16:49:06]requested_item shift.open_date is exist - process it [16:49:06]req_shift_open_date [16:49:06]req_shift_open_date done [16:49:06]produce_requested_data done [16:49:06]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18782,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [16:49:06]process_action_free close_receipt [16:49:06]json_value_free [16:49:06]json_value_free done [16:49:06]process_json_proto returns [16:49:06]Send response to host [16:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18782,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [16:49:06]free response buf [16:49:06]execute_script done [16:49:06]execute_script returns [16:49:06]free content buf [16:49:06]Sock 10.Close socket [16:49:06]Sock 10.Thread stoped [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]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:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:56:55]accept exits with 7 [16:56:55]New connection [16:56:55]New thread 3066608996 created [16:56:55]Thread 3066752356 joined [16:56:55]Waiting for new connection... [16:56:55] Sock 7.Parse request [16:56:55]Sock 7.Check first char [16:56:55]Sock 7.First char is OK [16:56:55]request: POST /json_proto HTTP/1.0 [16:56:55]Method: POST [16:56:55]URL: /json_proto [16:56:55]Method is POST - this is cgi request [16:56:55]url: /json_proto [16:56:55]query_string will be loaded in cgi processing [16:56:55]execute_cgi json_proto POST (null) [16:56:55]execute_cgi path=json_proto method=POST [16:56:55]POST find Content-Length [16:56:55]Host: 172.17.62.196:8080 [16:56:55]Content-Length: 662 [16:56:55]Content-Type: application/json [16:56:55] [16:56:55]POST finish read [16:56:55]Found Content-Length = 662 [16:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16706", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:55]execute_script... [16:56:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16706", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:55]POST & json_proto [16:56:55]process_json_proto [16:56:55]json parsed OK: [16:56:55]protocol is kg_v1.0 [16:56:55]action value=close_receipt [16:56:55]process_action close_receipt [16:56:55]cmd_close_receipt [16:56:55]MH_GetDate [16:56:55]Write to MH i2c: F0 00 00 50 03 42 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 09 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 09 00 50 03 00 D9 9D F1 66 CE CC 0E 66 26 [16:56:55]GetLastDocTimeStamp 1727110143 [16:56:55]current date 1727110617 [16:56:55]FM_GetShiftState [16:56:55]SAM_PROTO_GetShiftState [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 13 01 00 [16:56:55]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:56]Read from MH i2c: E2 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: E2 0E 00 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 69 [16:56:56]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:56:56]wFMCommunicate OK [16:56:56]SAM_PROTO_GetShiftState done [16:56:56]FM_GetShiftState done [16:56:56]opened in 1727050372 [16:56:56]opened+sec_in_day 1727136772 [16:56:56]quantity*price = 17000 [16:56:56]sum+1 = 17001 [16:56:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 59 23.09.2024 16:56 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18783 ФПД: 216434653638456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T165657&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18783&fm=216434653638456&tin=02508201610067®Number=0000000000152968&sum=17000 0 [16:56:57]StoreToDocumentArchive [16:56:57]shift 181 fd 18783 [16:56:57]save to /storage/0181/doc_00018783 [16:56:57]save last doc name /storage/0181/doc_00018783 to /storage/kkm_last_doc_name [16:56:57]save OK [16:56:57]Clear old archive folders... [16:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=287 [16:56:57]tlvbuf is 00C1F8E0 [16:56:57]SAM_PROTO_ClearQueue [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 09 00 00 [16:56:57]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]SAM_PROTO_ClearQueue done [16:56:57]KKMCreateOFDPacket [16:56:57]OFDProtocolAddRootSTLVToBuf [16:56:57]FM_MakeSignedData [16:56:57]FM_MakeSignedData [16:56:57]SAM_PROTO_SignData [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 01 02 [16:56:57]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]wFMCommunicate request_size=255 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 9D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [16:56:57]Write to MH i2c: E2 02 01 60 03 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 9D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 18 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]wFMCommunicate request_size=46 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5F 49 00 00 35 04 06 00 C4 D8 9E A5 AF 38 [16:56:57]Write to MH i2c: E2 31 00 61 03 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5F 49 00 00 35 04 06 00 C4 D8 9E A5 AF 38 00 00 E7 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 03 02 [16:56:57]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 0B 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 0B 00 62 03 00 67 71 FC 49 5D DF E5 B3 90 00 D2 [16:56:57]RAPDU: 67 71 FC 49 5D DF E5 B3 90 00 [16:56:57]wFMCommunicate OK [16:56:57]SAM_PROTO_SignData done [16:56:57]FM_MakeSignedData done [16:56:57]CreateOFDProtocolMessage [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 11 00 00 [16:56:57]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 17 00 [16:56:57]MH_I2C_Read... [16:56:57]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 35 39 34 35 36 90 00 39 [16:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:56:57]wFMCommunicate OK [16:56:57]CreateOFDProtocolMessage done [16:56:57]OFDSenderStorePacket 18783 [16:56:57]StoreOFDPacket docnum=18783 [16:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 B2 B3 2B 01 43 E8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 9D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5F 49 00 00 35 04 06 00 C4 D8 9E A5 AF 38 67 71 FC 49 5D DF E5 B3 [16:56:57]CheckFolder [16:56:57]dirname=/storage/ofd_packets [16:56:57]CheckFolder done [16:56:57]ProducePacketName [16:56:57]name=ofd_packets/00018783 [16:56:57]NVStorageSaveData ofd_packets/00018783 [16:56:57]File name is /storage/ofd_packets/00018783 [16:56:57]Write 337 bytes [16:56:57]NVStorageSaveData done [16:56:57]OFDSenderStorePacket done [16:56:57]KKMCreateOFDPacket done [16:56:57]NVStorageSaveData kkm_last_timestamp [16:56:57]File name is /storage/kkm_last_timestamp [16:56:57]Write 4 bytes [16:56:57]NVStorageSaveData done [16:56:57]ExternCall_PrintAddStr [16:56:57]wPrintStart [16:56:57]Write to MH i2c: 01 00 00 64 03 67 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 07 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [16:56:57]RasterBufferAndPrint [16:56:57]line Счет N : (3)16706 [16:56:57]line ИНН: 02508201610067 [16:56:57]line Контрольно-Кассовый Чек [16:56:57]line ПРОДАЖА [16:56:57]line Товар: 5449000176448 [16:56:57]line Сок Piko Pulpy апельсин ПЭТ 1л [16:56:57]line 1.000 * 170.00 [16:56:57]line = 170.00 [16:56:57]line НДС 12% НСП 1% [16:56:57]line > о реализуемом товаре [16:56:57]line ИТОГО: 170.00 [16:56:57]line НСП 1% : 1.50 [16:56:57]line НДС 12% : 18.05 [16:56:57]line Наличными: 170.00 [16:56:57]line Безнал.: 0.00 [16:56:57]line Место: АЗС № 176 "Партнер Нефть" [16:56:57]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:56:57]line СНО: Общий режим [16:56:57]line Чек 59 23.09.2024 16:56 [16:56:57]line Смена: 181 ФФД: 1.0 [16:56:57]line ЗНМ: 0300000010 [16:56:57]line РНМ: 0000000000152968 [16:56:57]line Версия ККМ: v1.0 [16:56:57]line ФМ: 0000000000959456 [16:56:57]line ФД: 18783 [16:56:57]line ФПД: 216434653638456 [16:56:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T165657&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18783&fm=216434653638456&tin=02508201610067®Number=0000000000152968&sum=17000 [16:56:58]line 0 [16:56:58]OFD Sender: Processing packet 18783 [packets to send 7, broken 6] [16:56:58]ProducePacketName [16:56:58]name=ofd_packets/00018783 [16:56:58]OFD Sender: To server: pG, [16:56:58]CommunicateWithHost lk.salyk.kg:30040 [16:56:58]ConnectInit lk.salyk.kg [16:56:58]written 0, free lines is 4095 [16:56:58]Connected sock=10 [16:56:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 B2 B3 2B 01 43 E8 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 D9 9D F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 5F 49 00 00 35 04 06 00 C4 D8 9E A5 AF 38 67 71 FC 49 5D DF E5 B3 [16:56:58]Write to MH i2c: 01 00 00 8D 03 90 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 07 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FA 0C 9D [16:56:58]RasterBufferAndPrint [16:56:58]line [16:56:58]line [16:56:58]line [16:56:58]line [16:56:58]line [16:56:58]written 0, free lines is 3327 [16:56:58]MH_Cut [16:56:58]Write to MH i2c: D1 01 00 94 03 01 69 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: D1 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: D1 01 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: D1 01 00 94 03 00 68 [16:56:58]Write to MH i2c: 01 00 00 95 03 98 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 6B 96 47 00 9D 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 35 39 34 35 36 10 04 04 00 5F 49 00 00 F4 03 04 00 3C 47 F1 66 B6 04 01 00 00 3E FD C1 10 A3 AA 2E 6D [16:56:58]CommunicateWithHost err = 0 [16:56:58]CheckOFDResponse [16:56:58]1017 (14) - 77093643461234 [16:56:58]1041 (16) - 0000000000959456 [16:56:58]1040 (4) - 18783 [16:56:58]1012 (4) - 23.09.2024 10:47 [16:56:58]1206 (1) - 0 [16:56:58]OFD Sender: Remove packet 18783 [16:56:58]ProducePacketName [16:56:58]name=ofd_packets/00018783 [16:56:58]NVStorageDeleteData [16:56:59]OFD Sender: No OFD packet to send [16:56:59]*** Cut start [16:56:59]*** Partial cut [16:56:59]*** CUTSNS_PIN = 1 [16:56:59]*** CUTSNS_PIN = 0 [16:56:59]*** Brake cut motor [16:56:59]Read from MH i2c: 01 [16:56:59]MH_I2C_Read... [16:56:59]*** Stop cut motor [16:56:59]*** Cut end [16:56:59]Read from MH i2c: 01 07 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [16:56:59]process_action close_receipt done [16:56:59]requested_data is exist [16:56:59]produce_requested_data [16:56:59]requested_item fm.sn is exist - process it [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 11 00 00 [16:56:59]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6C [16:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:56:59]wFMCommunicate OK [16:56:59]requested_item fd.num is exist - process it [16:56:59]SAM_PROTO_GetFieldsCounters [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 13 00 00 [16:56:59]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 62 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 62 00 97 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5F 49 00 00 0E 04 04 00 B5 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 51 [16:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 5F 49 00 00 0E 04 04 00 B5 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 [16:56:59]wFMCommunicate OK [16:56:59]SAM_PROTO_GetFieldsCounters done [16:56:59]requested_item shift.num is exist - process it [16:56:59]requested_item shift.opened is exist - process it [16:56:59]req_shift_opened [16:56:59]FM_GetShiftState [16:56:59]SAM_PROTO_GetShiftState [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 13 01 00 [16:56:59]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 0E 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B0 [16:56:59]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:56:59]wFMCommunicate OK [16:56:59]SAM_PROTO_GetShiftState done [16:56:59]FM_GetShiftState done [16:56:59]req_shift_opened done [16:56:59]requested_item shift.open_date is exist - process it [16:56:59]req_shift_open_date [16:56:59]req_shift_open_date done [16:56:59]produce_requested_data done [16:56:59]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18783,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [16:56:59]process_action_free close_receipt [16:56:59]json_value_free [16:56:59]json_value_free done [16:56:59]process_json_proto returns [16:56:59]Send response to host [16:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18783,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [16:56:59]free response buf [16:56:59]execute_script done [16:56:59]execute_script returns [16:56:59]free content buf [16:56:59]Sock 7.Close socket [16:56:59]Sock 7.Thread stoped [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:44]accept exits with 9 [16:58:44]New connection [16:58:44]New thread 3066752356 created [16:58:44]Thread 3066608996 joined [16:58:44]Waiting for new connection... [16:58:44] Sock 9.Parse request [16:58:44]Sock 9.Check first char [16:58:44]Sock 9.First char is OK [16:58:44]request: POST /json_proto HTTP/1.0 [16:58:44]Method: POST [16:58:44]URL: /json_proto [16:58:44]Method is POST - this is cgi request [16:58:44]url: /json_proto [16:58:44]query_string will be loaded in cgi processing [16:58:44]execute_cgi json_proto POST (null) [16:58:44]execute_cgi path=json_proto method=POST [16:58:44]POST find Content-Length [16:58:44]Host: 172.17.62.196:8080 [16:58:44]Content-Length: 638 [16:58:44]Content-Type: application/json [16:58:44] [16:58:44]POST finish read [16:58:44]Found Content-Length = 638 [16:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16707", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:44]execute_script... [16:58:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16707", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:44]POST & json_proto [16:58:44]process_json_proto [16:58:44]json parsed OK: [16:58:44]protocol is kg_v1.0 [16:58:44]action value=close_receipt [16:58:44]process_action close_receipt [16:58:44]cmd_close_receipt [16:58:44]MH_GetDate [16:58:44]Write to MH i2c: F0 00 00 99 03 8B [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: F0 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: F0 09 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: F0 09 00 99 03 00 45 9E F1 66 CE CC 0E 66 DC [16:58:44]GetLastDocTimeStamp 1727110617 [16:58:44]current date 1727110725 [16:58:44]FM_GetShiftState [16:58:44]SAM_PROTO_GetShiftState [16:58:44]wFMCommunicate request_size=4 [16:58:44]MH_SAM_APDU [16:58:44]CAPDU: 80 13 01 00 [16:58:44]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [16:58:44]Write i2c OK [16:58:44]MH_I2C_Read... [16:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:44]Read from MH i2c: E2 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 0E 00 [16:58:44]MH_I2C_Read... [16:58:44]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B2 [16:58:44]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:58:44]wFMCommunicate OK [16:58:44]SAM_PROTO_GetShiftState done [16:58:44]FM_GetShiftState done [16:58:44]opened in 1727050372 [16:58:44]opened+sec_in_day 1727136772 [16:58:44]quantity*price = 4000 [16:58:44]sum+1 = 4001 [16:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 60 23.09.2024 16:58 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18784 ФПД: 94593894814624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T165845&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18784&fm=94593894814624&tin=02508201610067®Number=0000000000152968&sum=4000 0 [16:58:45]StoreToDocumentArchive [16:58:45]shift 181 fd 18784 [16:58:45]save to /storage/0181/doc_00018784 [16:58:45]save last doc name /storage/0181/doc_00018784 to /storage/kkm_last_doc_name [16:58:45]save OK [16:58:45]Clear old archive folders... [16:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:58:45]tlvbuf is 00C0A080 [16:58:45]SAM_PROTO_ClearQueue [16:58:45]wFMCommunicate request_size=4 [16:58:45]MH_SAM_APDU [16:58:45]CAPDU: 80 09 00 00 [16:58:45]Write to MH i2c: E2 08 00 A7 03 80 09 00 00 00 00 00 00 1C [16:58:45]Write i2c OK [16:58:45]MH_I2C_Read... [16:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:45]Read from MH i2c: E2 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: E2 03 00 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [16:58:45]RAPDU: 90 00 [16:58:45]wFMCommunicate OK [16:58:45]SAM_PROTO_ClearQueue done [16:58:45]KKMCreateOFDPacket [16:58:45]OFDProtocolAddRootSTLVToBuf [16:58:45]FM_MakeSignedData [16:58:45]FM_MakeSignedData [16:58:45]SAM_PROTO_SignData [16:58:45]wFMCommunicate request_size=4 [16:58:45]MH_SAM_APDU [16:58:45]CAPDU: 80 0D 01 02 [16:58:45]Write to MH i2c: E2 08 00 A8 03 80 0D 01 02 00 00 00 00 24 [16:58:45]Write i2c OK [16:58:45]MH_I2C_Read... [16:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:45]Read from MH i2c: E2 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: E2 03 00 [16:58:45]MH_I2C_Read... [16:58:45]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [16:58:45]RAPDU: 90 00 [16:58:45]wFMCommunicate OK [16:58:45]wFMCommunicate request_size=255 [16:58:45]MH_SAM_APDU [16:58:45]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 45 9E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [16:58:45]Write to MH i2c: E2 02 01 A9 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 45 9E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 86 [16:58:45]Write i2c OK [16:58:45]MH_I2C_Read... [16:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:46]Read from MH i2c: E2 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 03 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [16:58:46]RAPDU: 90 00 [16:58:46]wFMCommunicate OK [16:58:46]wFMCommunicate request_size=33 [16:58:46]MH_SAM_APDU [16:58:46]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 60 49 00 00 35 04 06 00 56 08 5B 7F 93 A0 [16:58:46]Write to MH i2c: E2 24 00 AA 03 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 60 49 00 00 35 04 06 00 56 08 5B 7F 93 A0 00 00 D0 [16:58:46]Write i2c OK [16:58:46]MH_I2C_Read... [16:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:46]Read from MH i2c: E2 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 03 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [16:58:46]RAPDU: 90 00 [16:58:46]wFMCommunicate OK [16:58:46]wFMCommunicate request_size=4 [16:58:46]MH_SAM_APDU [16:58:46]CAPDU: 80 0D 03 02 [16:58:46]Write to MH i2c: E2 08 00 AB 03 80 0D 03 02 00 00 00 00 29 [16:58:46]Write i2c OK [16:58:46]MH_I2C_Read... [16:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:46]Read from MH i2c: E2 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 0B 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 0B 00 AB 03 00 09 E2 1E 95 85 AC 76 16 90 00 85 [16:58:46]RAPDU: 09 E2 1E 95 85 AC 76 16 90 00 [16:58:46]wFMCommunicate OK [16:58:46]SAM_PROTO_SignData done [16:58:46]FM_MakeSignedData done [16:58:46]CreateOFDProtocolMessage [16:58:46]wFMCommunicate request_size=4 [16:58:46]MH_SAM_APDU [16:58:46]CAPDU: 80 11 00 00 [16:58:46]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [16:58:46]Write i2c OK [16:58:46]MH_I2C_Read... [16:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:46]Read from MH i2c: E2 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 17 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 82 [16:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:58:46]wFMCommunicate OK [16:58:46]CreateOFDProtocolMessage done [16:58:46]OFDSenderStorePacket 18784 [16:58:46]StoreOFDPacket docnum=18784 [16:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 D6 E0 1E 01 4E 52 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 45 9E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 60 49 00 00 35 04 06 00 56 08 5B 7F 93 A0 09 E2 1E 95 85 AC 76 16 [16:58:46]CheckFolder [16:58:46]dirname=/storage/ofd_packets [16:58:46]CheckFolder done [16:58:46]ProducePacketName [16:58:46]name=ofd_packets/00018784 [16:58:46]NVStorageSaveData ofd_packets/00018784 [16:58:46]File name is /storage/ofd_packets/00018784 [16:58:46]Write 324 bytes [16:58:46]NVStorageSaveData done [16:58:46]OFDSenderStorePacket done [16:58:46]KKMCreateOFDPacket done [16:58:46]NVStorageSaveData kkm_last_timestamp [16:58:46]File name is /storage/kkm_last_timestamp [16:58:46]Write 4 bytes [16:58:46]NVStorageSaveData done [16:58:46]ExternCall_PrintAddStr [16:58:46]wPrintStart [16:58:46]Write to MH i2c: 01 00 00 AD 03 B0 [16:58:46]Write i2c OK [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: 01 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: 01 07 00 [16:58:46]MH_I2C_Read... [16:58:46]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [16:58:46]RasterBufferAndPrint [16:58:46]line Счет N : (3)16707 [16:58:46]line ИНН: 02508201610067 [16:58:46]line Контрольно-Кассовый Чек [16:58:46]line ПРОДАЖА [16:58:46]line Товар: 4700000160044 [16:58:46]line Вода Ыссык Ата 0,5л [16:58:46]line 1.000 * 40.00 [16:58:46]line = 40.00 [16:58:46]line НДС 12% НСП 1% [16:58:46]line > о реализуемом товаре [16:58:46]line ИТОГО: 40.00 [16:58:46]line НСП 1% : 0.35 [16:58:46]line НДС 12% : 4.25 [16:58:46]line Наличными: 40.00 [16:58:46]line Безнал.: 0.00 [16:58:46]line Место: АЗС № 176 "Партнер Нефть" [16:58:46]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [16:58:46]line СНО: Общий режим [16:58:46]line Чек 60 23.09.2024 16:58 [16:58:46]line Смена: 181 ФФД: 1.0 [16:58:46]line ЗНМ: 0300000010 [16:58:46]line РНМ: 0000000000152968 [16:58:46]line Версия ККМ: v1.0 [16:58:46]line ФМ: 0000000000959456 [16:58:46]line ФД: 18784 [16:58:46]line ФПД: 94593894814624 [16:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T165845&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18784&fm=94593894814624&tin=02508201610067®Number=0000000000152968&sum=4000 [16:58:46]line 0 [16:58:46]written 0, free lines is 4095 [16:58:46]OFD Sender: Processing packet 18784 [packets to send 7, broken 6] [16:58:46]ProducePacketName [16:58:46]name=ofd_packets/00018784 [16:58:46]OFD Sender: To server: pG, [16:58:46]CommunicateWithHost lk.salyk.kg:30040 [16:58:46]ConnectInit lk.salyk.kg [16:58:46]Connected sock=7 [16:58:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 D6 E0 1E 01 4E 52 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 45 9E F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 60 49 00 00 35 04 06 00 56 08 5B 7F 93 A0 09 E2 1E 95 85 AC 76 16 [16:58:47]Write to MH i2c: 01 00 00 D5 03 D8 [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 D5 03 00 00 00 00 00 0C 0D F8 [16:58:47]RasterBufferAndPrint [16:58:47]line [16:58:47]line [16:58:47]line [16:58:47]line [16:58:47]line [16:58:47]written 0, free lines is 3346 [16:58:47]MH_Cut [16:58:47]Write to MH i2c: D1 01 00 DC 03 01 B1 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: D1 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: D1 01 00 [16:58:47]MH_I2C_Read... [16:58:47]Read from MH i2c: D1 01 00 DC 03 00 B0 [16:58:47]Write to MH i2c: 01 00 00 DD 03 E0 [16:58:47]Write i2c OK [16:58:47]MH_I2C_Read... [16:58:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 87 2A 47 00 AA 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 35 39 34 35 36 10 04 04 00 60 49 00 00 F4 03 04 00 A9 47 F1 66 B6 04 01 00 00 FD 27 DD 2A 1B 69 F3 10 [16:58:47]CommunicateWithHost err = 0 [16:58:47]CheckOFDResponse [16:58:47]1017 (14) - 77093643461234 [16:58:47]1041 (16) - 0000000000959456 [16:58:47]1040 (4) - 18784 [16:58:47]1012 (4) - 23.09.2024 10:49 [16:58:47]1206 (1) - 0 [16:58:47]OFD Sender: Remove packet 18784 [16:58:47]ProducePacketName [16:58:47]name=ofd_packets/00018784 [16:58:47]NVStorageDeleteData [16:58:47]OFD Sender: No OFD packet to send [16:58:47]*** Cut start [16:58:47]*** Partial cut [16:58:47]*** CUTSNS_PIN = 1 [16:58:47]*** CUTSNS_PIN = 0 [16:58:47]*** Brake cut motor [16:58:48]Read from MH i2c: 01 [16:58:48]MH_I2C_Read... [16:58:48]*** Stop cut motor [16:58:48]*** Cut end [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 DD 03 00 00 00 00 00 FF 0F F5 [16:58:48]process_action close_receipt done [16:58:48]requested_data is exist [16:58:48]produce_requested_data [16:58:48]requested_item fm.sn is exist - process it [16:58:48]wFMCommunicate request_size=4 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 11 00 00 [16:58:48]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 17 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B4 [16:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [16:58:48]wFMCommunicate OK [16:58:48]requested_item fd.num is exist - process it [16:58:48]SAM_PROTO_GetFieldsCounters [16:58:48]wFMCommunicate request_size=4 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 13 00 00 [16:58:48]Write to MH i2c: E2 08 00 DF 03 80 13 00 00 00 00 00 00 5E [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 62 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 62 00 DF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 60 49 00 00 0E 04 04 00 B5 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 9D [16:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 60 49 00 00 0E 04 04 00 B5 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 [16:58:48]wFMCommunicate OK [16:58:48]SAM_PROTO_GetFieldsCounters done [16:58:48]requested_item shift.num is exist - process it [16:58:48]requested_item shift.opened is exist - process it [16:58:48]req_shift_opened [16:58:48]FM_GetShiftState [16:58:48]SAM_PROTO_GetShiftState [16:58:48]wFMCommunicate request_size=4 [16:58:48]MH_SAM_APDU [16:58:48]CAPDU: 80 13 01 00 [16:58:48]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [16:58:48]Write i2c OK [16:58:48]MH_I2C_Read... [16:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:48]Read from MH i2c: E2 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 0E 00 [16:58:48]MH_I2C_Read... [16:58:48]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F8 [16:58:48]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [16:58:48]wFMCommunicate OK [16:58:48]SAM_PROTO_GetShiftState done [16:58:48]FM_GetShiftState done [16:58:48]req_shift_opened done [16:58:48]requested_item shift.open_date is exist - process it [16:58:48]req_shift_open_date [16:58:48]req_shift_open_date done [16:58:48]produce_requested_data done [16:58:48]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18784,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [16:58:48]process_action_free close_receipt [16:58:48]json_value_free [16:58:48]json_value_free done [16:58:48]process_json_proto returns [16:58:48]Send response to host [16:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18784,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [16:58:48]free response buf [16:58:48]execute_script done [16:58:48]execute_script returns [16:58:48]free content buf [16:58:48]Sock 9.Close socket [16:58:48]Sock 9.Thread stoped [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06: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:13]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26: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:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:44]accept exits with 10 [17:34:44]New connection [17:34:44]New thread 3066608996 created [17:34:44]Thread 3066752356 joined [17:34:44]Waiting for new connection... [17:34:44] Sock 10.Parse request [17:34:44]Sock 10.Check first char [17:34:44]Sock 10.First char is OK [17:34:44]request: POST /json_proto HTTP/1.0 [17:34:44]Method: POST [17:34:44]URL: /json_proto [17:34:44]Method is POST - this is cgi request [17:34:44]url: /json_proto [17:34:44]query_string will be loaded in cgi processing [17:34:44]execute_cgi json_proto POST (null) [17:34:44]execute_cgi path=json_proto method=POST [17:34:44]POST find Content-Length [17:34:44]Host: 172.17.62.196:8080 [17:34:44]Content-Length: 629 [17:34:44]Content-Type: application/json [17:34:44] [17:34:44]POST finish read [17:34:44]Found Content-Length = 629 [17:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16708", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:44]execute_script... [17:34:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16708", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:44]POST & json_proto [17:34:44]process_json_proto [17:34:44]json parsed OK: [17:34:44]protocol is kg_v1.0 [17:34:44]action value=close_receipt [17:34:44]process_action close_receipt [17:34:44]cmd_close_receipt [17:34:44]MH_GetDate [17:34:44]Write to MH i2c: F0 00 00 E1 03 D3 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: F0 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: F0 09 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: F0 09 00 E1 03 00 B5 A6 F1 66 CE CC 0E 66 9C [17:34:44]GetLastDocTimeStamp 1727110725 [17:34:44]current date 1727112885 [17:34:44]FM_GetShiftState [17:34:44]SAM_PROTO_GetShiftState [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 13 01 00 [17:34:44]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 0E 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FA [17:34:44]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [17:34:44]wFMCommunicate OK [17:34:44]SAM_PROTO_GetShiftState done [17:34:44]FM_GetShiftState done [17:34:44]opened in 1727050372 [17:34:44]opened+sec_in_day 1727136772 [17:34:44]quantity*price = 5000 [17:34:44]sum+1 = 5001 [17:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 61 23.09.2024 17:34 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18785 ФПД: 84454227566630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173446&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18785&fm=84454227566630&tin=02508201610067®Number=0000000000152968&sum=5000 0 [17:34:45]StoreToDocumentArchive [17:34:45]shift 181 fd 18785 [17:34:45]save to /storage/0181/doc_00018785 [17:34:45]save last doc name /storage/0181/doc_00018785 to /storage/kkm_last_doc_name [17:34:45]save OK [17:34:45]Clear old archive folders... [17:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:34:45]tlvbuf is 00C09F60 [17:34:45]SAM_PROTO_ClearQueue [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 09 00 00 [17:34:45]Write to MH i2c: E2 08 00 EF 03 80 09 00 00 00 00 00 00 64 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 03 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [17:34:45]RAPDU: 90 00 [17:34:45]wFMCommunicate OK [17:34:45]SAM_PROTO_ClearQueue done [17:34:45]KKMCreateOFDPacket [17:34:45]OFDProtocolAddRootSTLVToBuf [17:34:45]FM_MakeSignedData [17:34:45]FM_MakeSignedData [17:34:45]SAM_PROTO_SignData [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 0D 01 02 [17:34:45]Write to MH i2c: E2 08 00 F0 03 80 0D 01 02 00 00 00 00 6C [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 03 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [17:34:45]RAPDU: 90 00 [17:34:45]wFMCommunicate OK [17:34:45]wFMCommunicate request_size=255 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B6 A6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [17:34:45]Write to MH i2c: E2 02 01 F1 03 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B6 A6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 2F [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 03 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [17:34:46]RAPDU: 90 00 [17:34:46]wFMCommunicate OK [17:34:46]wFMCommunicate request_size=28 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 0D 02 02 17 35 39 34 35 36 10 04 04 00 61 49 00 00 35 04 06 00 4C CF 88 3B E0 26 [17:34:46]Write to MH i2c: E2 1F 00 F2 03 80 0D 02 02 17 00 35 39 34 35 36 10 04 04 00 61 49 00 00 35 04 06 00 4C CF 88 3B E0 26 00 00 8F [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 03 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [17:34:46]RAPDU: 90 00 [17:34:46]wFMCommunicate OK [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 0D 03 02 [17:34:46]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0B 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 0B 00 F3 03 00 98 4D DB F6 99 45 5B 78 90 00 D9 [17:34:46]RAPDU: 98 4D DB F6 99 45 5B 78 90 00 [17:34:46]wFMCommunicate OK [17:34:46]SAM_PROTO_SignData done [17:34:46]FM_MakeSignedData done [17:34:46]CreateOFDProtocolMessage [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 11 00 00 [17:34:46]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** 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 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CA [17:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:34:46]wFMCommunicate OK [17:34:46]CreateOFDProtocolMessage done [17:34:46]OFDSenderStorePacket 18785 [17:34:46]StoreOFDPacket docnum=18785 [17:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 59 2C 19 01 A3 57 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B6 A6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 61 49 00 00 35 04 06 00 4C CF 88 3B E0 26 98 4D DB F6 99 45 5B 78 [17:34:46]CheckFolder [17:34:46]dirname=/storage/ofd_packets [17:34:46]CheckFolder done [17:34:46]ProducePacketName [17:34:46]name=ofd_packets/00018785 [17:34:46]NVStorageSaveData ofd_packets/00018785 [17:34:46]File name is /storage/ofd_packets/00018785 [17:34:46]Write 319 bytes [17:34:46]NVStorageSaveData done [17:34:46]OFDSenderStorePacket done [17:34:46]KKMCreateOFDPacket done [17:34:46]NVStorageSaveData kkm_last_timestamp [17:34:46]File name is /storage/kkm_last_timestamp [17:34:46]Write 4 bytes [17:34:46]NVStorageSaveData done [17:34:46]ExternCall_PrintAddStr [17:34:46]wPrintStart [17:34:46]Write to MH i2c: 01 00 00 F5 03 F8 [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: 01 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: 01 07 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [17:34:46]RasterBufferAndPrint [17:34:46]line Счет N : (3)16708 [17:34:46]line ИНН: 02508201610067 [17:34:46]line Контрольно-Кассовый Чек [17:34:46]line ПРОДАЖА [17:34:46]line Товар: 4700000160358 [17:34:46]line Вода Легенда 1л [17:34:46]line 1.000 * 50.00 [17:34:46]line = 50.00 [17:34:46]line НДС 12% НСП 1% [17:34:46]line > о реализуемом товаре [17:34:46]line ИТОГО: 50.00 [17:34:46]line НСП 1% : 0.44 [17:34:46]line НДС 12% : 5.31 [17:34:46]line Наличными: 50.00 [17:34:46]line Безнал.: 0.00 [17:34:46]line Место: АЗС № 176 "Партнер Нефть" [17:34:46]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:34:46]line СНО: Общий режим [17:34:46]line Чек 61 23.09.2024 17:34 [17:34:46]line Смена: 181 ФФД: 1.0 [17:34:46]line ЗНМ: 0300000010 [17:34:46]line РНМ: 0000000000152968 [17:34:46]line Версия ККМ: v1.0 [17:34:46]line ФМ: 0000000000959456 [17:34:46]line ФД: 18785 [17:34:46]line ФПД: 84454227566630 [17:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T173446&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18785&fm=84454227566630&tin=02508201610067®Number=0000000000152968&sum=5000 [17:34:46]line 0 [17:34:46]OFD Sender: Processing packet 18785 [packets to send 7, broken 6] [17:34:46]ProducePacketName [17:34:46]name=ofd_packets/00018785 [17:34:46]OFD Sender: To server: pG, [17:34:46]CommunicateWithHost lk.salyk.kg:30040 [17:34:46]ConnectInit lk.salyk.kg [17:34:46]written 0, free lines is 4095 [17:34:46]Connected sock=7 [17:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 21 01 00 00 59 2C 19 01 A3 57 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B6 A6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 61 49 00 00 35 04 06 00 4C CF 88 3B E0 26 98 4D DB F6 99 45 5B 78 [17:34:46]Write to MH i2c: 01 00 00 1D 04 21 [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: 01 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: 01 07 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 10 0D 45 [17:34:46]RasterBufferAndPrint [17:34:46]line [17:34:46]line [17:34:46]line [17:34:46]line [17:34:46]line [17:34:46]written 0, free lines is 3351 [17:34:47]MH_Cut [17:34:47]Write to MH i2c: D1 01 00 24 04 01 FA [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: D1 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: D1 01 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: D1 01 00 24 04 00 F9 [17:34:47]Write to MH i2c: 01 00 00 25 04 29 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B2 32 47 00 4B 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 35 39 34 35 36 10 04 04 00 61 49 00 00 F4 03 04 00 19 50 F1 66 B6 04 01 00 00 58 05 4E A6 18 34 31 31 [17:34:47]CommunicateWithHost err = 0 [17:34:47]CheckOFDResponse [17:34:47]1017 (14) - 77093643461234 [17:34:47]1041 (16) - 0000000000959456 [17:34:47]1040 (4) - 18785 [17:34:47]1012 (4) - 23.09.2024 11:25 [17:34:47]1206 (1) - 0 [17:34:47]OFD Sender: Remove packet 18785 [17:34:47]ProducePacketName [17:34:47]name=ofd_packets/00018785 [17:34:47]NVStorageDeleteData [17:34:47]OFD Sender: No OFD packet to send [17:34:47]*** Cut start [17:34:47]*** Partial cut [17:34:47]*** CUTSNS_PIN = 1 [17:34:47]*** CUTSNS_PIN = 0 [17:34:47]*** Brake cut motor [17:34:48]Read from MH i2c: 01 [17:34:48]MH_I2C_Read... [17:34:48]*** Stop cut motor [17:34:48]*** Cut end [17:34:48]Read from MH i2c: 01 07 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [17:34:48]process_action close_receipt done [17:34:48]requested_data is exist [17:34:48]produce_requested_data [17:34:48]requested_item fm.sn is exist - process it [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 11 00 00 [17:34:48]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:48]Read from MH i2c: E2 17 00 [17:34:48]MH_I2C_Read... [17:34:48]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 35 39 34 35 36 90 00 FD [17:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:34:48]wFMCommunicate OK [17:34:48]requested_item fd.num is exist - process it [17:34:48]SAM_PROTO_GetFieldsCounters [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 13 00 00 [17:34:48]Write to MH i2c: E2 08 00 27 04 80 13 00 00 00 00 00 00 A7 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 62 00 [17:34:48]MH_I2C_Read... [17:34:48]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 61 49 00 00 0E 04 04 00 B5 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 EA [17:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 61 49 00 00 0E 04 04 00 B5 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 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_GetFieldsCounters done [17:34:48]requested_item shift.num is exist - process it [17:34:48]requested_item shift.opened is exist - process it [17:34:48]req_shift_opened [17:34:48]FM_GetShiftState [17:34:48]SAM_PROTO_GetShiftState [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 13 01 00 [17:34:48]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0E 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 41 [17:34:48]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_GetShiftState done [17:34:48]FM_GetShiftState done [17:34:48]req_shift_opened done [17:34:48]requested_item shift.open_date is exist - process it [17:34:48]req_shift_open_date [17:34:48]req_shift_open_date done [17:34:48]produce_requested_data done [17:34:48]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18785,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [17:34:48]process_action_free close_receipt [17:34:48]json_value_free [17:34:48]json_value_free done [17:34:48]process_json_proto returns [17:34:48]Send response to host [17:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18785,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [17:34:48]free response buf [17:34:48]execute_script done [17:34:48]execute_script returns [17:34:48]free content buf [17:34:48]Sock 10.Close socket [17:34:48]Sock 10.Thread stoped [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:19]accept exits with 9 [17:43:19]New connection [17:43:19]New thread 3066752356 created [17:43:19]Thread 3066608996 joined [17:43:19]Waiting for new connection... [17:43:19] Sock 9.Parse request [17:43:19]Sock 9.Check first char [17:43:19]Sock 9.First char is OK [17:43:19]request: POST /json_proto HTTP/1.0 [17:43:19]Method: POST [17:43:19]URL: /json_proto [17:43:19]Method is POST - this is cgi request [17:43:19]url: /json_proto [17:43:19]query_string will be loaded in cgi processing [17:43:19]execute_cgi json_proto POST (null) [17:43:19]execute_cgi path=json_proto method=POST [17:43:19]POST find Content-Length [17:43:19]Host: 172.17.62.196:8080 [17:43:19]Content-Length: 685 [17:43:19]Content-Type: application/json [17:43:19] [17:43:19]POST finish read [17:43:19]Found Content-Length = 685 [17:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.20, "quantity" : 26.890, "sum" : 1000.31, "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:43:19]execute_script... [17:43: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)116402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.20, "quantity" : 26.890, "sum" : 1000.31, "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:43:19]POST & json_proto [17:43:19]process_json_proto [17:43:19]json parsed OK: [17:43:19]protocol is kg_v1.0 [17:43:19]action value=close_receipt [17:43:19]process_action close_receipt [17:43:19]cmd_close_receipt [17:43:19]MH_GetDate [17:43:19]Write to MH i2c: F0 00 00 29 04 1C [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: F0 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: F0 09 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: F0 09 00 29 04 00 B9 A8 F1 66 CE CC 0E 66 EB [17:43:19]GetLastDocTimeStamp 1727112886 [17:43:19]current date 1727113401 [17:43:19]FM_GetShiftState [17:43:19]SAM_PROTO_GetShiftState [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 13 01 00 [17:43:19]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:20]Read from MH i2c: E2 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 0E 00 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 43 [17:43:20]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [17:43:20]wFMCommunicate OK [17:43:20]SAM_PROTO_GetShiftState done [17:43:20]FM_GetShiftState done [17:43:20]opened in 1727050372 [17:43:20]opened+sec_in_day 1727136772 [17:43:20]quantity*price = 100030 [17:43:20]sum+1 = 100032 [17:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 62 23.09.2024 17:43 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18786 ФПД: 151403459520631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174321&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18786&fm=151403459520631&tin=02508201610067®Number=0000000000152968&sum=100000 [17:43:21]StoreToDocumentArchive [17:43:21]shift 181 fd 18786 [17:43:21]save to /storage/0181/doc_00018786 [17:43:21]save last doc name /storage/0181/doc_00018786 to /storage/kkm_last_doc_name [17:43:21]save OK [17:43:21]Clear old archive folders... [17:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:43:21]tlvbuf is 00BF36F0 [17:43:21]SAM_PROTO_ClearQueue [17:43:21]wFMCommunicate request_size=4 [17:43:21]MH_SAM_APDU [17:43:21]CAPDU: 80 09 00 00 [17:43:21]Write to MH i2c: E2 08 00 37 04 80 09 00 00 00 00 00 00 AD [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:21]Read from MH i2c: E2 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [17:43:21]RAPDU: 90 00 [17:43:21]wFMCommunicate OK [17:43:21]SAM_PROTO_ClearQueue done [17:43:21]KKMCreateOFDPacket [17:43:21]OFDProtocolAddRootSTLVToBuf [17:43:21]FM_MakeSignedData [17:43:21]FM_MakeSignedData [17:43:21]SAM_PROTO_SignData [17:43:21]wFMCommunicate request_size=4 [17:43:21]MH_SAM_APDU [17:43:21]CAPDU: 80 0D 01 02 [17:43:21]Write to MH i2c: E2 08 00 38 04 80 0D 01 02 00 00 00 00 B5 [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:21]Read from MH i2c: E2 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [17:43:21]RAPDU: 90 00 [17:43:21]wFMCommunicate OK [17:43:21]wFMCommunicate request_size=255 [17:43:21]MH_SAM_APDU [17:43: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 88 0E 00 00 00 00 13 04 06 00 BF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 A8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 62 49 00 00 35 04 06 00 89 B3 [17:43:21]Write to MH i2c: E2 02 01 39 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 88 0E 00 00 00 00 13 04 06 00 BF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 A8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 62 49 00 00 35 04 06 00 89 B3 00 00 BF [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:21]Read from MH i2c: E2 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [17:43:21]RAPDU: 90 00 [17:43:21]wFMCommunicate OK [17:43:21]wFMCommunicate request_size=9 [17:43:21]MH_SAM_APDU [17:43:21]CAPDU: 80 0D 02 02 04 5D 6C 28 77 [17:43:21]Write to MH i2c: E2 0C 00 3A 04 80 0D 02 02 04 00 5D 6C 28 77 00 00 28 [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:21]Read from MH i2c: E2 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [17:43:21]RAPDU: 90 00 [17:43:21]wFMCommunicate OK [17:43:21]wFMCommunicate request_size=4 [17:43:21]MH_SAM_APDU [17:43:21]CAPDU: 80 0D 03 02 [17:43:21]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:21]Read from MH i2c: E2 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 0B 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 0B 00 3B 04 00 FA 8A 1A 54 1E 67 24 BB 90 00 11 [17:43:21]RAPDU: FA 8A 1A 54 1E 67 24 BB 90 00 [17:43:21]wFMCommunicate OK [17:43:21]SAM_PROTO_SignData done [17:43:21]FM_MakeSignedData done [17:43:21]CreateOFDProtocolMessage [17:43:21]wFMCommunicate request_size=4 [17:43:21]MH_SAM_APDU [17:43:21]CAPDU: 80 11 00 00 [17:43:21]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:21]Read from MH i2c: E2 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 17 00 [17:43:21]MH_I2C_Read... [17:43:21]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 35 39 34 35 36 90 00 13 [17:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:43:21]wFMCommunicate OK [17:43:21]CreateOFDProtocolMessage done [17:43:21]OFDSenderStorePacket 18786 [17:43:21]StoreOFDPacket docnum=18786 [17:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0E 01 00 00 C3 6A 06 01 A8 4F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 88 0E 00 00 00 00 13 04 06 00 BF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 A8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 62 49 00 00 35 04 06 00 89 B3 5D 6C 28 77 FA 8A 1A 54 1E 67 24 BB [17:43:21]CheckFolder [17:43:21]dirname=/storage/ofd_packets [17:43:21]CheckFolder done [17:43:21]ProducePacketName [17:43:21]name=ofd_packets/00018786 [17:43:21]NVStorageSaveData ofd_packets/00018786 [17:43:21]File name is /storage/ofd_packets/00018786 [17:43:21]Write 300 bytes [17:43:21]NVStorageSaveData done [17:43:21]OFDSenderStorePacket done [17:43:21]KKMCreateOFDPacket done [17:43:21]NVStorageSaveData kkm_last_timestamp [17:43:21]File name is /storage/kkm_last_timestamp [17:43:21]Write 4 bytes [17:43:21]NVStorageSaveData done [17:43:21]ExternCall_PrintAddStr [17:43:21]wPrintStart [17:43:21]Write to MH i2c: 01 00 00 3D 04 41 [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: 01 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: 01 07 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [17:43:21]RasterBufferAndPrint [17:43:21]line Счет N : (1)116402 [17:43:21]line ИНН: 02508201610067 [17:43:21]line Контрольно-Кассовый Чек [17:43:21]line ПРОДАЖА [17:43:21]line ТРК (МРК, ГНК) : 71 [17:43:21]line Товар: 2711190000 [17:43:21]line ГАЗ-К-3 [17:43:21]line 26.890 * 37.20 [17:43:21]line = 1000.31 [17:43:21]line НДС 12% НСП 1% [17:43:21]line > о реализуемом товаре [17:43:21]line ОКРУГЛЕНИЕ: -0.31 [17:43:21]line ИТОГО: 1000.00 [17:43:21]line Внесено: 1000.00 [17:43:21]line СДАЧА: 0.00 [17:43:21]line НСП 1% : 8.85 [17:43:21]line НДС 12% : 106.23 [17:43:21]line Наличными: 1000.00 [17:43:21]line Безнал.: 0.00 [17:43:21]line Место: АЗС № 176 "Партнер Нефть" [17:43:21]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:43:21]line СНО: Общий режим [17:43:21]line Чек 62 23.09.2024 17:43 [17:43:21]line Смена: 181 ФФД: 1.0 [17:43:21]line ЗНМ: 0300000010 [17:43:21]line РНМ: 0000000000152968 [17:43:21]line Версия ККМ: v1.0 [17:43:21]line ФМ: 0000000000959456 [17:43:21]line ФД: 18786 [17:43:21]line ФПД: 151403459520631 [17:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174321&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18786&fm=151403459520631&tin=02508201610067®Number=0000000000152968&sum=100000 [17:43:21]OFD Sender: Processing packet 18786 [packets to send 7, broken 6] [17:43:21]ProducePacketName [17:43:21]name=ofd_packets/00018786 [17:43:21]OFD Sender: To server: pG, [17:43:21]CommunicateWithHost lk.salyk.kg:30040 [17:43:21]ConnectInit lk.salyk.kg [17:43:21]written 0, free lines is 4095 [17:43:22]Connected sock=10 [17:43:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0E 01 00 00 C3 6A 06 01 A8 4F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 88 0E 00 00 00 00 13 04 06 00 BF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 A8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 62 49 00 00 35 04 06 00 89 B3 5D 6C 28 77 FA 8A 1A 54 1E 67 24 BB [17:43:22]Write to MH i2c: 01 00 00 68 04 6C [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: 01 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: 01 07 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: 01 07 00 68 04 00 00 00 00 00 EB 0C 6A [17:43:22]RasterBufferAndPrint [17:43:22]line [17:43:22]line [17:43:22]line [17:43:22]line [17:43:22]line [17:43:22]written 0, free lines is 3314 [17:43:22]MH_Cut [17:43:22]Write to MH i2c: D1 01 00 6F 04 01 45 [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: D1 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: D1 01 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: D1 01 00 6F 04 00 44 [17:43:22]Write to MH i2c: 01 00 00 70 04 74 [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 E4 7F 47 00 1B CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 62 49 00 00 F4 03 04 00 1C 52 F1 66 B6 04 01 00 00 19 13 76 49 E6 05 EF 10 [17:43:22]CommunicateWithHost err = 0 [17:43:22]CheckOFDResponse [17:43:22]1017 (14) - 77093643461234 [17:43:22]1041 (16) - 0000000000959456 [17:43:22]1040 (4) - 18786 [17:43:22]1012 (4) - 23.09.2024 11:33 [17:43:22]1206 (1) - 0 [17:43:22]OFD Sender: Remove packet 18786 [17:43:22]ProducePacketName [17:43:22]name=ofd_packets/00018786 [17:43:22]NVStorageDeleteData [17:43:22]OFD Sender: No OFD packet to send [17:43:23]*** Cut start [17:43:23]*** Partial cut [17:43:23]*** CUTSNS_PIN = 1 [17:43:23]*** CUTSNS_PIN = 0 [17:43:23]*** Brake cut motor [17:43:23]Read from MH i2c: 01 [17:43:23]MH_I2C_Read... [17:43:23]*** Stop cut motor [17:43:23]*** Cut end [17:43:23]Read from MH i2c: 01 07 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [17:43:23]process_action close_receipt done [17:43:23]requested_data is exist [17:43:23]produce_requested_data [17:43:23]requested_item fm.sn is exist - process it [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 11 00 00 [17:43:23]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 17 00 [17:43:23]MH_I2C_Read... [17:43:23]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 35 39 34 35 36 90 00 48 [17:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:43:23]wFMCommunicate OK [17:43:23]requested_item fd.num is exist - process it [17:43:23]SAM_PROTO_GetFieldsCounters [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 13 00 00 [17:43:23]Write to MH i2c: E2 08 00 72 04 80 13 00 00 00 00 00 00 F2 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 62 00 [17:43:23]MH_I2C_Read... [17:43:23]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 62 49 00 00 0E 04 04 00 B5 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 39 [17:43:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 62 49 00 00 0E 04 04 00 B5 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 [17:43:23]wFMCommunicate OK [17:43:23]SAM_PROTO_GetFieldsCounters done [17:43:23]requested_item shift.num is exist - process it [17:43:23]requested_item shift.opened is exist - process it [17:43:23]req_shift_opened [17:43:23]FM_GetShiftState [17:43:23]SAM_PROTO_GetShiftState [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 13 01 00 [17:43:23]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0E 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8C [17:43:23]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [17:43:23]wFMCommunicate OK [17:43:23]SAM_PROTO_GetShiftState done [17:43:23]FM_GetShiftState done [17:43:23]req_shift_opened done [17:43:23]requested_item shift.open_date is exist - process it [17:43:23]req_shift_open_date [17:43:23]req_shift_open_date done [17:43:23]produce_requested_data done [17:43:23]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18786,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [17:43:23]process_action_free close_receipt [17:43:23]json_value_free [17:43:23]json_value_free done [17:43:23]process_json_proto returns [17:43:23]Send response to host [17:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18786,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [17:43:23]free response buf [17:43:23]execute_script done [17:43:23]execute_script returns [17:43:23]free content buf [17:43:23]Sock 9.Close socket [17:43:23]Sock 9.Thread stoped [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:00]accept exits with 7 [17:46:00]New connection [17:46:00]New thread 3066608996 created [17:46:00]Thread 3066752356 joined [17:46:00]Waiting for new connection... [17:46:00] Sock 7.Parse request [17:46:00]Sock 7.Check first char [17:46:00]Sock 7.First char is OK [17:46:00]request: POST /json_proto HTTP/1.0 [17:46:00]Method: POST [17:46:00]URL: /json_proto [17:46:00]Method is POST - this is cgi request [17:46:00]url: /json_proto [17:46:00]query_string will be loaded in cgi processing [17:46:00]execute_cgi json_proto POST (null) [17:46:00]execute_cgi path=json_proto method=POST [17:46:00]POST find Content-Length [17:46:00]Host: 172.17.62.196:8080 [17:46:00]Content-Length: 684 [17:46:00]Content-Type: application/json [17:46:00] [17:46:00]POST finish read [17:46:00]Found Content-Length = 684 [17:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 13.180, "sum" : 997.73, "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" ] } } [17:46:00]execute_script... [17:46: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)116403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 13.180, "sum" : 997.73, "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" ] } } [17:46:00]POST & json_proto [17:46:00]process_json_proto [17:46:00]json parsed OK: [17:46:00]protocol is kg_v1.0 [17:46:00]action value=close_receipt [17:46:00]process_action close_receipt [17:46:00]cmd_close_receipt [17:46:00]MH_GetDate [17:46:00]Write to MH i2c: F0 00 00 74 04 67 [17:46:00]Write i2c OK [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: F0 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: F0 09 00 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: F0 09 00 74 04 00 5A A9 F1 66 CE CC 0E 66 D8 [17:46:00]GetLastDocTimeStamp 1727113401 [17:46:00]current date 1727113562 [17:46:00]FM_GetShiftState [17:46:00]SAM_PROTO_GetShiftState [17:46:00]wFMCommunicate request_size=4 [17:46:00]MH_SAM_APDU [17:46:00]CAPDU: 80 13 01 00 [17:46:00]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [17:46:00]Write i2c OK [17:46:00]MH_I2C_Read... [17:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:00]Read from MH i2c: E2 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: E2 0E 00 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8E [17:46:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [17:46:00]wFMCommunicate OK [17:46:00]SAM_PROTO_GetShiftState done [17:46:00]FM_GetShiftState done [17:46:00]opened in 1727050372 [17:46:00]opened+sec_in_day 1727136772 [17:46:00]quantity*price = 99772 [17:46:00]sum+1 = 99774 [17:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 997.00 Внесено: 1000.00 СДАЧА: 3.00 НСП 1% : 8.83 НДС 12% : 105.95 Наличными: 997.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 63 23.09.2024 17:46 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18787 ФПД: 173023589170917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174602&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18787&fm=173023589170917&tin=02508201610067®Number=0000000000152968&sum=99700 [17:46:01]StoreToDocumentArchive [17:46:01]shift 181 fd 18787 [17:46:01]save to /storage/0181/doc_00018787 [17:46:01]save last doc name /storage/0181/doc_00018787 to /storage/kkm_last_doc_name [17:46:01]save OK [17:46:01]Clear old archive folders... [17:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:46:01]tlvbuf is 00BF31C0 [17:46:01]SAM_PROTO_ClearQueue [17:46:01]wFMCommunicate request_size=4 [17:46:01]MH_SAM_APDU [17:46:01]CAPDU: 80 09 00 00 [17:46:01]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [17:46:01]Write i2c OK [17:46:01]MH_I2C_Read... [17:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:01]Read from MH i2c: E2 [17:46:01]MH_I2C_Read... [17:46:01]Read from MH i2c: E2 03 00 [17:46:01]MH_I2C_Read... [17:46:01]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [17:46:01]RAPDU: 90 00 [17:46:01]wFMCommunicate OK [17:46:01]SAM_PROTO_ClearQueue done [17:46:01]KKMCreateOFDPacket [17:46:01]OFDProtocolAddRootSTLVToBuf [17:46:01]FM_MakeSignedData [17:46:01]FM_MakeSignedData [17:46:01]SAM_PROTO_SignData [17:46:01]wFMCommunicate request_size=4 [17:46:01]MH_SAM_APDU [17:46:01]CAPDU: 80 0D 01 02 [17:46:01]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [17:46:01]Write i2c OK [17:46:01]MH_I2C_Read... [17:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:01]Read from MH i2c: E2 [17:46:01]MH_I2C_Read... [17:46:01]Read from MH i2c: E2 03 00 [17:46:01]MH_I2C_Read... [17:46:01]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [17:46:01]RAPDU: 90 00 [17:46:01]wFMCommunicate OK [17:46:01]wFMCommunicate request_size=255 [17:46:01]MH_SAM_APDU [17:46:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 BD 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 63 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 3F 00 00 00 F4 03 04 00 5A A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 63 49 00 00 35 04 06 00 [17:46:01]Write to MH i2c: E2 02 01 84 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 BD 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 63 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 3F 00 00 00 F4 03 04 00 5A A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 63 49 00 00 35 04 06 00 00 00 E2 [17:46:01]Write i2c OK [17:46:01]MH_I2C_Read... [17:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:02]Read from MH i2c: E2 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 03 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [17:46:02]RAPDU: 90 00 [17:46:02]wFMCommunicate OK [17:46:02]wFMCommunicate request_size=11 [17:46:02]MH_SAM_APDU [17:46:02]CAPDU: 80 0D 02 02 06 9D 5D 31 91 FE E5 [17:46:02]Write to MH i2c: E2 0E 00 85 04 80 0D 02 02 06 00 9D 5D 31 91 FE E5 00 00 AE [17:46:02]Write i2c OK [17:46:02]MH_I2C_Read... [17:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:02]Read from MH i2c: E2 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 03 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [17:46:02]RAPDU: 90 00 [17:46:02]wFMCommunicate OK [17:46:02]wFMCommunicate request_size=4 [17:46:02]MH_SAM_APDU [17:46:02]CAPDU: 80 0D 03 02 [17:46:02]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [17:46:02]Write i2c OK [17:46:02]MH_I2C_Read... [17:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:02]Read from MH i2c: E2 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 0B 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 0B 00 86 04 00 86 AC 4E 17 2C 15 0D 14 90 00 FF [17:46:02]RAPDU: 86 AC 4E 17 2C 15 0D 14 90 00 [17:46:02]wFMCommunicate OK [17:46:02]SAM_PROTO_SignData done [17:46:02]FM_MakeSignedData done [17:46:02]CreateOFDProtocolMessage [17:46:02]wFMCommunicate request_size=4 [17:46:02]MH_SAM_APDU [17:46:02]CAPDU: 80 11 00 00 [17:46:02]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [17:46:02]Write i2c OK [17:46:02]MH_I2C_Read... [17:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:02]Read from MH i2c: E2 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 17 00 [17:46:02]MH_I2C_Read... [17:46:02]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 35 39 34 35 36 90 00 5E [17:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:46:02]wFMCommunicate OK [17:46:02]CreateOFDProtocolMessage done [17:46:02]OFDSenderStorePacket 18787 [17:46:02]StoreOFDPacket docnum=18787 [17:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 BD 1E 08 01 AA 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 BD 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 63 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 3F 00 00 00 F4 03 04 00 5A A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 63 49 00 00 35 04 06 00 9D 5D 31 91 FE E5 86 AC 4E 17 2C 15 0D 14 [17:46:02]CheckFolder [17:46:02]dirname=/storage/ofd_packets [17:46:02]CheckFolder done [17:46:02]ProducePacketName [17:46:02]name=ofd_packets/00018787 [17:46:02]NVStorageSaveData ofd_packets/00018787 [17:46:02]File name is /storage/ofd_packets/00018787 [17:46:02]Write 302 bytes [17:46:02]NVStorageSaveData done [17:46:02]OFDSenderStorePacket done [17:46:02]KKMCreateOFDPacket done [17:46:02]NVStorageSaveData kkm_last_timestamp [17:46:02]File name is /storage/kkm_last_timestamp [17:46:02]Write 4 bytes [17:46:02]NVStorageSaveData done [17:46:02]ExternCall_PrintAddStr [17:46:02]wPrintStart [17:46:02]Write to MH i2c: 01 00 00 88 04 8C [17:46:02]Write i2c OK [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: 01 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: 01 07 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [17:46:02]RasterBufferAndPrint [17:46:02]line Счет N : (1)116403 [17:46:02]line ИНН: 02508201610067 [17:46:02]line Контрольно-Кассовый Чек [17:46:02]line ПРОДАЖА [17:46:02]line ТРК (МРК, ГНК) : 31 [17:46:02]line Товар: 2710194210 [17:46:02]line ДТ(л)-К-5 [17:46:02]line 13.180 * 75.70 [17:46:02]line = 997.73 [17:46:02]line НДС 12% НСП 1% [17:46:02]line > о реализуемом товаре [17:46:02]line ОКРУГЛЕНИЕ: -0.73 [17:46:02]line ИТОГО: 997.00 [17:46:02]line Внесено: 1000.00 [17:46:02]line СДАЧА: 3.00 [17:46:02]line НСП 1% : 8.83 [17:46:02]line НДС 12% : 105.95 [17:46:02]line Наличными: 997.00 [17:46:02]line Безнал.: 0.00 [17:46:02]line Место: АЗС № 176 "Партнер Нефть" [17:46:02]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:46:02]line СНО: Общий режим [17:46:02]line Чек 63 23.09.2024 17:46 [17:46:02]line Смена: 181 ФФД: 1.0 [17:46:02]line ЗНМ: 0300000010 [17:46:02]line РНМ: 0000000000152968 [17:46:02]line Версия ККМ: v1.0 [17:46:02]line ФМ: 0000000000959456 [17:46:02]line ФД: 18787 [17:46:02]line ФПД: 173023589170917 [17:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174602&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18787&fm=173023589170917&tin=02508201610067®Number=0000000000152968&sum=99700 [17:46:02]OFD Sender: Processing packet 18787 [packets to send 7, broken 6] [17:46:02]ProducePacketName [17:46:02]name=ofd_packets/00018787 [17:46:02]OFD Sender: To server: pG, [17:46:02]CommunicateWithHost lk.salyk.kg:30040 [17:46:02]ConnectInit lk.salyk.kg [17:46:02]written 0, free lines is 4095 [17:46:02]Connected sock=11 [17:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 BD 1E 08 01 AA 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 BD 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 63 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 3F 00 00 00 F4 03 04 00 5A A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 63 49 00 00 35 04 06 00 9D 5D 31 91 FE E5 86 AC 4E 17 2C 15 0D 14 [17:46:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 FD 56 47 00 DE 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 35 39 34 35 36 10 04 04 00 63 49 00 00 F4 03 04 00 BD 52 F1 66 B6 04 01 00 00 0C 09 FE 16 0C B5 52 FE [17:46:03]CommunicateWithHost err = 0 [17:46:03]CheckOFDResponse [17:46:03]1017 (14) - 77093643461234 [17:46:03]1041 (16) - 0000000000959456 [17:46:03]1040 (4) - 18787 [17:46:03]1012 (4) - 23.09.2024 11:36 [17:46:03]1206 (1) - 0 [17:46:03]OFD Sender: Remove packet 18787 [17:46:03]ProducePacketName [17:46:03]name=ofd_packets/00018787 [17:46:03]NVStorageDeleteData [17:46:03]Write to MH i2c: 01 00 00 B3 04 B7 [17:46:03]Write i2c OK [17:46:03]MH_I2C_Read... [17:46:03]Read from MH i2c: 01 [17:46:03]MH_I2C_Read... [17:46:03]Read from MH i2c: 01 07 00 [17:46:03]MH_I2C_Read... [17:46:03]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 E6 0C B0 [17:46:03]RasterBufferAndPrint [17:46:03]line [17:46:03]line [17:46:03]line [17:46:03]line [17:46:03]line [17:46:03]written 0, free lines is 3309 [17:46:03]MH_Cut [17:46:03]Write to MH i2c: D1 01 00 BA 04 01 90 [17:46:03]Write i2c OK [17:46:03]MH_I2C_Read... [17:46:03]Read from MH i2c: D1 [17:46:03]MH_I2C_Read... [17:46:03]Read from MH i2c: D1 01 00 [17:46:03]MH_I2C_Read... [17:46:03]Read from MH i2c: D1 01 00 BA 04 00 8F [17:46:03]Write to MH i2c: 01 00 00 BB 04 BF [17:46:03]Write i2c OK [17:46:03]MH_I2C_Read... [17:46:03]OFD Sender: No OFD packet to send [17:46:03]*** Cut start [17:46:03]*** Partial cut [17:46:03]*** CUTSNS_PIN = 1 [17:46:03]*** CUTSNS_PIN = 0 [17:46:04]*** Brake cut motor [17:46:04]Read from MH i2c: 01 [17:46:04]MH_I2C_Read... [17:46:04]*** Stop cut motor [17:46:04]*** Cut end [17:46:04]Read from MH i2c: 01 07 00 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [17:46:04]process_action close_receipt done [17:46:04]requested_data is exist [17:46:04]produce_requested_data [17:46:04]requested_item fm.sn is exist - process it [17:46:04]wFMCommunicate request_size=4 [17:46:04]MH_SAM_APDU [17:46:04]CAPDU: 80 11 00 00 [17:46:04]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [17:46:04]Write i2c OK [17:46:04]MH_I2C_Read... [17:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:04]Read from MH i2c: E2 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: E2 17 00 [17:46:04]MH_I2C_Read... [17:46:04]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 35 39 34 35 36 90 00 93 [17:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:46:04]wFMCommunicate OK [17:46:04]requested_item fd.num is exist - process it [17:46:04]SAM_PROTO_GetFieldsCounters [17:46:04]wFMCommunicate request_size=4 [17:46:04]MH_SAM_APDU [17:46:04]CAPDU: 80 13 00 00 [17:46:04]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [17:46:04]Write i2c OK [17:46:04]MH_I2C_Read... [17:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:04]Read from MH i2c: E2 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: E2 62 00 [17:46:04]MH_I2C_Read... [17:46:04]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 63 49 00 00 0E 04 04 00 B5 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 88 [17:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 63 49 00 00 0E 04 04 00 B5 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 [17:46:04]wFMCommunicate OK [17:46:04]SAM_PROTO_GetFieldsCounters done [17:46:04]requested_item shift.num is exist - process it [17:46:04]requested_item shift.opened is exist - process it [17:46:04]req_shift_opened [17:46:04]FM_GetShiftState [17:46:04]SAM_PROTO_GetShiftState [17:46:04]wFMCommunicate request_size=4 [17:46:04]MH_SAM_APDU [17:46:04]CAPDU: 80 13 01 00 [17:46:04]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [17:46:04]Write i2c OK [17:46:04]MH_I2C_Read... [17:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:04]Read from MH i2c: E2 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: E2 0E 00 [17:46:04]MH_I2C_Read... [17:46:04]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D7 [17:46:04]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [17:46:04]wFMCommunicate OK [17:46:04]SAM_PROTO_GetShiftState done [17:46:04]FM_GetShiftState done [17:46:04]req_shift_opened done [17:46:04]requested_item shift.open_date is exist - process it [17:46:04]req_shift_open_date [17:46:04]req_shift_open_date done [17:46:04]produce_requested_data done [17:46:04]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18787,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [17:46:04]process_action_free close_receipt [17:46:04]json_value_free [17:46:04]json_value_free done [17:46:04]process_json_proto returns [17:46:04]Send response to host [17:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18787,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [17:46:04]free response buf [17:46:04]execute_script done [17:46:04]execute_script returns [17:46:04]free content buf [17:46:04]Sock 7.Close socket [17:46:04]Sock 7.Thread stoped [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:39]accept exits with 9 [17:47:39]New connection [17:47:39]New thread 3066752356 created [17:47:39]Thread 3066608996 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.62.196:8080 [17:47:39]Content-Length: 665 [17:47:39]Content-Type: application/json [17:47:39] [17:47:39]POST finish read [17:47:39]Found Content-Length = 665 [17:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16709", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 : (3)16709", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 BF 04 B2 [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 BF 04 00 BD A9 F1 66 CE CC 0E 66 86 [17:47:39]GetLastDocTimeStamp 1727113562 [17:47:39]current date 1727113661 [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 C0 04 80 13 01 00 00 00 00 00 41 [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 C0 04 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D9 [17:47:39]RAPDU: 09 00 01 84 B2 F0 66 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 1727050372 [17:47:39]opened+sec_in_day 1727136772 [17:47:39]quantity*price = 12500 [17:47:39]sum+1 = 12501 [17:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 64 23.09.2024 17:47 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18788 ФПД: 95159623915073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174741&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18788&fm=95159623915073&tin=02508201610067®Number=0000000000152968&sum=12500 0 [17:47:40]StoreToDocumentArchive [17:47:40]shift 181 fd 18788 [17:47:40]save to /storage/0181/doc_00018788 [17:47:40]save last doc name /storage/0181/doc_00018788 to /storage/kkm_last_doc_name [17:47:40]save OK [17:47:40]Clear old archive folders... [17:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [17:47:40]tlvbuf is 00C19740 [17:47:40]SAM_PROTO_ClearQueue [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 09 00 00 [17:47:40]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]SAM_PROTO_ClearQueue done [17:47:40]KKMCreateOFDPacket [17:47:40]OFDProtocolAddRootSTLVToBuf [17:47:40]FM_MakeSignedData [17:47:40]FM_MakeSignedData [17:47:40]SAM_PROTO_SignData [17:47:40]wFMCommunicate request_size=4 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 0D 01 02 [17:47:40]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [17:47:40]Write i2c OK [17:47:40]MH_I2C_Read... [17:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:40]Read from MH i2c: E2 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 [17:47:40]MH_I2C_Read... [17:47:40]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [17:47:40]RAPDU: 90 00 [17:47:40]wFMCommunicate OK [17:47:40]wFMCommunicate request_size=255 [17:47:40]MH_SAM_APDU [17:47:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BD A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 [17:47:40]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BD A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 00 00 E1 [17:47:40]Write i2c OK [17:47:40]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 CF 04 00 90 00 47 [17:47:41]RAPDU: 90 00 [17:47:41]wFMCommunicate OK [17:47:41]wFMCommunicate request_size=41 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 64 49 00 00 35 04 06 00 56 8C 13 94 96 41 [17:47:41]Write to MH i2c: E2 2C 00 D0 04 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 64 49 00 00 35 04 06 00 56 8C 13 94 96 41 00 00 30 [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 D0 04 00 90 00 48 [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 D1 04 80 0D 03 02 00 00 00 00 50 [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 D1 04 00 46 0F 19 B4 F4 15 5F 7D 90 00 58 [17:47:41]RAPDU: 46 0F 19 B4 F4 15 5F 7D 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 D2 04 80 11 00 00 00 00 00 00 50 [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 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A9 [17:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [17:47:41]wFMCommunicate OK [17:47:41]CreateOFDProtocolMessage done [17:47:41]OFDSenderStorePacket 18788 [17:47:41]StoreOFDPacket docnum=18788 [17:47:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2E 01 00 00 A3 68 26 01 95 8D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BD A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 64 49 00 00 35 04 06 00 56 8C 13 94 96 41 46 0F 19 B4 F4 15 5F 7D [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/00018788 [17:47:41]NVStorageSaveData ofd_packets/00018788 [17:47:41]File name is /storage/ofd_packets/00018788 [17:47:41]Write 332 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 D3 04 D7 [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 D3 04 00 00 00 00 00 FF 0F EC [17:47:41]RasterBufferAndPrint [17:47:41]line Счет N : (3)16709 [17:47:41]line ИНН: 02508201610067 [17:47:41]line Контрольно-Кассовый Чек [17:47:41]line ПРОДАЖА [17:47:41]line Товар: 4870202521292 [17:47:41]line Напиток Сок березы 1,2л [17:47:41]line 1.000 * 125.00 [17:47:41]line = 125.00 [17:47:41]line НДС 12% НСП 1% [17:47:41]line > о реализуемом товаре [17:47:41]line ИТОГО: 125.00 [17:47:41]line НСП 1% : 1.11 [17:47:41]line НДС 12% : 13.27 [17:47:41]line Наличными: 125.00 [17:47:41]line Безнал.: 0.00 [17:47:41]line Место: АЗС № 176 "Партнер Нефть" [17:47:41]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [17:47:41]line СНО: Общий режим [17:47:41]line Чек 64 23.09.2024 17:47 [17:47:41]line Смена: 181 ФФД: 1.0 [17:47:41]line ЗНМ: 0300000010 [17:47:41]line РНМ: 0000000000152968 [17:47:41]line Версия ККМ: v1.0 [17:47:41]line ФМ: 0000000000959456 [17:47:41]line ФД: 18788 [17:47:41]line ФПД: 95159623915073 [17:47:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T174741&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18788&fm=95159623915073&tin=02508201610067®Number=0000000000152968&sum=12500 [17:47:41]line 0 [17:47:41]OFD Sender: Processing packet 18788 [packets to send 7, broken 6] [17:47:41]ProducePacketName [17:47:41]name=ofd_packets/00018788 [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:41]Connected sock=10 [17:47:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2E 01 00 00 A3 68 26 01 95 8D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BD A9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 64 49 00 00 35 04 06 00 56 8C 13 94 96 41 46 0F 19 B4 F4 15 5F 7D [17:47:42]Write to MH i2c: 01 00 00 FB 04 FF [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 FB 04 00 00 00 00 00 1C 0D 2F [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 3362 [17:47:42]MH_Cut [17:47:42]Write to MH i2c: D1 01 00 02 05 01 D9 [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 02 05 00 D8 [17:47:42]Write to MH i2c: 01 00 00 03 05 08 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 CE 4B 47 00 48 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 64 49 00 00 F4 03 04 00 20 53 F1 66 B6 04 01 00 00 1A 97 14 86 15 1F 5B 49 [17:47:42]CommunicateWithHost err = 0 [17:47:42]CheckOFDResponse [17:47:42]1017 (14) - 77093643461234 [17:47:42]1041 (16) - 0000000000959456 [17:47:42]1040 (4) - 18788 [17:47:42]1012 (4) - 23.09.2024 11:38 [17:47:42]1206 (1) - 0 [17:47:42]OFD Sender: Remove packet 18788 [17:47:42]ProducePacketName [17:47:42]name=ofd_packets/00018788 [17:47:42]NVStorageDeleteData [17:47:42]OFD Sender: No OFD packet to send [17:47:42]*** Cut start [17:47:42]*** Partial cut [17:47:42]*** CUTSNS_PIN = 1 [17:47:42]*** 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 03 05 00 00 00 00 00 FF 0F 1D [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 04 05 80 11 00 00 00 00 00 00 83 [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 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DC [17:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 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 05 05 80 13 00 00 00 00 00 00 86 [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 05 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 64 49 00 00 0E 04 04 00 B5 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 D5 [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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 64 49 00 00 0E 04 04 00 B5 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 [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 06 05 80 13 01 00 00 00 00 00 88 [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 06 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 20 [17:47:43]RAPDU: 09 00 01 84 B2 F0 66 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":"0000000000959456","fd.num":18788,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [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":"0000000000959456","fd.num":18788,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [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:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]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:28]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:38]accept exits with 7 [18:03:38]New connection [18:03:38]New thread 3066608996 created [18:03:38]Thread 3066752356 joined [18:03:38]Waiting for new connection... [18:03:38] Sock 7.Parse request [18:03:38]Sock 7.Check first char [18:03:38]Sock 7.First char is OK [18:03:38]request: POST /json_proto HTTP/1.0 [18:03:38]Method: POST [18:03:38]URL: /json_proto [18:03:38]Method is POST - this is cgi request [18:03:38]url: /json_proto [18:03:38]query_string will be loaded in cgi processing [18:03:38]execute_cgi json_proto POST (null) [18:03:38]execute_cgi path=json_proto method=POST [18:03:38]POST find Content-Length [18:03:38]Host: 172.17.62.196:8080 [18:03:38]Content-Length: 677 [18:03:38]Content-Type: application/json [18:03:38] [18:03:38]POST finish read [18:03:38]Found Content-Length = 677 [18:03:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116415", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:38]execute_script... [18: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)116415", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:38]POST & json_proto [18:03:38]process_json_proto [18:03:38]json parsed OK: [18:03:38]protocol is kg_v1.0 [18:03:38]action value=close_receipt [18:03:38]process_action close_receipt [18:03:38]cmd_close_receipt [18:03:38]MH_GetDate [18:03:38]Write to MH i2c: F0 00 00 07 05 FB [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: F0 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: F0 09 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: F0 09 00 07 05 00 7C AD F1 66 CE CC 0E 66 92 [18:03:38]GetLastDocTimeStamp 1727113661 [18:03:38]current date 1727114620 [18:03:38]FM_GetShiftState [18:03:38]SAM_PROTO_GetShiftState [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 13 01 00 [18:03:38]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 0E 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 22 [18:03:38]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:03:38]wFMCommunicate OK [18:03:38]SAM_PROTO_GetShiftState done [18:03:38]FM_GetShiftState done [18:03:38]opened in 1727050372 [18:03:38]opened+sec_in_day 1727136772 [18:03:38]quantity*price = 50036 [18:03:38]sum+1 = 50037 [18:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 65 23.09.2024 18:03 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18789 ФПД: 252655421588102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180340&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18789&fm=252655421588102&tin=02508201610067®Number=0000000000152968&sum=50000 [18:03:39]StoreToDocumentArchive [18:03:39]shift 181 fd 18789 [18:03:39]save to /storage/0181/doc_00018789 [18:03:39]save last doc name /storage/0181/doc_00018789 to /storage/kkm_last_doc_name [18:03:39]save OK [18:03:39]Clear old archive folders... [18:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:39]tlvbuf is 00C1BD20 [18:03:39]SAM_PROTO_ClearQueue [18:03:39]wFMCommunicate request_size=4 [18:03:39]MH_SAM_APDU [18:03:39]CAPDU: 80 09 00 00 [18:03:39]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:40]Read from MH i2c: E2 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 03 00 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [18:03:40]RAPDU: 90 00 [18:03:40]wFMCommunicate OK [18:03:40]SAM_PROTO_ClearQueue done [18:03:40]KKMCreateOFDPacket [18:03:40]OFDProtocolAddRootSTLVToBuf [18:03:40]FM_MakeSignedData [18:03:40]FM_MakeSignedData [18:03:40]SAM_PROTO_SignData [18:03:40]wFMCommunicate request_size=4 [18:03:40]MH_SAM_APDU [18:03:40]CAPDU: 80 0D 01 02 [18:03:40]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [18:03:40]Write i2c OK [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 [18:03:40]MH_I2C_Read... [18:03:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:40]Read from MH i2c: E2 03 00 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [18:03:40]RAPDU: 90 00 [18:03:40]wFMCommunicate OK [18:03:40]wFMCommunicate request_size=255 [18:03:40]MH_SAM_APDU [18:03: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C AD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 65 49 00 00 35 04 06 00 E5 [18:03:40]Write to MH i2c: E2 02 01 17 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C AD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 65 49 00 00 35 04 06 00 E5 00 00 28 [18:03:40]Write i2c OK [18:03:40]MH_I2C_Read... [18:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:40]Read from MH i2c: E2 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 03 00 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [18:03:40]RAPDU: 90 00 [18:03:40]wFMCommunicate OK [18:03:40]wFMCommunicate request_size=10 [18:03:40]MH_SAM_APDU [18:03:40]CAPDU: 80 0D 02 02 05 C9 EC A7 82 86 [18:03:40]Write to MH i2c: E2 0D 00 18 05 80 0D 02 02 05 00 C9 EC A7 82 86 00 00 05 [18:03:40]Write i2c OK [18:03:40]MH_I2C_Read... [18:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:40]Read from MH i2c: E2 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 03 00 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [18:03:40]RAPDU: 90 00 [18:03:40]wFMCommunicate OK [18:03:40]wFMCommunicate request_size=4 [18:03:40]MH_SAM_APDU [18:03:40]CAPDU: 80 0D 03 02 [18:03:40]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [18:03:40]Write i2c OK [18:03:40]MH_I2C_Read... [18:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:40]Read from MH i2c: E2 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 0B 00 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 0B 00 19 05 00 15 31 7E 2E D2 7E 46 A6 90 00 C8 [18:03:40]RAPDU: 15 31 7E 2E D2 7E 46 A6 90 00 [18:03:40]wFMCommunicate OK [18:03:40]SAM_PROTO_SignData done [18:03:40]FM_MakeSignedData done [18:03:40]CreateOFDProtocolMessage [18:03:40]wFMCommunicate request_size=4 [18:03:40]MH_SAM_APDU [18:03:40]CAPDU: 80 11 00 00 [18:03:40]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [18:03:40]Write i2c OK [18:03:40]MH_I2C_Read... [18:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:40]Read from MH i2c: E2 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 17 00 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F2 [18:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:03:40]wFMCommunicate OK [18:03:40]CreateOFDProtocolMessage done [18:03:40]OFDSenderStorePacket 18789 [18:03:40]StoreOFDPacket docnum=18789 [18:03:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 2F 33 07 01 82 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C AD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 65 49 00 00 35 04 06 00 E5 C9 EC A7 82 86 15 31 7E 2E D2 7E 46 A6 [18:03:40]CheckFolder [18:03:40]dirname=/storage/ofd_packets [18:03:40]CheckFolder done [18:03:40]ProducePacketName [18:03:40]name=ofd_packets/00018789 [18:03:40]NVStorageSaveData ofd_packets/00018789 [18:03:40]File name is /storage/ofd_packets/00018789 [18:03:40]Write 301 bytes [18:03:40]NVStorageSaveData done [18:03:40]OFDSenderStorePacket done [18:03:40]KKMCreateOFDPacket done [18:03:40]NVStorageSaveData kkm_last_timestamp [18:03:40]File name is /storage/kkm_last_timestamp [18:03:40]Write 4 bytes [18:03:40]NVStorageSaveData done [18:03:40]ExternCall_PrintAddStr [18:03:40]wPrintStart [18:03:40]Write to MH i2c: 01 00 00 1B 05 20 [18:03:40]Write i2c OK [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: 01 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: 01 07 00 [18:03:40]MH_I2C_Read... [18:03:40]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [18:03:40]RasterBufferAndPrint [18:03:40]line Счет N : (1)116415 [18:03:40]line ИНН: 02508201610067 [18:03:40]line Контрольно-Кассовый Чек [18:03:40]line ПРОДАЖА [18:03:40]line ТРК (МРК, ГНК) : 22 [18:03:40]line Товар: 2710124130 [18:03:40]line Аи-92-К-5 [18:03:40]line 7.380 * 67.80 [18:03:40]line = 500.36 [18:03:40]line НДС 12% НСП 1% [18:03:40]line > о реализуемом товаре [18:03:40]line ОКРУГЛЕНИЕ: -0.36 [18:03:40]line ИТОГО: 500.00 [18:03:40]line Внесено: 500.00 [18:03:40]line СДАЧА: 0.00 [18:03:40]line НСП 1% : 4.43 [18:03:40]line НДС 12% : 53.14 [18:03:40]line Наличными: 500.00 [18:03:40]line Безнал.: 0.00 [18:03:40]line Место: АЗС № 176 "Партнер Нефть" [18:03:40]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:03:40]line СНО: Общий режим [18:03:40]line Чек 65 23.09.2024 18:03 [18:03:40]line Смена: 181 ФФД: 1.0 [18:03:40]line ЗНМ: 0300000010 [18:03:40]line РНМ: 0000000000152968 [18:03:40]line Версия ККМ: v1.0 [18:03:40]line ФМ: 0000000000959456 [18:03:40]line ФД: 18789 [18:03:40]line ФПД: 252655421588102 [18:03:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180340&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18789&fm=252655421588102&tin=02508201610067®Number=0000000000152968&sum=50000 [18:03:40]OFD Sender: Processing packet 18789 [packets to send 7, broken 6] [18:03:40]ProducePacketName [18:03:40]name=ofd_packets/00018789 [18:03:40]OFD Sender: To server: pG, [18:03:40]CommunicateWithHost lk.salyk.kg:30040 [18:03:40]ConnectInit lk.salyk.kg [18:03:40]written 0, free lines is 4095 [18:03:41]Connected sock=10 [18:03:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 2F 33 07 01 82 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C AD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 65 49 00 00 35 04 06 00 E5 C9 EC A7 82 86 15 31 7E 2E D2 7E 46 A6 [18:03:41]Write to MH i2c: 01 00 00 46 05 4B [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: 01 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: 01 07 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 EC 0C 4A [18:03:41]RasterBufferAndPrint [18:03:41]line [18:03:41]line [18:03:41]line [18:03:41]line [18:03:41]line [18:03:41]written 0, free lines is 3314 [18:03:41]MH_Cut [18:03:41]Write to MH i2c: D1 01 00 4D 05 01 24 [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: D1 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: D1 01 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: D1 01 00 4D 05 00 23 [18:03:41]Write to MH i2c: 01 00 00 4E 05 53 [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 F2 BE 47 00 47 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 35 39 34 35 36 10 04 04 00 65 49 00 00 F4 03 04 00 DF 56 F1 66 B6 04 01 00 00 08 07 34 9A B8 55 39 A6 [18:03:41]CommunicateWithHost err = 0 [18:03:41]CheckOFDResponse [18:03:41]1017 (14) - 77093643461234 [18:03:41]1041 (16) - 0000000000959456 [18:03:41]1040 (4) - 18789 [18:03:41]1012 (4) - 23.09.2024 11:54 [18:03:41]1206 (1) - 0 [18:03:41]OFD Sender: Remove packet 18789 [18:03:41]ProducePacketName [18:03:41]name=ofd_packets/00018789 [18:03:41]NVStorageDeleteData [18:03:41]*** Cut start [18:03:41]*** Partial cut [18:03:41]*** CUTSNS_PIN = 1 [18:03:41]*** CUTSNS_PIN = 0 [18:03:41]OFD Sender: No OFD packet to send [18:03:42]*** Brake cut motor [18:03:42]Read from MH i2c: 01 [18:03:42]MH_I2C_Read... [18:03:42]*** Stop cut motor [18:03:42]*** Cut end [18:03:42]Read from MH i2c: 01 07 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [18:03:42]process_action close_receipt done [18:03:42]requested_data is exist [18:03:42]produce_requested_data [18:03:42]requested_item fm.sn is exist - process it [18:03:42]wFMCommunicate request_size=4 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 11 00 00 [18:03:42]Write to MH i2c: E2 08 00 4F 05 80 11 00 00 00 00 00 00 CE [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 17 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 17 00 4F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 27 [18:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:03:42]wFMCommunicate OK [18:03:42]requested_item fd.num is exist - process it [18:03:42]SAM_PROTO_GetFieldsCounters [18:03:42]wFMCommunicate request_size=4 [18:03:42]MH_SAM_APDU [18:03:42]CAPDU: 80 13 00 00 [18:03:42]Write to MH i2c: E2 08 00 50 05 80 13 00 00 00 00 00 00 D1 [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:42]Read from MH i2c: E2 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 62 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: E2 62 00 50 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 65 49 00 00 0E 04 04 00 B5 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 24 [18: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 65 49 00 00 0E 04 04 00 B5 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 [18:03:42]wFMCommunicate OK [18:03:42]SAM_PROTO_GetFieldsCounters done [18:03:42]requested_item shift.num is exist - process it [18:03:42]requested_item shift.opened is exist - process it [18:03:42]req_shift_opened [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 51 05 80 13 01 00 00 00 00 00 D3 [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 51 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 6B [18:03:42]RAPDU: 09 00 01 84 B2 F0 66 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]req_shift_opened done [18:03:42]requested_item shift.open_date is exist - process it [18:03:42]req_shift_open_date [18:03:42]req_shift_open_date done [18:03:42]produce_requested_data done [18:03:42]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18789,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [18:03:42]process_action_free close_receipt [18:03:42]json_value_free [18:03:42]json_value_free done [18:03:42]process_json_proto returns [18:03:42]Send response to host [18:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18789,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [18:03:42]free response buf [18:03:42]execute_script done [18:03:42]execute_script returns [18:03:42]free content buf [18:03:42]Sock 7.Close socket [18:03:42]Sock 7.Thread stoped [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:13]accept exits with 9 [18:07:13]New connection [18:07:13]New thread 3066752356 created [18:07:13]Thread 3066608996 joined [18:07:13]Waiting for new connection... [18:07:13] Sock 9.Parse request [18:07:13]Sock 9.Check first char [18:07:13]Sock 9.First char is OK [18:07:13]request: POST /json_proto HTTP/1.0 [18:07:13]Method: POST [18:07:13]URL: /json_proto [18:07:13]Method is POST - this is cgi request [18:07:13]url: /json_proto [18:07:13]query_string will be loaded in cgi processing [18:07:13]execute_cgi json_proto POST (null) [18:07:13]execute_cgi path=json_proto method=POST [18:07:13]POST find Content-Length [18:07:13]Host: 172.17.62.196:8080 [18:07:13]Content-Length: 722 [18:07:13]Content-Type: application/json [18:07:13] [18:07:13]POST finish read [18:07:13]Found Content-Length = 722 [18:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16710", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:13]execute_script... [18:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16710", "tax_sys" : 0, "items" : [ { "code": "4700000480081", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 \u0411\u0410\u0417\u0410\u041B\u041A\u041E\u0413\u041E\u041B\u042C\u041D\u041E\u0415 URBAN 312 0,", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:13]POST & json_proto [18:07:13]process_json_proto [18:07:13]json parsed OK: [18:07:13]protocol is kg_v1.0 [18:07:13]action value=close_receipt [18:07:13]process_action close_receipt [18:07:13]cmd_close_receipt [18:07:13]MH_GetDate [18:07:13]Write to MH i2c: F0 00 00 52 05 46 [18:07:13]Write i2c OK [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: F0 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: F0 09 00 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: F0 09 00 52 05 00 53 AE F1 66 CE CC 0E 66 B5 [18:07:13]GetLastDocTimeStamp 1727114620 [18:07:13]current date 1727114835 [18:07:13]FM_GetShiftState [18:07:13]SAM_PROTO_GetShiftState [18:07:13]wFMCommunicate request_size=4 [18:07:13]MH_SAM_APDU [18:07:13]CAPDU: 80 13 01 00 [18:07:13]Write to MH i2c: E2 08 00 53 05 80 13 01 00 00 00 00 00 D5 [18:07:13]Write i2c OK [18:07:13]MH_I2C_Read... [18:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:13]Read from MH i2c: E2 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: E2 0E 00 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: E2 0E 00 53 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 6D [18:07:13]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:07:13]wFMCommunicate OK [18:07:13]SAM_PROTO_GetShiftState done [18:07:13]FM_GetShiftState done [18:07:13]opened in 1727050372 [18:07:13]opened+sec_in_day 1727136772 [18:07:13]quantity*price = 10700 [18:07:13]sum+1 = 10701 [18:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 66 23.09.2024 18:07 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18790 ФПД: 274701044638405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180715&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18790&fm=274701044638405&tin=02508201610067®Number=0000000000152968&sum=10700 0 [18:07:14]StoreToDocumentArchive [18:07:14]shift 181 fd 18790 [18:07:14]save to /storage/0181/doc_00018790 [18:07:14]save last doc name /storage/0181/doc_00018790 to /storage/kkm_last_doc_name [18:07:14]save OK [18:07:14]Clear old archive folders... [18:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=307 [18:07:14]tlvbuf is 00C1BFD0 [18:07:14]SAM_PROTO_ClearQueue [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 09 00 00 [18:07:14]Write to MH i2c: E2 08 00 60 05 80 09 00 00 00 00 00 00 D7 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [18:07:14]RAPDU: 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_ClearQueue done [18:07:14]KKMCreateOFDPacket [18:07:14]OFDProtocolAddRootSTLVToBuf [18:07:14]FM_MakeSignedData [18:07:14]FM_MakeSignedData [18:07:14]SAM_PROTO_SignData [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 0D 01 02 [18:07:14]Write to MH i2c: E2 08 00 61 05 80 0D 01 02 00 00 00 00 DF [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [18:07:14]RAPDU: 90 00 [18:07:14]wFMCommunicate OK [18:07:14]wFMCommunicate request_size=255 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 53 AE F1 66 0E 04 04 00 B5 00 00 00 B9 04 [18:07:14]Write to MH i2c: E2 02 01 62 05 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 53 AE F1 66 0E 04 04 00 B5 00 00 00 B9 04 00 00 19 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:15]Read from MH i2c: E2 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [18:07:15]RAPDU: 90 00 [18:07:15]wFMCommunicate OK [18:07:15]wFMCommunicate request_size=66 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 66 49 00 00 35 04 06 00 F9 D6 D2 2F 62 C5 [18:07:15]Write to MH i2c: E2 45 00 63 05 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 66 49 00 00 35 04 06 00 F9 D6 D2 2F 62 C5 00 00 E6 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:15]Read from MH i2c: E2 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [18:07:15]RAPDU: 90 00 [18:07:15]wFMCommunicate OK [18:07:15]wFMCommunicate request_size=4 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 0D 03 02 [18:07:15]Write to MH i2c: E2 08 00 64 05 80 0D 03 02 00 00 00 00 E4 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:15]Read from MH i2c: E2 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 0B 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 0B 00 64 05 00 73 35 24 C1 A1 93 AC A0 90 00 F2 [18:07:15]RAPDU: 73 35 24 C1 A1 93 AC A0 90 00 [18:07:15]wFMCommunicate OK [18:07:15]SAM_PROTO_SignData done [18:07:15]FM_MakeSignedData done [18:07:15]CreateOFDProtocolMessage [18:07:15]wFMCommunicate request_size=4 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 11 00 00 [18:07:15]Write to MH i2c: E2 08 00 65 05 80 11 00 00 00 00 00 00 E4 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:15]Read from MH i2c: E2 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 17 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: E2 17 00 65 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3D [18:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:07:15]wFMCommunicate OK [18:07:15]CreateOFDProtocolMessage done [18:07:15]OFDSenderStorePacket 18790 [18:07:15]StoreOFDPacket docnum=18790 [18:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 47 01 00 00 1A 59 3F 01 B6 46 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 53 AE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 66 49 00 00 35 04 06 00 F9 D6 D2 2F 62 C5 73 35 24 C1 A1 93 AC A0 [18:07:15]CheckFolder [18:07:15]dirname=/storage/ofd_packets [18:07:15]CheckFolder done [18:07:15]ProducePacketName [18:07:15]name=ofd_packets/00018790 [18:07:15]NVStorageSaveData ofd_packets/00018790 [18:07:15]File name is /storage/ofd_packets/00018790 [18:07:15]Write 357 bytes [18:07:15]NVStorageSaveData done [18:07:15]OFDSenderStorePacket done [18:07:15]KKMCreateOFDPacket done [18:07:15]NVStorageSaveData kkm_last_timestamp [18:07:15]File name is /storage/kkm_last_timestamp [18:07:15]Write 4 bytes [18:07:15]NVStorageSaveData done [18:07:15]ExternCall_PrintAddStr [18:07:15]wPrintStart [18:07:15]Write to MH i2c: 01 00 00 66 05 6B [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: 01 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: 01 07 00 [18:07:15]MH_I2C_Read... [18:07:15]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 FF 0F 80 [18:07:15]RasterBufferAndPrint [18:07:15]line Счет N : (3)16710 [18:07:15]line ИНН: 02508201610067 [18:07:15]line Контрольно-Кассовый Чек [18:07:15]line ПРОДАЖА [18:07:15]line Товар: 4700000480081 [18:07:15]line ПИВО СВЕТЛОЕ БАЗАЛКОГОЛЬНОЕ URBAN 312 0, [18:07:15]line 1.000 * 107.00 [18:07:15]line = 107.00 [18:07:15]line НДС 12% НСП 1% [18:07:15]line > о реализуемом товаре [18:07:15]line ИТОГО: 107.00 [18:07:15]line НСП 1% : 0.95 [18:07:15]line НДС 12% : 11.36 [18:07:15]line Наличными: 107.00 [18:07:15]line Безнал.: 0.00 [18:07:15]line Место: АЗС № 176 "Партнер Нефть" [18:07:15]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:07:15]line СНО: Общий режим [18:07:15]line Чек 66 23.09.2024 18:07 [18:07:15]line Смена: 181 ФФД: 1.0 [18:07:15]line ЗНМ: 0300000010 [18:07:15]line РНМ: 0000000000152968 [18:07:15]line Версия ККМ: v1.0 [18:07:15]line ФМ: 0000000000959456 [18:07:15]line ФД: 18790 [18:07:15]line ФПД: 274701044638405 [18:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T180715&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18790&fm=274701044638405&tin=02508201610067®Number=0000000000152968&sum=10700 [18:07:15]line 0 [18:07:15]OFD Sender: Processing packet 18790 [packets to send 7, broken 6] [18:07:15]ProducePacketName [18:07:15]name=ofd_packets/00018790 [18:07:15]OFD Sender: To server: pG, [18:07:15]CommunicateWithHost lk.salyk.kg:30040 [18:07:15]ConnectInit lk.salyk.kg [18:07:15]written 0, free lines is 4095 [18:07:15]Connected sock=10 [18:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 47 01 00 00 1A 59 3F 01 B6 46 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 38 31 06 04 41 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 D0 91 D0 90 D0 97 D0 90 D0 9B D0 9A D0 9E D0 93 D0 9E D0 9B D0 AC D0 9D D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 30 2C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 53 AE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 66 49 00 00 35 04 06 00 F9 D6 D2 2F 62 C5 73 35 24 C1 A1 93 AC A0 [18:07:16]Write to MH i2c: 01 00 00 8F 05 94 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 04 0D AC [18:07:16]RasterBufferAndPrint [18:07:16]line [18:07:16]line [18:07:16]line [18:07:16]line [18:07:16]line [18:07:16]written 0, free lines is 3338 [18:07:16]MH_Cut [18:07:16]Write to MH i2c: D1 01 00 96 05 01 6D [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: D1 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: D1 01 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: D1 01 00 96 05 00 6C [18:07:16]Write to MH i2c: 01 00 00 97 05 9C [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 15 99 47 00 6E 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 35 39 34 35 36 10 04 04 00 66 49 00 00 F4 03 04 00 B6 57 F1 66 B6 04 01 00 00 3A F7 77 D5 59 1D 72 2C [18:07:16]CommunicateWithHost err = 0 [18:07:16]CheckOFDResponse [18:07:16]1017 (14) - 77093643461234 [18:07:16]1041 (16) - 0000000000959456 [18:07:16]1040 (4) - 18790 [18:07:16]1012 (4) - 23.09.2024 11:57 [18:07:16]1206 (1) - 0 [18:07:16]OFD Sender: Remove packet 18790 [18:07:16]ProducePacketName [18:07:16]name=ofd_packets/00018790 [18:07:16]NVStorageDeleteData [18:07:16]OFD Sender: No OFD packet to send [18:07:16]*** Cut start [18:07:16]*** Partial cut [18:07:16]*** CUTSNS_PIN = 1 [18:07:16]*** CUTSNS_PIN = 0 [18:07:17]*** Brake cut motor [18:07:17]Read from MH i2c: 01 [18:07:17]MH_I2C_Read... [18:07:17]*** Stop cut motor [18:07:17]*** Cut end [18:07:17]Read from MH i2c: 01 07 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [18:07:17]process_action close_receipt done [18:07:17]requested_data is exist [18:07:17]produce_requested_data [18:07:17]requested_item fm.sn is exist - process it [18:07:17]wFMCommunicate request_size=4 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 11 00 00 [18:07:17]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 17 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 70 [18:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:07:17]wFMCommunicate OK [18:07:17]requested_item fd.num is exist - process it [18:07:17]SAM_PROTO_GetFieldsCounters [18:07:17]wFMCommunicate request_size=4 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 13 00 00 [18:07:17]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 62 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 62 00 99 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 66 49 00 00 0E 04 04 00 B5 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 71 [18:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 66 49 00 00 0E 04 04 00 B5 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 [18:07:17]wFMCommunicate OK [18:07:17]SAM_PROTO_GetFieldsCounters done [18:07:17]requested_item shift.num is exist - process it [18:07:17]requested_item shift.opened is exist - process it [18:07:17]req_shift_opened [18:07:17]FM_GetShiftState [18:07:17]SAM_PROTO_GetShiftState [18:07:17]wFMCommunicate request_size=4 [18:07:17]MH_SAM_APDU [18:07:17]CAPDU: 80 13 01 00 [18:07:17]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:17]Read from MH i2c: E2 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 0E 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B4 [18:07:17]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:07:17]wFMCommunicate OK [18:07:17]SAM_PROTO_GetShiftState done [18:07:17]FM_GetShiftState done [18:07:17]req_shift_opened done [18:07:17]requested_item shift.open_date is exist - process it [18:07:17]req_shift_open_date [18:07:17]req_shift_open_date done [18:07:17]produce_requested_data done [18:07:17]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18790,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [18:07:17]process_action_free close_receipt [18:07:17]json_value_free [18:07:17]json_value_free done [18:07:17]process_json_proto returns [18:07:17]Send response to host [18:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18790,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [18:07:17]free response buf [18:07:17]execute_script done [18:07:17]execute_script returns [18:07:17]free content buf [18:07:17]Sock 9.Close socket [18:07:17]Sock 9.Thread stoped [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:18]accept exits with 7 [18:15:18]New connection [18:15:18]New thread 3066608996 created [18:15:18]Thread 3066752356 joined [18:15:18]Waiting for new connection... [18:15:18] Sock 7.Parse request [18:15:18]Sock 7.Check first char [18:15:18]Sock 7.First char is OK [18:15:18]request: POST /json_proto HTTP/1.0 [18:15:18]Method: POST [18:15:18]URL: /json_proto [18:15:18]Method is POST - this is cgi request [18:15:18]url: /json_proto [18:15:18]query_string will be loaded in cgi processing [18:15:18]execute_cgi json_proto POST (null) [18:15:18]execute_cgi path=json_proto method=POST [18:15:18]POST find Content-Length [18:15:18]Host: 172.17.62.196:8080 [18:15:18]Content-Length: 657 [18:15:18]Content-Type: application/json [18:15:18] [18:15:18]POST finish read [18:15:18]Found Content-Length = 657 [18:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16711", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:18]execute_script... [18:15:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16711", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:18]POST & json_proto [18:15:18]process_json_proto [18:15:18]json parsed OK: [18:15:18]protocol is kg_v1.0 [18:15:18]action value=close_receipt [18:15:18]process_action close_receipt [18:15:18]cmd_close_receipt [18:15:18]MH_GetDate [18:15:18]Write to MH i2c: F0 00 00 9B 05 8F [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: F0 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: F0 09 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: F0 09 00 9B 05 00 38 B0 F1 66 CE CC 0E 66 E5 [18:15:18]GetLastDocTimeStamp 1727114835 [18:15:18]current date 1727115320 [18:15:18]FM_GetShiftState [18:15:18]SAM_PROTO_GetShiftState [18:15:18]wFMCommunicate request_size=4 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 80 13 01 00 [18:15:18]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 0E 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B6 [18:15:18]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:15:18]wFMCommunicate OK [18:15:18]SAM_PROTO_GetShiftState done [18:15:18]FM_GetShiftState done [18:15:18]opened in 1727050372 [18:15:18]opened+sec_in_day 1727136772 [18:15:18]quantity*price = 8500 [18:15:18]sum+1 = 8501 [18:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 67 23.09.2024 18:15 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18791 ФПД: 157033617227978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181520&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18791&fm=157033617227978&tin=02508201610067®Number=0000000000152968&sum=8500 0 [18:15:19]StoreToDocumentArchive [18:15:19]shift 181 fd 18791 [18:15:19]save to /storage/0181/doc_00018791 [18:15:19]save last doc name /storage/0181/doc_00018791 to /storage/kkm_last_doc_name [18:15:19]save OK [18:15:19]Clear old archive folders... [18:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=281 [18:15:19]tlvbuf is 00C20060 [18:15:19]SAM_PROTO_ClearQueue [18:15:19]wFMCommunicate request_size=4 [18:15:19]MH_SAM_APDU [18:15:19]CAPDU: 80 09 00 00 [18:15:19]Write to MH i2c: E2 08 00 A9 05 80 09 00 00 00 00 00 00 20 [18:15:19]Write i2c OK [18:15:19]MH_I2C_Read... [18:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:19]Read from MH i2c: E2 [18:15:19]MH_I2C_Read... [18:15:19]Read from MH i2c: E2 03 00 [18:15:19]MH_I2C_Read... [18:15:19]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [18:15:19]RAPDU: 90 00 [18:15:19]wFMCommunicate OK [18:15:19]SAM_PROTO_ClearQueue done [18:15:19]KKMCreateOFDPacket [18:15:19]OFDProtocolAddRootSTLVToBuf [18:15:19]FM_MakeSignedData [18:15:19]FM_MakeSignedData [18:15:19]SAM_PROTO_SignData [18:15:19]wFMCommunicate request_size=4 [18:15:19]MH_SAM_APDU [18:15:19]CAPDU: 80 0D 01 02 [18:15:19]Write to MH i2c: E2 08 00 AA 05 80 0D 01 02 00 00 00 00 28 [18:15:19]Write i2c OK [18:15:19]MH_I2C_Read... [18:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:19]Read from MH i2c: E2 [18:15:19]MH_I2C_Read... [18:15:19]Read from MH i2c: E2 03 00 [18:15:19]MH_I2C_Read... [18:15:19]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [18:15:19]RAPDU: 90 00 [18:15:19]wFMCommunicate OK [18:15:19]wFMCommunicate request_size=255 [18:15:19]MH_SAM_APDU [18:15:19]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 38 B0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 [18:15:19]Write to MH i2c: E2 02 01 AB 05 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 38 B0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 C5 [18:15:19]Write i2c OK [18:15:19]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [18:15:20]RAPDU: 90 00 [18:15:20]wFMCommunicate OK [18:15:20]wFMCommunicate request_size=40 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 67 49 00 00 35 04 06 00 8E D2 3C F9 00 CA [18:15:20]Write to MH i2c: E2 2B 00 AC 05 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 67 49 00 00 35 04 06 00 8E D2 3C F9 00 CA 00 00 FD [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [18:15:20]RAPDU: 90 00 [18:15:20]wFMCommunicate OK [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 0D 03 02 [18:15:20]Write to MH i2c: E2 08 00 AD 05 80 0D 03 02 00 00 00 00 2D [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 0B 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 0B 00 AD 05 00 37 B3 7B 91 00 E7 D3 DE 90 00 BC [18:15:20]RAPDU: 37 B3 7B 91 00 E7 D3 DE 90 00 [18:15:20]wFMCommunicate OK [18:15:20]SAM_PROTO_SignData done [18:15:20]FM_MakeSignedData done [18:15:20]CreateOFDProtocolMessage [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 11 00 00 [18:15:20]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 17 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 86 [18:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:15:20]wFMCommunicate OK [18:15:20]CreateOFDProtocolMessage done [18:15:20]OFDSenderStorePacket 18791 [18:15:20]StoreOFDPacket docnum=18791 [18:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 F0 6E 25 01 47 B2 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 38 B0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 67 49 00 00 35 04 06 00 8E D2 3C F9 00 CA 37 B3 7B 91 00 E7 D3 DE [18:15:20]CheckFolder [18:15:20]dirname=/storage/ofd_packets [18:15:20]CheckFolder done [18:15:20]ProducePacketName [18:15:20]name=ofd_packets/00018791 [18:15:20]NVStorageSaveData ofd_packets/00018791 [18:15:20]File name is /storage/ofd_packets/00018791 [18:15:20]Write 331 bytes [18:15:20]NVStorageSaveData done [18:15:20]OFDSenderStorePacket done [18:15:20]KKMCreateOFDPacket done [18:15:20]NVStorageSaveData kkm_last_timestamp [18:15:20]File name is /storage/kkm_last_timestamp [18:15:20]Write 4 bytes [18:15:20]NVStorageSaveData done [18:15:20]ExternCall_PrintAddStr [18:15:20]wPrintStart [18:15:20]Write to MH i2c: 01 00 00 AF 05 B4 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: 01 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: 01 07 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 FF 0F C9 [18:15:20]RasterBufferAndPrint [18:15:20]line Счет N : (3)16711 [18:15:20]line ИНН: 02508201610067 [18:15:20]line Контрольно-Кассовый Чек [18:15:20]line ПРОДАЖА [18:15:20]line Товар: 5449000000996 [18:15:20]line Напиток Кока-Кола 0,33л [18:15:20]line 1.000 * 85.00 [18:15:20]line = 85.00 [18:15:20]line НДС 12% НСП 1% [18:15:20]line > о реализуемом товаре [18:15:20]line ИТОГО: 85.00 [18:15:20]line НСП 1% : 0.75 [18:15:20]line НДС 12% : 9.03 [18:15:20]line Наличными: 85.00 [18:15:20]line Безнал.: 0.00 [18:15:20]line Место: АЗС № 176 "Партнер Нефть" [18:15:20]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:15:20]line СНО: Общий режим [18:15:20]line Чек 67 23.09.2024 18:15 [18:15:20]line Смена: 181 ФФД: 1.0 [18:15:20]line ЗНМ: 0300000010 [18:15:20]line РНМ: 0000000000152968 [18:15:20]line Версия ККМ: v1.0 [18:15:20]line ФМ: 0000000000959456 [18:15:20]line ФД: 18791 [18:15:20]line ФПД: 157033617227978 [18:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T181520&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18791&fm=157033617227978&tin=02508201610067®Number=0000000000152968&sum=8500 [18:15:20]line 0 [18:15:20]OFD Sender: Processing packet 18791 [packets to send 7, broken 6] [18:15:20]ProducePacketName [18:15:20]name=ofd_packets/00018791 [18:15:20]OFD Sender: To server: pG, [18:15:20]CommunicateWithHost lk.salyk.kg:30040 [18:15:20]ConnectInit lk.salyk.kg [18:15:20]written 0, free lines is 4095 [18:15:21]Write to MH i2c: 01 00 00 D7 05 DC [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: 01 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: 01 07 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 14 0D 04 [18:15:21]RasterBufferAndPrint [18:15:21]line [18:15:21]line [18:15:21]line [18:15:21]line [18:15:21]line [18:15:21]written 0, free lines is 3354 [18:15:21]MH_Cut [18:15:21]Write to MH i2c: D1 01 00 DE 05 01 B5 [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: D1 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: D1 01 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: D1 01 00 DE 05 00 B4 [18:15:21]Write to MH i2c: 01 00 00 DF 05 E4 [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]*** Cut start [18:15:21]*** Partial cut [18:15:21]*** CUTSNS_PIN = 1 [18:15:21]*** CUTSNS_PIN = 0 [18:15:21]*** Brake cut motor [18:15:22]Read from MH i2c: 01 [18:15:22]MH_I2C_Read... [18:15:22]*** Stop cut motor [18:15:22]*** Cut end [18:15:22]Read from MH i2c: 01 07 00 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [18:15:22]process_action close_receipt done [18:15:22]requested_data is exist [18:15:22]produce_requested_data [18:15:22]requested_item fm.sn is exist - process it [18:15:22]wFMCommunicate request_size=4 [18:15:22]MH_SAM_APDU [18:15:22]CAPDU: 80 11 00 00 [18:15:22]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [18:15:22]Write i2c OK [18:15:22]MH_I2C_Read... [18:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:22]Read from MH i2c: E2 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 17 00 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B8 [18:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:15:22]wFMCommunicate OK [18:15:22]requested_item fd.num is exist - process it [18:15:22]SAM_PROTO_GetFieldsCounters [18:15:22]wFMCommunicate request_size=4 [18:15:22]MH_SAM_APDU [18:15:22]CAPDU: 80 13 00 00 [18:15:22]Write to MH i2c: E2 08 00 E1 05 80 13 00 00 00 00 00 00 62 [18:15:22]Write i2c OK [18:15:22]MH_I2C_Read... [18:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:22]Read from MH i2c: E2 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 62 00 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 62 00 E1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 67 49 00 00 0E 04 04 00 B5 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 BD [18:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 67 49 00 00 0E 04 04 00 B5 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 [18:15:22]wFMCommunicate OK [18:15:22]SAM_PROTO_GetFieldsCounters done [18:15:22]requested_item shift.num is exist - process it [18:15:22]requested_item shift.opened is exist - process it [18:15:22]req_shift_opened [18:15:22]FM_GetShiftState [18:15:22]SAM_PROTO_GetShiftState [18:15:22]wFMCommunicate request_size=4 [18:15:22]MH_SAM_APDU [18:15:22]CAPDU: 80 13 01 00 [18:15:22]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [18:15:22]Write i2c OK [18:15:22]MH_I2C_Read... [18:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:22]Read from MH i2c: E2 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 0E 00 [18:15:22]MH_I2C_Read... [18:15:22]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FC [18:15:22]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:15:22]wFMCommunicate OK [18:15:22]SAM_PROTO_GetShiftState done [18:15:22]FM_GetShiftState done [18:15:22]req_shift_opened done [18:15:22]requested_item shift.open_date is exist - process it [18:15:22]req_shift_open_date [18:15:22]req_shift_open_date done [18:15:22]produce_requested_data done [18:15:22]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18791,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [18:15:22]process_action_free close_receipt [18:15:22]json_value_free [18:15:22]json_value_free done [18:15:22]process_json_proto returns [18:15:22]Send response to host [18:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18791,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [18:15:22]free response buf [18:15:22]execute_script done [18:15:22]execute_script returns [18:15:22]free content buf [18:15:22]Sock 7.Close socket [18:15:22]Sock 7.Thread stoped [18:17:31]ConnectInit Can't connect to host [18:17:31]CommunicateWithHost connect error [18:17:31]CommunicateWithHost err = -1 [18:17:31]OFD Sender: Server communicate error [18:17:36]OFD Sender: Processing packet 18791 [packets to send 7, broken 6] [18:17:36]ProducePacketName [18:17:36]name=ofd_packets/00018791 [18:17:36]OFD Sender: To server: pG, [18:17:36]CommunicateWithHost lk.salyk.kg:30040 [18:17:36]ConnectInit lk.salyk.kg [18:17:36]Connected sock=7 [18:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 F0 6E 25 01 47 B2 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 38 B0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 67 49 00 00 35 04 06 00 8E D2 3C F9 00 CA 37 B3 7B 91 00 E7 D3 DE [18:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A7 56 47 00 E4 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 35 39 34 35 36 10 04 04 00 67 49 00 00 F4 03 04 00 23 5A F1 66 B6 04 01 00 00 6A 25 9C 35 C7 1C 30 62 [18:17:36]CommunicateWithHost err = 0 [18:17:36]CheckOFDResponse [18:17:36]1017 (14) - 77093643461234 [18:17:36]1041 (16) - 0000000000959456 [18:17:36]1040 (4) - 18791 [18:17:36]1012 (4) - 23.09.2024 12:08 [18:17:36]1206 (1) - 0 [18:17:36]OFD Sender: Remove packet 18791 [18:17:36]ProducePacketName [18:17:36]name=ofd_packets/00018791 [18:17:36]NVStorageDeleteData [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:06]accept exits with 9 [18:35:06]New connection [18:35:06]New thread 3066752356 created [18:35:06]Thread 3066608996 joined [18:35:06]Waiting for new connection... [18:35:06] Sock 9.Parse request [18:35:06]Sock 9.Check first char [18:35:06]Sock 9.First char is OK [18:35:06]request: POST /json_proto HTTP/1.0 [18:35:06]Method: POST [18:35:06]URL: /json_proto [18:35:06]Method is POST - this is cgi request [18:35:06]url: /json_proto [18:35:06]query_string will be loaded in cgi processing [18:35:06]execute_cgi json_proto POST (null) [18:35:06]execute_cgi path=json_proto method=POST [18:35:06]POST find Content-Length [18:35:06]Host: 172.17.62.196:8080 [18:35:06]Content-Length: 215 [18:35:06]Content-Type: application/json [18:35:06] [18:35:06]POST finish read [18:35:06]Found Content-Length = 215 [18:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:06]execute_script... [18:35:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:06]POST & json_proto [18:35:06]process_json_proto [18:35:06]json parsed OK: [18:35:06]protocol is kg_v1.0 [18:35:06]action value=get_value [18:35:06]process_action get_value [18:35:06]cmd_get_value [18:35:06]process_action get_value done [18:35:06]requested_data is exist [18:35:06]produce_requested_data [18:35:06]requested_item kkm.sn is exist - process it [18:35:06]requested_item kkm.ver is exist - process it [18:35:06]requested_item fm.sn is exist - process it [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 11 00 00 [18:35:06]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 BB [18:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:35:06]wFMCommunicate OK [18:35:06]requested_item fd.num is exist - process it [18:35:06]SAM_PROTO_GetFieldsCounters [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 00 00 [18:35:06]Write to MH i2c: E2 08 00 E4 05 80 13 00 00 00 00 00 00 65 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 E4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 67 49 00 00 0E 04 04 00 B5 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 C0 [18:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 67 49 00 00 0E 04 04 00 B5 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 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetFieldsCounters done [18:35:06]requested_item shift.num is exist - process it [18:35:06]requested_item shift.opened is exist - process it [18:35:06]req_shift_opened [18:35:06]FM_GetShiftState [18:35:06]SAM_PROTO_GetShiftState [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 01 00 [18:35:06]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FF [18:35:06]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetShiftState done [18:35:06]FM_GetShiftState done [18:35:06]req_shift_opened done [18:35:06]requested_item shift.open_date is exist - process it [18:35:06]req_shift_open_date [18:35:06]req_shift_open_date done [18:35:06]produce_requested_data done [18:35:06]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18791,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [18:35:06]process_action_free get_value [18:35:06]json_value_free [18:35:06]json_value_free done [18:35:06]process_json_proto returns [18:35:06]Send response to host [18:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18791,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [18:35:06]free response buf [18:35:06]execute_script done [18:35:06]execute_script returns [18:35:06]free content buf [18:35:06]Sock 9.Close socket [18:35:06]Sock 9.Thread stoped [18:35:06]accept exits with 7 [18:35:06]New connection [18:35:06]New thread 3066608996 created [18:35:06]Thread 3066752356 joined [18:35:06]Waiting for new connection... [18:35:06] Sock 7.Parse request [18:35:06]Sock 7.Check first char [18:35:06]Sock 7.First char is OK [18:35:06]request: POST /json_proto HTTP/1.0 [18:35:06]Method: POST [18:35:06]URL: /json_proto [18:35:06]Method is POST - this is cgi request [18:35:06]url: /json_proto [18:35:06]query_string will be loaded in cgi processing [18:35:06]execute_cgi json_proto POST (null) [18:35:06]execute_cgi path=json_proto method=POST [18:35:06]POST find Content-Length [18:35:06]Host: 172.17.62.196:8080 [18:35:06]Content-Length: 331 [18:35:06]Content-Type: application/json [18:35:06] [18:35:06]POST finish read [18:35:06]Found Content-Length = 331 [18:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:35:06]execute_script... [18:35:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:35:06]POST & json_proto [18:35:06]process_json_proto [18:35:06]json parsed OK: [18:35:06]protocol is kg_v1.0 [18:35:06]action value=get_value [18:35:06]process_action get_value [18:35:06]cmd_get_value [18:35:06]process_action get_value done [18:35:06]requested_data is exist [18:35:06]produce_requested_data [18:35:06]requested_item fm.sale.total is exist - process it [18:35:06]SAM_PROTO_GetFMData [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 03 00 [18:35:06]Write to MH i2c: E2 08 00 E6 05 80 13 03 00 00 00 00 00 6A [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:35:07]Read from MH i2c: E2 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 E6 05 00 BE 04 85 04 BA 04 6E 04 04 00 FD 47 00 00 69 04 A0 00 6F 04 04 00 EE 47 00 00 B1 04 04 00 DE E4 80 31 70 04 04 00 E8 C3 20 1F 72 04 04 00 F6 20 60 12 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 DE EB 41 05 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 41 22 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 66 [18:35:07]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 FD 47 00 00 69 04 A0 00 6F 04 04 00 EE 47 00 00 B1 04 04 00 DE E4 80 31 70 04 04 00 E8 C3 20 1F 72 04 04 00 F6 20 60 12 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 DE EB 41 05 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 41 22 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [18:35:07]wFMCommunicate OK [18:35:07]wFMCommunicate request_size=4 [18:35:07]MH_SAM_APDU [18:35:07]CAPDU: 80 17 00 00 [18:35:07]Write to MH i2c: E2 08 00 E7 05 80 17 00 00 00 00 00 00 6C [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:07]Read from MH i2c: E2 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 E7 05 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [18:35:07]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:35:07]wFMCommunicate OK [18:35:07]wFMCommunicate request_size=4 [18:35:07]MH_SAM_APDU [18:35:07]CAPDU: 80 17 00 00 [18:35:07]Write to MH i2c: E2 08 00 E8 05 80 17 00 00 00 00 00 00 6D [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:07]Read from MH i2c: E2 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 E8 05 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [18:35:07]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:35:07]wFMCommunicate OK [18:35:07]wFMCommunicate request_size=4 [18:35:07]MH_SAM_APDU [18:35:07]CAPDU: 80 17 00 00 [18:35:07]Write to MH i2c: E2 08 00 E9 05 80 17 00 00 00 00 00 00 6E [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:07]Read from MH i2c: E2 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 FD 00 E9 05 00 04 F7 03 00 00 EF 03 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 90 00 E9 [18:35:07]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [18:35:07]wFMCommunicate OK [18:35:07]wFMCommunicate request_size=4 [18:35:07]MH_SAM_APDU [18:35:07]CAPDU: 80 17 00 00 [18:35:07]Write to MH i2c: E2 08 00 EA 05 80 17 00 00 00 00 00 00 6F [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 DB 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 DB 00 EA 05 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [18:35:08]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_GetFMData done [18:35:08]requested_item fm.sale_refund.total is exist - process it [18:35:08]requested_item fm.buy.total is exist - process it [18:35:08]requested_item shift.sale.total is exist - process it [18:35:08]SAM_PROTO_GetShiftData [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 13 02 00 [18:35:08]Write to MH i2c: E2 08 00 EB 05 80 13 02 00 00 00 00 00 6E [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]OFD Sender: No OFD packet to send [18:35:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 FD 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 FD 00 EB 05 00 AE 04 AA 04 AA 04 6E 04 04 00 43 00 00 00 69 04 9B 00 6F 04 04 00 43 00 00 00 B1 04 03 00 DC D9 17 70 04 03 00 70 C5 15 72 04 03 00 6C 14 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 82 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 05 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 94 [18:35:08]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 43 00 00 00 69 04 9B 00 6F 04 04 00 43 00 00 00 B1 04 03 00 DC D9 17 70 04 03 00 70 C5 15 72 04 03 00 6C 14 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 82 88 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 05 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 17 00 00 [18:35:08]Write to MH i2c: E2 08 00 EC 05 80 17 00 00 00 00 00 00 71 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 FD 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 FD 00 EC 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 93 [18:35:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 17 00 00 [18:35:08]Write to MH i2c: E2 08 00 ED 05 80 17 00 00 00 00 00 00 72 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:09]Read from MH i2c: E2 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 FD 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 FD 00 ED 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 29 [18:35:09]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [18:35:09]wFMCommunicate OK [18:35:09]wFMCommunicate request_size=4 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 17 00 00 [18:35:09]Write to MH i2c: E2 08 00 EE 05 80 17 00 00 00 00 00 00 73 [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:09]Read from MH i2c: E2 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 FD 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 FD 00 EE 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E5 [18:35:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [18:35:09]wFMCommunicate OK [18:35:09]wFMCommunicate request_size=4 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 17 00 00 [18:35:09]Write to MH i2c: E2 08 00 EF 05 80 17 00 00 00 00 00 00 74 [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [18:35:09]Read from MH i2c: E2 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 CB 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 CB 00 EF 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5D [18:35:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:35:09]wFMCommunicate OK [18:35:09]SAM_PROTO_GetShiftData done [18:35:09]requested_item shift.sale.total_cash is exist - process it [18:35:09]requested_item shift.sale_refund.total is exist - process it [18:35:09]requested_item shift.sale_refund.total_cash is exist - process it [18:35:09]requested_item shift.buy.total is exist - process it [18:35:09]requested_item shift.buy.total_cash is exist - process it [18:35:09]produce_requested_data done [18:35:09]produce_requested_data return {"fm.sale.total":8305307.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":15631.00,"shift.sale.total_cash":14268.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:35:09]process_action_free get_value [18:35:09]json_value_free [18:35:09]json_value_free done [18:35:09]process_json_proto returns [18:35:09]Send response to host [18:35:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8305307.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":15631.00,"shift.sale.total_cash":14268.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:35:09]free response buf [18:35:09]execute_script done [18:35:09]execute_script returns [18:35:09]free content buf [18:35:09]Sock 7.Close socket [18:35:09]Sock 7.Thread stoped [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:38]accept exits with 9 [18:43:38]New connection [18:43:38]New thread 3066752356 created [18:43:38]Thread 3066608996 joined [18:43:38]Waiting for new connection... [18:43:38] Sock 9.Parse request [18:43:38]Sock 9.Check first char [18:43:38]Sock 9.First char is OK [18:43:38]request: POST /json_proto HTTP/1.0 [18:43:38]Method: POST [18:43:38]URL: /json_proto [18:43:38]Method is POST - this is cgi request [18:43:38]url: /json_proto [18:43:38]query_string will be loaded in cgi processing [18:43:38]execute_cgi json_proto POST (null) [18:43:38]execute_cgi path=json_proto method=POST [18:43:38]POST find Content-Length [18:43:38]Host: 172.17.62.196:8080 [18:43:38]Content-Length: 701 [18:43:38]Content-Type: application/json [18:43:38] [18:43:38]POST finish read [18:43:38]Found Content-Length = 701 [18:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16712", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:38]execute_script... [18: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 : (3)16712", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:38]POST & json_proto [18:43:38]process_json_proto [18:43:38]json parsed OK: [18:43:38]protocol is kg_v1.0 [18:43:38]action value=close_receipt [18:43:38]process_action close_receipt [18:43:38]cmd_close_receipt [18:43:38]MH_GetDate [18:43:38]Write to MH i2c: F0 00 00 F0 05 E4 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 09 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: F0 09 00 F0 05 00 DC B6 F1 66 CE CC 0E 66 E4 [18:43:38]GetLastDocTimeStamp 1727115320 [18:43:38]current date 1727117020 [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 F1 05 80 13 01 00 00 00 00 00 73 [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 F1 05 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 0B [18:43:38]RAPDU: 09 00 01 84 B2 F0 66 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]opened in 1727050372 [18:43:38]opened+sec_in_day 1727136772 [18:43:38]quantity*price = 12500 [18:43:38]sum+1 = 12501 [18:43:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 68 23.09.2024 18:43 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18792 ФПД: 137250635815187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184340&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18792&fm=137250635815187&tin=02508201610067®Number=0000000000152968&sum=12500 0 [18:43:39]StoreToDocumentArchive [18:43:39]shift 181 fd 18792 [18:43:39]save to /storage/0181/doc_00018792 [18:43:39]save last doc name /storage/0181/doc_00018792 to /storage/kkm_last_doc_name [18:43:39]save OK [18:43:39]Clear old archive folders... [18:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=298 [18:43:39]tlvbuf is 00BF3BF0 [18:43:39]SAM_PROTO_ClearQueue [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 09 00 00 [18:43:39]Write to MH i2c: E2 08 00 FE 05 80 09 00 00 00 00 00 00 75 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]SAM_PROTO_ClearQueue done [18:43:39]KKMCreateOFDPacket [18:43:39]OFDProtocolAddRootSTLVToBuf [18:43:39]FM_MakeSignedData [18:43:39]FM_MakeSignedData [18:43:39]SAM_PROTO_SignData [18:43:39]wFMCommunicate request_size=4 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 01 02 [18:43:39]Write to MH i2c: E2 08 00 FF 05 80 0D 01 02 00 00 00 00 7D [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:39]Read from MH i2c: E2 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 [18:43:39]MH_I2C_Read... [18:43:39]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [18:43:39]RAPDU: 90 00 [18:43:39]wFMCommunicate OK [18:43:39]wFMCommunicate request_size=255 [18:43:39]MH_SAM_APDU [18:43:39]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DC B6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [18:43:39]Write to MH i2c: E2 02 01 00 06 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DC B6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 C4 [18:43:39]Write i2c OK [18:43:39]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [18:43:40]RAPDU: 90 00 [18:43:40]wFMCommunicate OK [18:43:40]wFMCommunicate request_size=57 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 68 49 00 00 35 04 06 00 7C D4 27 64 99 13 [18:43:40]Write to MH i2c: E2 3C 00 01 06 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 68 49 00 00 35 04 06 00 7C D4 27 64 99 13 00 00 82 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [18:43:40]RAPDU: 90 00 [18:43:40]wFMCommunicate OK [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 0D 03 02 [18:43:40]Write to MH i2c: E2 08 00 02 06 80 0D 03 02 00 00 00 00 83 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0B 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0B 00 02 06 00 43 32 99 8F CE 6D E7 FB 90 00 3E [18:43:40]RAPDU: 43 32 99 8F CE 6D E7 FB 90 00 [18:43:40]wFMCommunicate OK [18:43:40]SAM_PROTO_SignData done [18:43:40]FM_MakeSignedData done [18:43:40]CreateOFDProtocolMessage [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 11 00 00 [18:43:40]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 17 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 17 00 03 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DC [18:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:43:40]wFMCommunicate OK [18:43:40]CreateOFDProtocolMessage done [18:43:40]OFDSenderStorePacket 18792 [18:43:40]StoreOFDPacket docnum=18792 [18:43:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3E 01 00 00 AD 38 36 01 69 A9 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DC B6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 68 49 00 00 35 04 06 00 7C D4 27 64 99 13 43 32 99 8F CE 6D E7 FB [18:43:40]CheckFolder [18:43:40]dirname=/storage/ofd_packets [18:43:40]CheckFolder done [18:43:40]ProducePacketName [18:43:40]name=ofd_packets/00018792 [18:43:40]NVStorageSaveData ofd_packets/00018792 [18:43:40]File name is /storage/ofd_packets/00018792 [18:43:40]Write 348 bytes [18:43:40]NVStorageSaveData done [18:43:40]OFDSenderStorePacket done [18:43:40]KKMCreateOFDPacket done [18:43:40]NVStorageSaveData kkm_last_timestamp [18:43:40]File name is /storage/kkm_last_timestamp [18:43:40]Write 4 bytes [18:43:40]NVStorageSaveData done [18:43:40]ExternCall_PrintAddStr [18:43:40]wPrintStart [18:43:40]Write to MH i2c: 01 00 00 04 06 0A [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 04 06 00 00 00 00 00 FF 0F 1F [18:43:40]RasterBufferAndPrint [18:43:40]line Счет N : (3)16712 [18:43:40]line ИНН: 02508201610067 [18:43:40]line Контрольно-Кассовый Чек [18:43:40]line ПРОДАЖА [18:43:40]line Товар: 4870202522701 [18:43:40]line Напиток Maxi Чай черный Малина 1,2 [18:43:40]line 1.000 * 125.00 [18:43:40]line = 125.00 [18:43:40]line НДС 12% НСП 1% [18:43:40]line > о реализуемом товаре [18:43:40]line ИТОГО: 125.00 [18:43:40]line НСП 1% : 1.11 [18:43:40]line НДС 12% : 13.27 [18:43:40]line Наличными: 125.00 [18:43:40]line Безнал.: 0.00 [18:43:40]line Место: АЗС № 176 "Партнер Нефть" [18:43:40]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:43:40]line СНО: Общий режим [18:43:40]line Чек 68 23.09.2024 18:43 [18:43:40]line Смена: 181 ФФД: 1.0 [18:43:40]line ЗНМ: 0300000010 [18:43:40]line РНМ: 0000000000152968 [18:43:40]line Версия ККМ: v1.0 [18:43:40]line ФМ: 0000000000959456 [18:43:40]line ФД: 18792 [18:43:40]line ФПД: 137250635815187 [18:43:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184340&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18792&fm=137250635815187&tin=02508201610067®Number=0000000000152968&sum=12500 [18:43:40]line 0 [18:43:40]OFD Sender: Processing packet 18792 [packets to send 7, broken 6] [18:43:40]ProducePacketName [18:43:40]name=ofd_packets/00018792 [18:43:40]OFD Sender: To server: pG, [18:43:40]CommunicateWithHost lk.salyk.kg:30040 [18:43:40]ConnectInit lk.salyk.kg [18:43:40]written 0, free lines is 4095 [18:43:40]Connected sock=10 [18:43:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3E 01 00 00 AD 38 36 01 69 A9 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DC B6 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 68 49 00 00 35 04 06 00 7C D4 27 64 99 13 43 32 99 8F CE 6D E7 FB [18:43:41]Write to MH i2c: 01 00 00 2D 06 33 [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: 01 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: 01 07 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 08 0D 4F [18:43:41]RasterBufferAndPrint [18:43:41]line [18:43:41]line [18:43:41]line [18:43:41]line [18:43:41]line [18:43:41]written 0, free lines is 3343 [18:43:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B2 5E 47 00 ED 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 35 39 34 35 36 10 04 04 00 68 49 00 00 F4 03 04 00 3F 60 F1 66 B6 04 01 00 00 65 BE D9 74 90 08 1C 33 [18:43:41]CommunicateWithHost err = 0 [18:43:41]CheckOFDResponse [18:43:41]1017 (14) - 77093643461234 [18:43:41]1041 (16) - 0000000000959456 [18:43:41]1040 (4) - 18792 [18:43:41]1012 (4) - 23.09.2024 12:34 [18:43:41]1206 (1) - 0 [18:43:41]OFD Sender: Remove packet 18792 [18:43:41]ProducePacketName [18:43:41]name=ofd_packets/00018792 [18:43:41]NVStorageDeleteData [18:43:41]MH_Cut [18:43:41]Write to MH i2c: D1 01 00 34 06 01 0C [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: D1 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: D1 01 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: D1 01 00 34 06 00 0B [18:43:41]Write to MH i2c: 01 00 00 35 06 3B [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]OFD Sender: No OFD packet to send [18:43:41]*** Cut start [18:43:41]*** Partial cut [18:43:41]*** CUTSNS_PIN = 1 [18:43:41]*** CUTSNS_PIN = 0 [18:43:41]*** Brake cut motor [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]*** Stop cut motor [18:43:42]*** Cut end [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 FF 0F 50 [18:43:42]process_action close_receipt done [18:43:42]requested_data is exist [18:43:42]produce_requested_data [18:43:42]requested_item fm.sn is exist - process it [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 11 00 00 [18:43:42]Write to MH i2c: E2 08 00 36 06 80 11 00 00 00 00 00 00 B6 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 [18:43:42]MH_I2C_Read... [18:43:42]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 35 39 34 35 36 90 00 0F [18:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:43:42]wFMCommunicate OK [18:43:42]requested_item fd.num is exist - process it [18:43:42]SAM_PROTO_GetFieldsCounters [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 00 00 [18:43:42]Write to MH i2c: E2 08 00 37 06 80 13 00 00 00 00 00 00 B9 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 62 00 [18:43:42]MH_I2C_Read... [18:43:42]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 68 49 00 00 0E 04 04 00 B5 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 18 [18: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 68 49 00 00 0E 04 04 00 B5 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 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetFieldsCounters done [18:43:42]requested_item shift.num is exist - process it [18:43:42]requested_item shift.opened is exist - process it [18:43:42]req_shift_opened [18:43:42]FM_GetShiftState [18:43:42]SAM_PROTO_GetShiftState [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 13 01 00 [18:43:42]Write to MH i2c: E2 08 00 38 06 80 13 01 00 00 00 00 00 BB [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0E 00 38 06 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 53 [18:43:42]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_GetShiftState done [18:43:42]FM_GetShiftState done [18:43:42]req_shift_opened done [18:43:42]requested_item shift.open_date is exist - process it [18:43:42]req_shift_open_date [18:43:42]req_shift_open_date done [18:43:42]produce_requested_data done [18:43:42]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18792,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [18:43:42]process_action_free close_receipt [18:43:42]json_value_free [18:43:42]json_value_free done [18:43:42]process_json_proto returns [18:43:42]Send response to host [18:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18792,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [18:43:42]free response buf [18:43:42]execute_script done [18:43:42]execute_script returns [18:43:42]free content buf [18:43:42]Sock 9.Close socket [18:43:42]Sock 9.Thread stoped [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:32]accept exits with 7 [18:46:32]New connection [18:46:32]New thread 3066608996 created [18:46:32]Thread 3066752356 joined [18:46:32]Waiting for new connection... [18:46:32] Sock 7.Parse request [18:46:32]Sock 7.Check first char [18:46:32]Sock 7.First char is OK [18:46:32]request: POST /json_proto HTTP/1.0 [18:46:32]Method: POST [18:46:32]URL: /json_proto [18:46:32]Method is POST - this is cgi request [18:46:32]url: /json_proto [18:46:32]query_string will be loaded in cgi processing [18:46:32]execute_cgi json_proto POST (null) [18:46:32]execute_cgi path=json_proto method=POST [18:46:32]POST find Content-Length [18:46:32]Host: 172.17.62.196:8080 [18:46:32]Content-Length: 647 [18:46:32]Content-Type: application/json [18:46:32] [18:46:32]POST finish read [18:46:32]Found Content-Length = 647 [18:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:32]execute_script... [18: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)116442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:32]POST & json_proto [18:46:32]process_json_proto [18:46:32]json parsed OK: [18:46:32]protocol is kg_v1.0 [18:46:32]action value=close_receipt [18:46:32]process_action close_receipt [18:46:32]cmd_close_receipt [18:46:32]MH_GetDate [18:46:32]Write to MH i2c: F0 00 00 39 06 2E [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: F0 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: F0 09 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: F0 09 00 39 06 00 89 B7 F1 66 CE CC 0E 66 DC [18:46:32]GetLastDocTimeStamp 1727117020 [18:46:32]current date 1727117193 [18:46:32]FM_GetShiftState [18:46:32]SAM_PROTO_GetShiftState [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 13 01 00 [18:46:32]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 0E 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 55 [18:46:32]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:46:32]wFMCommunicate OK [18:46:32]SAM_PROTO_GetShiftState done [18:46:32]FM_GetShiftState done [18:46:32]opened in 1727050372 [18:46:32]opened+sec_in_day 1727136772 [18:46:32]quantity*price = 99999 [18:46:32]sum+1 = 100001 [18:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 69 23.09.2024 18:46 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18793 ФПД: 51073797609827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184633&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18793&fm=51073797609827&tin=02508201610067®Number=0000000000152968&sum=100000 [18:46:33]StoreToDocumentArchive [18:46:33]shift 181 fd 18793 [18:46:33]save to /storage/0181/doc_00018793 [18:46:33]save last doc name /storage/0181/doc_00018793 to /storage/kkm_last_doc_name [18:46:33]save OK [18:46:33]Clear old archive folders... [18:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:46:33]tlvbuf is 00C34C00 [18:46:33]SAM_PROTO_ClearQueue [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 09 00 00 [18:46:33]Write to MH i2c: E2 08 00 47 06 80 09 00 00 00 00 00 00 BF [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [18:46:33]RAPDU: 90 00 [18:46:33]wFMCommunicate OK [18:46:33]SAM_PROTO_ClearQueue done [18:46:33]KKMCreateOFDPacket [18:46:33]OFDProtocolAddRootSTLVToBuf [18:46:33]FM_MakeSignedData [18:46:33]FM_MakeSignedData [18:46:33]SAM_PROTO_SignData [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 0D 01 02 [18:46:33]Write to MH i2c: E2 08 00 48 06 80 0D 01 02 00 00 00 00 C7 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [18:46:33]RAPDU: 90 00 [18:46:33]wFMCommunicate OK [18:46:33]wFMCommunicate request_size=255 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 89 B7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 69 49 00 00 35 04 06 00 [18:46:33]Write to MH i2c: E2 02 01 49 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 89 B7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 69 49 00 00 35 04 06 00 00 00 68 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [18:46:33]RAPDU: 90 00 [18:46:33]wFMCommunicate OK [18:46:33]wFMCommunicate request_size=11 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 0D 02 02 06 2E 73 8B 90 59 63 [18:46:33]Write to MH i2c: E2 0E 00 4A 06 80 0D 02 02 06 00 2E 73 8B 90 59 63 00 00 4E [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [18:46:33]RAPDU: 90 00 [18:46:33]wFMCommunicate OK [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 0D 03 02 [18:46:33]Write to MH i2c: E2 08 00 4B 06 80 0D 03 02 00 00 00 00 CC [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0B 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0B 00 4B 06 00 A9 80 58 DF 93 89 A4 63 90 00 50 [18:46:33]RAPDU: A9 80 58 DF 93 89 A4 63 90 00 [18:46:33]wFMCommunicate OK [18:46:33]SAM_PROTO_SignData done [18:46:33]FM_MakeSignedData done [18:46:33]CreateOFDProtocolMessage [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 11 00 00 [18:46:33]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 17 00 [18:46:33]MH_I2C_Read... [18:46:33]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 35 39 34 35 36 90 00 25 [18:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:46:33]wFMCommunicate OK [18:46:33]CreateOFDProtocolMessage done [18:46:33]OFDSenderStorePacket 18793 [18:46:33]StoreOFDPacket docnum=18793 [18:46:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 7D 5F 08 01 89 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 89 B7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 69 49 00 00 35 04 06 00 2E 73 8B 90 59 63 A9 80 58 DF 93 89 A4 63 [18:46:33]CheckFolder [18:46:33]dirname=/storage/ofd_packets [18:46:33]CheckFolder done [18:46:33]ProducePacketName [18:46:33]name=ofd_packets/00018793 [18:46:33]NVStorageSaveData ofd_packets/00018793 [18:46:33]File name is /storage/ofd_packets/00018793 [18:46:33]Write 302 bytes [18:46:33]NVStorageSaveData done [18:46:33]OFDSenderStorePacket done [18:46:33]KKMCreateOFDPacket done [18:46:33]NVStorageSaveData kkm_last_timestamp [18:46:33]File name is /storage/kkm_last_timestamp [18:46:33]Write 4 bytes [18:46:33]NVStorageSaveData done [18:46:33]ExternCall_PrintAddStr [18:46:33]wPrintStart [18:46:33]Write to MH i2c: 01 00 00 4D 06 53 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: 01 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: 01 07 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 FF 0F 68 [18:46:33]RasterBufferAndPrint [18:46:33]line Счет N : (1)116442 [18:46:33]line ИНН: 02508201610067 [18:46:33]line Контрольно-Кассовый Чек [18:46:33]line ПРОДАЖА [18:46:33]line ТРК (МРК, ГНК) : 11 [18:46:33]line Товар: 2710194210 [18:46:33]line ДТ(л)-К-5 [18:46:33]line 13.210 * 75.70 [18:46:33]line = 1000.00 [18:46:33]line НДС 12% НСП 1% [18:46:33]line > о реализуемом товаре [18:46:33]line ИТОГО: 1000.00 [18:46:33]line НСП 1% : 8.85 [18:46:33]line НДС 12% : 106.19 [18:46:33]line Наличными: 1000.00 [18:46:33]line Безнал.: 0.00 [18:46:33]line Место: АЗС № 176 "Партнер Нефть" [18:46:33]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [18:46:33]line СНО: Общий режим [18:46:33]line Чек 69 23.09.2024 18:46 [18:46:33]line Смена: 181 ФФД: 1.0 [18:46:33]line ЗНМ: 0300000010 [18:46:33]line РНМ: 0000000000152968 [18:46:33]line Версия ККМ: v1.0 [18:46:33]line ФМ: 0000000000959456 [18:46:33]line ФД: 18793 [18:46:33]line ФПД: 51073797609827 [18:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T184633&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18793&fm=51073797609827&tin=02508201610067®Number=0000000000152968&sum=100000 [18:46:34]OFD Sender: Processing packet 18793 [packets to send 7, broken 6] [18:46:34]ProducePacketName [18:46:34]name=ofd_packets/00018793 [18:46:34]OFD Sender: To server: pG, [18:46:34]CommunicateWithHost lk.salyk.kg:30040 [18:46:34]ConnectInit lk.salyk.kg [18:46:34]written 0, free lines is 4095 [18:46:34]Connected sock=10 [18:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 7D 5F 08 01 89 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 89 B7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 69 49 00 00 35 04 06 00 2E 73 8B 90 59 63 A9 80 58 DF 93 89 A4 63 [18:46:34]Write to MH i2c: 01 00 00 75 06 7B [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: 01 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: 01 07 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 23 0D B2 [18:46:34]RasterBufferAndPrint [18:46:34]line [18:46:34]line [18:46:34]line [18:46:34]line [18:46:34]line [18:46:34]written 0, free lines is 3369 [18:46:34]MH_Cut [18:46:34]Write to MH i2c: D1 01 00 7C 06 01 54 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: D1 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: D1 01 00 [18:46:34]MH_I2C_Read... [18:46:34]Read from MH i2c: D1 01 00 7C 06 00 53 [18:46:34]Write to MH i2c: 01 00 00 7D 06 83 [18:46:34]Write i2c OK [18:46:34]MH_I2C_Read... [18:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 40 0A 47 00 F4 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 69 49 00 00 F4 03 04 00 ED 60 F1 66 B6 04 01 00 00 17 45 8E 01 5F E3 E5 5B [18:46:34]CommunicateWithHost err = 0 [18:46:34]CheckOFDResponse [18:46:34]1017 (14) - 77093643461234 [18:46:34]1041 (16) - 0000000000959456 [18:46:34]1040 (4) - 18793 [18:46:34]1012 (4) - 23.09.2024 12:37 [18:46:34]1206 (1) - 0 [18:46:34]OFD Sender: Remove packet 18793 [18:46:34]ProducePacketName [18:46:34]name=ofd_packets/00018793 [18:46:34]NVStorageDeleteData [18:46:35]OFD Sender: No OFD packet to send [18:46:35]*** Cut start [18:46:35]*** Partial cut [18:46:35]*** CUTSNS_PIN = 1 [18:46:35]*** CUTSNS_PIN = 0 [18:46:35]*** Brake cut motor [18:46:35]Read from MH i2c: 01 [18:46:35]MH_I2C_Read... [18:46:35]*** Stop cut motor [18:46:35]*** Cut end [18:46:35]Read from MH i2c: 01 07 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: 01 07 00 7D 06 00 00 00 00 00 FF 0F 98 [18:46:35]process_action close_receipt done [18:46:35]requested_data is exist [18:46:35]produce_requested_data [18:46:35]requested_item fm.sn is exist - process it [18:46:35]wFMCommunicate request_size=4 [18:46:35]MH_SAM_APDU [18:46:35]CAPDU: 80 11 00 00 [18:46:35]Write to MH i2c: E2 08 00 7E 06 80 11 00 00 00 00 00 00 FE [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:35]Read from MH i2c: E2 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 17 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 17 00 7E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 57 [18:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [18:46:35]wFMCommunicate OK [18:46:35]requested_item fd.num is exist - process it [18:46:35]SAM_PROTO_GetFieldsCounters [18:46:35]wFMCommunicate request_size=4 [18:46:35]MH_SAM_APDU [18:46:35]CAPDU: 80 13 00 00 [18:46:35]Write to MH i2c: E2 08 00 7F 06 80 13 00 00 00 00 00 00 01 [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:35]Read from MH i2c: E2 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 62 00 [18:46:35]MH_I2C_Read... [18:46:35]Read from MH i2c: E2 62 00 7F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 69 49 00 00 0E 04 04 00 B5 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 64 [18:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 69 49 00 00 0E 04 04 00 B5 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 [18:46:35]wFMCommunicate OK [18:46:35]SAM_PROTO_GetFieldsCounters done [18:46:35]requested_item shift.num is exist - process it [18:46:35]requested_item shift.opened is exist - process it [18:46:35]req_shift_opened [18:46:35]FM_GetShiftState [18:46:35]SAM_PROTO_GetShiftState [18:46:35]wFMCommunicate request_size=4 [18:46:35]MH_SAM_APDU [18:46:35]CAPDU: 80 13 01 00 [18:46:35]Write to MH i2c: E2 08 00 80 06 80 13 01 00 00 00 00 00 03 [18:46:35]Write i2c OK [18:46:35]MH_I2C_Read... [18:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:36]Read from MH i2c: E2 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 0E 00 [18:46:36]MH_I2C_Read... [18:46:36]Read from MH i2c: E2 0E 00 80 06 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 9B [18:46:36]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [18:46:36]wFMCommunicate OK [18:46:36]SAM_PROTO_GetShiftState done [18:46:36]FM_GetShiftState done [18:46:36]req_shift_opened done [18:46:36]requested_item shift.open_date is exist - process it [18:46:36]req_shift_open_date [18:46:36]req_shift_open_date done [18:46:36]produce_requested_data done [18:46:36]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18793,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [18:46:36]process_action_free close_receipt [18:46:36]json_value_free [18:46:36]json_value_free done [18:46:36]process_json_proto returns [18:46:36]Send response to host [18:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18793,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [18:46:36]free response buf [18:46:36]execute_script done [18:46:36]execute_script returns [18:46:36]free content buf [18:46:36]Sock 7.Close socket [18:46:36]Sock 7.Thread stoped [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:11]accept exits with 9 [19:06:11]New connection [19:06:11]New thread 3066752356 created [19:06:11]Thread 3066608996 joined [19:06:11]Waiting for new connection... [19:06:11] Sock 9.Parse request [19:06:11]Sock 9.Check first char [19:06:11]Sock 9.First char is OK [19:06:11]request: POST /json_proto HTTP/1.0 [19:06:11]Method: POST [19:06:11]URL: /json_proto [19:06:11]Method is POST - this is cgi request [19:06:11]url: /json_proto [19:06:11]query_string will be loaded in cgi processing [19:06:11]execute_cgi json_proto POST (null) [19:06:11]execute_cgi path=json_proto method=POST [19:06:11]POST find Content-Length [19:06:11]Host: 172.17.62.196:8080 [19:06:11]Content-Length: 620 [19:06:11]Content-Type: application/json [19:06:11] [19:06:11]POST finish read [19:06:11]Found Content-Length = 620 [19:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16713", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:11]execute_script... [19:06:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16713", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:11]POST & json_proto [19:06:11]process_json_proto [19:06:11]json parsed OK: [19:06:11]protocol is kg_v1.0 [19:06:11]action value=close_receipt [19:06:11]process_action close_receipt [19:06:11]cmd_close_receipt [19:06:11]MH_GetDate [19:06:11]Write to MH i2c: F0 00 00 81 06 76 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: F0 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: F0 09 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: F0 09 00 81 06 00 25 BC F1 66 CE CC 0E 66 C5 [19:06:11]GetLastDocTimeStamp 1727117193 [19:06:11]current date 1727118373 [19:06:11]FM_GetShiftState [19:06:11]SAM_PROTO_GetShiftState [19:06:11]wFMCommunicate request_size=4 [19:06:11]MH_SAM_APDU [19:06:11]CAPDU: 80 13 01 00 [19:06:11]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 0E 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 9D [19:06:11]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:06:11]wFMCommunicate OK [19:06:11]SAM_PROTO_GetShiftState done [19:06:11]FM_GetShiftState done [19:06:11]opened in 1727050372 [19:06:11]opened+sec_in_day 1727136772 [19:06:11]quantity*price = 14400 [19:06:11]sum+1 = 14401 [19:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 70 23.09.2024 19:06 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18794 ФПД: 131736769353319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T190613&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18794&fm=131736769353319&tin=02508201610067®Number=0000000000152968&sum=14400 0 [19:06:12]StoreToDocumentArchive [19:06:12]shift 181 fd 18794 [19:06:12]save to /storage/0181/doc_00018794 [19:06:12]save last doc name /storage/0181/doc_00018794 to /storage/kkm_last_doc_name [19:06:12]save OK [19:06:12]Clear old archive folders... [19:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:06:12]tlvbuf is 00C178D0 [19:06:12]SAM_PROTO_ClearQueue [19:06:12]wFMCommunicate request_size=4 [19:06:12]MH_SAM_APDU [19:06:12]CAPDU: 80 09 00 00 [19:06:12]Write to MH i2c: E2 08 00 8F 06 80 09 00 00 00 00 00 00 07 [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:12]Read from MH i2c: E2 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: E2 03 00 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [19:06:12]RAPDU: 90 00 [19:06:12]wFMCommunicate OK [19:06:12]SAM_PROTO_ClearQueue done [19:06:12]KKMCreateOFDPacket [19:06:12]OFDProtocolAddRootSTLVToBuf [19:06:12]FM_MakeSignedData [19:06:12]FM_MakeSignedData [19:06:12]SAM_PROTO_SignData [19:06:12]wFMCommunicate request_size=4 [19:06:12]MH_SAM_APDU [19:06:12]CAPDU: 80 0D 01 02 [19:06:12]Write to MH i2c: E2 08 00 90 06 80 0D 01 02 00 00 00 00 0F [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:12]Read from MH i2c: E2 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: E2 03 00 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [19:06:12]RAPDU: 90 00 [19:06:12]wFMCommunicate OK [19:06:12]wFMCommunicate request_size=255 [19:06:12]MH_SAM_APDU [19:06:12]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 25 BC F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 [19:06:12]Write to MH i2c: E2 02 01 91 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 25 BC F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 00 00 9E [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=32 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 34 35 36 10 04 04 00 6A 49 00 00 35 04 06 00 77 D0 5B 57 56 67 [19:06:13]Write to MH i2c: E2 23 00 92 06 80 0D 02 02 1B 00 30 30 30 39 35 39 34 35 36 10 04 04 00 6A 49 00 00 35 04 06 00 77 D0 5B 57 56 67 00 00 DE [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 03 02 [19:06:13]Write to MH i2c: E2 08 00 93 06 80 0D 03 02 00 00 00 00 14 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0B 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0B 00 93 06 00 F8 96 7D BA E5 0C 5C 19 90 00 40 [19:06:13]RAPDU: F8 96 7D BA E5 0C 5C 19 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_SignData done [19:06:13]FM_MakeSignedData done [19:06:13]CreateOFDProtocolMessage [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 11 00 00 [19:06:13]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6D [19:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:06:13]wFMCommunicate OK [19:06:13]CreateOFDProtocolMessage done [19:06:13]OFDSenderStorePacket 18794 [19:06:13]StoreOFDPacket docnum=18794 [19:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 76 94 1D 01 B9 5A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 25 BC F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6A 49 00 00 35 04 06 00 77 D0 5B 57 56 67 F8 96 7D BA E5 0C 5C 19 [19:06:13]CheckFolder [19:06:13]dirname=/storage/ofd_packets [19:06:13]CheckFolder done [19:06:13]ProducePacketName [19:06:13]name=ofd_packets/00018794 [19:06:13]NVStorageSaveData ofd_packets/00018794 [19:06:13]File name is /storage/ofd_packets/00018794 [19:06:13]Write 323 bytes [19:06:13]NVStorageSaveData done [19:06:13]OFDSenderStorePacket done [19:06:13]KKMCreateOFDPacket done [19:06:13]NVStorageSaveData kkm_last_timestamp [19:06:13]File name is /storage/kkm_last_timestamp [19:06:13]Write 4 bytes [19:06:13]NVStorageSaveData done [19:06:13]ExternCall_PrintAddStr [19:06:13]wPrintStart [19:06:13]Write to MH i2c: 01 00 00 95 06 9B [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 07 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 FF 0F B0 [19:06:13]RasterBufferAndPrint [19:06:13]line Счет N : (3)16713 [19:06:13]line ИНН: 02508201610067 [19:06:13]line Контрольно-Кассовый Чек [19:06:13]line ПРОДАЖА [19:06:13]line Товар: 48747059 [19:06:13]line Сигареты Winston Legend Blue [19:06:13]line 1.000 * 144.00 [19:06:13]line = 144.00 [19:06:13]line НДС 12% НСП 1% [19:06:13]line > о реализуемом товаре [19:06:13]line ИТОГО: 144.00 [19:06:13]line НСП 1% : 1.27 [19:06:13]line НДС 12% : 15.29 [19:06:13]line Наличными: 144.00 [19:06:13]line Безнал.: 0.00 [19:06:13]line Место: АЗС № 176 "Партнер Нефть" [19:06:13]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:06:13]line СНО: Общий режим [19:06:13]line Чек 70 23.09.2024 19:06 [19:06:13]line Смена: 181 ФФД: 1.0 [19:06:13]line ЗНМ: 0300000010 [19:06:13]line РНМ: 0000000000152968 [19:06:13]line Версия ККМ: v1.0 [19:06:13]line ФМ: 0000000000959456 [19:06:13]line ФД: 18794 [19:06:13]line ФПД: 131736769353319 [19:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T190613&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18794&fm=131736769353319&tin=02508201610067®Number=0000000000152968&sum=14400 [19:06:13]line 0 [19:06:13]OFD Sender: Processing packet 18794 [packets to send 7, broken 6] [19:06:13]ProducePacketName [19:06:13]name=ofd_packets/00018794 [19:06:13]OFD Sender: To server: pG, [19:06:13]CommunicateWithHost lk.salyk.kg:30040 [19:06:13]ConnectInit lk.salyk.kg [19:06:13]written 0, free lines is 4095 [19:06:13]Connected sock=10 [19:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 76 94 1D 01 B9 5A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 25 BC F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6A 49 00 00 35 04 06 00 77 D0 5B 57 56 67 F8 96 7D BA E5 0C 5C 19 [19:06:14]Write to MH i2c: 01 00 00 BE 06 C4 [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 07 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 01 0D D9 [19:06:14]RasterBufferAndPrint [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]written 0, free lines is 3335 [19:06:14]MH_Cut [19:06:14]Write to MH i2c: D1 01 00 C5 06 01 9D [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 01 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 01 00 C5 06 00 9C [19:06:14]Write to MH i2c: 01 00 00 C6 06 CC [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 55 01 47 00 2A 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 35 39 34 35 36 10 04 04 00 6A 49 00 00 F4 03 04 00 88 65 F1 66 B6 04 01 00 00 E9 98 38 E8 20 5D A1 68 [19:06:14]CommunicateWithHost err = 0 [19:06:14]CheckOFDResponse [19:06:14]1017 (14) - 77093643461234 [19:06:14]1041 (16) - 0000000000959456 [19:06:14]1040 (4) - 18794 [19:06:14]1012 (4) - 23.09.2024 12:56 [19:06:14]1206 (1) - 0 [19:06:14]OFD Sender: Remove packet 18794 [19:06:14]ProducePacketName [19:06:14]name=ofd_packets/00018794 [19:06:14]NVStorageDeleteData [19:06:14]OFD Sender: No OFD packet to send [19:06:14]*** Cut start [19:06:14]*** Partial cut [19:06:14]*** CUTSNS_PIN = 1 [19:06:14]*** CUTSNS_PIN = 0 [19:06:14]*** Brake cut motor [19:06:15]Read from MH i2c: 01 [19:06:15]MH_I2C_Read... [19:06:15]*** Stop cut motor [19:06:15]*** Cut end [19:06:15]Read from MH i2c: 01 07 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 FF 0F E1 [19:06:15]process_action close_receipt done [19:06:15]requested_data is exist [19:06:15]produce_requested_data [19:06:15]requested_item fm.sn is exist - process it [19:06:15]wFMCommunicate request_size=4 [19:06:15]MH_SAM_APDU [19:06:15]CAPDU: 80 11 00 00 [19:06:15]Write to MH i2c: E2 08 00 C7 06 80 11 00 00 00 00 00 00 47 [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 17 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 17 00 C7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A0 [19:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:06:15]wFMCommunicate OK [19:06:15]requested_item fd.num is exist - process it [19:06:15]SAM_PROTO_GetFieldsCounters [19:06:15]wFMCommunicate request_size=4 [19:06:15]MH_SAM_APDU [19:06:15]CAPDU: 80 13 00 00 [19:06:15]Write to MH i2c: E2 08 00 C8 06 80 13 00 00 00 00 00 00 4A [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 62 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 62 00 C8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6A 49 00 00 0E 04 04 00 B5 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 B1 [19:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6A 49 00 00 0E 04 04 00 B5 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 [19:06:15]wFMCommunicate OK [19:06:15]SAM_PROTO_GetFieldsCounters done [19:06:15]requested_item shift.num is exist - process it [19:06:15]requested_item shift.opened is exist - process it [19:06:15]req_shift_opened [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 C9 06 80 13 01 00 00 00 00 00 4C [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 C9 06 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 E4 [19:06:15]RAPDU: 09 00 01 84 B2 F0 66 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]req_shift_opened done [19:06:15]requested_item shift.open_date is exist - process it [19:06:15]req_shift_open_date [19:06:15]req_shift_open_date done [19:06:15]produce_requested_data done [19:06:15]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18794,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:06:15]process_action_free close_receipt [19:06:15]json_value_free [19:06:15]json_value_free done [19:06:15]process_json_proto returns [19:06:15]Send response to host [19:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18794,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:06:15]free response buf [19:06:15]execute_script done [19:06:15]execute_script returns [19:06:15]free content buf [19:06:15]Sock 9.Close socket [19:06:15]Sock 9.Thread stoped [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]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:49]accept exits with 7 [19:14:49]New connection [19:14:49]New thread 3066608996 created [19:14:49]Thread 3066752356 joined [19:14:49]Waiting for new connection... [19:14:49] Sock 7.Parse request [19:14:49]Sock 7.Check first char [19:14:49]Sock 7.First char is OK [19:14:49]request: POST /json_proto HTTP/1.0 [19:14:49]Method: POST [19:14:49]URL: /json_proto [19:14:49]Method is POST - this is cgi request [19:14:49]url: /json_proto [19:14:49]query_string will be loaded in cgi processing [19:14:49]execute_cgi json_proto POST (null) [19:14:49]execute_cgi path=json_proto method=POST [19:14:49]POST find Content-Length [19:14:49]Host: 172.17.62.196:8080 [19:14:49]Content-Length: 620 [19:14:49]Content-Type: application/json [19:14:49] [19:14:49]POST finish read [19:14:49]Found Content-Length = 620 [19:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16714", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:49]execute_script... [19:14:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16714", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:49]POST & json_proto [19:14:49]process_json_proto [19:14:49]json parsed OK: [19:14:49]protocol is kg_v1.0 [19:14:49]action value=close_receipt [19:14:49]process_action close_receipt [19:14:49]cmd_close_receipt [19:14:49]MH_GetDate [19:14:49]Write to MH i2c: F0 00 00 CA 06 BF [19:14:49]Write i2c OK [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: F0 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: F0 09 00 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: F0 09 00 CA 06 00 2B BE F1 66 CE CC 0E 66 16 [19:14:49]GetLastDocTimeStamp 1727118373 [19:14:49]current date 1727118891 [19:14:49]FM_GetShiftState [19:14:49]SAM_PROTO_GetShiftState [19:14:49]wFMCommunicate request_size=4 [19:14:49]MH_SAM_APDU [19:14:49]CAPDU: 80 13 01 00 [19:14:49]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [19:14:49]Write i2c OK [19:14:49]MH_I2C_Read... [19:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:49]Read from MH i2c: E2 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: E2 0E 00 [19:14:49]MH_I2C_Read... [19:14:49]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 E6 [19:14:49]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:14:49]wFMCommunicate OK [19:14:49]SAM_PROTO_GetShiftState done [19:14:49]FM_GetShiftState done [19:14:49]opened in 1727050372 [19:14:49]opened+sec_in_day 1727136772 [19:14:49]quantity*price = 14400 [19:14:49]sum+1 = 14401 [19:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 71 23.09.2024 19:14 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18795 ФПД: 9329476981256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T191451&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18795&fm=9329476981256&tin=02508201610067®Number=0000000000152968&sum=14400 0 [19:14:50]StoreToDocumentArchive [19:14:50]shift 181 fd 18795 [19:14:50]save to /storage/0181/doc_00018795 [19:14:50]save last doc name /storage/0181/doc_00018795 to /storage/kkm_last_doc_name [19:14:50]save OK [19:14:50]Clear old archive folders... [19:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:14:50]tlvbuf is 00C352F0 [19:14:50]SAM_PROTO_ClearQueue [19:14:50]wFMCommunicate request_size=4 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 09 00 00 [19:14:50]Write to MH i2c: E2 08 00 D8 06 80 09 00 00 00 00 00 00 50 [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:50]Read from MH i2c: E2 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [19:14:50]RAPDU: 90 00 [19:14:50]wFMCommunicate OK [19:14:50]SAM_PROTO_ClearQueue done [19:14:50]KKMCreateOFDPacket [19:14:50]OFDProtocolAddRootSTLVToBuf [19:14:50]FM_MakeSignedData [19:14:50]FM_MakeSignedData [19:14:50]SAM_PROTO_SignData [19:14:50]wFMCommunicate request_size=4 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 0D 01 02 [19:14:50]Write to MH i2c: E2 08 00 D9 06 80 0D 01 02 00 00 00 00 58 [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:50]Read from MH i2c: E2 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 [19:14:50]MH_I2C_Read... [19:14:50]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [19:14:50]RAPDU: 90 00 [19:14:50]wFMCommunicate OK [19:14:50]wFMCommunicate request_size=255 [19:14:50]MH_SAM_APDU [19:14:50]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B BE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 [19:14:50]Write to MH i2c: E2 02 01 DA 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B BE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 00 00 04 [19:14:50]Write i2c OK [19:14:50]MH_I2C_Read... [19:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:51]Read from MH i2c: E2 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 03 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [19:14:51]RAPDU: 90 00 [19:14:51]wFMCommunicate OK [19:14:51]wFMCommunicate request_size=32 [19:14:51]MH_SAM_APDU [19:14:51]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 34 35 36 10 04 04 00 6B 49 00 00 35 04 06 00 08 7C 30 29 52 08 [19:14:51]Write to MH i2c: E2 23 00 DB 06 80 0D 02 02 1B 00 30 30 30 39 35 39 34 35 36 10 04 04 00 6B 49 00 00 35 04 06 00 08 7C 30 29 52 08 00 00 A9 [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:51]Read from MH i2c: E2 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 03 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [19:14:51]RAPDU: 90 00 [19:14:51]wFMCommunicate OK [19:14:51]wFMCommunicate request_size=4 [19:14:51]MH_SAM_APDU [19:14:51]CAPDU: 80 0D 03 02 [19:14:51]Write to MH i2c: E2 08 00 DC 06 80 0D 03 02 00 00 00 00 5D [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:51]Read from MH i2c: E2 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 0B 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 0B 00 DC 06 00 0E 36 80 30 C0 59 CD 70 90 00 A8 [19:14:51]RAPDU: 0E 36 80 30 C0 59 CD 70 90 00 [19:14:51]wFMCommunicate OK [19:14:51]SAM_PROTO_SignData done [19:14:51]FM_MakeSignedData done [19:14:51]CreateOFDProtocolMessage [19:14:51]wFMCommunicate request_size=4 [19:14:51]MH_SAM_APDU [19:14:51]CAPDU: 80 11 00 00 [19:14:51]Write to MH i2c: E2 08 00 DD 06 80 11 00 00 00 00 00 00 5D [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:51]Read from MH i2c: E2 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 17 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: E2 17 00 DD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B6 [19:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:14:51]wFMCommunicate OK [19:14:51]CreateOFDProtocolMessage done [19:14:51]OFDSenderStorePacket 18795 [19:14:51]StoreOFDPacket docnum=18795 [19:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 29 FD 1D 01 9C 5F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B BE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6B 49 00 00 35 04 06 00 08 7C 30 29 52 08 0E 36 80 30 C0 59 CD 70 [19:14:51]CheckFolder [19:14:51]dirname=/storage/ofd_packets [19:14:51]CheckFolder done [19:14:51]ProducePacketName [19:14:51]name=ofd_packets/00018795 [19:14:51]NVStorageSaveData ofd_packets/00018795 [19:14:51]File name is /storage/ofd_packets/00018795 [19:14:51]Write 323 bytes [19:14:51]NVStorageSaveData done [19:14:51]OFDSenderStorePacket done [19:14:51]KKMCreateOFDPacket done [19:14:51]NVStorageSaveData kkm_last_timestamp [19:14:51]File name is /storage/kkm_last_timestamp [19:14:51]Write 4 bytes [19:14:51]NVStorageSaveData done [19:14:51]ExternCall_PrintAddStr [19:14:51]wPrintStart [19:14:51]Write to MH i2c: 01 00 00 DE 06 E4 [19:14:51]Write i2c OK [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 07 00 [19:14:51]MH_I2C_Read... [19:14:51]Read from MH i2c: 01 07 00 DE 06 00 00 00 00 00 FF 0F F9 [19:14:51]RasterBufferAndPrint [19:14:51]line Счет N : (3)16714 [19:14:51]line ИНН: 02508201610067 [19:14:51]line Контрольно-Кассовый Чек [19:14:51]line ПРОДАЖА [19:14:51]line Товар: 48743570 [19:14:51]line Сигареты Winston XStyle Blue [19:14:51]line 1.000 * 144.00 [19:14:51]line = 144.00 [19:14:51]line НДС 12% НСП 1% [19:14:51]line > о реализуемом товаре [19:14:51]line ИТОГО: 144.00 [19:14:51]line НСП 1% : 1.27 [19:14:51]line НДС 12% : 15.29 [19:14:51]line Наличными: 144.00 [19:14:51]line Безнал.: 0.00 [19:14:51]line Место: АЗС № 176 "Партнер Нефть" [19:14:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:14:51]line СНО: Общий режим [19:14:51]line Чек 71 23.09.2024 19:14 [19:14:51]line Смена: 181 ФФД: 1.0 [19:14:51]line ЗНМ: 0300000010 [19:14:51]line РНМ: 0000000000152968 [19:14:51]line Версия ККМ: v1.0 [19:14:51]line ФМ: 0000000000959456 [19:14:51]line ФД: 18795 [19:14:51]line ФПД: 9329476981256 [19:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T191451&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18795&fm=9329476981256&tin=02508201610067®Number=0000000000152968&sum=14400 [19:14:51]line 0 [19:14:51]OFD Sender: Processing packet 18795 [packets to send 7, broken 6] [19:14:51]ProducePacketName [19:14:51]name=ofd_packets/00018795 [19:14:51]OFD Sender: To server: pG, [19:14:51]CommunicateWithHost lk.salyk.kg:30040 [19:14:51]ConnectInit lk.salyk.kg [19:14:51]written 0, free lines is 4095 [19:14:51]Connected sock=10 [19:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 29 FD 1D 01 9C 5F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2B BE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6B 49 00 00 35 04 06 00 08 7C 30 29 52 08 0E 36 80 30 C0 59 CD 70 [19:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B8 25 47 00 4B 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 35 39 34 35 36 10 04 04 00 6B 49 00 00 F4 03 04 00 8E 67 F1 66 B6 04 01 00 00 E1 9A 97 04 CE 46 26 8E [19:14:52]CommunicateWithHost err = 0 [19:14:52]CheckOFDResponse [19:14:52]1017 (14) - 77093643461234 [19:14:52]1041 (16) - 0000000000959456 [19:14:52]1040 (4) - 18795 [19:14:52]1012 (4) - 23.09.2024 13:05 [19:14:52]1206 (1) - 0 [19:14:52]OFD Sender: Remove packet 18795 [19:14:52]ProducePacketName [19:14:52]name=ofd_packets/00018795 [19:14:52]NVStorageDeleteData [19:14:52]Write to MH i2c: 01 00 00 06 07 0D [19:14:52]Write i2c OK [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: 01 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: 01 07 00 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 17 0D 38 [19:14:52]RasterBufferAndPrint [19:14:52]line [19:14:52]line [19:14:52]line [19:14:52]line [19:14:52]line [19:14:52]written 0, free lines is 3358 [19:14:52]MH_Cut [19:14:52]Write to MH i2c: D1 01 00 0D 07 01 E6 [19:14:52]Write i2c OK [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: D1 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: D1 01 00 [19:14:52]MH_I2C_Read... [19:14:52]Read from MH i2c: D1 01 00 0D 07 00 E5 [19:14:52]Write to MH i2c: 01 00 00 0E 07 15 [19:14:52]Write i2c OK [19:14:52]MH_I2C_Read... [19:14:52]OFD Sender: No OFD packet to send [19:14:52]*** Cut start [19:14:52]*** Partial cut [19:14:52]*** CUTSNS_PIN = 1 [19:14:52]*** CUTSNS_PIN = 0 [19:14:53]*** Brake cut motor [19:14:53]Read from MH i2c: 01 [19:14:53]MH_I2C_Read... [19:14:53]*** Stop cut motor [19:14:53]*** Cut end [19:14:53]Read from MH i2c: 01 07 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 FF 0F 2A [19:14:53]process_action close_receipt done [19:14:53]requested_data is exist [19:14:53]produce_requested_data [19:14:53]requested_item fm.sn is exist - process it [19:14:53]wFMCommunicate request_size=4 [19:14:53]MH_SAM_APDU [19:14:53]CAPDU: 80 11 00 00 [19:14:53]Write to MH i2c: E2 08 00 0F 07 80 11 00 00 00 00 00 00 90 [19:14:53]Write i2c OK [19:14:53]MH_I2C_Read... [19:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:53]Read from MH i2c: E2 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 17 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 17 00 0F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E9 [19:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:14:53]wFMCommunicate OK [19:14:53]requested_item fd.num is exist - process it [19:14:53]SAM_PROTO_GetFieldsCounters [19:14:53]wFMCommunicate request_size=4 [19:14:53]MH_SAM_APDU [19:14:53]CAPDU: 80 13 00 00 [19:14:53]Write to MH i2c: E2 08 00 10 07 80 13 00 00 00 00 00 00 93 [19:14:53]Write i2c OK [19:14:53]MH_I2C_Read... [19:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:53]Read from MH i2c: E2 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 62 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 62 00 10 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6B 49 00 00 0E 04 04 00 B5 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 FE [19:14:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6B 49 00 00 0E 04 04 00 B5 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 [19:14:53]wFMCommunicate OK [19:14:53]SAM_PROTO_GetFieldsCounters done [19:14:53]requested_item shift.num is exist - process it [19:14:53]requested_item shift.opened is exist - process it [19:14:53]req_shift_opened [19:14:53]FM_GetShiftState [19:14:53]SAM_PROTO_GetShiftState [19:14:53]wFMCommunicate request_size=4 [19:14:53]MH_SAM_APDU [19:14:53]CAPDU: 80 13 01 00 [19:14:53]Write to MH i2c: E2 08 00 11 07 80 13 01 00 00 00 00 00 95 [19:14:53]Write i2c OK [19:14:53]MH_I2C_Read... [19:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:53]Read from MH i2c: E2 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 0E 00 [19:14:53]MH_I2C_Read... [19:14:53]Read from MH i2c: E2 0E 00 11 07 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 2D [19:14:53]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:14:53]wFMCommunicate OK [19:14:53]SAM_PROTO_GetShiftState done [19:14:53]FM_GetShiftState done [19:14:53]req_shift_opened done [19:14:53]requested_item shift.open_date is exist - process it [19:14:53]req_shift_open_date [19:14:53]req_shift_open_date done [19:14:53]produce_requested_data done [19:14:53]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18795,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:14:53]process_action_free close_receipt [19:14:53]json_value_free [19:14:53]json_value_free done [19:14:53]process_json_proto returns [19:14:53]Send response to host [19:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18795,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:14:53]free response buf [19:14:53]execute_script done [19:14:53]execute_script returns [19:14:53]free content buf [19:14:53]Sock 7.Close socket [19:14:53]Sock 7.Thread stoped [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]accept exits with 9 [19:19:32]New connection [19:19:32]New thread 3066752356 created [19:19:32]Thread 3066608996 joined [19:19:32]Waiting for new connection... [19:19:32] Sock 9.Parse request [19:19:32]Sock 9.Check first char [19:19:32]Sock 9.First char is OK [19:19:32]request: POST /json_proto HTTP/1.0 [19:19:32]Method: POST [19:19:32]URL: /json_proto [19:19:32]Method is POST - this is cgi request [19:19:32]url: /json_proto [19:19:32]query_string will be loaded in cgi processing [19:19:32]execute_cgi json_proto POST (null) [19:19:32]execute_cgi path=json_proto method=POST [19:19:32]POST find Content-Length [19:19:32]Host: 172.17.62.196:8080 [19:19:32]Content-Length: 2035 [19:19:32]Content-Type: application/json [19:19:32] [19:19:32]POST finish read [19:19:32]Found Content-Length = 2035 [19:19:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16715", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 496.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:32]execute_script... [19:19:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16715", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 496.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:32]POST & json_proto [19:19:32]process_json_proto [19:19:32]json parsed OK: [19:19:32]protocol is kg_v1.0 [19:19:32]action value=close_receipt [19:19:32]process_action close_receipt [19:19:32]cmd_close_receipt [19:19:32]MH_GetDate [19:19:32]Write to MH i2c: F0 00 00 12 07 08 [19:19:32]OFD Sender: No OFD packet to send [19:19:32]Write i2c OK [19:19:32]MH_I2C_Read... [19:19:32]Read from MH i2c: F0 [19:19:32]MH_I2C_Read... [19:19:32]Read from MH i2c: F0 09 00 [19:19:32]MH_I2C_Read... [19:19:32]Read from MH i2c: F0 09 00 12 07 00 46 BF F1 66 CE CC 0E 66 7B [19:19:32]GetLastDocTimeStamp 1727118891 [19:19:32]current date 1727119174 [19:19:32]FM_GetShiftState [19:19:32]SAM_PROTO_GetShiftState [19:19:32]wFMCommunicate request_size=4 [19:19:32]MH_SAM_APDU [19:19:32]CAPDU: 80 13 01 00 [19:19:32]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [19:19:32]Write i2c OK [19:19:32]MH_I2C_Read... [19:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:33]Read from MH i2c: E2 [19:19:33]MH_I2C_Read... [19:19:33]Read from MH i2c: E2 0E 00 [19:19:33]MH_I2C_Read... [19:19:33]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 2F [19:19:33]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:19:33]wFMCommunicate OK [19:19:33]SAM_PROTO_GetShiftState done [19:19:33]FM_GetShiftState done [19:19:33]opened in 1727050372 [19:19:33]opened+sec_in_day 1727136772 [19:19:33]quantity*price = 11500 [19:19:33]sum+1 = 11501 [19:19:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607084351378 Бисквит Чоко пай 6шт 1.000 * 175.00 = 175.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870066000476 Палочки Алматинский Продукт сладкие 50г 1.000 * 27.00 = 27.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 496.00 НСП 1% : 4.39 НДС 12% : 52.66 Наличными: 496.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 72 23.09.2024 19:19 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18796 ФПД: 177556984517259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T191934&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18796&fm=177556984517259&tin=02508201610067®Number=0000000000152968&sum=49600 0 [19:19:34]StoreToDocumentArchive [19:19:34]shift 181 fd 18796 [19:19:34]save to /storage/0181/doc_00018796 [19:19:34]save last doc name /storage/0181/doc_00018796 to /storage/kkm_last_doc_name [19:19:34]save OK [19:19:34]Clear old archive folders... [19:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=838 [19:19:34]tlvbuf is 00C06D00 [19:19:34]SAM_PROTO_ClearQueue [19:19:34]wFMCommunicate request_size=4 [19:19:34]MH_SAM_APDU [19:19:34]CAPDU: 80 09 00 00 [19:19:34]Write to MH i2c: E2 08 00 20 07 80 09 00 00 00 00 00 00 99 [19:19:34]Write i2c OK [19:19:34]MH_I2C_Read... [19:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:34]Read from MH i2c: E2 [19:19:34]MH_I2C_Read... [19:19:34]Read from MH i2c: E2 03 00 [19:19:34]MH_I2C_Read... [19:19:34]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [19:19:34]RAPDU: 90 00 [19:19:34]wFMCommunicate OK [19:19:34]SAM_PROTO_ClearQueue done [19:19:34]KKMCreateOFDPacket [19:19:34]OFDProtocolAddRootSTLVToBuf [19:19:34]FM_MakeSignedData [19:19:34]FM_MakeSignedData [19:19:34]SAM_PROTO_SignData [19:19:34]wFMCommunicate request_size=4 [19:19:34]MH_SAM_APDU [19:19:34]CAPDU: 80 0D 01 02 [19:19:34]Write to MH i2c: E2 08 00 21 07 80 0D 01 02 00 00 00 00 A1 [19:19:34]Write i2c OK [19:19:34]MH_I2C_Read... [19:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:34]Read from MH i2c: E2 [19:19:34]MH_I2C_Read... [19:19:34]Read from MH i2c: E2 03 00 [19:19:34]MH_I2C_Read... [19:19:34]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [19:19:34]RAPDU: 90 00 [19:19:34]wFMCommunicate OK [19:19:34]wFMCommunicate request_size=255 [19:19:34]MH_SAM_APDU [19:19:34]CAPDU: 80 0D 02 02 FA 03 00 46 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 [19:19:34]Write to MH i2c: E2 02 01 22 07 80 0D 02 02 FA 00 03 00 46 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 00 00 57 [19:19:34]Write i2c OK [19:19:34]MH_I2C_Read... [19:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:34]Read from MH i2c: E2 [19:19:34]MH_I2C_Read... [19:19:34]Read from MH i2c: E2 03 00 [19:19:34]MH_I2C_Read... [19:19:34]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [19:19:34]RAPDU: 90 00 [19:19:34]wFMCommunicate OK [19:19:34]wFMCommunicate request_size=255 [19:19:34]MH_SAM_APDU [19:19:34]CAPDU: 80 0D 02 02 FA B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 [19:19:34]Write to MH i2c: E2 02 01 23 07 80 0D 02 02 FA 00 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 00 00 3B [19:19:34]Write i2c OK [19:19:34]MH_I2C_Read... [19:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:35]Read from MH i2c: E2 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 03 00 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [19:19:35]RAPDU: 90 00 [19:19:35]wFMCommunicate OK [19:19:35]wFMCommunicate request_size=255 [19:19:35]MH_SAM_APDU [19:19:35]CAPDU: 80 0D 02 02 FA D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 14 00 00 00 00 07 04 06 00 C0 C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F [19:19:35]Write to MH i2c: E2 02 01 24 07 80 0D 02 02 FA 00 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 14 00 00 00 00 07 04 06 00 C0 C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 00 00 C7 [19:19:35]Write i2c OK [19:19:35]MH_I2C_Read... [19:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:35]Read from MH i2c: E2 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 03 00 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [19:19:35]RAPDU: 90 00 [19:19:35]wFMCommunicate OK [19:19:35]wFMCommunicate request_size=97 [19:19:35]MH_SAM_APDU [19:19:35]CAPDU: 80 0D 02 02 5C 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 46 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6C 49 00 00 35 04 06 00 A1 7C B4 FD 52 8B [19:19:35]Write to MH i2c: E2 64 00 25 07 80 0D 02 02 5C 00 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 46 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6C 49 00 00 35 04 06 00 A1 7C B4 FD 52 8B 00 00 EA [19:19:35]Write i2c OK [19:19:35]MH_I2C_Read... [19:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:35]Read from MH i2c: E2 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 03 00 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [19:19:35]RAPDU: 90 00 [19:19:35]wFMCommunicate OK [19:19:35]wFMCommunicate request_size=4 [19:19:35]MH_SAM_APDU [19:19:35]CAPDU: 80 0D 03 02 [19:19:35]Write to MH i2c: E2 08 00 26 07 80 0D 03 02 00 00 00 00 A8 [19:19:35]Write i2c OK [19:19:35]MH_I2C_Read... [19:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:35]Read from MH i2c: E2 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 0B 00 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 0B 00 26 07 00 FA 59 B0 6C 35 32 EF CA 90 00 38 [19:19:35]RAPDU: FA 59 B0 6C 35 32 EF CA 90 00 [19:19:35]wFMCommunicate OK [19:19:35]SAM_PROTO_SignData done [19:19:35]FM_MakeSignedData done [19:19:35]CreateOFDProtocolMessage [19:19:35]wFMCommunicate request_size=4 [19:19:35]MH_SAM_APDU [19:19:35]CAPDU: 80 11 00 00 [19:19:35]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [19:19:35]Write i2c OK [19:19:35]MH_I2C_Read... [19:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:35]Read from MH i2c: E2 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 17 00 [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 01 [19:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:19:35]wFMCommunicate OK [19:19:35]CreateOFDProtocolMessage done [19:19:35]OFDSenderStorePacket 18796 [19:19:35]StoreOFDPacket docnum=18796 [19:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 5A 03 00 00 13 64 52 03 7D C7 5A 03 01 00 03 00 46 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 14 00 00 00 00 07 04 06 00 C0 C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 46 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6C 49 00 00 35 04 06 00 A1 7C B4 FD 52 8B FA 59 B0 6C 35 32 EF CA [19:19:35]CheckFolder [19:19:35]dirname=/storage/ofd_packets [19:19:35]CheckFolder done [19:19:35]ProducePacketName [19:19:35]name=ofd_packets/00018796 [19:19:35]NVStorageSaveData ofd_packets/00018796 [19:19:35]File name is /storage/ofd_packets/00018796 [19:19:35]Write 888 bytes [19:19:35]NVStorageSaveData done [19:19:35]OFDSenderStorePacket done [19:19:35]KKMCreateOFDPacket done [19:19:35]NVStorageSaveData kkm_last_timestamp [19:19:35]File name is /storage/kkm_last_timestamp [19:19:35]Write 4 bytes [19:19:35]NVStorageSaveData done [19:19:35]ExternCall_PrintAddStr [19:19:35]wPrintStart [19:19:35]Write to MH i2c: 01 00 00 28 07 2F [19:19:35]Write i2c OK [19:19:35]MH_I2C_Read... [19:19:35]Read from MH i2c: 01 [19:19:35]MH_I2C_Read... [19:19:36]Read from MH i2c: 01 07 00 [19:19:36]MH_I2C_Read... [19:19:36]OFD Sender: Processing packet 18796 [packets to send 7, broken 6] [19:19:36]ProducePacketName [19:19:36]name=ofd_packets/00018796 [19:19:36]OFD Sender: To server: pG, [19:19:36]CommunicateWithHost lk.salyk.kg:30040 [19:19:36]ConnectInit lk.salyk.kg [19:19:36]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [19:19:36]RasterBufferAndPrint [19:19:36]line Счет N : (3)16715 [19:19:36]line ИНН: 02508201610067 [19:19:36]line Контрольно-Кассовый Чек [19:19:36]line ПРОДАЖА [19:19:36]line Товар: 2000036240010 [19:19:36]line Кофе Латте (GABB TRADE) [19:19:36]line 1.000 * 115.00 [19:19:36]line = 115.00 [19:19:36]line НДС 12% НСП 1% [19:19:36]line > о реализуемом товаре [19:19:36]line Товар: 4700000160358 [19:19:36]line Вода Легенда 1л [19:19:36]line 1.000 * 50.00 [19:19:36]line = 50.00 [19:19:36]line НДС 12% НСП 1% [19:19:36]line > о реализуемом товаре [19:19:36]line Товар: 4630007400358 [19:19:36]line Семечки ДЖИНН 70г [19:19:36]line 1.000 * 70.00 [19:19:36]line = 70.00 [19:19:36]line НДС 12% НСП 1% [19:19:36]line > о реализуемом товаре [19:19:36]line Товар: 4607084351378 [19:19:36]line Бисквит Чоко пай 6шт [19:19:36]line 1.000 * 175.00 [19:19:36]line = 175.00 [19:19:36]line НДС 12% НСП 1% [19:19:36]line > о реализуемом товаре [19:19:36]line Товар: 4870066000476 [19:19:36]line Палочки Алматинский Продукт сладкие 50г [19:19:36]line 1.000 * 27.00 [19:19:36]line = 27.00 [19:19:36]line НДС 12% НСП 1% [19:19:36]line > о реализуемом товаре [19:19:36]line Товар: 4607065001445 [19:19:36]line Шок батончик Snickers 50,5г [19:19:36]line 1.000 * 59.00 [19:19:36]line = 59.00 [19:19:36]line НДС 12% НСП 1% [19:19:36]line > о реализуемом товаре [19:19:36]line ИТОГО: 496.00 [19:19:36]line НСП 1% : 4.39 [19:19:36]line НДС 12% : 52.66 [19:19:36]line Наличными: 496.00 [19:19:36]line Безнал.: 0.00 [19:19:36]line Место: АЗС № 176 "Партнер Нефть" [19:19:36]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:19:36]line СНО: Общий режим [19:19:36]line Чек 72 23.09.2024 19:19 [19:19:36]line Смена: 181 ФФД: 1.0 [19:19:36]line ЗНМ: 0300000010 [19:19:36]line РНМ: 0000000000152968 [19:19:36]line Версия ККМ: v1.0 [19:19:36]line ФМ: 0000000000959456 [19:19:36]line ФД: 18796 [19:19:36]line ФПД: 177556984517259 [19:19:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T191934&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18796&fm=177556984517259&tin=02508201610067®Number=0000000000152968&sum=49600 [19:19:36]line 0 [19:19:36]written 0, free lines is 4095 [19:19:36]Connected sock=10 [19:19:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 5A 03 00 00 13 64 52 03 7D C7 5A 03 01 00 03 00 46 03 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 14 00 00 00 00 07 04 06 00 C0 C1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 46 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6C 49 00 00 35 04 06 00 A1 7C B4 FD 52 8B FA 59 B0 6C 35 32 EF CA [19:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A3 F8 47 00 BF 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 35 39 34 35 36 10 04 04 00 6C 49 00 00 F4 03 04 00 AB 68 F1 66 B6 04 01 00 00 D1 2F FD B4 AF 9C 36 42 [19:19:36]CommunicateWithHost err = 0 [19:19:36]CheckOFDResponse [19:19:36]1017 (14) - 77093643461234 [19:19:36]1041 (16) - 0000000000959456 [19:19:36]1040 (4) - 18796 [19:19:36]1012 (4) - 23.09.2024 13:10 [19:19:36]1206 (1) - 0 [19:19:36]OFD Sender: Remove packet 18796 [19:19:36]ProducePacketName [19:19:36]name=ofd_packets/00018796 [19:19:36]NVStorageDeleteData [19:19:36]Write to MH i2c: 01 00 00 6F 07 76 [19:19:36]Write i2c OK [19:19:36]MH_I2C_Read... [19:19:36]Read from MH i2c: 01 [19:19:36]MH_I2C_Read... [19:19:36]Read from MH i2c: 01 07 00 [19:19:36]MH_I2C_Read... [19:19:36]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 B6 0B 3E [19:19:36]RasterBufferAndPrint [19:19:36]line [19:19:36]line [19:19:36]line [19:19:36]line [19:19:36]line [19:19:36]written 0, free lines is 3010 [19:19:36]MH_Cut [19:19:36]Write to MH i2c: D1 01 00 76 07 01 4F [19:19:36]Write i2c OK [19:19:36]MH_I2C_Read... [19:19:36]Read from MH i2c: D1 [19:19:36]MH_I2C_Read... [19:19:36]Read from MH i2c: D1 01 00 [19:19:36]MH_I2C_Read... [19:19:36]Read from MH i2c: D1 01 00 76 07 00 4E [19:19:36]Write to MH i2c: 01 00 00 77 07 7E [19:19:36]Write i2c OK [19:19:36]MH_I2C_Read... [19:19:37]OFD Sender: No OFD packet to send [19:19:37]*** Cut start [19:19:37]*** Partial cut [19:19:37]*** CUTSNS_PIN = 1 [19:19:37]*** CUTSNS_PIN = 0 [19:19:37]*** Brake cut motor [19:19:38]Read from MH i2c: 01 [19:19:38]MH_I2C_Read... [19:19:38]*** Stop cut motor [19:19:38]*** Cut end [19:19:38]Read from MH i2c: 01 07 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [19:19:38]process_action close_receipt done [19:19:38]requested_data is exist [19:19:38]produce_requested_data [19:19:38]requested_item fm.sn is exist - process it [19:19:38]wFMCommunicate request_size=4 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 11 00 00 [19:19:38]Write to MH i2c: E2 08 00 78 07 80 11 00 00 00 00 00 00 F9 [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 17 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 17 00 78 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 52 [19:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:19:38]wFMCommunicate OK [19:19:38]requested_item fd.num is exist - process it [19:19:38]SAM_PROTO_GetFieldsCounters [19:19:38]wFMCommunicate request_size=4 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 13 00 00 [19:19:38]Write to MH i2c: E2 08 00 79 07 80 13 00 00 00 00 00 00 FC [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 62 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 62 00 79 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6C 49 00 00 0E 04 04 00 B5 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 6B [19:19:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6C 49 00 00 0E 04 04 00 B5 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 [19:19:38]wFMCommunicate OK [19:19:38]SAM_PROTO_GetFieldsCounters done [19:19:38]requested_item shift.num is exist - process it [19:19:38]requested_item shift.opened is exist - process it [19:19:38]req_shift_opened [19:19:38]FM_GetShiftState [19:19:38]SAM_PROTO_GetShiftState [19:19:38]wFMCommunicate request_size=4 [19:19:38]MH_SAM_APDU [19:19:38]CAPDU: 80 13 01 00 [19:19:38]Write to MH i2c: E2 08 00 7A 07 80 13 01 00 00 00 00 00 FE [19:19:38]Write i2c OK [19:19:38]MH_I2C_Read... [19:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:38]Read from MH i2c: E2 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 0E 00 [19:19:38]MH_I2C_Read... [19:19:38]Read from MH i2c: E2 0E 00 7A 07 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 96 [19:19:38]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:19:38]wFMCommunicate OK [19:19:38]SAM_PROTO_GetShiftState done [19:19:38]FM_GetShiftState done [19:19:38]req_shift_opened done [19:19:38]requested_item shift.open_date is exist - process it [19:19:38]req_shift_open_date [19:19:38]req_shift_open_date done [19:19:38]produce_requested_data done [19:19:38]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18796,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:19:38]process_action_free close_receipt [19:19:38]json_value_free [19:19:38]json_value_free done [19:19:38]process_json_proto returns [19:19:38]Send response to host [19:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18796,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:19:38]free response buf [19:19:38]execute_script done [19:19:38]execute_script returns [19:19:38]free content buf [19:19:38]Sock 9.Close socket [19:19:38]Sock 9.Thread stoped [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [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: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:25]accept exits with 7 [19:21:25]New connection [19:21:25]New thread 3066608996 created [19:21:25]Thread 3066752356 joined [19:21:25]Waiting for new connection... [19:21:25] Sock 7.Parse request [19:21:25]Sock 7.Check first char [19:21:25]Sock 7.First char is OK [19:21:25]request: POST /json_proto HTTP/1.0 [19:21:25]Method: POST [19:21:25]URL: /json_proto [19:21:25]Method is POST - this is cgi request [19:21:25]url: /json_proto [19:21:25]query_string will be loaded in cgi processing [19:21:25]execute_cgi json_proto POST (null) [19:21:25]execute_cgi path=json_proto method=POST [19:21:25]POST find Content-Length [19:21:25]Host: 172.17.62.196:8080 [19:21:25]Content-Length: 1028 [19:21:25]Content-Type: application/json [19:21:25] [19:21:25]POST finish read [19:21:25]Found Content-Length = 1028 [19:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16716", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:25]execute_script... [19:21:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16716", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:25]POST & json_proto [19:21:25]process_json_proto [19:21:25]json parsed OK: [19:21:25]protocol is kg_v1.0 [19:21:25]action value=close_receipt [19:21:25]process_action close_receipt [19:21:25]cmd_close_receipt [19:21:25]MH_GetDate [19:21:25]Write to MH i2c: F0 00 00 7B 07 71 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: F0 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: F0 09 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: F0 09 00 7B 07 00 B7 BF F1 66 CE CC 0E 66 55 [19:21:25]GetLastDocTimeStamp 1727119174 [19:21:25]current date 1727119287 [19:21:25]FM_GetShiftState [19:21:25]SAM_PROTO_GetShiftState [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 13 01 00 [19:21:25]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 0E 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 98 [19:21:25]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:21:25]wFMCommunicate OK [19:21:25]SAM_PROTO_GetShiftState done [19:21:25]FM_GetShiftState done [19:21:25]opened in 1727050372 [19:21:25]opened+sec_in_day 1727136772 [19:21:25]quantity*price = 15000 [19:21:25]sum+1 = 15001 [19:21:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 73 23.09.2024 19:21 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18797 ФПД: 49248611282532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T192127&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18797&fm=49248611282532&tin=02508201610067®Number=0000000000152968&sum=26000 0 [19:21:27]StoreToDocumentArchive [19:21:27]shift 181 fd 18797 [19:21:27]save to /storage/0181/doc_00018797 [19:21:27]save last doc name /storage/0181/doc_00018797 to /storage/kkm_last_doc_name [19:21:27]save OK [19:21:27]Clear old archive folders... [19:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=370 [19:21:27]tlvbuf is 00C21250 [19:21:27]SAM_PROTO_ClearQueue [19:21:27]wFMCommunicate request_size=4 [19:21:27]MH_SAM_APDU [19:21:27]CAPDU: 80 09 00 00 [19:21:27]Write to MH i2c: E2 08 00 89 07 80 09 00 00 00 00 00 00 02 [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:27]Read from MH i2c: E2 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 89 07 00 90 00 04 [19:21:27]RAPDU: 90 00 [19:21:27]wFMCommunicate OK [19:21:27]SAM_PROTO_ClearQueue done [19:21:27]KKMCreateOFDPacket [19:21:27]OFDProtocolAddRootSTLVToBuf [19:21:27]FM_MakeSignedData [19:21:27]FM_MakeSignedData [19:21:27]SAM_PROTO_SignData [19:21:27]wFMCommunicate request_size=4 [19:21:27]MH_SAM_APDU [19:21:27]CAPDU: 80 0D 01 02 [19:21:27]Write to MH i2c: E2 08 00 8A 07 80 0D 01 02 00 00 00 00 0A [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]OFD Sender: No OFD packet to send [19:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:27]Read from MH i2c: E2 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 8A 07 00 90 00 05 [19:21:27]RAPDU: 90 00 [19:21:27]wFMCommunicate OK [19:21:27]wFMCommunicate request_size=255 [19:21:27]MH_SAM_APDU [19:21:27]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 [19:21:27]Write to MH i2c: E2 02 01 8B 07 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 2C [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:27]Read from MH i2c: E2 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [19:21:27]RAPDU: 90 00 [19:21:27]wFMCommunicate OK [19:21:27]wFMCommunicate request_size=129 [19:21:27]MH_SAM_APDU [19:21:27]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B7 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6D 49 00 00 35 04 06 00 2C CA 95 FB 2E 64 [19:21:27]Write to MH i2c: E2 84 00 8C 07 80 0D 02 02 7C 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B7 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6D 49 00 00 35 04 06 00 2C CA 95 FB 2E 64 00 00 A9 [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:27]Read from MH i2c: E2 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [19:21:27]RAPDU: 90 00 [19:21:27]wFMCommunicate OK [19:21:27]wFMCommunicate request_size=4 [19:21:27]MH_SAM_APDU [19:21:27]CAPDU: 80 0D 03 02 [19:21:27]Write to MH i2c: E2 08 00 8D 07 80 0D 03 02 00 00 00 00 0F [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:27]Read from MH i2c: E2 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 0B 00 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 0B 00 8D 07 00 B7 FA 64 F7 89 64 41 14 90 00 5E [19:21:27]RAPDU: B7 FA 64 F7 89 64 41 14 90 00 [19:21:27]wFMCommunicate OK [19:21:27]SAM_PROTO_SignData done [19:21:27]FM_MakeSignedData done [19:21:27]CreateOFDProtocolMessage [19:21:27]wFMCommunicate request_size=4 [19:21:27]MH_SAM_APDU [19:21:27]CAPDU: 80 11 00 00 [19:21:27]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [19:21:27]Write i2c OK [19:21:27]MH_I2C_Read... [19:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:27]Read from MH i2c: E2 [19:21:27]MH_I2C_Read... [19:21:27]Read from MH i2c: E2 17 00 [19:21:27]MH_I2C_Read... [19:21:27]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 35 39 34 35 36 90 00 68 [19:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:21:27]wFMCommunicate OK [19:21:27]CreateOFDProtocolMessage done [19:21:27]OFDSenderStorePacket 18797 [19:21:27]StoreOFDPacket docnum=18797 [19:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 86 01 00 00 27 3C 7E 01 B6 E6 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B7 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6D 49 00 00 35 04 06 00 2C CA 95 FB 2E 64 B7 FA 64 F7 89 64 41 14 [19:21:27]CheckFolder [19:21:27]dirname=/storage/ofd_packets [19:21:27]CheckFolder done [19:21:27]ProducePacketName [19:21:27]name=ofd_packets/00018797 [19:21:27]NVStorageSaveData ofd_packets/00018797 [19:21:27]File name is /storage/ofd_packets/00018797 [19:21:27]Write 420 bytes [19:21:27]NVStorageSaveData done [19:21:27]OFDSenderStorePacket done [19:21:27]KKMCreateOFDPacket done [19:21:27]NVStorageSaveData kkm_last_timestamp [19:21:27]File name is /storage/kkm_last_timestamp [19:21:27]Write 4 bytes [19:21:27]NVStorageSaveData done [19:21:28]ExternCall_PrintAddStr [19:21:28]wPrintStart [19:21:28]Write to MH i2c: 01 00 00 8F 07 96 [19:21:28]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:21:28]ProducePacketName [19:21:28]name=ofd_packets/00018797 [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]OFD Sender: To server: pG, [19:21:28]CommunicateWithHost lk.salyk.kg:30040 [19:21:28]ConnectInit lk.salyk.kg [19:21:28]Read from MH i2c: 01 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 07 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 FF 0F AB [19:21:28]RasterBufferAndPrint [19:21:28]line Счет N : (3)16716 [19:21:28]line ИНН: 02508201610067 [19:21:28]line Контрольно-Кассовый Чек [19:21:28]line ПРОДАЖА [19:21:28]line Товар: 4640030091645 [19:21:28]line Сигареты ESSE Exchange M [19:21:28]line 1.000 * 150.00 [19:21:28]line = 150.00 [19:21:28]line НДС 12% НСП 1% [19:21:28]line > о реализуемом товаре [19:21:28]line Товар: 4870001570071 [19:21:28]line Напиток Pepsi 1л [19:21:28]line 1.000 * 110.00 [19:21:28]line = 110.00 [19:21:28]line НДС 12% НСП 1% [19:21:28]line > о реализуемом товаре [19:21:28]line ИТОГО: 260.00 [19:21:28]line НСП 1% : 2.30 [19:21:28]line НДС 12% : 27.61 [19:21:28]line Наличными: 0.00 [19:21:28]line Безнал.: 260.00 [19:21:28]line Место: АЗС № 176 "Партнер Нефть" [19:21:28]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:21:28]line СНО: Общий режим [19:21:28]line Чек 73 23.09.2024 19:21 [19:21:28]line Смена: 181 ФФД: 1.0 [19:21:28]line ЗНМ: 0300000010 [19:21:28]line РНМ: 0000000000152968 [19:21:28]line Версия ККМ: v1.0 [19:21:28]line Платежная система: Бакай Банк [19:21:28]line ФМ: 0000000000959456 [19:21:28]line ФД: 18797 [19:21:28]line ФПД: 49248611282532 [19:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T192127&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18797&fm=49248611282532&tin=02508201610067®Number=0000000000152968&sum=26000 [19:21:28]line 0 [19:21:28]written 0, free lines is 4095 [19:21:28]Write to MH i2c: 01 00 00 BF 07 C6 [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 07 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 A9 0C 82 [19:21:28]RasterBufferAndPrint [19:21:28]line [19:21:28]line [19:21:28]line [19:21:28]line [19:21:28]line [19:21:28]written 0, free lines is 3247 [19:21:28]MH_Cut [19:21:28]Write to MH i2c: D1 01 00 C6 07 01 9F [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: D1 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: D1 01 00 [19:21:28]MH_I2C_Read... [19:21:28]Read from MH i2c: D1 01 00 C6 07 00 9E [19:21:28]Write to MH i2c: 01 00 00 C7 07 CE [19:21:28]Write i2c OK [19:21:28]MH_I2C_Read... [19:21:29]*** Cut start [19:21:29]*** Partial cut [19:21:29]*** CUTSNS_PIN = 1 [19:21:29]*** CUTSNS_PIN = 0 [19:21:29]*** Brake cut motor [19:21:29]Read from MH i2c: 01 [19:21:29]MH_I2C_Read... [19:21:29]*** Stop cut motor [19:21:29]*** Cut end [19:21:29]Read from MH i2c: 01 07 00 [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: 01 07 00 C7 07 00 00 00 00 00 FF 0F E3 [19:21:29]process_action close_receipt done [19:21:29]requested_data is exist [19:21:29]produce_requested_data [19:21:29]requested_item fm.sn is exist - process it [19:21:29]wFMCommunicate request_size=4 [19:21:29]MH_SAM_APDU [19:21:29]CAPDU: 80 11 00 00 [19:21:29]Write to MH i2c: E2 08 00 C8 07 80 11 00 00 00 00 00 00 49 [19:21:29]Write i2c OK [19:21:29]MH_I2C_Read... [19:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:29]Read from MH i2c: E2 [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: E2 17 00 [19:21:29]MH_I2C_Read... [19:21:29]Read from MH i2c: E2 17 00 C8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A2 [19:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:21:29]wFMCommunicate OK [19:21:29]requested_item fd.num is exist - process it [19:21:29]SAM_PROTO_GetFieldsCounters [19:21:29]wFMCommunicate request_size=4 [19:21:29]MH_SAM_APDU [19:21:29]CAPDU: 80 13 00 00 [19:21:29]Write to MH i2c: E2 08 00 C9 07 80 13 00 00 00 00 00 00 4C [19:21:29]Write i2c OK [19:21:29]MH_I2C_Read... [19:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:30]Read from MH i2c: E2 [19:21:30]MH_I2C_Read... [19:21:30]Read from MH i2c: E2 62 00 [19:21:30]MH_I2C_Read... [19:21:30]Read from MH i2c: E2 62 00 C9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6D 49 00 00 0E 04 04 00 B5 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 BF [19: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6D 49 00 00 0E 04 04 00 B5 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 [19:21:30]wFMCommunicate OK [19:21:30]SAM_PROTO_GetFieldsCounters done [19:21:30]requested_item shift.num is exist - process it [19:21:30]requested_item shift.opened is exist - process it [19:21:30]req_shift_opened [19:21:30]FM_GetShiftState [19:21:30]SAM_PROTO_GetShiftState [19:21:30]wFMCommunicate request_size=4 [19:21:30]MH_SAM_APDU [19:21:30]CAPDU: 80 13 01 00 [19:21:30]Write to MH i2c: E2 08 00 CA 07 80 13 01 00 00 00 00 00 4E [19:21:30]Write i2c OK [19:21:30]MH_I2C_Read... [19:21:30]Read from MH i2c: E2 [19:21:30]MH_I2C_Read... [19:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:30]Read from MH i2c: E2 0E 00 [19:21:30]MH_I2C_Read... [19:21:30]Read from MH i2c: E2 0E 00 CA 07 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 E6 [19:21:30]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:21:30]wFMCommunicate OK [19:21:30]SAM_PROTO_GetShiftState done [19:21:30]FM_GetShiftState done [19:21:30]req_shift_opened done [19:21:30]requested_item shift.open_date is exist - process it [19:21:30]req_shift_open_date [19:21:30]req_shift_open_date done [19:21:30]produce_requested_data done [19:21:30]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18797,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:21:30]process_action_free close_receipt [19:21:30]json_value_free [19:21:30]json_value_free done [19:21:30]process_json_proto returns [19:21:30]Send response to host [19:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18797,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:21:30]free response buf [19:21:30]execute_script done [19:21:30]execute_script returns [19:21:30]free content buf [19:21:30]Sock 7.Close socket [19:21:30]Sock 7.Thread stoped [19:21:33]ConnectInit Can't take IP for lk.salyk.kg [19:21:33]CommunicateWithHost connect error [19:21:33]CommunicateWithHost err = -1 [19:21:33]OFD Sender: Server communicate error [19:21:38]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:21:38]ProducePacketName [19:21:38]name=ofd_packets/00018797 [19:21:38]OFD Sender: To server: pG, [19:21:38]CommunicateWithHost lk.salyk.kg:30040 [19:21:38]ConnectInit lk.salyk.kg [19:21:43]ConnectInit Can't take IP for lk.salyk.kg [19:21:43]CommunicateWithHost connect error [19:21:43]CommunicateWithHost err = -1 [19:21:43]OFD Sender: Server communicate error [19:21:48]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:21:48]ProducePacketName [19:21:48]name=ofd_packets/00018797 [19:21:48]OFD Sender: To server: pG, [19:21:48]CommunicateWithHost lk.salyk.kg:30040 [19:21:48]ConnectInit lk.salyk.kg [19:21:53]ConnectInit Can't take IP for lk.salyk.kg [19:21:53]CommunicateWithHost connect error [19:21:53]CommunicateWithHost err = -1 [19:21:53]OFD Sender: Server communicate error [19:21:58]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:21:58]ProducePacketName [19:21:58]name=ofd_packets/00018797 [19:21:58]OFD Sender: To server: pG, [19:21:58]CommunicateWithHost lk.salyk.kg:30040 [19:21:58]ConnectInit lk.salyk.kg [19:22:03]ConnectInit Can't take IP for lk.salyk.kg [19:22:03]CommunicateWithHost connect error [19:22:03]CommunicateWithHost err = -1 [19:22:03]OFD Sender: Server communicate error [19:22:08]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:22:08]ProducePacketName [19:22:08]name=ofd_packets/00018797 [19:22:08]OFD Sender: To server: pG, [19:22:08]CommunicateWithHost lk.salyk.kg:30040 [19:22:08]ConnectInit lk.salyk.kg [19:22:13]ConnectInit Can't take IP for lk.salyk.kg [19:22:13]CommunicateWithHost connect error [19:22:13]CommunicateWithHost err = -1 [19:22:13]OFD Sender: Server communicate error [19:22:18]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:22:18]ProducePacketName [19:22:18]name=ofd_packets/00018797 [19:22:18]OFD Sender: To server: pG, [19:22:18]CommunicateWithHost lk.salyk.kg:30040 [19:22:18]ConnectInit lk.salyk.kg [19:22:23]ConnectInit Can't take IP for lk.salyk.kg [19:22:23]CommunicateWithHost connect error [19:22:23]CommunicateWithHost err = -1 [19:22:23]OFD Sender: Server communicate error [19:22:28]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:22:28]ProducePacketName [19:22:28]name=ofd_packets/00018797 [19:22:28]OFD Sender: To server: pG, [19:22:28]CommunicateWithHost lk.salyk.kg:30040 [19:22:28]ConnectInit lk.salyk.kg [19:22:33]ConnectInit Can't take IP for lk.salyk.kg [19:22:33]CommunicateWithHost connect error [19:22:33]CommunicateWithHost err = -1 [19:22:33]OFD Sender: Server communicate error [19:22:38]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:22:38]ProducePacketName [19:22:38]name=ofd_packets/00018797 [19:22:38]OFD Sender: To server: pG, [19:22:38]CommunicateWithHost lk.salyk.kg:30040 [19:22:38]ConnectInit lk.salyk.kg [19:22:43]ConnectInit Can't take IP for lk.salyk.kg [19:22:43]CommunicateWithHost connect error [19:22:43]CommunicateWithHost err = -1 [19:22:43]OFD Sender: Server communicate error [19:22:48]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:22:48]ProducePacketName [19:22:48]name=ofd_packets/00018797 [19:22:48]OFD Sender: To server: pG, [19:22:48]CommunicateWithHost lk.salyk.kg:30040 [19:22:48]ConnectInit lk.salyk.kg [19:22:53]ConnectInit Can't take IP for lk.salyk.kg [19:22:53]CommunicateWithHost connect error [19:22:53]CommunicateWithHost err = -1 [19:22:53]OFD Sender: Server communicate error [19:22:58]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:22:58]ProducePacketName [19:22:58]name=ofd_packets/00018797 [19:22:58]OFD Sender: To server: pG, [19:22:58]CommunicateWithHost lk.salyk.kg:30040 [19:22:58]ConnectInit lk.salyk.kg [19:23:03]ConnectInit Can't take IP for lk.salyk.kg [19:23:03]CommunicateWithHost connect error [19:23:03]CommunicateWithHost err = -1 [19:23:03]OFD Sender: Server communicate error [19:23:08]OFD Sender: Processing packet 18797 [packets to send 7, broken 6] [19:23:08]ProducePacketName [19:23:08]name=ofd_packets/00018797 [19:23:08]OFD Sender: To server: pG, [19:23:08]CommunicateWithHost lk.salyk.kg:30040 [19:23:08]ConnectInit lk.salyk.kg [19:23:08]Connected sock=7 [19:23:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 86 01 00 00 27 3C 7E 01 B6 E6 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B7 BF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6D 49 00 00 35 04 06 00 2C CA 95 FB 2E 64 B7 FA 64 F7 89 64 41 14 [19:23:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 7B 5E 47 00 AD 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6D 49 00 00 F4 03 04 00 7F 69 F1 66 B6 04 01 00 00 63 26 80 CA C4 AF F2 0F [19:23:08]CommunicateWithHost err = 0 [19:23:08]CheckOFDResponse [19:23:08]1017 (14) - 77093643461234 [19:23:08]1041 (16) - 0000000000959456 [19:23:08]1040 (4) - 18797 [19:23:08]1012 (4) - 23.09.2024 13:13 [19:23:08]1206 (1) - 0 [19:23:08]OFD Sender: Remove packet 18797 [19:23:08]ProducePacketName [19:23:08]name=ofd_packets/00018797 [19:23:08]NVStorageDeleteData [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:18]ConnectInit Can't connect to host [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:43]accept exits with 10 [19:28:43]New connection [19:28:43]New thread 3066752356 created [19:28:43]Thread 3066608996 joined [19:28:43]Waiting for new connection... [19:28:43] Sock 10.Parse request [19:28:43]Sock 10.Check first char [19:28:43]Sock 10.First char is OK [19:28:43]request: POST /json_proto HTTP/1.0 [19:28:43]Method: POST [19:28:43]URL: /json_proto [19:28:43]Method is POST - this is cgi request [19:28:43]url: /json_proto [19:28:43]query_string will be loaded in cgi processing [19:28:43]execute_cgi json_proto POST (null) [19:28:43]execute_cgi path=json_proto method=POST [19:28:43]POST find Content-Length [19:28:43]Host: 172.17.62.196:8080 [19:28:43]Content-Length: 620 [19:28:43]Content-Type: application/json [19:28:43] [19:28:43]POST finish read [19:28:43]Found Content-Length = 620 [19:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16717", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:43]execute_script... [19:28:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16717", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:43]POST & json_proto [19:28:43]process_json_proto [19:28:43]json parsed OK: [19:28:43]protocol is kg_v1.0 [19:28:43]action value=close_receipt [19:28:43]process_action close_receipt [19:28:43]cmd_close_receipt [19:28:43]MH_GetDate [19:28:43]Write to MH i2c: F0 00 00 CB 07 C1 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: F0 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: F0 09 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: F0 09 00 CB 07 00 6D C1 F1 66 CE CC 0E 66 5D [19:28:43]GetLastDocTimeStamp 1727119287 [19:28:43]current date 1727119725 [19:28:43]FM_GetShiftState [19:28:43]SAM_PROTO_GetShiftState [19:28:43]wFMCommunicate request_size=4 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 13 01 00 [19:28:43]Write to MH i2c: E2 08 00 CC 07 80 13 01 00 00 00 00 00 50 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:43]Read from MH i2c: E2 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 0E 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 0E 00 CC 07 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 E8 [19:28:43]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:28:43]wFMCommunicate OK [19:28:43]SAM_PROTO_GetShiftState done [19:28:43]FM_GetShiftState done [19:28:43]opened in 1727050372 [19:28:43]opened+sec_in_day 1727136772 [19:28:43]quantity*price = 26800 [19:28:43]sum+1 = 26801 [19:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.46 Наличными: 268.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 74 23.09.2024 19:28 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18798 ФПД: 193286818566810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T192845&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18798&fm=193286818566810&tin=02508201610067®Number=0000000000152968&sum=26800 0 [19:28:44]StoreToDocumentArchive [19:28:44]shift 181 fd 18798 [19:28:44]save to /storage/0181/doc_00018798 [19:28:44]save last doc name /storage/0181/doc_00018798 to /storage/kkm_last_doc_name [19:28:44]save OK [19:28:44]Clear old archive folders... [19:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:28:44]tlvbuf is 00C10020 [19:28:44]SAM_PROTO_ClearQueue [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 09 00 00 [19:28:44]Write to MH i2c: E2 08 00 D9 07 80 09 00 00 00 00 00 00 52 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [19:28:44]RAPDU: 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_ClearQueue done [19:28:44]KKMCreateOFDPacket [19:28:44]OFDProtocolAddRootSTLVToBuf [19:28:44]FM_MakeSignedData [19:28:44]FM_MakeSignedData [19:28:44]SAM_PROTO_SignData [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 0D 01 02 [19:28:44]Write to MH i2c: E2 08 00 DA 07 80 0D 01 02 00 00 00 00 5A [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [19:28:44]RAPDU: 90 00 [19:28:44]wFMCommunicate OK [19:28:44]wFMCommunicate request_size=255 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6D C1 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 [19:28:44]Write to MH i2c: E2 02 01 DB 07 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6D C1 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 00 00 F0 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 03 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 03 00 DB 07 00 90 00 56 [19:28:45]RAPDU: 90 00 [19:28:45]wFMCommunicate OK [19:28:45]wFMCommunicate request_size=32 [19:28:45]MH_SAM_APDU [19:28:45]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 34 35 36 10 04 04 00 6E 49 00 00 35 04 06 00 AF CB 18 29 12 9A [19:28:45]Write to MH i2c: E2 23 00 DC 07 80 0D 02 02 1B 00 30 30 30 39 35 39 34 35 36 10 04 04 00 6E 49 00 00 35 04 06 00 AF CB 18 29 12 9A 00 00 DE [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 03 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 03 00 DC 07 00 90 00 57 [19:28:45]RAPDU: 90 00 [19:28:45]wFMCommunicate OK [19:28:45]wFMCommunicate request_size=4 [19:28:45]MH_SAM_APDU [19:28:45]CAPDU: 80 0D 03 02 [19:28:45]Write to MH i2c: E2 08 00 DD 07 80 0D 03 02 00 00 00 00 5F [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 0B 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 0B 00 DD 07 00 C7 5E C2 F2 8D 62 AB 9C 90 00 6F [19:28:45]RAPDU: C7 5E C2 F2 8D 62 AB 9C 90 00 [19:28:45]wFMCommunicate OK [19:28:45]SAM_PROTO_SignData done [19:28:45]FM_MakeSignedData done [19:28:45]CreateOFDProtocolMessage [19:28:45]wFMCommunicate request_size=4 [19:28:45]MH_SAM_APDU [19:28:45]CAPDU: 80 11 00 00 [19:28:45]Write to MH i2c: E2 08 00 DE 07 80 11 00 00 00 00 00 00 5F [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:45]Read from MH i2c: E2 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 17 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: E2 17 00 DE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B8 [19:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:28:45]wFMCommunicate OK [19:28:45]CreateOFDProtocolMessage done [19:28:45]OFDSenderStorePacket 18798 [19:28:45]StoreOFDPacket docnum=18798 [19:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 06 48 1D 01 E7 7E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6D C1 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6E 49 00 00 35 04 06 00 AF CB 18 29 12 9A C7 5E C2 F2 8D 62 AB 9C [19:28:45]CheckFolder [19:28:45]dirname=/storage/ofd_packets [19:28:45]CheckFolder done [19:28:45]ProducePacketName [19:28:45]name=ofd_packets/00018798 [19:28:45]NVStorageSaveData ofd_packets/00018798 [19:28:45]File name is /storage/ofd_packets/00018798 [19:28:45]Write 323 bytes [19:28:45]NVStorageSaveData done [19:28:45]OFDSenderStorePacket done [19:28:45]KKMCreateOFDPacket done [19:28:45]NVStorageSaveData kkm_last_timestamp [19:28:45]File name is /storage/kkm_last_timestamp [19:28:45]Write 4 bytes [19:28:45]NVStorageSaveData done [19:28:45]ExternCall_PrintAddStr [19:28:45]wPrintStart [19:28:45]Write to MH i2c: 01 00 00 DF 07 E6 [19:28:45]OFD Sender: Processing packet 18798 [packets to send 7, broken 6] [19:28:45]ProducePacketName [19:28:45]name=ofd_packets/00018798 [19:28:45]OFD Sender: To server: pG, [19:28:45]CommunicateWithHost lk.salyk.kg:30040 [19:28:45]ConnectInit lk.salyk.kg [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: 01 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: 01 07 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 FF 0F FB [19:28:45]RasterBufferAndPrint [19:28:45]line Счет N : (3)16717 [19:28:45]line ИНН: 02508201610067 [19:28:45]line Контрольно-Кассовый Чек [19:28:45]line ПРОДАЖА [19:28:45]line Товар: 4780014240406 [19:28:45]line Сигареты Sovereign Blue [19:28:45]line 2.000 * 134.00 [19:28:45]line = 268.00 [19:28:45]line НДС 12% НСП 1% [19:28:45]line > о реализуемом товаре [19:28:45]line ИТОГО: 268.00 [19:28:45]line НСП 1% : 2.37 [19:28:45]line НДС 12% : 28.46 [19:28:45]line Наличными: 268.00 [19:28:45]line Безнал.: 0.00 [19:28:45]line Место: АЗС № 176 "Партнер Нефть" [19:28:45]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:28:45]line СНО: Общий режим [19:28:45]line Чек 74 23.09.2024 19:28 [19:28:45]line Смена: 181 ФФД: 1.0 [19:28:45]line ЗНМ: 0300000010 [19:28:45]line РНМ: 0000000000152968 [19:28:45]line Версия ККМ: v1.0 [19:28:45]line ФМ: 0000000000959456 [19:28:45]line ФД: 18798 [19:28:45]line ФПД: 193286818566810 [19:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T192845&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18798&fm=193286818566810&tin=02508201610067®Number=0000000000152968&sum=26800 [19:28:45]Connected sock=9 [19:28:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 06 48 1D 01 E7 7E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6D C1 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6E 49 00 00 35 04 06 00 AF CB 18 29 12 9A C7 5E C2 F2 8D 62 AB 9C [19:28:45]line 0 [19:28:45]written 0, free lines is 4095 [19:28:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 48 6B 47 00 27 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 35 39 34 35 36 10 04 04 00 6E 49 00 00 F4 03 04 00 D0 6A F1 66 B6 04 01 00 00 22 4B 9E 5C 66 D6 CF 9C [19:28:45]CommunicateWithHost err = 0 [19:28:46]CheckOFDResponse [19:28:46]1017 (14) - 77093643461234 [19:28:46]1041 (16) - 0000000000959456 [19:28:46]1040 (4) - 18798 [19:28:46]1012 (4) - 23.09.2024 13:19 [19:28:46]1206 (1) - 0 [19:28:46]OFD Sender: Remove packet 18798 [19:28:46]ProducePacketName [19:28:46]name=ofd_packets/00018798 [19:28:46]NVStorageDeleteData [19:28:46]Write to MH i2c: 01 00 00 07 08 0F [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 07 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 07 00 07 08 00 00 00 00 00 2D 0D 50 [19:28:46]RasterBufferAndPrint [19:28:46]line [19:28:46]line [19:28:46]line [19:28:46]line [19:28:46]line [19:28:46]written 0, free lines is 3380 [19:28:46]MH_Cut [19:28:46]Write to MH i2c: D1 01 00 0E 08 01 E8 [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: D1 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: D1 01 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: D1 01 00 0E 08 00 E7 [19:28:46]Write to MH i2c: 01 00 00 0F 08 17 [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]OFD Sender: No OFD packet to send [19:28:46]*** Cut start [19:28:46]*** Partial cut [19:28:46]*** CUTSNS_PIN = 1 [19:28:46]*** CUTSNS_PIN = 0 [19:28:47]*** Brake cut motor [19:28:47]Read from MH i2c: 01 [19:28:47]MH_I2C_Read... [19:28:47]*** Stop cut motor [19:28:47]*** Cut end [19:28:47]Read from MH i2c: 01 07 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: 01 07 00 0F 08 00 00 00 00 00 FF 0F 2C [19:28:47]process_action close_receipt done [19:28:47]requested_data is exist [19:28:47]produce_requested_data [19:28:47]requested_item fm.sn is exist - process it [19:28:47]wFMCommunicate request_size=4 [19:28:47]MH_SAM_APDU [19:28:47]CAPDU: 80 11 00 00 [19:28:47]Write to MH i2c: E2 08 00 10 08 80 11 00 00 00 00 00 00 92 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:47]Read from MH i2c: E2 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 17 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 17 00 10 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 EB [19:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:28:47]wFMCommunicate OK [19:28:47]requested_item fd.num is exist - process it [19:28:47]SAM_PROTO_GetFieldsCounters [19:28:47]wFMCommunicate request_size=4 [19:28:47]MH_SAM_APDU [19:28:47]CAPDU: 80 13 00 00 [19:28:47]Write to MH i2c: E2 08 00 11 08 80 13 00 00 00 00 00 00 95 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:47]Read from MH i2c: E2 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 62 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 62 00 11 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6E 49 00 00 0E 04 04 00 B5 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 0C [19:28:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6E 49 00 00 0E 04 04 00 B5 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 [19:28:47]wFMCommunicate OK [19:28:47]SAM_PROTO_GetFieldsCounters done [19:28:47]requested_item shift.num is exist - process it [19:28:47]requested_item shift.opened is exist - process it [19:28:47]req_shift_opened [19:28:47]FM_GetShiftState [19:28:47]SAM_PROTO_GetShiftState [19:28:47]wFMCommunicate request_size=4 [19:28:47]MH_SAM_APDU [19:28:47]CAPDU: 80 13 01 00 [19:28:47]Write to MH i2c: E2 08 00 12 08 80 13 01 00 00 00 00 00 97 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:47]Read from MH i2c: E2 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 0E 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 0E 00 12 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 2F [19:28:47]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:28:47]wFMCommunicate OK [19:28:47]SAM_PROTO_GetShiftState done [19:28:47]FM_GetShiftState done [19:28:47]req_shift_opened done [19:28:47]requested_item shift.open_date is exist - process it [19:28:47]req_shift_open_date [19:28:47]req_shift_open_date done [19:28:47]produce_requested_data done [19:28:47]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18798,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:28:47]process_action_free close_receipt [19:28:47]json_value_free [19:28:47]json_value_free done [19:28:47]process_json_proto returns [19:28:47]Send response to host [19:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18798,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:28:47]free response buf [19:28:47]execute_script done [19:28:47]execute_script returns [19:28:47]free content buf [19:28:47]Sock 10.Close socket [19:28:47]Sock 10.Thread stoped [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [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:13]accept exits with 7 [19:32:13]New connection [19:32:13]New thread 3066608996 created [19:32:13]Thread 3066752356 joined [19:32:13]Waiting for new connection... [19:32:13] Sock 7.Parse request [19:32:13]Sock 7.Check first char [19:32:13]Sock 7.First char is OK [19:32:13]request: POST /json_proto HTTP/1.0 [19:32:13]Method: POST [19:32:13]URL: /json_proto [19:32:13]Method is POST - this is cgi request [19:32:13]url: /json_proto [19:32:13]query_string will be loaded in cgi processing [19:32:13]execute_cgi json_proto POST (null) [19:32:13]execute_cgi path=json_proto method=POST [19:32:13]POST find Content-Length [19:32:13]Host: 172.17.62.196:8080 [19:32:13]Content-Length: 625 [19:32:13]Content-Type: application/json [19:32:13] [19:32:13]POST finish read [19:32:13]Found Content-Length = 625 [19:32:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16718", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:13]execute_script... [19:32:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16718", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:13]POST & json_proto [19:32:13]process_json_proto [19:32:13]json parsed OK: [19:32:13]protocol is kg_v1.0 [19:32:13]action value=close_receipt [19:32:13]process_action close_receipt [19:32:13]cmd_close_receipt [19:32:13]MH_GetDate [19:32:13]Write to MH i2c: F0 00 00 13 08 0A [19:32:13]Write i2c OK [19:32:13]MH_I2C_Read... [19:32:13]Read from MH i2c: F0 [19:32:13]MH_I2C_Read... [19:32:13]Read from MH i2c: F0 09 00 [19:32:13]MH_I2C_Read... [19:32:13]Read from MH i2c: F0 09 00 13 08 00 3F C2 F1 66 CE CC 0E 66 79 [19:32:13]GetLastDocTimeStamp 1727119725 [19:32:13]current date 1727119935 [19:32:13]FM_GetShiftState [19:32:13]SAM_PROTO_GetShiftState [19:32:13]wFMCommunicate request_size=4 [19:32:13]MH_SAM_APDU [19:32:13]CAPDU: 80 13 01 00 [19:32:13]Write to MH i2c: E2 08 00 14 08 80 13 01 00 00 00 00 00 99 [19:32:13]Write i2c OK [19:32:13]MH_I2C_Read... [19:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:13]Read from MH i2c: E2 [19:32:13]MH_I2C_Read... [19:32:13]Read from MH i2c: E2 0E 00 [19:32:13]MH_I2C_Read... [19:32:13]Read from MH i2c: E2 0E 00 14 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 31 [19:32:13]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:32:13]wFMCommunicate OK [19:32:13]SAM_PROTO_GetShiftState done [19:32:13]FM_GetShiftState done [19:32:13]opened in 1727050372 [19:32:13]opened+sec_in_day 1727136772 [19:32:13]quantity*price = 13900 [19:32:13]sum+1 = 13901 [19:32:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 75 23.09.2024 19:32 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18799 ФПД: 200868392765000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193215&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18799&fm=200868392765000&tin=02508201610067®Number=0000000000152968&sum=13900 0 [19:32:14]StoreToDocumentArchive [19:32:14]shift 181 fd 18799 [19:32:14]save to /storage/0181/doc_00018799 [19:32:14]save last doc name /storage/0181/doc_00018799 to /storage/kkm_last_doc_name [19:32:14]save OK [19:32:14]Clear old archive folders... [19:32:14]ProcessDocumentItem done err = 0, tmpTLVsize=278 [19:32:14]tlvbuf is 00C018F0 [19:32:14]SAM_PROTO_ClearQueue [19:32:14]wFMCommunicate request_size=4 [19:32:14]MH_SAM_APDU [19:32:14]CAPDU: 80 09 00 00 [19:32:14]Write to MH i2c: E2 08 00 21 08 80 09 00 00 00 00 00 00 9B [19:32:14]Write i2c OK [19:32:14]MH_I2C_Read... [19:32:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:14]Read from MH i2c: E2 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: E2 03 00 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [19:32:14]RAPDU: 90 00 [19:32:14]wFMCommunicate OK [19:32:14]SAM_PROTO_ClearQueue done [19:32:14]KKMCreateOFDPacket [19:32:14]OFDProtocolAddRootSTLVToBuf [19:32:14]FM_MakeSignedData [19:32:14]FM_MakeSignedData [19:32:14]SAM_PROTO_SignData [19:32:14]wFMCommunicate request_size=4 [19:32:14]MH_SAM_APDU [19:32:14]CAPDU: 80 0D 01 02 [19:32:14]Write to MH i2c: E2 08 00 22 08 80 0D 01 02 00 00 00 00 A3 [19:32:14]Write i2c OK [19:32:14]MH_I2C_Read... [19:32:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:14]Read from MH i2c: E2 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: E2 03 00 [19:32:14]MH_I2C_Read... [19:32:14]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [19:32:14]RAPDU: 90 00 [19:32:14]wFMCommunicate OK [19:32:14]wFMCommunicate request_size=255 [19:32:14]MH_SAM_APDU [19:32:14]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3F C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 [19:32:14]Write to MH i2c: E2 02 01 23 08 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3F C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 00 00 41 [19:32:14]Write i2c OK [19:32:14]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [19:32:15]RAPDU: 90 00 [19:32:15]wFMCommunicate OK [19:32:15]wFMCommunicate request_size=37 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6F 49 00 00 35 04 06 00 B6 B0 51 32 86 48 [19:32:15]Write to MH i2c: E2 28 00 24 08 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6F 49 00 00 35 04 06 00 B6 B0 51 32 86 48 00 00 72 [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 03 00 24 08 00 90 00 A0 [19:32:15]RAPDU: 90 00 [19:32:15]wFMCommunicate OK [19:32:15]wFMCommunicate request_size=4 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 0D 03 02 [19:32:15]Write to MH i2c: E2 08 00 25 08 80 0D 03 02 00 00 00 00 A8 [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 0B 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 0B 00 25 08 00 28 B2 02 98 66 00 E8 D7 90 00 42 [19:32:15]RAPDU: 28 B2 02 98 66 00 E8 D7 90 00 [19:32:15]wFMCommunicate OK [19:32:15]SAM_PROTO_SignData done [19:32:15]FM_MakeSignedData done [19:32:15]CreateOFDProtocolMessage [19:32:15]wFMCommunicate request_size=4 [19:32:15]MH_SAM_APDU [19:32:15]CAPDU: 80 11 00 00 [19:32:15]Write to MH i2c: E2 08 00 26 08 80 11 00 00 00 00 00 00 A8 [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:15]Read from MH i2c: E2 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 17 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: E2 17 00 26 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 01 [19:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:32:15]wFMCommunicate OK [19:32:15]CreateOFDProtocolMessage done [19:32:15]OFDSenderStorePacket 18799 [19:32:15]StoreOFDPacket docnum=18799 [19:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 AA 00 22 01 DA 8D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3F C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6F 49 00 00 35 04 06 00 B6 B0 51 32 86 48 28 B2 02 98 66 00 E8 D7 [19:32:15]CheckFolder [19:32:15]dirname=/storage/ofd_packets [19:32:15]CheckFolder done [19:32:15]ProducePacketName [19:32:15]name=ofd_packets/00018799 [19:32:15]NVStorageSaveData ofd_packets/00018799 [19:32:15]File name is /storage/ofd_packets/00018799 [19:32:15]Write 328 bytes [19:32:15]NVStorageSaveData done [19:32:15]OFDSenderStorePacket done [19:32:15]KKMCreateOFDPacket done [19:32:15]NVStorageSaveData kkm_last_timestamp [19:32:15]File name is /storage/kkm_last_timestamp [19:32:15]Write 4 bytes [19:32:15]NVStorageSaveData done [19:32:15]ExternCall_PrintAddStr [19:32:15]wPrintStart [19:32:15]Write to MH i2c: 01 00 00 27 08 2F [19:32:15]Write i2c OK [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: 01 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: 01 07 00 [19:32:15]MH_I2C_Read... [19:32:15]Read from MH i2c: 01 07 00 27 08 00 00 00 00 00 FF 0F 44 [19:32:15]RasterBufferAndPrint [19:32:15]line Счет N : (3)16718 [19:32:15]line ИНН: 02508201610067 [19:32:15]line Контрольно-Кассовый Чек [19:32:15]line ПРОДАЖА [19:32:15]line Товар: 48741224 [19:32:15]line Сигареты Winston Super Slims Blue [19:32:15]line 1.000 * 139.00 [19:32:15]line = 139.00 [19:32:15]line НДС 12% НСП 1% [19:32:15]line > о реализуемом товаре [19:32:15]line ИТОГО: 139.00 [19:32:15]line НСП 1% : 1.23 [19:32:15]line НДС 12% : 14.76 [19:32:15]line Наличными: 139.00 [19:32:15]line Безнал.: 0.00 [19:32:15]line Место: АЗС № 176 "Партнер Нефть" [19:32:15]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:32:15]line СНО: Общий режим [19:32:15]line Чек 75 23.09.2024 19:32 [19:32:15]line Смена: 181 ФФД: 1.0 [19:32:15]line ЗНМ: 0300000010 [19:32:15]line РНМ: 0000000000152968 [19:32:15]line Версия ККМ: v1.0 [19:32:15]line ФМ: 0000000000959456 [19:32:15]line ФД: 18799 [19:32:15]line ФПД: 200868392765000 [19:32:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193215&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18799&fm=200868392765000&tin=02508201610067®Number=0000000000152968&sum=13900 [19:32:15]line 0 [19:32:15]OFD Sender: Processing packet 18799 [packets to send 7, broken 6] [19:32:15]ProducePacketName [19:32:15]name=ofd_packets/00018799 [19:32:15]OFD Sender: To server: pG, [19:32:15]CommunicateWithHost lk.salyk.kg:30040 [19:32:15]ConnectInit lk.salyk.kg [19:32:15]written 0, free lines is 4095 [19:32:15]Connected sock=10 [19:32:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2A 01 00 00 AA 00 22 01 DA 8D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 3F C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 6F 49 00 00 35 04 06 00 B6 B0 51 32 86 48 28 B2 02 98 66 00 E8 D7 [19:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A6 7C 47 00 3C 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 35 39 34 35 36 10 04 04 00 6F 49 00 00 F4 03 04 00 A2 6B F1 66 B6 04 01 00 00 AF EC AB E6 B1 52 7C AE [19:32:16]CommunicateWithHost err = 0 [19:32:16]CheckOFDResponse [19:32:16]1017 (14) - 77093643461234 [19:32:16]1041 (16) - 0000000000959456 [19:32:16]1040 (4) - 18799 [19:32:16]1012 (4) - 23.09.2024 13:22 [19:32:16]1206 (1) - 0 [19:32:16]OFD Sender: Remove packet 18799 [19:32:16]ProducePacketName [19:32:16]name=ofd_packets/00018799 [19:32:16]NVStorageDeleteData [19:32:16]Write to MH i2c: 01 00 00 50 08 58 [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: 01 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: 01 07 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: 01 07 00 50 08 00 00 00 00 00 15 0D 81 [19:32:16]RasterBufferAndPrint [19:32:16]line [19:32:16]line [19:32:16]line [19:32:16]line [19:32:16]line [19:32:16]written 0, free lines is 3357 [19:32:16]MH_Cut [19:32:16]Write to MH i2c: D1 01 00 57 08 01 31 [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: D1 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: D1 01 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: D1 01 00 57 08 00 30 [19:32:16]Write to MH i2c: 01 00 00 58 08 60 [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]OFD Sender: No OFD packet to send [19:32:16]*** Cut start [19:32:16]*** Partial cut [19:32:16]*** CUTSNS_PIN = 1 [19:32:16]*** CUTSNS_PIN = 0 [19:32:16]*** Brake cut motor [19:32:17]Read from MH i2c: 01 [19:32:17]MH_I2C_Read... [19:32:17]*** Stop cut motor [19:32:17]*** Cut end [19:32:17]Read from MH i2c: 01 07 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: 01 07 00 58 08 00 00 00 00 00 FF 0F 75 [19:32:17]process_action close_receipt done [19:32:17]requested_data is exist [19:32:17]produce_requested_data [19:32:17]requested_item fm.sn is exist - process it [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 11 00 00 [19:32:17]Write to MH i2c: E2 08 00 59 08 80 11 00 00 00 00 00 00 DB [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:17]Read from MH i2c: E2 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 17 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 17 00 59 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 34 [19:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:32:17]wFMCommunicate OK [19:32:17]requested_item fd.num is exist - process it [19:32:17]SAM_PROTO_GetFieldsCounters [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 13 00 00 [19:32:17]Write to MH i2c: E2 08 00 5A 08 80 13 00 00 00 00 00 00 DE [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:17]Read from MH i2c: E2 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 62 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 62 00 5A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6F 49 00 00 0E 04 04 00 B5 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 59 [19:32:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 6F 49 00 00 0E 04 04 00 B5 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 [19:32:17]wFMCommunicate OK [19:32:17]SAM_PROTO_GetFieldsCounters done [19:32:17]requested_item shift.num is exist - process it [19:32:17]requested_item shift.opened is exist - process it [19:32:17]req_shift_opened [19:32:17]FM_GetShiftState [19:32:17]SAM_PROTO_GetShiftState [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 13 01 00 [19:32:17]Write to MH i2c: E2 08 00 5B 08 80 13 01 00 00 00 00 00 E0 [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 [19:32:17]MH_I2C_Read... [19:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:17]Read from MH i2c: E2 0E 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 0E 00 5B 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 78 [19:32:17]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:32:17]wFMCommunicate OK [19:32:17]SAM_PROTO_GetShiftState done [19:32:17]FM_GetShiftState done [19:32:17]req_shift_opened done [19:32:17]requested_item shift.open_date is exist - process it [19:32:17]req_shift_open_date [19:32:17]req_shift_open_date done [19:32:17]produce_requested_data done [19:32:17]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18799,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:32:17]process_action_free close_receipt [19:32:17]json_value_free [19:32:17]json_value_free done [19:32:17]process_json_proto returns [19:32:17]Send response to host [19:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18799,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:32:17]free response buf [19:32:17]execute_script done [19:32:17]execute_script returns [19:32:17]free content buf [19:32:17]Sock 7.Close socket [19:32:17]Sock 7.Thread stoped [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:34]accept exits with 9 [19:33:34]New connection [19:33:34]New thread 3066752356 created [19:33:34]Thread 3066608996 joined [19:33:34]Waiting for new connection... [19:33:34] Sock 9.Parse request [19:33:34]Sock 9.Check first char [19:33:34]Sock 9.First char is OK [19:33:34]request: POST /json_proto HTTP/1.0 [19:33:34]Method: POST [19:33:34]URL: /json_proto [19:33:34]Method is POST - this is cgi request [19:33:34]url: /json_proto [19:33:34]query_string will be loaded in cgi processing [19:33:34]execute_cgi json_proto POST (null) [19:33:34]execute_cgi path=json_proto method=POST [19:33:34]POST find Content-Length [19:33:34]Host: 172.17.62.196:8080 [19:33:34]Content-Length: 677 [19:33:34]Content-Type: application/json [19:33:34] [19:33:34]POST finish read [19:33:34]Found Content-Length = 677 [19:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116477", "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" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:34]execute_script... [19:33: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)116477", "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" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:34]POST & json_proto [19:33:34]process_json_proto [19:33:34]json parsed OK: [19:33:34]protocol is kg_v1.0 [19:33:34]action value=close_receipt [19:33:34]process_action close_receipt [19:33:34]cmd_close_receipt [19:33:34]MH_GetDate [19:33:34]Write to MH i2c: F0 00 00 5C 08 53 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: F0 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: F0 09 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: F0 09 00 5C 08 00 90 C2 F1 66 CE CC 0E 66 13 [19:33:34]GetLastDocTimeStamp 1727119935 [19:33:34]current date 1727120016 [19:33:34]FM_GetShiftState [19:33:34]SAM_PROTO_GetShiftState [19:33:34]wFMCommunicate request_size=4 [19:33:34]MH_SAM_APDU [19:33:34]CAPDU: 80 13 01 00 [19:33:34]Write to MH i2c: E2 08 00 5D 08 80 13 01 00 00 00 00 00 E2 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:34]Read from MH i2c: E2 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 0E 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: E2 0E 00 5D 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 7A [19:33:34]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:33:34]wFMCommunicate OK [19:33:34]SAM_PROTO_GetShiftState done [19:33:34]FM_GetShiftState done [19:33:34]opened in 1727050372 [19:33:34]opened+sec_in_day 1727136772 [19:33:34]quantity*price = 15051 [19:33:34]sum+1 = 15053 [19:33:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 76 23.09.2024 19:33 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18800 ФПД: 88158951238787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193336&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18800&fm=88158951238787&tin=02508201610067®Number=0000000000152968&sum=15000 [19:33:35]StoreToDocumentArchive [19:33:35]shift 181 fd 18800 [19:33:35]save to /storage/0181/doc_00018800 [19:33:35]save last doc name /storage/0181/doc_00018800 to /storage/kkm_last_doc_name [19:33:35]save OK [19:33:35]Clear old archive folders... [19:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:35]tlvbuf is 00C017E0 [19:33:35]SAM_PROTO_ClearQueue [19:33:35]wFMCommunicate request_size=4 [19:33:35]MH_SAM_APDU [19:33:35]CAPDU: 80 09 00 00 [19:33:35]Write to MH i2c: E2 08 00 6A 08 80 09 00 00 00 00 00 00 E4 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:35]Read from MH i2c: E2 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 03 00 [19:33:35]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 6A 08 00 90 00 E6 [19:33:36]RAPDU: 90 00 [19:33:36]wFMCommunicate OK [19:33:36]SAM_PROTO_ClearQueue done [19:33:36]KKMCreateOFDPacket [19:33:36]OFDProtocolAddRootSTLVToBuf [19:33:36]FM_MakeSignedData [19:33:36]FM_MakeSignedData [19:33:36]SAM_PROTO_SignData [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 0D 01 02 [19:33:36]Write to MH i2c: E2 08 00 6B 08 80 0D 01 02 00 00 00 00 EC [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 6B 08 00 90 00 E7 [19:33:36]RAPDU: 90 00 [19:33:36]wFMCommunicate OK [19:33:36]wFMCommunicate request_size=255 [19:33:36]MH_SAM_APDU [19:33: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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 90 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 70 49 00 00 35 04 06 00 50 [19:33:36]Write to MH i2c: E2 02 01 6C 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 90 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 70 49 00 00 35 04 06 00 50 00 00 72 [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 6C 08 00 90 00 E8 [19:33:36]RAPDU: 90 00 [19:33:36]wFMCommunicate OK [19:33:36]wFMCommunicate request_size=10 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 0D 02 02 05 2E 1A F8 EC 83 [19:33:36]Write to MH i2c: E2 0D 00 6D 08 80 0D 02 02 05 00 2E 1A F8 EC 83 00 00 A8 [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [19:33:36]RAPDU: 90 00 [19:33:36]wFMCommunicate OK [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 0D 03 02 [19:33:36]Write to MH i2c: E2 08 00 6E 08 80 0D 03 02 00 00 00 00 F1 [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 0B 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 0B 00 6E 08 00 5A 44 0B 0E 47 4C 63 39 90 00 D8 [19:33:36]RAPDU: 5A 44 0B 0E 47 4C 63 39 90 00 [19:33:36]wFMCommunicate OK [19:33:36]SAM_PROTO_SignData done [19:33:36]FM_MakeSignedData done [19:33:36]CreateOFDProtocolMessage [19:33:36]wFMCommunicate request_size=4 [19:33:36]MH_SAM_APDU [19:33:36]CAPDU: 80 11 00 00 [19:33:36]Write to MH i2c: E2 08 00 6F 08 80 11 00 00 00 00 00 00 F1 [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:36]Read from MH i2c: E2 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: E2 17 00 [19:33:36]MH_I2C_Read... [19:33:36]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 35 39 34 35 36 90 00 4A [19:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:33:36]wFMCommunicate OK [19:33:36]CreateOFDProtocolMessage done [19:33:36]OFDSenderStorePacket 18800 [19:33:36]StoreOFDPacket docnum=18800 [19:33:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 B9 81 07 01 7D 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 90 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 70 49 00 00 35 04 06 00 50 2E 1A F8 EC 83 5A 44 0B 0E 47 4C 63 39 [19:33:36]CheckFolder [19:33:36]dirname=/storage/ofd_packets [19:33:36]CheckFolder done [19:33:36]ProducePacketName [19:33:36]name=ofd_packets/00018800 [19:33:36]NVStorageSaveData ofd_packets/00018800 [19:33:36]File name is /storage/ofd_packets/00018800 [19:33:36]Write 301 bytes [19:33:36]NVStorageSaveData done [19:33:36]OFDSenderStorePacket done [19:33:36]KKMCreateOFDPacket done [19:33:36]NVStorageSaveData kkm_last_timestamp [19:33:36]File name is /storage/kkm_last_timestamp [19:33:36]Write 4 bytes [19:33:36]NVStorageSaveData done [19:33:36]ExternCall_PrintAddStr [19:33:36]wPrintStart [19:33:36]Write to MH i2c: 01 00 00 70 08 78 [19:33:36]Write i2c OK [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: 01 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: 01 07 00 [19:33:36]MH_I2C_Read... [19:33:36]Read from MH i2c: 01 07 00 70 08 00 00 00 00 00 FF 0F 8D [19:33:36]RasterBufferAndPrint [19:33:36]line Счет N : (1)116477 [19:33:36]line ИНН: 02508201610067 [19:33:36]line Контрольно-Кассовый Чек [19:33:36]line ПРОДАЖА [19:33:36]line ТРК (МРК, ГНК) : 22 [19:33:36]line Товар: 2710124130 [19:33:36]line Аи-92-К-5 [19:33:36]line 2.220 * 67.80 [19:33:36]line = 150.52 [19:33:36]line НДС 12% НСП 1% [19:33:36]line > о реализуемом товаре [19:33:36]line ОКРУГЛЕНИЕ: -0.52 [19:33:36]line ИТОГО: 150.00 [19:33:36]line Внесено: 150.00 [19:33:36]line СДАЧА: 0.00 [19:33:36]line НСП 1% : 1.33 [19:33:36]line НДС 12% : 15.98 [19:33:36]line Наличными: 150.00 [19:33:36]line Безнал.: 0.00 [19:33:36]line Место: АЗС № 176 "Партнер Нефть" [19:33:36]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:33:36]line СНО: Общий режим [19:33:36]line Чек 76 23.09.2024 19:33 [19:33:36]line Смена: 181 ФФД: 1.0 [19:33:36]line ЗНМ: 0300000010 [19:33:36]line РНМ: 0000000000152968 [19:33:36]line Версия ККМ: v1.0 [19:33:36]line ФМ: 0000000000959456 [19:33:36]line ФД: 18800 [19:33:36]line ФПД: 88158951238787 [19:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193336&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18800&fm=88158951238787&tin=02508201610067®Number=0000000000152968&sum=15000 [19:33:36]OFD Sender: Processing packet 18800 [packets to send 7, broken 6] [19:33:36]ProducePacketName [19:33:36]name=ofd_packets/00018800 [19:33:36]OFD Sender: To server: pG, [19:33:36]CommunicateWithHost lk.salyk.kg:30040 [19:33:36]ConnectInit lk.salyk.kg [19:33:36]written 0, free lines is 4095 [19:33:36]Connected sock=10 [19:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 B9 81 07 01 7D 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 90 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 70 49 00 00 35 04 06 00 50 2E 1A F8 EC 83 5A 44 0B 0E 47 4C 63 39 [19:33:37]Write to MH i2c: 01 00 00 9B 08 A3 [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 FD 0C B3 [19:33:37]RasterBufferAndPrint [19:33:37]line [19:33:37]line [19:33:37]line [19:33:37]line [19:33:37]line [19:33:37]written 0, free lines is 3331 [19:33:37]MH_Cut [19:33:37]Write to MH i2c: D1 01 00 A2 08 01 7C [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: D1 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: D1 01 00 [19:33:37]MH_I2C_Read... [19:33:37]Read from MH i2c: D1 01 00 A2 08 00 7B [19:33:37]Write to MH i2c: 01 00 00 A3 08 AB [19:33:37]Write i2c OK [19:33:37]MH_I2C_Read... [19:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 90 57 47 00 C2 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 35 39 34 35 36 10 04 04 00 70 49 00 00 F4 03 04 00 F3 6B F1 66 B6 04 01 00 00 C9 AF 36 C8 91 28 71 6D [19:33:37]CommunicateWithHost err = 0 [19:33:37]CheckOFDResponse [19:33:37]1017 (14) - 77093643461234 [19:33:37]1041 (16) - 0000000000959456 [19:33:37]1040 (4) - 18800 [19:33:37]1012 (4) - 23.09.2024 13:24 [19:33:37]1206 (1) - 0 [19:33:37]OFD Sender: Remove packet 18800 [19:33:37]ProducePacketName [19:33:37]name=ofd_packets/00018800 [19:33:37]NVStorageDeleteData [19:33:37]OFD Sender: No OFD packet to send [19:33:37]*** Cut start [19:33:37]*** Partial cut [19:33:37]*** CUTSNS_PIN = 1 [19:33:38]*** CUTSNS_PIN = 0 [19:33:38]*** Brake cut motor [19:33:38]Read from MH i2c: 01 [19:33:38]MH_I2C_Read... [19:33:38]*** Stop cut motor [19:33:38]*** Cut end [19:33:38]Read from MH i2c: 01 07 00 [19:33:38]MH_I2C_Read... [19:33:38]Read from MH i2c: 01 07 00 A3 08 00 00 00 00 00 FF 0F C0 [19:33:38]process_action close_receipt done [19:33:38]requested_data is exist [19:33:38]produce_requested_data [19:33:38]requested_item fm.sn is exist - process it [19:33:38]wFMCommunicate request_size=4 [19:33:38]MH_SAM_APDU [19:33:38]CAPDU: 80 11 00 00 [19:33:38]Write to MH i2c: E2 08 00 A4 08 80 11 00 00 00 00 00 00 26 [19:33:38]Write i2c OK [19:33:38]MH_I2C_Read... [19:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:38]Read from MH i2c: E2 [19:33:38]MH_I2C_Read... [19:33:38]Read from MH i2c: E2 17 00 [19:33:38]MH_I2C_Read... [19:33:38]Read from MH i2c: E2 17 00 A4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 7F [19:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:33:38]wFMCommunicate OK [19:33:38]requested_item fd.num is exist - process it [19:33:38]SAM_PROTO_GetFieldsCounters [19:33:38]wFMCommunicate request_size=4 [19:33:38]MH_SAM_APDU [19:33:38]CAPDU: 80 13 00 00 [19:33:38]Write to MH i2c: E2 08 00 A5 08 80 13 00 00 00 00 00 00 29 [19:33:38]Write i2c OK [19:33:38]MH_I2C_Read... [19:33:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:38]Read from MH i2c: E2 [19:33:38]MH_I2C_Read... [19:33:38]Read from MH i2c: E2 62 00 [19:33:38]MH_I2C_Read... [19:33:38]Read from MH i2c: E2 62 00 A5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 70 49 00 00 0E 04 04 00 B5 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 A8 [19:33:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 70 49 00 00 0E 04 04 00 B5 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 [19:33:38]wFMCommunicate OK [19:33:38]SAM_PROTO_GetFieldsCounters done [19:33:38]requested_item shift.num is exist - process it [19:33:38]requested_item shift.opened is exist - process it [19:33:38]req_shift_opened [19:33:38]FM_GetShiftState [19:33:38]SAM_PROTO_GetShiftState [19:33:38]wFMCommunicate request_size=4 [19:33:38]MH_SAM_APDU [19:33:38]CAPDU: 80 13 01 00 [19:33:38]Write to MH i2c: E2 08 00 A6 08 80 13 01 00 00 00 00 00 2B [19:33:38]Write i2c OK [19:33:38]MH_I2C_Read... [19:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:38]Read from MH i2c: E2 [19:33:38]MH_I2C_Read... [19:33:38]Read from MH i2c: E2 0E 00 [19:33:38]MH_I2C_Read... [19:33:38]Read from MH i2c: E2 0E 00 A6 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C3 [19:33:38]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:33:38]wFMCommunicate OK [19:33:38]SAM_PROTO_GetShiftState done [19:33:38]FM_GetShiftState done [19:33:38]req_shift_opened done [19:33:38]requested_item shift.open_date is exist - process it [19:33:38]req_shift_open_date [19:33:38]req_shift_open_date done [19:33:38]produce_requested_data done [19:33:38]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18800,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:33:38]process_action_free close_receipt [19:33:38]json_value_free [19:33:38]json_value_free done [19:33:38]process_json_proto returns [19:33:38]Send response to host [19:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18800,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:33:38]free response buf [19:33:38]execute_script done [19:33:38]execute_script returns [19:33:38]free content buf [19:33:38]Sock 9.Close socket [19:33:38]Sock 9.Thread stoped [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:09]accept exits with 7 [19:34:09]New connection [19:34:09]New thread 3066608996 created [19:34:09]Thread 3066752356 joined [19:34:09]Waiting for new connection... [19:34:09] Sock 7.Parse request [19:34:09]Sock 7.Check first char [19:34:09]Sock 7.First char is OK [19:34:09]request: POST /json_proto HTTP/1.0 [19:34:09]Method: POST [19:34:09]URL: /json_proto [19:34:09]Method is POST - this is cgi request [19:34:09]url: /json_proto [19:34:09]query_string will be loaded in cgi processing [19:34:09]execute_cgi json_proto POST (null) [19:34:09]execute_cgi path=json_proto method=POST [19:34:09]POST find Content-Length [19:34:09]Host: 172.17.62.196:8080 [19:34:09]Content-Length: 682 [19:34:09]Content-Type: application/json [19:34:09] [19:34:09]POST finish read [19:34:09]Found Content-Length = 682 [19:34:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116476", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:34:09]execute_script... [19:34: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)116476", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:34:09]POST & json_proto [19:34:09]process_json_proto [19:34:09]json parsed OK: [19:34:09]protocol is kg_v1.0 [19:34:09]action value=close_receipt [19:34:09]process_action close_receipt [19:34:09]cmd_close_receipt [19:34:09]MH_GetDate [19:34:09]Write to MH i2c: F0 00 00 A7 08 9E [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: F0 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: F0 09 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: F0 09 00 A7 08 00 B3 C2 F1 66 CE CC 0E 66 81 [19:34:09]GetLastDocTimeStamp 1727120016 [19:34:09]current date 1727120051 [19:34:09]FM_GetShiftState [19:34:09]SAM_PROTO_GetShiftState [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 13 01 00 [19:34:09]Write to MH i2c: E2 08 00 A8 08 80 13 01 00 00 00 00 00 2D [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0E 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 0E 00 A8 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C5 [19:34:09]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:34:09]wFMCommunicate OK [19:34:09]SAM_PROTO_GetShiftState done [19:34:09]FM_GetShiftState done [19:34:09]opened in 1727050372 [19:34:09]opened+sec_in_day 1727136772 [19:34:09]quantity*price = 100005 [19:34:09]sum+1 = 100006 [19:34:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 77 23.09.2024 19:34 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18801 ФПД: 230856555299582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193411&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18801&fm=230856555299582&tin=02508201610067®Number=0000000000152968&sum=100000 [19:34:10]StoreToDocumentArchive [19:34:10]shift 181 fd 18801 [19:34:10]save to /storage/0181/doc_00018801 [19:34:10]save last doc name /storage/0181/doc_00018801 to /storage/kkm_last_doc_name [19:34:10]save OK [19:34:10]Clear old archive folders... [19:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:10]tlvbuf is 00BECDB0 [19:34:10]SAM_PROTO_ClearQueue [19:34:10]wFMCommunicate request_size=4 [19:34:10]MH_SAM_APDU [19:34:10]CAPDU: 80 09 00 00 [19:34:10]Write to MH i2c: E2 08 00 B5 08 80 09 00 00 00 00 00 00 2F [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:10]Read from MH i2c: E2 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 03 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 03 00 B5 08 00 90 00 31 [19:34:10]RAPDU: 90 00 [19:34:10]wFMCommunicate OK [19:34:10]SAM_PROTO_ClearQueue done [19:34:10]KKMCreateOFDPacket [19:34:10]OFDProtocolAddRootSTLVToBuf [19:34:10]FM_MakeSignedData [19:34:10]FM_MakeSignedData [19:34:10]SAM_PROTO_SignData [19:34:10]wFMCommunicate request_size=4 [19:34:10]MH_SAM_APDU [19:34:10]CAPDU: 80 0D 01 02 [19:34:10]Write to MH i2c: E2 08 00 B6 08 80 0D 01 02 00 00 00 00 37 [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:10]Read from MH i2c: E2 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 03 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 03 00 B6 08 00 90 00 32 [19:34:10]RAPDU: 90 00 [19:34:10]wFMCommunicate OK [19:34:10]wFMCommunicate request_size=255 [19:34:10]MH_SAM_APDU [19:34: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 71 49 00 00 35 04 06 00 D1 [19:34:10]Write to MH i2c: E2 02 01 B7 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 71 49 00 00 35 04 06 00 D1 00 00 AA [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 B7 08 00 90 00 33 [19:34:11]RAPDU: 90 00 [19:34:11]wFMCommunicate OK [19:34:11]wFMCommunicate request_size=10 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 0D 02 02 05 F6 7A F9 02 FE [19:34:11]Write to MH i2c: E2 0D 00 B8 08 80 0D 02 02 05 00 F6 7A F9 02 FE 00 00 AD [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [19:34:11]RAPDU: 90 00 [19:34:11]wFMCommunicate OK [19:34:11]wFMCommunicate request_size=4 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 0D 03 02 [19:34:11]Write to MH i2c: E2 08 00 B9 08 80 0D 03 02 00 00 00 00 3C [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 0B 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 0B 00 B9 08 00 B4 86 64 7E 6D 55 91 F2 90 00 9E [19:34:11]RAPDU: B4 86 64 7E 6D 55 91 F2 90 00 [19:34:11]wFMCommunicate OK [19:34:11]SAM_PROTO_SignData done [19:34:11]FM_MakeSignedData done [19:34:11]CreateOFDProtocolMessage [19:34:11]wFMCommunicate request_size=4 [19:34:11]MH_SAM_APDU [19:34:11]CAPDU: 80 11 00 00 [19:34:11]Write to MH i2c: E2 08 00 BA 08 80 11 00 00 00 00 00 00 3C [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:11]Read from MH i2c: E2 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: E2 17 00 [19:34:11]MH_I2C_Read... [19:34:11]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 35 39 34 35 36 90 00 95 [19:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:34:11]wFMCommunicate OK [19:34:11]CreateOFDProtocolMessage done [19:34:11]OFDSenderStorePacket 18801 [19:34:11]StoreOFDPacket docnum=18801 [19:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 AD 00 07 01 20 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 71 49 00 00 35 04 06 00 D1 F6 7A F9 02 FE B4 86 64 7E 6D 55 91 F2 [19:34:11]CheckFolder [19:34:11]dirname=/storage/ofd_packets [19:34:11]CheckFolder done [19:34:11]ProducePacketName [19:34:11]name=ofd_packets/00018801 [19:34:11]NVStorageSaveData ofd_packets/00018801 [19:34:11]File name is /storage/ofd_packets/00018801 [19:34:11]Write 301 bytes [19:34:11]NVStorageSaveData done [19:34:11]OFDSenderStorePacket done [19:34:11]KKMCreateOFDPacket done [19:34:11]NVStorageSaveData kkm_last_timestamp [19:34:11]File name is /storage/kkm_last_timestamp [19:34:11]Write 4 bytes [19:34:11]NVStorageSaveData done [19:34:11]ExternCall_PrintAddStr [19:34:11]wPrintStart [19:34:11]Write to MH i2c: 01 00 00 BB 08 C3 [19:34:11]Write i2c OK [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: 01 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: 01 07 00 [19:34:11]MH_I2C_Read... [19:34:11]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 FF 0F D8 [19:34:11]RasterBufferAndPrint [19:34:11]line Счет N : (1)116476 [19:34:11]line ИНН: 02508201610067 [19:34:11]line Контрольно-Кассовый Чек [19:34:11]line ПРОДАЖА [19:34:11]line ТРК (МРК, ГНК) : 32 [19:34:11]line Товар: 2710124130 [19:34:11]line Аи-92-К-5 [19:34:11]line 14.750 * 67.80 [19:34:11]line = 1000.05 [19:34:11]line НДС 12% НСП 1% [19:34:11]line > о реализуемом товаре [19:34:11]line ОКРУГЛЕНИЕ: -0.05 [19:34:11]line ИТОГО: 1000.00 [19:34:11]line Внесено: 1000.00 [19:34:11]line СДАЧА: 0.00 [19:34:11]line НСП 1% : 8.85 [19:34:11]line НДС 12% : 106.20 [19:34:11]line Наличными: 1000.00 [19:34:11]line Безнал.: 0.00 [19:34:11]line Место: АЗС № 176 "Партнер Нефть" [19:34:11]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:34:11]line СНО: Общий режим [19:34:11]line Чек 77 23.09.2024 19:34 [19:34:11]line Смена: 181 ФФД: 1.0 [19:34:11]line ЗНМ: 0300000010 [19:34:11]line РНМ: 0000000000152968 [19:34:11]line Версия ККМ: v1.0 [19:34:11]line ФМ: 0000000000959456 [19:34:11]line ФД: 18801 [19:34:11]line ФПД: 230856555299582 [19:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193411&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18801&fm=230856555299582&tin=02508201610067®Number=0000000000152968&sum=100000 [19:34:11]OFD Sender: Processing packet 18801 [packets to send 7, broken 6] [19:34:11]ProducePacketName [19:34:11]name=ofd_packets/00018801 [19:34:11]OFD Sender: To server: pG, [19:34:11]CommunicateWithHost lk.salyk.kg:30040 [19:34:11]ConnectInit lk.salyk.kg [19:34:11]written 0, free lines is 4095 [19:34:11]Connected sock=10 [19:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0F 01 00 00 AD 00 07 01 20 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 C2 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 71 49 00 00 35 04 06 00 D1 F6 7A F9 02 FE B4 86 64 7E 6D 55 91 F2 [19:34:12]Write to MH i2c: 01 00 00 E6 08 EE [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 07 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 06 0D 08 [19:34:12]RasterBufferAndPrint [19:34:12]line [19:34:12]line [19:34:12]line [19:34:12]line [19:34:12]line [19:34:12]written 0, free lines is 3340 [19:34:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9E FA 47 00 97 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 35 39 34 35 36 10 04 04 00 71 49 00 00 F4 03 04 00 16 6C F1 66 B6 04 01 00 00 0C EF 8A 71 FC F2 94 7E [19:34:12]CommunicateWithHost err = 0 [19:34:12]CheckOFDResponse [19:34:12]1017 (14) - 77093643461234 [19:34:12]1041 (16) - 0000000000959456 [19:34:12]1040 (4) - 18801 [19:34:12]1012 (4) - 23.09.2024 13:24 [19:34:12]1206 (1) - 0 [19:34:12]OFD Sender: Remove packet 18801 [19:34:12]ProducePacketName [19:34:12]name=ofd_packets/00018801 [19:34:12]NVStorageDeleteData [19:34:12]MH_Cut [19:34:12]Write to MH i2c: D1 01 00 ED 08 01 C7 [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: D1 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: D1 01 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: D1 01 00 ED 08 00 C6 [19:34:12]Write to MH i2c: 01 00 00 EE 08 F6 [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]OFD Sender: No OFD packet to send [19:34:12]*** Cut start [19:34:12]*** Partial cut [19:34:12]*** CUTSNS_PIN = 1 [19:34:12]*** CUTSNS_PIN = 0 [19:34:12]*** Brake cut motor [19:34:13]Read from MH i2c: 01 [19:34:13]MH_I2C_Read... [19:34:13]*** Stop cut motor [19:34:13]*** Cut end [19:34:13]Read from MH i2c: 01 07 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: 01 07 00 EE 08 00 00 00 00 00 FF 0F 0B [19:34:13]process_action close_receipt done [19:34:13]requested_data is exist [19:34:13]produce_requested_data [19:34:13]requested_item fm.sn is exist - process it [19:34:13]wFMCommunicate request_size=4 [19:34:13]MH_SAM_APDU [19:34:13]CAPDU: 80 11 00 00 [19:34:13]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:13]Read from MH i2c: E2 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 17 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CA [19:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:34:13]wFMCommunicate OK [19:34:13]requested_item fd.num is exist - process it [19:34:13]SAM_PROTO_GetFieldsCounters [19:34:13]wFMCommunicate request_size=4 [19:34:13]MH_SAM_APDU [19:34:13]CAPDU: 80 13 00 00 [19:34:13]Write to MH i2c: E2 08 00 F0 08 80 13 00 00 00 00 00 00 74 [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:13]Read from MH i2c: E2 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 62 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 62 00 F0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 71 49 00 00 0E 04 04 00 B5 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 F7 [19:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 71 49 00 00 0E 04 04 00 B5 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 [19:34:13]wFMCommunicate OK [19:34:13]SAM_PROTO_GetFieldsCounters done [19:34:13]requested_item shift.num is exist - process it [19:34:13]requested_item shift.opened is exist - process it [19:34:13]req_shift_opened [19:34:13]FM_GetShiftState [19:34:13]SAM_PROTO_GetShiftState [19:34:13]wFMCommunicate request_size=4 [19:34:13]MH_SAM_APDU [19:34:13]CAPDU: 80 13 01 00 [19:34:13]Write to MH i2c: E2 08 00 F1 08 80 13 01 00 00 00 00 00 76 [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:13]Read from MH i2c: E2 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 0E 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 0E 00 F1 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 0E [19:34:13]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:34:13]wFMCommunicate OK [19:34:13]SAM_PROTO_GetShiftState done [19:34:13]FM_GetShiftState done [19:34:13]req_shift_opened done [19:34:13]requested_item shift.open_date is exist - process it [19:34:13]req_shift_open_date [19:34:13]req_shift_open_date done [19:34:13]produce_requested_data done [19:34:13]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18801,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:34:13]process_action_free close_receipt [19:34:13]json_value_free [19:34:13]json_value_free done [19:34:13]process_json_proto returns [19:34:13]Send response to host [19:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18801,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:34:13]free response buf [19:34:13]execute_script done [19:34:13]execute_script returns [19:34:13]free content buf [19:34:13]Sock 7.Close socket [19:34:13]Sock 7.Thread stoped [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:06]accept exits with 9 [19:39:06]New connection [19:39:06]New thread 3066752356 created [19:39:06]Thread 3066608996 joined [19:39:06]Waiting for new connection... [19:39:06] Sock 9.Parse request [19:39:06]Sock 9.Check first char [19:39:06]Sock 9.First char is OK [19:39:06]request: POST /json_proto HTTP/1.0 [19:39:06]Method: POST [19:39:06]URL: /json_proto [19:39:06]Method is POST - this is cgi request [19:39:06]url: /json_proto [19:39:06]query_string will be loaded in cgi processing [19:39:06]execute_cgi json_proto POST (null) [19:39:06]execute_cgi path=json_proto method=POST [19:39:06]POST find Content-Length [19:39:06]Host: 172.17.62.196:8080 [19:39:06]Content-Length: 619 [19:39:06]Content-Type: application/json [19:39:06] [19:39:06]POST finish read [19:39:06]Found Content-Length = 619 [19:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16719", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:06]execute_script... [19:39:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16719", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:06]POST & json_proto [19:39:06]process_json_proto [19:39:06]json parsed OK: [19:39:06]protocol is kg_v1.0 [19:39:06]action value=close_receipt [19:39:06]process_action close_receipt [19:39:06]cmd_close_receipt [19:39:06]MH_GetDate [19:39:06]Write to MH i2c: F0 00 00 F2 08 E9 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: F0 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: F0 09 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: F0 09 00 F2 08 00 DC C3 F1 66 CE CC 0E 66 F6 [19:39:06]GetLastDocTimeStamp 1727120051 [19:39:06]current date 1727120348 [19:39:06]FM_GetShiftState [19:39:06]SAM_PROTO_GetShiftState [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 13 01 00 [19:39:06]Write to MH i2c: E2 08 00 F3 08 80 13 01 00 00 00 00 00 78 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0E 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0E 00 F3 08 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 10 [19:39:06]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:39:06]wFMCommunicate OK [19:39:06]SAM_PROTO_GetShiftState done [19:39:06]FM_GetShiftState done [19:39:06]opened in 1727050372 [19:39:06]opened+sec_in_day 1727136772 [19:39:06]quantity*price = 13900 [19:39:06]sum+1 = 13901 [19:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 78 23.09.2024 19:39 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18802 ФПД: 92950411873954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193908&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18802&fm=92950411873954&tin=02508201610067®Number=0000000000152968&sum=13900 0 [19:39:07]StoreToDocumentArchive [19:39:07]shift 181 fd 18802 [19:39:07]save to /storage/0181/doc_00018802 [19:39:07]save last doc name /storage/0181/doc_00018802 to /storage/kkm_last_doc_name [19:39:07]save OK [19:39:07]Clear old archive folders... [19:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:39:07]tlvbuf is 00C35040 [19:39:07]SAM_PROTO_ClearQueue [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 09 00 00 [19:39:07]Write to MH i2c: E2 08 00 00 09 80 09 00 00 00 00 00 00 7B [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 00 09 00 90 00 7D [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]SAM_PROTO_ClearQueue done [19:39:07]KKMCreateOFDPacket [19:39:07]OFDProtocolAddRootSTLVToBuf [19:39:07]FM_MakeSignedData [19:39:07]FM_MakeSignedData [19:39:07]SAM_PROTO_SignData [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 01 02 [19:39:07]Write to MH i2c: E2 08 00 01 09 80 0D 01 02 00 00 00 00 83 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 01 09 00 90 00 7E [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]wFMCommunicate request_size=255 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DC C3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 [19:39:07]Write to MH i2c: E2 02 01 02 09 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DC C3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 B3 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 02 09 00 90 00 7F [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]wFMCommunicate request_size=31 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 02 02 1A 30 30 39 35 39 34 35 36 10 04 04 00 72 49 00 00 35 04 06 00 54 89 B4 48 0E A2 [19:39:07]Write to MH i2c: E2 22 00 03 09 80 0D 02 02 1A 00 30 30 39 35 39 34 35 36 10 04 04 00 72 49 00 00 35 04 06 00 54 89 B4 48 0E A2 00 00 FB [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [19:39:07]RAPDU: 90 00 [19:39:07]wFMCommunicate OK [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 0D 03 02 [19:39:07]Write to MH i2c: E2 08 00 04 09 80 0D 03 02 00 00 00 00 88 [19:39:07]OFD Sender: No OFD packet to send [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 0B 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 0B 00 04 09 00 9E 9C D0 B4 24 F1 A2 21 90 00 1F [19:39:07]RAPDU: 9E 9C D0 B4 24 F1 A2 21 90 00 [19:39:07]wFMCommunicate OK [19:39:07]SAM_PROTO_SignData done [19:39:07]FM_MakeSignedData done [19:39:07]CreateOFDProtocolMessage [19:39:07]wFMCommunicate request_size=4 [19:39:07]MH_SAM_APDU [19:39:07]CAPDU: 80 11 00 00 [19:39:07]Write to MH i2c: E2 08 00 05 09 80 11 00 00 00 00 00 00 88 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:07]Read from MH i2c: E2 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: E2 17 00 [19:39:07]MH_I2C_Read... [19:39:07]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 35 39 34 35 36 90 00 E1 [19:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:39:07]wFMCommunicate OK [19:39:07]CreateOFDProtocolMessage done [19:39:07]OFDSenderStorePacket 18802 [19:39:07]StoreOFDPacket docnum=18802 [19:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 FC 9D 1C 01 29 E7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DC C3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 72 49 00 00 35 04 06 00 54 89 B4 48 0E A2 9E 9C D0 B4 24 F1 A2 21 [19:39:07]CheckFolder [19:39:07]dirname=/storage/ofd_packets [19:39:07]CheckFolder done [19:39:07]ProducePacketName [19:39:07]name=ofd_packets/00018802 [19:39:07]NVStorageSaveData ofd_packets/00018802 [19:39:07]File name is /storage/ofd_packets/00018802 [19:39:07]Write 322 bytes [19:39:07]NVStorageSaveData done [19:39:07]OFDSenderStorePacket done [19:39:07]KKMCreateOFDPacket done [19:39:07]NVStorageSaveData kkm_last_timestamp [19:39:07]File name is /storage/kkm_last_timestamp [19:39:07]Write 4 bytes [19:39:07]NVStorageSaveData done [19:39:07]ExternCall_PrintAddStr [19:39:07]wPrintStart [19:39:07]Write to MH i2c: 01 00 00 06 09 0F [19:39:07]OFD Sender: Processing packet 18802 [packets to send 7, broken 6] [19:39:07]ProducePacketName [19:39:07]name=ofd_packets/00018802 [19:39:07]OFD Sender: To server: pG, [19:39:07]CommunicateWithHost lk.salyk.kg:30040 [19:39:07]ConnectInit lk.salyk.kg [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 06 09 00 00 00 00 00 FF 0F 24 [19:39:07]RasterBufferAndPrint [19:39:07]line Счет N : (3)16719 [19:39:07]line ИНН: 02508201610067 [19:39:07]line Контрольно-Кассовый Чек [19:39:07]line ПРОДАЖА [19:39:07]line Товар: 48745000 [19:39:07]line Сигареты Winston Purple Mix [19:39:07]line 1.000 * 139.00 [19:39:07]line = 139.00 [19:39:07]line НДС 12% НСП 1% [19:39:07]line > о реализуемом товаре [19:39:07]line ИТОГО: 139.00 [19:39:07]line НСП 1% : 1.23 [19:39:07]line НДС 12% : 14.76 [19:39:07]line Наличными: 139.00 [19:39:07]line Безнал.: 0.00 [19:39:07]line Место: АЗС № 176 "Партнер Нефть" [19:39:07]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:39:07]line СНО: Общий режим [19:39:07]line Чек 78 23.09.2024 19:39 [19:39:07]line Смена: 181 ФФД: 1.0 [19:39:07]line ЗНМ: 0300000010 [19:39:07]line РНМ: 0000000000152968 [19:39:07]line Версия ККМ: v1.0 [19:39:08]line ФМ: 0000000000959456 [19:39:08]line ФД: 18802 [19:39:08]line ФПД: 92950411873954 [19:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T193908&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18802&fm=92950411873954&tin=02508201610067®Number=0000000000152968&sum=13900 [19:39:08]line 0 [19:39:08]Connected sock=10 [19:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 24 01 00 00 FC 9D 1C 01 29 E7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DC C3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 72 49 00 00 35 04 06 00 54 89 B4 48 0E A2 9E 9C D0 B4 24 F1 A2 21 [19:39:08]written 0, free lines is 4095 [19:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B7 BA 47 00 B6 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 35 39 34 35 36 10 04 04 00 72 49 00 00 F4 03 04 00 3F 6D F1 66 B6 04 01 00 00 C7 EB 60 1D E6 0B A5 2C [19:39:08]CommunicateWithHost err = 0 [19:39:08]CheckOFDResponse [19:39:08]1017 (14) - 77093643461234 [19:39:08]1041 (16) - 0000000000959456 [19:39:08]1040 (4) - 18802 [19:39:08]1012 (4) - 23.09.2024 13:29 [19:39:08]1206 (1) - 0 [19:39:08]OFD Sender: Remove packet 18802 [19:39:08]ProducePacketName [19:39:08]name=ofd_packets/00018802 [19:39:08]NVStorageDeleteData [19:39:08]Write to MH i2c: 01 00 00 2E 09 37 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 07 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 12 0D 5D [19:39:08]RasterBufferAndPrint [19:39:08]line [19:39:08]line [19:39:08]line [19:39:08]line [19:39:08]line [19:39:08]written 0, free lines is 3353 [19:39:08]MH_Cut [19:39:08]Write to MH i2c: D1 01 00 35 09 01 10 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: D1 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: D1 01 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: D1 01 00 35 09 00 0F [19:39:08]Write to MH i2c: 01 00 00 36 09 3F [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:09]OFD Sender: No OFD packet to send [19:39:09]*** Cut start [19:39:09]*** Partial cut [19:39:09]*** CUTSNS_PIN = 1 [19:39:09]*** CUTSNS_PIN = 0 [19:39:09]*** Brake cut motor [19:39:09]Read from MH i2c: 01 [19:39:09]MH_I2C_Read... [19:39:09]*** Stop cut motor [19:39:09]*** Cut end [19:39:09]Read from MH i2c: 01 07 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: 01 07 00 36 09 00 00 00 00 00 FF 0F 54 [19:39:09]process_action close_receipt done [19:39:09]requested_data is exist [19:39:09]produce_requested_data [19:39:09]requested_item fm.sn is exist - process it [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 11 00 00 [19:39:09]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:10]Read from MH i2c: E2 17 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 13 [19:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:39:10]wFMCommunicate OK [19:39:10]requested_item fd.num is exist - process it [19:39:10]SAM_PROTO_GetFieldsCounters [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 13 00 00 [19:39:10]Write to MH i2c: E2 08 00 38 09 80 13 00 00 00 00 00 00 BD [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 62 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 62 00 38 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 72 49 00 00 0E 04 04 00 B5 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 44 [19:39:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 72 49 00 00 0E 04 04 00 B5 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 [19:39:10]wFMCommunicate OK [19:39:10]SAM_PROTO_GetFieldsCounters done [19:39:10]requested_item shift.num is exist - process it [19:39:10]requested_item shift.opened is exist - process it [19:39:10]req_shift_opened [19:39:10]FM_GetShiftState [19:39:10]SAM_PROTO_GetShiftState [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 13 01 00 [19:39:10]Write to MH i2c: E2 08 00 39 09 80 13 01 00 00 00 00 00 BF [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0E 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0E 00 39 09 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 57 [19:39:10]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:39:10]wFMCommunicate OK [19:39:10]SAM_PROTO_GetShiftState done [19:39:10]FM_GetShiftState done [19:39:10]req_shift_opened done [19:39:10]requested_item shift.open_date is exist - process it [19:39:10]req_shift_open_date [19:39:10]req_shift_open_date done [19:39:10]produce_requested_data done [19:39:10]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18802,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:39:10]process_action_free close_receipt [19:39:10]json_value_free [19:39:10]json_value_free done [19:39:10]process_json_proto returns [19:39:10]Send response to host [19:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18802,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:39:10]free response buf [19:39:10]execute_script done [19:39:10]execute_script returns [19:39:10]free content buf [19:39:10]Sock 9.Close socket [19:39:10]Sock 9.Thread stoped [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:49]accept exits with 7 [19:42:49]New connection [19:42:49]New thread 3066608996 created [19:42:49]Thread 3066752356 joined [19:42:49]Waiting for new connection... [19:42:49] Sock 7.Parse request [19:42:49]Sock 7.Check first char [19:42:49]Sock 7.First char is OK [19:42:49]request: POST /json_proto HTTP/1.0 [19:42:49]Method: POST [19:42:49]URL: /json_proto [19:42:49]Method is POST - this is cgi request [19:42:49]url: /json_proto [19:42:49]query_string will be loaded in cgi processing [19:42:49]execute_cgi json_proto POST (null) [19:42:49]execute_cgi path=json_proto method=POST [19:42:49]POST find Content-Length [19:42:49]Host: 172.17.62.196:8080 [19:42:49]Content-Length: 814 [19:42:49]Content-Type: application/json [19:42:49] [19:42:49]POST finish read [19:42:49]Found Content-Length = 814 [19:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16720", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:49]execute_script... [19:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16720", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:49]POST & json_proto [19:42:49]process_json_proto [19:42:49]json parsed OK: [19:42:49]protocol is kg_v1.0 [19:42:49]action value=close_receipt [19:42:49]process_action close_receipt [19:42:49]cmd_close_receipt [19:42:49]MH_GetDate [19:42:49]Write to MH i2c: F0 00 00 3A 09 32 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: F0 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: F0 09 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: F0 09 00 3A 09 00 BB C4 F1 66 CE CC 0E 66 1F [19:42:49]GetLastDocTimeStamp 1727120348 [19:42:49]current date 1727120571 [19:42:49]FM_GetShiftState [19:42:49]SAM_PROTO_GetShiftState [19:42:49]wFMCommunicate request_size=4 [19:42:49]MH_SAM_APDU [19:42:49]CAPDU: 80 13 01 00 [19:42:49]Write to MH i2c: E2 08 00 3B 09 80 13 01 00 00 00 00 00 C1 [19:42:49]Write i2c OK [19:42:49]MH_I2C_Read... [19:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:49]Read from MH i2c: E2 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0E 00 [19:42:49]MH_I2C_Read... [19:42:49]Read from MH i2c: E2 0E 00 3B 09 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 59 [19:42:49]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:42:49]wFMCommunicate OK [19:42:49]SAM_PROTO_GetShiftState done [19:42:49]FM_GetShiftState done [19:42:49]opened in 1727050372 [19:42:49]opened+sec_in_day 1727136772 [19:42:49]quantity*price = 7700 [19:42:49]sum+1 = 7701 [19:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 79 23.09.2024 19:42 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18803 ФПД: 197714383506460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T194251&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18803&fm=197714383506460&tin=02508201610067®Number=0000000000152968&sum=7700 0 [19:42:50]StoreToDocumentArchive [19:42:50]shift 181 fd 18803 [19:42:50]save to /storage/0181/doc_00018803 [19:42:50]save last doc name /storage/0181/doc_00018803 to /storage/kkm_last_doc_name [19:42:50]save OK [19:42:50]Clear old archive folders... [19:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:42:50]tlvbuf is 00C0F810 [19:42:50]SAM_PROTO_ClearQueue [19:42:50]wFMCommunicate request_size=4 [19:42:50]MH_SAM_APDU [19:42:50]CAPDU: 80 09 00 00 [19:42:50]Write to MH i2c: E2 08 00 48 09 80 09 00 00 00 00 00 00 C3 [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:50]Read from MH i2c: E2 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: E2 03 00 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [19:42:50]RAPDU: 90 00 [19:42:50]wFMCommunicate OK [19:42:50]SAM_PROTO_ClearQueue done [19:42:50]KKMCreateOFDPacket [19:42:50]OFDProtocolAddRootSTLVToBuf [19:42:50]FM_MakeSignedData [19:42:50]FM_MakeSignedData [19:42:50]SAM_PROTO_SignData [19:42:50]wFMCommunicate request_size=4 [19:42:50]MH_SAM_APDU [19:42:50]CAPDU: 80 0D 01 02 [19:42:50]Write to MH i2c: E2 08 00 49 09 80 0D 01 02 00 00 00 00 CB [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:50]Read from MH i2c: E2 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: E2 03 00 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: E2 03 00 49 09 00 90 00 C6 [19:42:50]RAPDU: 90 00 [19:42:50]wFMCommunicate OK [19:42:50]wFMCommunicate request_size=255 [19:42:50]MH_SAM_APDU [19:42:50]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB C4 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:42:50]Write to MH i2c: E2 02 01 4A 09 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB C4 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 3A [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 4A 09 00 90 00 C7 [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]wFMCommunicate request_size=52 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 73 49 00 00 35 04 06 00 B3 D1 F7 98 8C 1C [19:42:51]Write to MH i2c: E2 37 00 4B 09 80 0D 02 02 2F 00 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 73 49 00 00 35 04 06 00 B3 D1 F7 98 8C 1C 00 00 14 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 0D 03 02 [19:42:51]Write to MH i2c: E2 08 00 4C 09 80 0D 03 02 00 00 00 00 D0 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 0B 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 0B 00 4C 09 00 17 E6 1E C4 5F 84 09 9E 90 00 3A [19:42:51]RAPDU: 17 E6 1E C4 5F 84 09 9E 90 00 [19:42:51]wFMCommunicate OK [19:42:51]SAM_PROTO_SignData done [19:42:51]FM_MakeSignedData done [19:42:51]CreateOFDProtocolMessage [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 11 00 00 [19:42:51]Write to MH i2c: E2 08 00 4D 09 80 11 00 00 00 00 00 00 D0 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 17 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 17 00 4D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 29 [19:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:42:51]wFMCommunicate OK [19:42:51]CreateOFDProtocolMessage done [19:42:51]OFDSenderStorePacket 18803 [19:42:51]StoreOFDPacket docnum=18803 [19:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 62 B7 31 01 59 E2 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB C4 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 73 49 00 00 35 04 06 00 B3 D1 F7 98 8C 1C 17 E6 1E C4 5F 84 09 9E [19:42:51]CheckFolder [19:42:51]dirname=/storage/ofd_packets [19:42:51]CheckFolder done [19:42:51]ProducePacketName [19:42:51]name=ofd_packets/00018803 [19:42:51]NVStorageSaveData ofd_packets/00018803 [19:42:51]File name is /storage/ofd_packets/00018803 [19:42:51]Write 343 bytes [19:42:51]NVStorageSaveData done [19:42:51]OFDSenderStorePacket done [19:42:51]KKMCreateOFDPacket done [19:42:51]NVStorageSaveData kkm_last_timestamp [19:42:51]File name is /storage/kkm_last_timestamp [19:42:51]Write 4 bytes [19:42:51]NVStorageSaveData done [19:42:51]OFD Sender: Processing packet 18803 [packets to send 7, broken 6] [19:42:51]ProducePacketName [19:42:51]name=ofd_packets/00018803 [19:42:51]OFD Sender: To server: pG, [19:42:51]CommunicateWithHost lk.salyk.kg:30040 [19:42:51]ConnectInit lk.salyk.kg [19:42:51]ExternCall_PrintAddStr [19:42:51]wPrintStart [19:42:51]Write to MH i2c: 01 00 00 4E 09 57 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: 01 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: 01 07 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: 01 07 00 4E 09 00 00 00 00 00 FF 0F 6C [19:42:51]RasterBufferAndPrint [19:42:51]line Счет N : (3)16720 [19:42:51]line ИНН: 02508201610067 [19:42:51]line Контрольно-Кассовый Чек [19:42:51]line ПРОДАЖА [19:42:51]line Товар: 4700000480050 [19:42:51]line Напиток Nitro Energy эн green ж/б 0,45л [19:42:51]line 1.000 * 77.00 [19:42:51]line = 77.00 [19:42:51]line НДС 12% НСП 1% [19:42:51]line > о реализуемом товаре [19:42:51]line ИТОГО: 77.00 [19:42:51]line НСП 1% : 0.68 [19:42:51]line НДС 12% : 8.18 [19:42:51]line Наличными: 0.00 [19:42:51]line Безнал.: 77.00 [19:42:51]line Место: АЗС № 176 "Партнер Нефть" [19:42:51]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:42:51]line СНО: Общий режим [19:42:51]line Чек 79 23.09.2024 19:42 [19:42:51]line Смена: 181 ФФД: 1.0 [19:42:51]line ЗНМ: 0300000010 [19:42:51]line РНМ: 0000000000152968 [19:42:51]line Версия ККМ: v1.0 [19:42:51]line Платежная система: O! деньги [19:42:51]line ФМ: 0000000000959456 [19:42:51]line ФД: 18803 [19:42:51]line ФПД: 197714383506460 [19:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T194251&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18803&fm=197714383506460&tin=02508201610067®Number=0000000000152968&sum=7700 [19:42:51]line 0 [19:42:51]Connected sock=11 [19:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 39 01 00 00 62 B7 31 01 59 E2 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BB C4 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 73 49 00 00 35 04 06 00 B3 D1 F7 98 8C 1C 17 E6 1E C4 5F 84 09 9E [19:42:51]written 0, free lines is 4095 [19:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9D 03 47 00 8D 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 35 39 34 35 36 10 04 04 00 73 49 00 00 F4 03 04 00 1E 6E F1 66 B6 04 01 00 00 FE E4 0A 98 31 E2 23 7A [19:42:52]CommunicateWithHost err = 0 [19:42:52]CheckOFDResponse [19:42:52]1017 (14) - 77093643461234 [19:42:52]1041 (16) - 0000000000959456 [19:42:52]1040 (4) - 18803 [19:42:52]1012 (4) - 23.09.2024 13:33 [19:42:52]1206 (1) - 0 [19:42:52]OFD Sender: Remove packet 18803 [19:42:52]ProducePacketName [19:42:52]name=ofd_packets/00018803 [19:42:52]NVStorageDeleteData [19:42:52]Write to MH i2c: 01 00 00 79 09 82 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 79 09 00 00 00 00 00 E7 0C 7C [19:42:52]RasterBufferAndPrint [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]written 0, free lines is 3310 [19:42:52]MH_Cut [19:42:52]Write to MH i2c: D1 01 00 80 09 01 5B [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 01 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 01 00 80 09 00 5A [19:42:52]Write to MH i2c: 01 00 00 81 09 8A [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]OFD Sender: No OFD packet to send [19:42:52]*** Cut start [19:42:52]*** Partial cut [19:42:52]*** CUTSNS_PIN = 1 [19:42:52]*** CUTSNS_PIN = 0 [19:42:53]*** Brake cut motor [19:42:53]Read from MH i2c: 01 [19:42:53]MH_I2C_Read... [19:42:53]*** Stop cut motor [19:42:53]*** Cut end [19:42:53]Read from MH i2c: 01 07 00 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 FF 0F 9F [19:42:53]process_action close_receipt done [19:42:53]requested_data is exist [19:42:53]produce_requested_data [19:42:53]requested_item fm.sn is exist - process it [19:42:53]wFMCommunicate request_size=4 [19:42:53]MH_SAM_APDU [19:42:53]CAPDU: 80 11 00 00 [19:42:53]Write to MH i2c: E2 08 00 82 09 80 11 00 00 00 00 00 00 05 [19:42:53]Write i2c OK [19:42:53]MH_I2C_Read... [19:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:53]Read from MH i2c: E2 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 17 00 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 17 00 82 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5E [19:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:42:53]wFMCommunicate OK [19:42:53]requested_item fd.num is exist - process it [19:42:53]SAM_PROTO_GetFieldsCounters [19:42:53]wFMCommunicate request_size=4 [19:42:53]MH_SAM_APDU [19:42:53]CAPDU: 80 13 00 00 [19:42:53]Write to MH i2c: E2 08 00 83 09 80 13 00 00 00 00 00 00 08 [19:42:53]Write i2c OK [19:42:53]MH_I2C_Read... [19:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:53]Read from MH i2c: E2 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 62 00 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 62 00 83 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 73 49 00 00 0E 04 04 00 B5 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 93 [19:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 73 49 00 00 0E 04 04 00 B5 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 [19:42:53]wFMCommunicate OK [19:42:53]SAM_PROTO_GetFieldsCounters done [19:42:53]requested_item shift.num is exist - process it [19:42:53]requested_item shift.opened is exist - process it [19:42:53]req_shift_opened [19:42:53]FM_GetShiftState [19:42:53]SAM_PROTO_GetShiftState [19:42:53]wFMCommunicate request_size=4 [19:42:53]MH_SAM_APDU [19:42:53]CAPDU: 80 13 01 00 [19:42:53]Write to MH i2c: E2 08 00 84 09 80 13 01 00 00 00 00 00 0A [19:42:53]Write i2c OK [19:42:53]MH_I2C_Read... [19:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:53]Read from MH i2c: E2 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 0E 00 [19:42:53]MH_I2C_Read... [19:42:53]Read from MH i2c: E2 0E 00 84 09 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 A2 [19:42:53]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:42:53]wFMCommunicate OK [19:42:53]SAM_PROTO_GetShiftState done [19:42:53]FM_GetShiftState done [19:42:53]req_shift_opened done [19:42:53]requested_item shift.open_date is exist - process it [19:42:53]req_shift_open_date [19:42:53]req_shift_open_date done [19:42:53]produce_requested_data done [19:42:53]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18803,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:42:53]process_action_free close_receipt [19:42:53]json_value_free [19:42:53]json_value_free done [19:42:53]process_json_proto returns [19:42:53]Send response to host [19:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18803,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:42:53]free response buf [19:42:53]execute_script done [19:42:53]execute_script returns [19:42:53]free content buf [19:42:53]Sock 7.Close socket [19:42:53]Sock 7.Thread stoped [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:24]accept exits with 9 [19:44:24]New connection [19:44:24]New thread 3066752356 created [19:44:24]Thread 3066608996 joined [19:44:24]Waiting for new connection... [19:44:24] Sock 9.Parse request [19:44:24]Sock 9.Check first char [19:44:24]Sock 9.First char is OK [19:44:24]request: POST /json_proto HTTP/1.0 [19:44:24]Method: POST [19:44:24]URL: /json_proto [19:44:24]Method is POST - this is cgi request [19:44:24]url: /json_proto [19:44:24]query_string will be loaded in cgi processing [19:44:24]execute_cgi json_proto POST (null) [19:44:24]execute_cgi path=json_proto method=POST [19:44:24]POST find Content-Length [19:44:24]Host: 172.17.62.196:8080 [19:44:24]Content-Length: 828 [19:44:24]Content-Type: application/json [19:44:24] [19:44:24]POST finish read [19:44:24]Found Content-Length = 828 [19:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16721", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:24]execute_script... [19:44:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16721", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:24]POST & json_proto [19:44:24]process_json_proto [19:44:24]json parsed OK: [19:44:24]protocol is kg_v1.0 [19:44:24]action value=close_receipt [19:44:24]process_action close_receipt [19:44:24]cmd_close_receipt [19:44:24]MH_GetDate [19:44:24]Write to MH i2c: F0 00 00 85 09 7D [19:44:24]Write i2c OK [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: F0 [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: F0 09 00 [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: F0 09 00 85 09 00 1A C5 F1 66 CE CC 0E 66 CA [19:44:24]GetLastDocTimeStamp 1727120571 [19:44:24]current date 1727120666 [19:44:24]FM_GetShiftState [19:44:24]SAM_PROTO_GetShiftState [19:44:24]wFMCommunicate request_size=4 [19:44:24]MH_SAM_APDU [19:44:24]CAPDU: 80 13 01 00 [19:44:24]Write to MH i2c: E2 08 00 86 09 80 13 01 00 00 00 00 00 0C [19:44:24]Write i2c OK [19:44:24]MH_I2C_Read... [19:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:24]Read from MH i2c: E2 [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: E2 0E 00 [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: E2 0E 00 86 09 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 A4 [19:44:24]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:44:24]wFMCommunicate OK [19:44:24]SAM_PROTO_GetShiftState done [19:44:24]FM_GetShiftState done [19:44:24]opened in 1727050372 [19:44:24]opened+sec_in_day 1727136772 [19:44:24]quantity*price = 45000 [19:44:24]sum+1 = 45001 [19:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 0.00 Безнал.: 450.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 80 23.09.2024 19:44 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18804 ФПД: 273680134458062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T194426&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18804&fm=273680134458062&tin=02508201610067®Number=0000000000152968&sum=45000 0 [19:44:25]StoreToDocumentArchive [19:44:25]shift 181 fd 18804 [19:44:25]save to /storage/0181/doc_00018804 [19:44:25]save last doc name /storage/0181/doc_00018804 to /storage/kkm_last_doc_name [19:44:25]save OK [19:44:25]Clear old archive folders... [19:44:25]ProcessDocumentItem done err = 0, tmpTLVsize=296 [19:44:25]tlvbuf is 00BF92C0 [19:44:25]SAM_PROTO_ClearQueue [19:44:25]wFMCommunicate request_size=4 [19:44:25]MH_SAM_APDU [19:44:25]CAPDU: 80 09 00 00 [19:44:25]Write to MH i2c: E2 08 00 93 09 80 09 00 00 00 00 00 00 0E [19:44:25]Write i2c OK [19:44:25]MH_I2C_Read... [19:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:25]Read from MH i2c: E2 [19:44:25]MH_I2C_Read... [19:44:25]Read from MH i2c: E2 03 00 [19:44:25]MH_I2C_Read... [19:44:25]Read from MH i2c: E2 03 00 93 09 00 90 00 10 [19:44:25]RAPDU: 90 00 [19:44:25]wFMCommunicate OK [19:44:25]SAM_PROTO_ClearQueue done [19:44:25]KKMCreateOFDPacket [19:44:25]OFDProtocolAddRootSTLVToBuf [19:44:25]FM_MakeSignedData [19:44:25]FM_MakeSignedData [19:44:25]SAM_PROTO_SignData [19:44:25]wFMCommunicate request_size=4 [19:44:25]MH_SAM_APDU [19:44:25]CAPDU: 80 0D 01 02 [19:44:25]Write to MH i2c: E2 08 00 94 09 80 0D 01 02 00 00 00 00 16 [19:44:25]Write i2c OK [19:44:25]MH_I2C_Read... [19:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 94 09 00 90 00 11 [19:44:26]RAPDU: 90 00 [19:44:26]wFMCommunicate OK [19:44:26]wFMCommunicate request_size=255 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1A C5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [19:44:26]Write to MH i2c: E2 02 01 95 09 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1A C5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 99 [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 95 09 00 90 00 12 [19:44:26]RAPDU: 90 00 [19:44:26]wFMCommunicate OK [19:44:26]wFMCommunicate request_size=55 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 74 49 00 00 35 04 06 00 F8 E9 1F 32 4A CE [19:44:26]Write to MH i2c: E2 3A 00 96 09 80 0D 02 02 32 00 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 74 49 00 00 35 04 06 00 F8 E9 1F 32 4A CE 00 00 85 [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 96 09 00 90 00 13 [19:44:26]RAPDU: 90 00 [19:44:26]wFMCommunicate OK [19:44:26]wFMCommunicate request_size=4 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 0D 03 02 [19:44:26]Write to MH i2c: E2 08 00 97 09 80 0D 03 02 00 00 00 00 1B [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 0B 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 0B 00 97 09 00 DF 84 DC 0A 1E 60 26 92 90 00 9B [19:44:26]RAPDU: DF 84 DC 0A 1E 60 26 92 90 00 [19:44:26]wFMCommunicate OK [19:44:26]SAM_PROTO_SignData done [19:44:26]FM_MakeSignedData done [19:44:26]CreateOFDProtocolMessage [19:44:26]wFMCommunicate request_size=4 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 11 00 00 [19:44:26]Write to MH i2c: E2 08 00 98 09 80 11 00 00 00 00 00 00 1B [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 17 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 17 00 98 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 74 [19:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:44:26]wFMCommunicate OK [19:44:26]CreateOFDProtocolMessage done [19:44:26]OFDSenderStorePacket 18804 [19:44:26]StoreOFDPacket docnum=18804 [19:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3C 01 00 00 F9 C7 34 01 11 53 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1A C5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 74 49 00 00 35 04 06 00 F8 E9 1F 32 4A CE DF 84 DC 0A 1E 60 26 92 [19:44:26]CheckFolder [19:44:26]dirname=/storage/ofd_packets [19:44:26]CheckFolder done [19:44:26]ProducePacketName [19:44:26]name=ofd_packets/00018804 [19:44:26]NVStorageSaveData ofd_packets/00018804 [19:44:26]File name is /storage/ofd_packets/00018804 [19:44:26]Write 346 bytes [19:44:26]NVStorageSaveData done [19:44:26]OFDSenderStorePacket done [19:44:26]KKMCreateOFDPacket done [19:44:26]NVStorageSaveData kkm_last_timestamp [19:44:26]File name is /storage/kkm_last_timestamp [19:44:26]Write 4 bytes [19:44:26]NVStorageSaveData done [19:44:26]ExternCall_PrintAddStr [19:44:26]wPrintStart [19:44:26]Write to MH i2c: 01 00 00 99 09 A2 [19:44:26]OFD Sender: Processing packet 18804 [packets to send 7, broken 6] [19:44:26]ProducePacketName [19:44:26]name=ofd_packets/00018804 [19:44:26]OFD Sender: To server: pG, [19:44:26]CommunicateWithHost lk.salyk.kg:30040 [19:44:26]ConnectInit lk.salyk.kg [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: 01 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: 01 07 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: 01 07 00 99 09 00 00 00 00 00 FF 0F B7 [19:44:26]RasterBufferAndPrint [19:44:26]line Счет N : (3)16721 [19:44:26]line ИНН: 02508201610067 [19:44:26]line Контрольно-Кассовый Чек [19:44:26]line ПРОДАЖА [19:44:26]line Товар: 4670003190013 [19:44:26]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [19:44:26]line 2.000 * 225.00 [19:44:26]line = 450.00 [19:44:26]line НДС 12% НСП 1% [19:44:26]line > о реализуемом товаре [19:44:26]line ИТОГО: 450.00 [19:44:26]line НСП 1% : 3.98 [19:44:26]line НДС 12% : 47.79 [19:44:26]line Наличными: 0.00 [19:44:26]line Безнал.: 450.00 [19:44:26]line Место: АЗС № 176 "Партнер Нефть" [19:44:26]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:44:26]line СНО: Общий режим [19:44:26]line Чек 80 23.09.2024 19:44 [19:44:26]line Смена: 181 ФФД: 1.0 [19:44:26]line ЗНМ: 0300000010 [19:44:26]line РНМ: 0000000000152968 [19:44:26]line Версия ККМ: v1.0 [19:44:26]line Платежная система: O! деньги [19:44:26]line ФМ: 0000000000959456 [19:44:26]line ФД: 18804 [19:44:26]line ФПД: 273680134458062 [19:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T194426&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18804&fm=273680134458062&tin=02508201610067®Number=0000000000152968&sum=45000 [19:44:26]line 0 [19:44:26]Connected sock=10 [19:44:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3C 01 00 00 F9 C7 34 01 11 53 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1A C5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 74 49 00 00 35 04 06 00 F8 E9 1F 32 4A CE DF 84 DC 0A 1E 60 26 92 [19:44:26]written 0, free lines is 4095 [19:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 D1 43 47 00 FD 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 35 39 34 35 36 10 04 04 00 74 49 00 00 F4 03 04 00 7D 6E F1 66 B6 04 01 00 00 2F EE EA 00 41 67 2A 00 [19:44:27]CommunicateWithHost err = 0 [19:44:27]CheckOFDResponse [19:44:27]1017 (14) - 77093643461234 [19:44:27]1041 (16) - 0000000000959456 [19:44:27]1040 (4) - 18804 [19:44:27]1012 (4) - 23.09.2024 13:34 [19:44:27]1206 (1) - 0 [19:44:27]OFD Sender: Remove packet 18804 [19:44:27]ProducePacketName [19:44:27]name=ofd_packets/00018804 [19:44:27]NVStorageDeleteData [19:44:27]Write to MH i2c: 01 00 00 C4 09 CD [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: 01 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: 01 07 00 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FB 0C DB [19:44:27]RasterBufferAndPrint [19:44:27]line [19:44:27]line [19:44:27]line [19:44:27]line [19:44:27]line [19:44:27]written 0, free lines is 3329 [19:44:27]MH_Cut [19:44:27]Write to MH i2c: D1 01 00 CB 09 01 A6 [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: D1 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: D1 01 00 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: D1 01 00 CB 09 00 A5 [19:44:27]Write to MH i2c: 01 00 00 CC 09 D5 [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]OFD Sender: No OFD packet to send [19:44:27]*** Cut start [19:44:27]*** Partial cut [19:44:27]*** CUTSNS_PIN = 1 [19:44:28]*** CUTSNS_PIN = 0 [19:44:28]*** Brake cut motor [19:44:28]Read from MH i2c: 01 [19:44:28]MH_I2C_Read... [19:44:28]*** Stop cut motor [19:44:28]*** Cut end [19:44:28]Read from MH i2c: 01 07 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: 01 07 00 CC 09 00 00 00 00 00 FF 0F EA [19:44:28]process_action close_receipt done [19:44:28]requested_data is exist [19:44:28]produce_requested_data [19:44:28]requested_item fm.sn is exist - process it [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 11 00 00 [19:44:28]Write to MH i2c: E2 08 00 CD 09 80 11 00 00 00 00 00 00 50 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 17 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 17 00 CD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A9 [19:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:44:28]wFMCommunicate OK [19:44:28]requested_item fd.num is exist - process it [19:44:28]SAM_PROTO_GetFieldsCounters [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 13 00 00 [19:44:28]Write to MH i2c: E2 08 00 CE 09 80 13 00 00 00 00 00 00 53 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 62 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 62 00 CE 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 74 49 00 00 0E 04 04 00 B5 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 E2 [19:44:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 74 49 00 00 0E 04 04 00 B5 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 [19:44:28]wFMCommunicate OK [19:44:28]SAM_PROTO_GetFieldsCounters done [19:44:28]requested_item shift.num is exist - process it [19:44:28]requested_item shift.opened is exist - process it [19:44:28]req_shift_opened [19:44:28]FM_GetShiftState [19:44:28]SAM_PROTO_GetShiftState [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 13 01 00 [19:44:28]Write to MH i2c: E2 08 00 CF 09 80 13 01 00 00 00 00 00 55 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:28]Read from MH i2c: E2 0E 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 0E 00 CF 09 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 ED [19:44:28]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:44:28]wFMCommunicate OK [19:44:28]SAM_PROTO_GetShiftState done [19:44:28]FM_GetShiftState done [19:44:28]req_shift_opened done [19:44:28]requested_item shift.open_date is exist - process it [19:44:28]req_shift_open_date [19:44:28]req_shift_open_date done [19:44:28]produce_requested_data done [19:44:28]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18804,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:44:28]process_action_free close_receipt [19:44:28]json_value_free [19:44:28]json_value_free done [19:44:28]process_json_proto returns [19:44:28]Send response to host [19:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18804,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:44:28]free response buf [19:44:28]execute_script done [19:44:28]execute_script returns [19:44:28]free content buf [19:44:28]Sock 9.Close socket [19:44:28]Sock 9.Thread stoped [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:37]accept exits with 7 [19:57:37]New connection [19:57:37]New thread 3066608996 created [19:57:37]Thread 3066752356 joined [19:57:37]Waiting for new connection... [19:57:37] Sock 7.Parse request [19:57:37]Sock 7.Check first char [19:57:37]Sock 7.First char is OK [19:57:37]request: POST /json_proto HTTP/1.0 [19:57:37]Method: POST [19:57:37]URL: /json_proto [19:57:37]Method is POST - this is cgi request [19:57:37]url: /json_proto [19:57:37]query_string will be loaded in cgi processing [19:57:37]execute_cgi json_proto POST (null) [19:57:37]execute_cgi path=json_proto method=POST [19:57:37]POST find Content-Length [19:57:37]Host: 172.17.62.196:8080 [19:57:37]Content-Length: 1125 [19:57:37]Content-Type: application/json [19:57:37] [19:57:37]POST finish read [19:57:37]Found Content-Length = 1125 [19:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16722", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 4.000, "sum" : 620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1030.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:37]execute_script... [19:57:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16722", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 4.000, "sum" : 620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1030.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:37]POST & json_proto [19:57:37]process_json_proto [19:57:37]json parsed OK: [19:57:37]protocol is kg_v1.0 [19:57:37]action value=close_receipt [19:57:37]process_action close_receipt [19:57:37]cmd_close_receipt [19:57:37]MH_GetDate [19:57:37]Write to MH i2c: F0 00 00 D0 09 C8 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: F0 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: F0 09 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: F0 09 00 D0 09 00 33 C8 F1 66 CE CC 0E 66 31 [19:57:37]GetLastDocTimeStamp 1727120666 [19:57:37]current date 1727121459 [19:57:37]FM_GetShiftState [19:57:37]SAM_PROTO_GetShiftState [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 13 01 00 [19:57:37]Write to MH i2c: E2 08 00 D1 09 80 13 01 00 00 00 00 00 57 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0E 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0E 00 D1 09 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 EF [19:57:37]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:57:37]wFMCommunicate OK [19:57:37]SAM_PROTO_GetShiftState done [19:57:37]FM_GetShiftState done [19:57:37]opened in 1727050372 [19:57:37]opened+sec_in_day 1727136772 [19:57:37]quantity*price = 15000 [19:57:37]sum+1 = 15001 [19:57:37]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091584 Сигареты Esse Gold 4.000 * 155.00 = 620.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1030.00 НСП 1% : 9.12 НДС 12% : 109.38 Наличными: 1030.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 81 23.09.2024 19:57 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18805 ФПД: 261634816467506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T195739&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18805&fm=261634816467506&tin=02508201610067®Number=0000000000152968&sum=103000 0 [19:57:38]StoreToDocumentArchive [19:57:38]shift 181 fd 18805 [19:57:38]save to /storage/0181/doc_00018805 [19:57:38]save last doc name /storage/0181/doc_00018805 to /storage/kkm_last_doc_name [19:57:38]save OK [19:57:38]Clear old archive folders... [19:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=493 [19:57:38]tlvbuf is 00C01770 [19:57:38]SAM_PROTO_ClearQueue [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 09 00 00 [19:57:38]Write to MH i2c: E2 08 00 DE 09 80 09 00 00 00 00 00 00 59 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]OFD Sender: No OFD packet to send [19:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 DE 09 00 90 00 5B [19:57:38]RAPDU: 90 00 [19:57:38]wFMCommunicate OK [19:57:38]SAM_PROTO_ClearQueue done [19:57:38]KKMCreateOFDPacket [19:57:38]OFDProtocolAddRootSTLVToBuf [19:57:38]FM_MakeSignedData [19:57:38]FM_MakeSignedData [19:57:38]SAM_PROTO_SignData [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 0D 01 02 [19:57:38]Write to MH i2c: E2 08 00 DF 09 80 0D 01 02 00 00 00 00 61 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 DF 09 00 90 00 5C [19:57:38]RAPDU: 90 00 [19:57:38]wFMCommunicate OK [19:57:38]wFMCommunicate request_size=255 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 0D 02 02 FA 03 00 ED 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 [19:57:38]Write to MH i2c: E2 02 01 E0 09 80 0D 02 02 FA 00 03 00 ED 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 00 00 7D [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 E0 09 00 90 00 5D [19:57:38]RAPDU: 90 00 [19:57:38]wFMCommunicate OK [19:57:38]wFMCommunicate request_size=252 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 0D 02 02 F7 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 2A 00 00 00 00 07 04 06 00 58 92 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 33 C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 75 49 00 00 35 04 06 00 ED F4 9A 4B E2 32 [19:57:38]Write to MH i2c: E2 FF 00 E1 09 80 0D 02 02 F7 00 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 2A 00 00 00 00 07 04 06 00 58 92 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 33 C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 75 49 00 00 35 04 06 00 ED F4 9A 4B E2 32 00 00 64 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 03 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [19:57:39]RAPDU: 90 00 [19:57:39]wFMCommunicate OK [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 0D 03 02 [19:57:39]Write to MH i2c: E2 08 00 E2 09 80 0D 03 02 00 00 00 00 66 [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0B 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0B 00 E2 09 00 15 56 03 54 FF 9F 3C DC 90 00 DF [19:57:39]RAPDU: 15 56 03 54 FF 9F 3C DC 90 00 [19:57:39]wFMCommunicate OK [19:57:39]SAM_PROTO_SignData done [19:57:39]FM_MakeSignedData done [19:57:39]CreateOFDProtocolMessage [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 11 00 00 [19:57:39]Write to MH i2c: E2 08 00 E3 09 80 11 00 00 00 00 00 00 66 [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 E3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 BF [19:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:57:39]wFMCommunicate OK [19:57:39]CreateOFDProtocolMessage done [19:57:39]OFDSenderStorePacket 18805 [19:57:39]StoreOFDPacket docnum=18805 [19:57:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 01 02 00 00 05 24 F9 01 66 31 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 2A 00 00 00 00 07 04 06 00 58 92 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 33 C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 75 49 00 00 35 04 06 00 ED F4 9A 4B E2 32 15 56 03 54 FF 9F 3C DC [19:57:39]CheckFolder [19:57:39]dirname=/storage/ofd_packets [19:57:39]CheckFolder done [19:57:39]ProducePacketName [19:57:39]name=ofd_packets/00018805 [19:57:39]NVStorageSaveData ofd_packets/00018805 [19:57:39]File name is /storage/ofd_packets/00018805 [19:57:39]Write 543 bytes [19:57:39]NVStorageSaveData done [19:57:39]OFDSenderStorePacket done [19:57:39]KKMCreateOFDPacket done [19:57:39]NVStorageSaveData kkm_last_timestamp [19:57:39]File name is /storage/kkm_last_timestamp [19:57:39]Write 4 bytes [19:57:39]NVStorageSaveData done [19:57:39]ExternCall_PrintAddStr [19:57:39]wPrintStart [19:57:39]Write to MH i2c: 01 00 00 E4 09 ED [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 E4 09 00 00 00 00 00 FF 0F 02 [19:57:39]RasterBufferAndPrint [19:57:39]line Счет N : (3)16722 [19:57:39]line ИНН: 02508201610067 [19:57:39]line Контрольно-Кассовый Чек [19:57:39]line ПРОДАЖА [19:57:39]line Товар: 4640030092567 [19:57:39]line Сигареты Esse Exchange Summer Red [19:57:39]line 1.000 * 150.00 [19:57:39]line = 150.00 [19:57:39]line НДС 12% НСП 1% [19:57:39]line > о реализуемом товаре [19:57:39]line Товар: 4640030091584 [19:57:39]line Сигареты Esse Gold [19:57:39]line 4.000 * 155.00 [19:57:39]line = 620.00 [19:57:39]line НДС 12% НСП 1% [19:57:39]line > о реализуемом товаре [19:57:39]line Товар: 2000036220012 [19:57:39]line Кофе Капучино XL(GABB TRADE) [19:57:39]line 2.000 * 130.00 [19:57:39]line = 260.00 [19:57:39]line НДС 12% НСП 1% [19:57:39]line > о реализуемом товаре [19:57:39]line ИТОГО: 1030.00 [19:57:39]line НСП 1% : 9.12 [19:57:39]line НДС 12% : 109.38 [19:57:39]line Наличными: 1030.00 [19:57:39]line Безнал.: 0.00 [19:57:39]line Место: АЗС № 176 "Партнер Нефть" [19:57:39]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:57:39]line СНО: Общий режим [19:57:39]line Чек 81 23.09.2024 19:57 [19:57:39]line Смена: 181 ФФД: 1.0 [19:57:39]line ЗНМ: 0300000010 [19:57:39]line РНМ: 0000000000152968 [19:57:39]line Версия ККМ: v1.0 [19:57:39]line ФМ: 0000000000959456 [19:57:39]line ФД: 18805 [19:57:39]line ФПД: 261634816467506 [19:57:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T195739&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18805&fm=261634816467506&tin=02508201610067®Number=0000000000152968&sum=103000 [19:57:39]line 0 [19:57:39]written 0, free lines is 4095 [19:57:39]OFD Sender: Processing packet 18805 [packets to send 7, broken 6] [19:57:39]ProducePacketName [19:57:39]name=ofd_packets/00018805 [19:57:39]OFD Sender: To server: pG, [19:57:39]CommunicateWithHost lk.salyk.kg:30040 [19:57:39]ConnectInit lk.salyk.kg [19:57:39]Connected sock=10 [19:57:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 01 02 00 00 05 24 F9 01 66 31 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 30 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 2A 00 00 00 00 07 04 06 00 58 92 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 33 C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 75 49 00 00 35 04 06 00 ED F4 9A 4B E2 32 15 56 03 54 FF 9F 3C DC [19:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A6 34 47 00 DB 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 35 39 34 35 36 10 04 04 00 75 49 00 00 F4 03 04 00 96 71 F1 66 B6 04 01 00 00 BE 37 2B 98 31 B6 C9 D4 [19:57:39]CommunicateWithHost err = 0 [19:57:39]CheckOFDResponse [19:57:39]1017 (14) - 77093643461234 [19:57:39]1041 (16) - 0000000000959456 [19:57:39]1040 (4) - 18805 [19:57:39]1012 (4) - 23.09.2024 13:48 [19:57:39]1206 (1) - 0 [19:57:39]OFD Sender: Remove packet 18805 [19:57:39]ProducePacketName [19:57:39]name=ofd_packets/00018805 [19:57:39]NVStorageDeleteData [19:57:39]Write to MH i2c: 01 00 00 1A 0A 24 [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 1A 0A 00 00 00 00 00 72 0C A9 [19:57:39]RasterBufferAndPrint [19:57:39]line [19:57:39]line [19:57:39]line [19:57:39]line [19:57:39]line [19:57:39]written 0, free lines is 3195 [19:57:39]MH_Cut [19:57:39]Write to MH i2c: D1 01 00 21 0A 01 FD [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: D1 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: D1 01 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: D1 01 00 21 0A 00 FC [19:57:39]Write to MH i2c: 01 00 00 22 0A 2C [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:40]OFD Sender: No OFD packet to send [19:57:40]*** Cut start [19:57:40]*** Partial cut [19:57:40]*** CUTSNS_PIN = 1 [19:57:40]*** CUTSNS_PIN = 0 [19:57:40]*** Brake cut motor [19:57:41]Read from MH i2c: 01 [19:57:41]MH_I2C_Read... [19:57:41]*** Stop cut motor [19:57:41]*** Cut end [19:57:41]Read from MH i2c: 01 07 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: 01 07 00 22 0A 00 00 00 00 00 FF 0F 41 [19:57:41]process_action close_receipt done [19:57:41]requested_data is exist [19:57:41]produce_requested_data [19:57:41]requested_item fm.sn is exist - process it [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 11 00 00 [19:57:41]Write to MH i2c: E2 08 00 23 0A 80 11 00 00 00 00 00 00 A7 [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 17 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 17 00 23 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 00 [19:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:57:41]wFMCommunicate OK [19:57:41]requested_item fd.num is exist - process it [19:57:41]SAM_PROTO_GetFieldsCounters [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 13 00 00 [19:57:41]Write to MH i2c: E2 08 00 24 0A 80 13 00 00 00 00 00 00 AA [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 62 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 62 00 24 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 75 49 00 00 0E 04 04 00 B5 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 3D [19:57:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 75 49 00 00 0E 04 04 00 B5 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 [19:57:41]wFMCommunicate OK [19:57:41]SAM_PROTO_GetFieldsCounters done [19:57:41]requested_item shift.num is exist - process it [19:57:41]requested_item shift.opened is exist - process it [19:57:41]req_shift_opened [19:57:41]FM_GetShiftState [19:57:41]SAM_PROTO_GetShiftState [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 13 01 00 [19:57:41]Write to MH i2c: E2 08 00 25 0A 80 13 01 00 00 00 00 00 AC [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 0E 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 0E 00 25 0A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 44 [19:57:41]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:57:41]wFMCommunicate OK [19:57:41]SAM_PROTO_GetShiftState done [19:57:41]FM_GetShiftState done [19:57:41]req_shift_opened done [19:57:41]requested_item shift.open_date is exist - process it [19:57:41]req_shift_open_date [19:57:41]req_shift_open_date done [19:57:41]produce_requested_data done [19:57:41]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18805,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:57:41]process_action_free close_receipt [19:57:41]json_value_free [19:57:41]json_value_free done [19:57:41]process_json_proto returns [19:57:41]Send response to host [19:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18805,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:57:41]free response buf [19:57:41]execute_script done [19:57:41]execute_script returns [19:57:41]free content buf [19:57:41]Sock 7.Close socket [19:57:41]Sock 7.Thread stoped [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:00]accept exits with 9 [19:58:00]New connection [19:58:00]New thread 3066752356 created [19:58:00]Thread 3066608996 joined [19:58:00]Waiting for new connection... [19:58:00] Sock 9.Parse request [19:58:00]Sock 9.Check first char [19:58:00]Sock 9.First char is OK [19:58:00]request: POST /json_proto HTTP/1.0 [19:58:00]Method: POST [19:58:00]URL: /json_proto [19:58:00]Method is POST - this is cgi request [19:58:00]url: /json_proto [19:58:00]query_string will be loaded in cgi processing [19:58:00]execute_cgi json_proto POST (null) [19:58:00]execute_cgi path=json_proto method=POST [19:58:00]POST find Content-Length [19:58:00]Host: 172.17.62.196:8080 [19:58:00]Content-Length: 623 [19:58:00]Content-Type: application/json [19:58:00] [19:58:00]POST finish read [19:58:00]Found Content-Length = 623 [19:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16723", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:00]execute_script... [19:58:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16723", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:00]POST & json_proto [19:58:00]process_json_proto [19:58:00]json parsed OK: [19:58:00]protocol is kg_v1.0 [19:58:00]action value=close_receipt [19:58:00]process_action close_receipt [19:58:00]cmd_close_receipt [19:58:00]MH_GetDate [19:58:00]Write to MH i2c: F0 00 00 26 0A 1F [19:58:00]Write i2c OK [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: F0 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: F0 09 00 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: F0 09 00 26 0A 00 4A C8 F1 66 CE CC 0E 66 9F [19:58:00]GetLastDocTimeStamp 1727121459 [19:58:00]current date 1727121482 [19:58:00]FM_GetShiftState [19:58:00]SAM_PROTO_GetShiftState [19:58:00]wFMCommunicate request_size=4 [19:58:00]MH_SAM_APDU [19:58:00]CAPDU: 80 13 01 00 [19:58:00]Write to MH i2c: E2 08 00 27 0A 80 13 01 00 00 00 00 00 AE [19:58:00]Write i2c OK [19:58:00]MH_I2C_Read... [19:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:00]Read from MH i2c: E2 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: E2 0E 00 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: E2 0E 00 27 0A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 46 [19:58:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:58:00]wFMCommunicate OK [19:58:00]SAM_PROTO_GetShiftState done [19:58:00]FM_GetShiftState done [19:58:00]opened in 1727050372 [19:58:00]opened+sec_in_day 1727136772 [19:58:00]quantity*price = 15600 [19:58:00]sum+1 = 15601 [19:58:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 82 23.09.2024 19:58 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18806 ФПД: 258946660119443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T195802&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18806&fm=258946660119443&tin=02508201610067®Number=0000000000152968&sum=15600 0 [19:58:01]StoreToDocumentArchive [19:58:01]shift 181 fd 18806 [19:58:01]save to /storage/0181/doc_00018806 [19:58:01]save last doc name /storage/0181/doc_00018806 to /storage/kkm_last_doc_name [19:58:01]save OK [19:58:01]Clear old archive folders... [19:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:58:01]tlvbuf is 00C35C10 [19:58:01]SAM_PROTO_ClearQueue [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 09 00 00 [19:58:01]Write to MH i2c: E2 08 00 34 0A 80 09 00 00 00 00 00 00 B0 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 34 0A 00 90 00 B2 [19:58:01]RAPDU: 90 00 [19:58:01]wFMCommunicate OK [19:58:01]SAM_PROTO_ClearQueue done [19:58:01]KKMCreateOFDPacket [19:58:01]OFDProtocolAddRootSTLVToBuf [19:58:01]FM_MakeSignedData [19:58:01]FM_MakeSignedData [19:58:01]SAM_PROTO_SignData [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 0D 01 02 [19:58:01]Write to MH i2c: E2 08 00 35 0A 80 0D 01 02 00 00 00 00 B8 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 35 0A 00 90 00 B3 [19:58:01]RAPDU: 90 00 [19:58:01]wFMCommunicate OK [19:58:01]wFMCommunicate request_size=255 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 4A C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [19:58:01]Write to MH i2c: E2 02 01 36 0A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 4A C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 92 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:02]Read from MH i2c: E2 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 03 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 03 00 36 0A 00 90 00 B4 [19:58:02]RAPDU: 90 00 [19:58:02]wFMCommunicate OK [19:58:02]wFMCommunicate request_size=35 [19:58:02]MH_SAM_APDU [19:58:02]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 76 49 00 00 35 04 06 00 EB 82 B7 B1 33 93 [19:58:02]Write to MH i2c: E2 26 00 37 0A 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 76 49 00 00 35 04 06 00 EB 82 B7 B1 33 93 00 00 0E [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:02]Read from MH i2c: E2 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 03 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [19:58:02]RAPDU: 90 00 [19:58:02]wFMCommunicate OK [19:58:02]wFMCommunicate request_size=4 [19:58:02]MH_SAM_APDU [19:58:02]CAPDU: 80 0D 03 02 [19:58:02]Write to MH i2c: E2 08 00 38 0A 80 0D 03 02 00 00 00 00 BD [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:02]Read from MH i2c: E2 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0B 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0B 00 38 0A 00 86 D6 36 99 CE A4 45 92 90 00 32 [19:58:02]RAPDU: 86 D6 36 99 CE A4 45 92 90 00 [19:58:02]wFMCommunicate OK [19:58:02]SAM_PROTO_SignData done [19:58:02]FM_MakeSignedData done [19:58:02]CreateOFDProtocolMessage [19:58:02]wFMCommunicate request_size=4 [19:58:02]MH_SAM_APDU [19:58:02]CAPDU: 80 11 00 00 [19:58:02]Write to MH i2c: E2 08 00 39 0A 80 11 00 00 00 00 00 00 BD [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:02]Read from MH i2c: E2 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 17 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 17 00 39 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 16 [19:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:58:02]wFMCommunicate OK [19:58:02]CreateOFDProtocolMessage done [19:58:02]OFDSenderStorePacket 18806 [19:58:02]StoreOFDPacket docnum=18806 [19:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 3B 77 20 01 E7 CE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 4A C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 76 49 00 00 35 04 06 00 EB 82 B7 B1 33 93 86 D6 36 99 CE A4 45 92 [19:58:02]CheckFolder [19:58:02]dirname=/storage/ofd_packets [19:58:02]CheckFolder done [19:58:02]ProducePacketName [19:58:02]name=ofd_packets/00018806 [19:58:02]NVStorageSaveData ofd_packets/00018806 [19:58:02]File name is /storage/ofd_packets/00018806 [19:58:02]Write 326 bytes [19:58:02]NVStorageSaveData done [19:58:02]OFDSenderStorePacket done [19:58:02]KKMCreateOFDPacket done [19:58:02]NVStorageSaveData kkm_last_timestamp [19:58:02]File name is /storage/kkm_last_timestamp [19:58:02]Write 4 bytes [19:58:02]NVStorageSaveData done [19:58:02]ExternCall_PrintAddStr [19:58:02]wPrintStart [19:58:02]Write to MH i2c: 01 00 00 3A 0A 44 [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: 01 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: 01 07 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: 01 07 00 3A 0A 00 00 00 00 00 FF 0F 59 [19:58:02]RasterBufferAndPrint [19:58:02]line Счет N : (3)16723 [19:58:02]line ИНН: 02508201610067 [19:58:02]line Контрольно-Кассовый Чек [19:58:02]line ПРОДАЖА [19:58:02]line Товар: 48742245 [19:58:02]line Сигареты Parliament Silver Blue [19:58:02]line 1.000 * 156.00 [19:58:02]line = 156.00 [19:58:02]line НДС 12% НСП 1% [19:58:02]line > о реализуемом товаре [19:58:02]line ИТОГО: 156.00 [19:58:02]line НСП 1% : 1.38 [19:58:02]line НДС 12% : 16.57 [19:58:02]line Наличными: 156.00 [19:58:02]line Безнал.: 0.00 [19:58:02]line Место: АЗС № 176 "Партнер Нефть" [19:58:02]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [19:58:02]line СНО: Общий режим [19:58:02]line Чек 82 23.09.2024 19:58 [19:58:02]line Смена: 181 ФФД: 1.0 [19:58:02]line ЗНМ: 0300000010 [19:58:02]line РНМ: 0000000000152968 [19:58:02]line Версия ККМ: v1.0 [19:58:02]line ФМ: 0000000000959456 [19:58:02]line ФД: 18806 [19:58:02]line ФПД: 258946660119443 [19:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T195802&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18806&fm=258946660119443&tin=02508201610067®Number=0000000000152968&sum=15600 [19:58:02]line 0 [19:58:02]OFD Sender: Processing packet 18806 [packets to send 7, broken 6] [19:58:02]ProducePacketName [19:58:02]name=ofd_packets/00018806 [19:58:02]OFD Sender: To server: pG, [19:58:02]CommunicateWithHost lk.salyk.kg:30040 [19:58:02]ConnectInit lk.salyk.kg [19:58:02]written 0, free lines is 4095 [19:58:02]Connected sock=11 [19:58:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 3B 77 20 01 E7 CE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 4A C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 76 49 00 00 35 04 06 00 EB 82 B7 B1 33 93 86 D6 36 99 CE A4 45 92 [19:58:03]Write to MH i2c: 01 00 00 63 0A 6D [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: 01 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: 01 07 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: 01 07 00 63 0A 00 00 00 00 00 05 0D 86 [19:58:03]RasterBufferAndPrint [19:58:03]line [19:58:03]line [19:58:03]line [19:58:03]line [19:58:03]line [19:58:03]written 0, free lines is 3339 [19:58:03]MH_Cut [19:58:03]Write to MH i2c: D1 01 00 6A 0A 01 46 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: D1 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: D1 01 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: D1 01 00 6A 0A 00 45 [19:58:03]Write to MH i2c: 01 00 00 6B 0A 75 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 6C 64 47 00 CD 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 35 39 34 35 36 10 04 04 00 76 49 00 00 F4 03 04 00 AD 71 F1 66 B6 04 01 00 00 41 21 05 CC E0 4D 61 29 [19:58:03]CommunicateWithHost err = 0 [19:58:03]CheckOFDResponse [19:58:03]1017 (14) - 77093643461234 [19:58:03]1041 (16) - 0000000000959456 [19:58:03]1040 (4) - 18806 [19:58:03]1012 (4) - 23.09.2024 13:48 [19:58:03]1206 (1) - 0 [19:58:03]OFD Sender: Remove packet 18806 [19:58:03]ProducePacketName [19:58:03]name=ofd_packets/00018806 [19:58:03]NVStorageDeleteData [19:58:03]OFD Sender: No OFD packet to send [19:58:03]*** Cut start [19:58:03]*** Partial cut [19:58:03]*** CUTSNS_PIN = 1 [19:58:03]*** CUTSNS_PIN = 0 [19:58:03]*** Brake cut motor [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]*** Stop cut motor [19:58:04]*** Cut end [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 6B 0A 00 00 00 00 00 FF 0F 8A [19:58:04]process_action close_receipt done [19:58:04]requested_data is exist [19:58:04]produce_requested_data [19:58:04]requested_item fm.sn is exist - process it [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 6C 0A 80 11 00 00 00 00 00 00 F0 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [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 6C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 49 [19:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [19:58:04]wFMCommunicate OK [19:58:04]requested_item fd.num is exist - process it [19:58:04]SAM_PROTO_GetFieldsCounters [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 13 00 00 [19:58:04]Write to MH i2c: E2 08 00 6D 0A 80 13 00 00 00 00 00 00 F3 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 62 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 62 00 6D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 76 49 00 00 0E 04 04 00 B5 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 8A [19:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 76 49 00 00 0E 04 04 00 B5 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 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_GetFieldsCounters done [19:58:04]requested_item shift.num is exist - process it [19:58:04]requested_item shift.opened is exist - process it [19:58:04]req_shift_opened [19:58:04]FM_GetShiftState [19:58:04]SAM_PROTO_GetShiftState [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 13 01 00 [19:58:04]Write to MH i2c: E2 08 00 6E 0A 80 13 01 00 00 00 00 00 F5 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0E 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0E 00 6E 0A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8D [19:58:04]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_GetShiftState done [19:58:04]FM_GetShiftState done [19:58:04]req_shift_opened done [19:58:04]requested_item shift.open_date is exist - process it [19:58:04]req_shift_open_date [19:58:04]req_shift_open_date done [19:58:04]produce_requested_data done [19:58:04]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18806,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [19:58:04]process_action_free close_receipt [19:58:04]json_value_free [19:58:04]json_value_free done [19:58:04]process_json_proto returns [19:58:04]Send response to host [19:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18806,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [19:58:04]free response buf [19:58:04]execute_script done [19:58:04]execute_script returns [19:58:04]free content buf [19:58:04]Sock 9.Close socket [19:58:04]Sock 9.Thread stoped [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:09]accept exits with 7 [20:00:09]New connection [20:00:09]New thread 3066608996 created [20:00:09]Thread 3066752356 joined [20:00:09]Waiting for new connection... [20:00:09] Sock 7.Parse request [20:00:09]Sock 7.Check first char [20:00:09]Sock 7.First char is OK [20:00:09]request: POST /json_proto HTTP/1.0 [20:00:09]Method: POST [20:00:09]URL: /json_proto [20:00:09]Method is POST - this is cgi request [20:00:09]url: /json_proto [20:00:09]query_string will be loaded in cgi processing [20:00:09]execute_cgi json_proto POST (null) [20:00:09]execute_cgi path=json_proto method=POST [20:00:09]POST find Content-Length [20:00:09]Host: 172.17.62.196:8080 [20:00:09]Content-Length: 924 [20:00:09]Content-Type: application/json [20:00:09] [20:00:09]POST finish read [20:00:09]Found Content-Length = 924 [20:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16724", "tax_sys" : 0, "items" : [ { "code": "4690329014077", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 Babyfox 45\u0433/30", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:09]execute_script... [20:00:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16724", "tax_sys" : 0, "items" : [ { "code": "4690329014077", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 Babyfox 45\u0433/30", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:09]POST & json_proto [20:00:09]process_json_proto [20:00:09]json parsed OK: [20:00:09]protocol is kg_v1.0 [20:00:09]action value=close_receipt [20:00:09]process_action close_receipt [20:00:09]cmd_close_receipt [20:00:09]MH_GetDate [20:00:09]Write to MH i2c: F0 00 00 6F 0A 68 [20:00:09]Write i2c OK [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: F0 [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: F0 09 00 [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: F0 09 00 6F 0A 00 CB C8 F1 66 CE CC 0E 66 69 [20:00:09]GetLastDocTimeStamp 1727121482 [20:00:09]current date 1727121611 [20:00:09]FM_GetShiftState [20:00:09]SAM_PROTO_GetShiftState [20:00:09]wFMCommunicate request_size=4 [20:00:09]MH_SAM_APDU [20:00:09]CAPDU: 80 13 01 00 [20:00:09]Write to MH i2c: E2 08 00 70 0A 80 13 01 00 00 00 00 00 F7 [20:00:09]Write i2c OK [20:00:09]MH_I2C_Read... [20:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:09]Read from MH i2c: E2 [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: E2 0E 00 [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: E2 0E 00 70 0A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8F [20:00:09]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:00:09]wFMCommunicate OK [20:00:09]SAM_PROTO_GetShiftState done [20:00:09]FM_GetShiftState done [20:00:09]opened in 1727050372 [20:00:09]opened+sec_in_day 1727136772 [20:00:09]quantity*price = 4000 [20:00:09]sum+1 = 4001 [20:00:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46116482 Жев Orbit ягодный микс 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 83 23.09.2024 20:00 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18807 ФПД: 223084271218425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T200011&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18807&fm=223084271218425&tin=02508201610067®Number=0000000000152968&sum=8500 0 [20:00:10]StoreToDocumentArchive [20:00:10]shift 181 fd 18807 [20:00:10]save to /storage/0181/doc_00018807 [20:00:10]save last doc name /storage/0181/doc_00018807 to /storage/kkm_last_doc_name [20:00:10]save OK [20:00:10]Clear old archive folders... [20:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=392 [20:00:10]tlvbuf is 00C0E9C0 [20:00:10]SAM_PROTO_ClearQueue [20:00:10]wFMCommunicate request_size=4 [20:00:10]MH_SAM_APDU [20:00:10]CAPDU: 80 09 00 00 [20:00:10]Write to MH i2c: E2 08 00 7D 0A 80 09 00 00 00 00 00 00 F9 [20:00:10]Write i2c OK [20:00:10]MH_I2C_Read... [20:00:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:11]Read from MH i2c: E2 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [20:00:11]RAPDU: 90 00 [20:00:11]wFMCommunicate OK [20:00:11]SAM_PROTO_ClearQueue done [20:00:11]KKMCreateOFDPacket [20:00:11]OFDProtocolAddRootSTLVToBuf [20:00:11]FM_MakeSignedData [20:00:11]FM_MakeSignedData [20:00:11]SAM_PROTO_SignData [20:00:11]wFMCommunicate request_size=4 [20:00:11]MH_SAM_APDU [20:00:11]CAPDU: 80 0D 01 02 [20:00:11]Write to MH i2c: E2 08 00 7E 0A 80 0D 01 02 00 00 00 00 01 [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:11]Read from MH i2c: E2 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 7E 0A 00 90 00 FC [20:00:11]RAPDU: 90 00 [20:00:11]wFMCommunicate OK [20:00:11]wFMCommunicate request_size=255 [20:00:11]MH_SAM_APDU [20:00:11]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [20:00:11]Write to MH i2c: E2 02 01 7F 0A 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 40 [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:11]Read from MH i2c: E2 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 7F 0A 00 90 00 FD [20:00:11]RAPDU: 90 00 [20:00:11]wFMCommunicate OK [20:00:11]wFMCommunicate request_size=151 [20:00:11]MH_SAM_APDU [20:00:11]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 CB C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 77 49 00 00 35 04 06 00 CA E4 DA BD AE F9 [20:00:11]Write to MH i2c: E2 9A 00 80 0A 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 CB C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 77 49 00 00 35 04 06 00 CA E4 DA BD AE F9 00 00 2E [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:11]Read from MH i2c: E2 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 03 00 80 0A 00 90 00 FE [20:00:11]RAPDU: 90 00 [20:00:11]wFMCommunicate OK [20:00:11]wFMCommunicate request_size=4 [20:00:11]MH_SAM_APDU [20:00:11]CAPDU: 80 0D 03 02 [20:00:11]Write to MH i2c: E2 08 00 81 0A 80 0D 03 02 00 00 00 00 06 [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:11]Read from MH i2c: E2 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 0B 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 0B 00 81 0A 00 5C 27 1C 5A E3 4A 35 7D 90 00 DF [20:00:11]RAPDU: 5C 27 1C 5A E3 4A 35 7D 90 00 [20:00:11]wFMCommunicate OK [20:00:11]SAM_PROTO_SignData done [20:00:11]FM_MakeSignedData done [20:00:11]CreateOFDProtocolMessage [20:00:11]wFMCommunicate request_size=4 [20:00:11]MH_SAM_APDU [20:00:11]CAPDU: 80 11 00 00 [20:00:11]Write to MH i2c: E2 08 00 82 0A 80 11 00 00 00 00 00 00 06 [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:11]Read from MH i2c: E2 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 17 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 17 00 82 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5F [20:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:00:11]wFMCommunicate OK [20:00:11]CreateOFDProtocolMessage done [20:00:11]OFDSenderStorePacket 18807 [20:00:11]StoreOFDPacket docnum=18807 [20:00:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9C 01 00 00 5D A6 94 01 19 E6 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 CB C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 77 49 00 00 35 04 06 00 CA E4 DA BD AE F9 5C 27 1C 5A E3 4A 35 7D [20:00:11]CheckFolder [20:00:11]dirname=/storage/ofd_packets [20:00:11]CheckFolder done [20:00:11]ProducePacketName [20:00:11]name=ofd_packets/00018807 [20:00:11]NVStorageSaveData ofd_packets/00018807 [20:00:11]File name is /storage/ofd_packets/00018807 [20:00:11]Write 442 bytes [20:00:11]NVStorageSaveData done [20:00:11]OFDSenderStorePacket done [20:00:11]KKMCreateOFDPacket done [20:00:11]NVStorageSaveData kkm_last_timestamp [20:00:11]File name is /storage/kkm_last_timestamp [20:00:11]Write 4 bytes [20:00:11]NVStorageSaveData done [20:00:11]ExternCall_PrintAddStr [20:00:11]wPrintStart [20:00:11]Write to MH i2c: 01 00 00 83 0A 8D [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: 01 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: 01 07 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 FF 0F A2 [20:00:11]RasterBufferAndPrint [20:00:11]line Счет N : (3)16724 [20:00:11]line ИНН: 02508201610067 [20:00:11]line Контрольно-Кассовый Чек [20:00:11]line ПРОДАЖА [20:00:11]line Товар: 4690329014077 [20:00:11]line Шоколад молочный Babyfox 45г/30 [20:00:11]line 1.000 * 40.00 [20:00:11]line = 40.00 [20:00:11]line НДС 12% НСП 1% [20:00:11]line > о реализуемом товаре [20:00:11]line Товар: 46116482 [20:00:11]line Жев Orbit ягодный микс [20:00:11]line 1.000 * 45.00 [20:00:11]line = 45.00 [20:00:11]line НДС 12% НСП 1% [20:00:11]line > о реализуемом товаре [20:00:11]line ИТОГО: 85.00 [20:00:11]line НСП 1% : 0.75 [20:00:11]line НДС 12% : 9.03 [20:00:11]line Наличными: 85.00 [20:00:11]line Безнал.: 0.00 [20:00:11]line Место: АЗС № 176 "Партнер Нефть" [20:00:11]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:00:11]line СНО: Общий режим [20:00:11]line Чек 83 23.09.2024 20:00 [20:00:11]line Смена: 181 ФФД: 1.0 [20:00:11]line ЗНМ: 0300000010 [20:00:11]line РНМ: 0000000000152968 [20:00:11]line Версия ККМ: v1.0 [20:00:11]line ФМ: 0000000000959456 [20:00:11]line ФД: 18807 [20:00:11]line ФПД: 223084271218425 [20:00:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T200011&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18807&fm=223084271218425&tin=02508201610067®Number=0000000000152968&sum=8500 [20:00:11]line 0 [20:00:11]OFD Sender: Processing packet 18807 [packets to send 7, broken 6] [20:00:11]ProducePacketName [20:00:11]name=ofd_packets/00018807 [20:00:11]OFD Sender: To server: pG, [20:00:11]CommunicateWithHost lk.salyk.kg:30040 [20:00:11]ConnectInit lk.salyk.kg [20:00:11]written 0, free lines is 4095 [20:00:12]Connected sock=10 [20:00:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9C 01 00 00 5D A6 94 01 19 E6 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 CB C8 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 77 49 00 00 35 04 06 00 CA E4 DA BD AE F9 5C 27 1C 5A E3 4A 35 7D [20:00:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 92 65 47 00 AB 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 35 39 34 35 36 10 04 04 00 77 49 00 00 F4 03 04 00 2F 72 F1 66 B6 04 01 00 00 11 3E 40 D3 07 23 B0 07 [20:00:12]CommunicateWithHost err = 0 [20:00:12]CheckOFDResponse [20:00:12]1017 (14) - 77093643461234 [20:00:12]1041 (16) - 0000000000959456 [20:00:12]1040 (4) - 18807 [20:00:12]1012 (4) - 23.09.2024 13:50 [20:00:12]1206 (1) - 0 [20:00:12]OFD Sender: Remove packet 18807 [20:00:12]ProducePacketName [20:00:12]name=ofd_packets/00018807 [20:00:12]NVStorageDeleteData [20:00:12]Write to MH i2c: 01 00 00 B2 0A BC [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: 01 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: 01 07 00 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: 01 07 00 B2 0A 00 00 00 00 00 CE 0C 9D [20:00:12]RasterBufferAndPrint [20:00:12]line [20:00:12]line [20:00:12]line [20:00:12]line [20:00:12]line [20:00:12]written 0, free lines is 3287 [20:00:12]MH_Cut [20:00:12]Write to MH i2c: D1 01 00 B9 0A 01 95 [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: D1 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: D1 01 00 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: D1 01 00 B9 0A 00 94 [20:00:12]Write to MH i2c: 01 00 00 BA 0A C4 [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:12]OFD Sender: No OFD packet to send [20:00:13]*** Cut start [20:00:13]*** Partial cut [20:00:13]*** CUTSNS_PIN = 1 [20:00:13]*** CUTSNS_PIN = 0 [20:00:13]*** Brake cut motor [20:00:13]Read from MH i2c: 01 [20:00:13]MH_I2C_Read... [20:00:13]*** Stop cut motor [20:00:13]*** Cut end [20:00:13]Read from MH i2c: 01 07 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: 01 07 00 BA 0A 00 00 00 00 00 FF 0F D9 [20:00:13]process_action close_receipt done [20:00:13]requested_data is exist [20:00:13]produce_requested_data [20:00:13]requested_item fm.sn is exist - process it [20:00:13]wFMCommunicate request_size=4 [20:00:13]MH_SAM_APDU [20:00:13]CAPDU: 80 11 00 00 [20:00:13]Write to MH i2c: E2 08 00 BB 0A 80 11 00 00 00 00 00 00 3F [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:13]Read from MH i2c: E2 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 17 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 17 00 BB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 98 [20:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:00:13]wFMCommunicate OK [20:00:13]requested_item fd.num is exist - process it [20:00:13]SAM_PROTO_GetFieldsCounters [20:00:13]wFMCommunicate request_size=4 [20:00:13]MH_SAM_APDU [20:00:13]CAPDU: 80 13 00 00 [20:00:13]Write to MH i2c: E2 08 00 BC 0A 80 13 00 00 00 00 00 00 42 [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:13]Read from MH i2c: E2 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 62 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 62 00 BC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 77 49 00 00 0E 04 04 00 B5 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 DD [20:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 77 49 00 00 0E 04 04 00 B5 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 [20:00:13]wFMCommunicate OK [20:00:13]SAM_PROTO_GetFieldsCounters done [20:00:13]requested_item shift.num is exist - process it [20:00:13]requested_item shift.opened is exist - process it [20:00:13]req_shift_opened [20:00:13]FM_GetShiftState [20:00:13]SAM_PROTO_GetShiftState [20:00:13]wFMCommunicate request_size=4 [20:00:13]MH_SAM_APDU [20:00:13]CAPDU: 80 13 01 00 [20:00:13]Write to MH i2c: E2 08 00 BD 0A 80 13 01 00 00 00 00 00 44 [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:14]Read from MH i2c: E2 [20:00:14]MH_I2C_Read... [20:00:14]Read from MH i2c: E2 0E 00 [20:00:14]MH_I2C_Read... [20:00:14]Read from MH i2c: E2 0E 00 BD 0A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 DC [20:00:14]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:00:14]wFMCommunicate OK [20:00:14]SAM_PROTO_GetShiftState done [20:00:14]FM_GetShiftState done [20:00:14]req_shift_opened done [20:00:14]requested_item shift.open_date is exist - process it [20:00:14]req_shift_open_date [20:00:14]req_shift_open_date done [20:00:14]produce_requested_data done [20:00:14]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18807,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [20:00:14]process_action_free close_receipt [20:00:14]json_value_free [20:00:14]json_value_free done [20:00:14]process_json_proto returns [20:00:14]Send response to host [20:00:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18807,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [20:00:14]free response buf [20:00:14]execute_script done [20:00:14]execute_script returns [20:00:14]free content buf [20:00:14]Sock 7.Close socket [20:00:14]Sock 7.Thread stoped [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]accept exits with 9 [20:18:58]New connection [20:18:58]New thread 3066752356 created [20:18:58]Thread 3066608996 joined [20:18:58]Waiting for new connection... [20:18:58] Sock 9.Parse request [20:18:58]Sock 9.Check first char [20:18:58]Sock 9.First char is OK [20:18:58]request: POST /json_proto HTTP/1.0 [20:18:58]Method: POST [20:18:58]URL: /json_proto [20:18:58]Method is POST - this is cgi request [20:18:58]url: /json_proto [20:18:58]query_string will be loaded in cgi processing [20:18:58]execute_cgi json_proto POST (null) [20:18:58]execute_cgi path=json_proto method=POST [20:18:58]POST find Content-Length [20:18:58]Host: 172.17.62.196:8080 [20:18:58]Content-Length: 643 [20:18:58]Content-Type: application/json [20:18:58] [20:18:58]POST finish read [20:18:58]Found Content-Length = 643 [20:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16725", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:58]execute_script... [20:18:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16725", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:58]POST & json_proto [20:18:58]process_json_proto [20:18:58]json parsed OK: [20:18:58]protocol is kg_v1.0 [20:18:58]action value=close_receipt [20:18:58]process_action close_receipt [20:18:58]cmd_close_receipt [20:18:58]MH_GetDate [20:18:58]Write to MH i2c: F0 00 00 BE 0A B7 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: F0 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: F0 09 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: F0 09 00 BE 0A 00 34 CD F1 66 CE CC 0E 66 26 [20:18:58]GetLastDocTimeStamp 1727121611 [20:18:58]current date 1727122740 [20:18:58]FM_GetShiftState [20:18:58]SAM_PROTO_GetShiftState [20:18:58]wFMCommunicate request_size=4 [20:18:58]MH_SAM_APDU [20:18:58]CAPDU: 80 13 01 00 [20:18:58]Write to MH i2c: E2 08 00 BF 0A 80 13 01 00 00 00 00 00 46 [20:18:58]Write i2c OK [20:18:58]MH_I2C_Read... [20:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:58]Read from MH i2c: E2 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 0E 00 [20:18:58]MH_I2C_Read... [20:18:58]Read from MH i2c: E2 0E 00 BF 0A 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 DE [20:18:58]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:18:58]wFMCommunicate OK [20:18:58]SAM_PROTO_GetShiftState done [20:18:58]FM_GetShiftState done [20:18:58]opened in 1727050372 [20:18:58]opened+sec_in_day 1727136772 [20:18:58]quantity*price = 3500 [20:18:58]sum+1 = 3501 [20:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 84 23.09.2024 20:19 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18808 ФПД: 130316319992994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T201900&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18808&fm=130316319992994&tin=02508201610067®Number=0000000000152968&sum=3500 0 [20:18:59]StoreToDocumentArchive [20:18:59]shift 181 fd 18808 [20:18:59]save to /storage/0181/doc_00018808 [20:18:59]save last doc name /storage/0181/doc_00018808 to /storage/kkm_last_doc_name [20:18:59]save OK [20:18:59]Clear old archive folders... [20:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:18:59]tlvbuf is B6E778B0 [20:18:59]SAM_PROTO_ClearQueue [20:18:59]wFMCommunicate request_size=4 [20:18:59]MH_SAM_APDU [20:18:59]CAPDU: 80 09 00 00 [20:18:59]Write to MH i2c: E2 08 00 CC 0A 80 09 00 00 00 00 00 00 48 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:59]Read from MH i2c: E2 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 03 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 03 00 CC 0A 00 90 00 4A [20:18:59]RAPDU: 90 00 [20:18:59]wFMCommunicate OK [20:18:59]SAM_PROTO_ClearQueue done [20:18:59]KKMCreateOFDPacket [20:18:59]OFDProtocolAddRootSTLVToBuf [20:18:59]FM_MakeSignedData [20:18:59]FM_MakeSignedData [20:18:59]SAM_PROTO_SignData [20:18:59]wFMCommunicate request_size=4 [20:18:59]MH_SAM_APDU [20:18:59]CAPDU: 80 0D 01 02 [20:18:59]Write to MH i2c: E2 08 00 CD 0A 80 0D 01 02 00 00 00 00 50 [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:59]Read from MH i2c: E2 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 03 00 [20:18:59]MH_I2C_Read... [20:18:59]Read from MH i2c: E2 03 00 CD 0A 00 90 00 4B [20:18:59]RAPDU: 90 00 [20:18:59]wFMCommunicate OK [20:18:59]wFMCommunicate request_size=255 [20:18:59]MH_SAM_APDU [20:18:59]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 34 CD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 [20:18:59]Write to MH i2c: E2 02 01 CE 0A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 34 CD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 00 00 9F [20:18:59]Write i2c OK [20:18:59]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 CE 0A 00 90 00 4C [20:19:00]RAPDU: 90 00 [20:19:00]wFMCommunicate OK [20:19:00]wFMCommunicate request_size=34 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 78 49 00 00 35 04 06 00 76 85 A1 F6 2C A2 [20:19:00]Write to MH i2c: E2 25 00 CF 0A 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 78 49 00 00 35 04 06 00 76 85 A1 F6 2C A2 00 00 3B [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 03 00 CF 0A 00 90 00 4D [20:19:00]RAPDU: 90 00 [20:19:00]wFMCommunicate OK [20:19:00]wFMCommunicate request_size=4 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 0D 03 02 [20:19:00]Write to MH i2c: E2 08 00 D0 0A 80 0D 03 02 00 00 00 00 55 [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 0B 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 0B 00 D0 0A 00 83 63 9A E0 22 41 C3 86 90 00 62 [20:19:00]RAPDU: 83 63 9A E0 22 41 C3 86 90 00 [20:19:00]wFMCommunicate OK [20:19:00]SAM_PROTO_SignData done [20:19:00]FM_MakeSignedData done [20:19:00]CreateOFDProtocolMessage [20:19:00]wFMCommunicate request_size=4 [20:19:00]MH_SAM_APDU [20:19:00]CAPDU: 80 11 00 00 [20:19:00]Write to MH i2c: E2 08 00 D1 0A 80 11 00 00 00 00 00 00 55 [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:00]Read from MH i2c: E2 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 17 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: E2 17 00 D1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 AE [20:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:19:00]wFMCommunicate OK [20:19:00]CreateOFDProtocolMessage done [20:19:00]OFDSenderStorePacket 18808 [20:19:00]StoreOFDPacket docnum=18808 [20:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 27 01 00 00 C9 3B 1F 01 A1 99 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 34 CD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 78 49 00 00 35 04 06 00 76 85 A1 F6 2C A2 83 63 9A E0 22 41 C3 86 [20:19:00]CheckFolder [20:19:00]dirname=/storage/ofd_packets [20:19:00]CheckFolder done [20:19:00]ProducePacketName [20:19:00]name=ofd_packets/00018808 [20:19:00]NVStorageSaveData ofd_packets/00018808 [20:19:00]File name is /storage/ofd_packets/00018808 [20:19:00]Write 325 bytes [20:19:00]NVStorageSaveData done [20:19:00]OFDSenderStorePacket done [20:19:00]KKMCreateOFDPacket done [20:19:00]NVStorageSaveData kkm_last_timestamp [20:19:00]File name is /storage/kkm_last_timestamp [20:19:00]Write 4 bytes [20:19:00]NVStorageSaveData done [20:19:00]ExternCall_PrintAddStr [20:19:00]wPrintStart [20:19:00]Write to MH i2c: 01 00 00 D2 0A DC [20:19:00]Write i2c OK [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: 01 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: 01 07 00 [20:19:00]MH_I2C_Read... [20:19:00]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 FF 0F F1 [20:19:00]RasterBufferAndPrint [20:19:00]line Счет N : (3)16725 [20:19:00]line ИНН: 02508201610067 [20:19:00]line Контрольно-Кассовый Чек [20:19:00]line ПРОДАЖА [20:19:00]line Товар: 4700000310326 [20:19:00]line Вода Адыгене 1л б/г [20:19:00]line 1.000 * 35.00 [20:19:00]line = 35.00 [20:19:00]line НДС 12% НСП 1% [20:19:00]line > о реализуемом товаре [20:19:00]line ИТОГО: 35.00 [20:19:00]line НСП 1% : 0.31 [20:19:00]line НДС 12% : 3.72 [20:19:00]line Наличными: 35.00 [20:19:00]line Безнал.: 0.00 [20:19:00]line Место: АЗС № 176 "Партнер Нефть" [20:19:00]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:19:00]line СНО: Общий режим [20:19:00]line Чек 84 23.09.2024 20:19 [20:19:00]line Смена: 181 ФФД: 1.0 [20:19:00]line ЗНМ: 0300000010 [20:19:00]line РНМ: 0000000000152968 [20:19:00]line Версия ККМ: v1.0 [20:19:00]line ФМ: 0000000000959456 [20:19:00]line ФД: 18808 [20:19:00]line ФПД: 130316319992994 [20:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T201900&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18808&fm=130316319992994&tin=02508201610067®Number=0000000000152968&sum=3500 [20:19:00]line 0 [20:19:00]OFD Sender: Processing packet 18808 [packets to send 7, broken 6] [20:19:00]ProducePacketName [20:19:00]name=ofd_packets/00018808 [20:19:00]OFD Sender: To server: pG, [20:19:00]CommunicateWithHost lk.salyk.kg:30040 [20:19:00]ConnectInit lk.salyk.kg [20:19:00]written 0, free lines is 4095 [20:19:00]Connected sock=10 [20:19:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 27 01 00 00 C9 3B 1F 01 A1 99 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 34 CD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 78 49 00 00 35 04 06 00 76 85 A1 F6 2C A2 83 63 9A E0 22 41 C3 86 [20:19:01]Write to MH i2c: 01 00 00 FA 0A 04 [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 20 0D 38 [20:19:01]RasterBufferAndPrint [20:19:01]line [20:19:01]line [20:19:01]line [20:19:01]line [20:19:01]line [20:19:01]written 0, free lines is 3366 [20:19:01]MH_Cut [20:19:01]Write to MH i2c: D1 01 00 01 0B 01 DE [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: D1 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: D1 01 00 [20:19:01]MH_I2C_Read... [20:19:01]Read from MH i2c: D1 01 00 01 0B 00 DD [20:19:01]Write to MH i2c: 01 00 00 02 0B 0D [20:19:01]Write i2c OK [20:19:01]MH_I2C_Read... [20:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9F 02 47 00 7C 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 35 39 34 35 36 10 04 04 00 78 49 00 00 F4 03 04 00 97 76 F1 66 B6 04 01 00 00 AB C0 FC 7F B0 0E 8D 05 [20:19:01]CommunicateWithHost err = 0 [20:19:01]CheckOFDResponse [20:19:01]1017 (14) - 77093643461234 [20:19:01]1041 (16) - 0000000000959456 [20:19:01]1040 (4) - 18808 [20:19:01]1012 (4) - 23.09.2024 14:09 [20:19:01]1206 (1) - 0 [20:19:01]OFD Sender: Remove packet 18808 [20:19:01]ProducePacketName [20:19:01]name=ofd_packets/00018808 [20:19:01]NVStorageDeleteData [20:19:01]OFD Sender: No OFD packet to send [20:19:01]*** Cut start [20:19:01]*** Partial cut [20:19:01]*** CUTSNS_PIN = 1 [20:19:01]*** CUTSNS_PIN = 0 [20:19:02]*** Brake cut motor [20:19:02]Read from MH i2c: 01 [20:19:02]MH_I2C_Read... [20:19:02]*** Stop cut motor [20:19:02]*** Cut end [20:19:02]Read from MH i2c: 01 07 00 [20:19:02]MH_I2C_Read... [20:19:02]Read from MH i2c: 01 07 00 02 0B 00 00 00 00 00 FF 0F 22 [20:19:02]process_action close_receipt done [20:19:02]requested_data is exist [20:19:02]produce_requested_data [20:19:02]requested_item fm.sn is exist - process it [20:19:02]wFMCommunicate request_size=4 [20:19:02]MH_SAM_APDU [20:19:02]CAPDU: 80 11 00 00 [20:19:02]Write to MH i2c: E2 08 00 03 0B 80 11 00 00 00 00 00 00 88 [20:19:02]Write i2c OK [20:19:02]MH_I2C_Read... [20:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:02]Read from MH i2c: E2 [20:19:02]MH_I2C_Read... [20:19:02]Read from MH i2c: E2 17 00 [20:19:02]MH_I2C_Read... [20:19:02]Read from MH i2c: E2 17 00 03 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E1 [20:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:19:02]wFMCommunicate OK [20:19:02]requested_item fd.num is exist - process it [20:19:02]SAM_PROTO_GetFieldsCounters [20:19:02]wFMCommunicate request_size=4 [20:19:02]MH_SAM_APDU [20:19:02]CAPDU: 80 13 00 00 [20:19:02]Write to MH i2c: E2 08 00 04 0B 80 13 00 00 00 00 00 00 8B [20:19:02]Write i2c OK [20:19:02]MH_I2C_Read... [20:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:02]Read from MH i2c: E2 [20:19:02]MH_I2C_Read... [20:19:02]Read from MH i2c: E2 62 00 [20:19:02]MH_I2C_Read... [20:19:02]Read from MH i2c: E2 62 00 04 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 78 49 00 00 0E 04 04 00 B5 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 2A [20:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 78 49 00 00 0E 04 04 00 B5 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 [20:19:02]wFMCommunicate OK [20:19:02]SAM_PROTO_GetFieldsCounters done [20:19:02]requested_item shift.num is exist - process it [20:19:02]requested_item shift.opened is exist - process it [20:19:02]req_shift_opened [20:19:02]FM_GetShiftState [20:19:02]SAM_PROTO_GetShiftState [20:19:02]wFMCommunicate request_size=4 [20:19:02]MH_SAM_APDU [20:19:02]CAPDU: 80 13 01 00 [20:19:02]Write to MH i2c: E2 08 00 05 0B 80 13 01 00 00 00 00 00 8D [20:19:02]Write i2c OK [20:19:02]MH_I2C_Read... [20:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:02]Read from MH i2c: E2 [20:19:02]MH_I2C_Read... [20:19:02]Read from MH i2c: E2 0E 00 [20:19:02]MH_I2C_Read... [20:19:02]Read from MH i2c: E2 0E 00 05 0B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 25 [20:19:02]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:19:02]wFMCommunicate OK [20:19:02]SAM_PROTO_GetShiftState done [20:19:02]FM_GetShiftState done [20:19:02]req_shift_opened done [20:19:02]requested_item shift.open_date is exist - process it [20:19:02]req_shift_open_date [20:19:02]req_shift_open_date done [20:19:02]produce_requested_data done [20:19:02]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18808,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [20:19:02]process_action_free close_receipt [20:19:02]json_value_free [20:19:02]json_value_free done [20:19:02]process_json_proto returns [20:19:02]Send response to host [20:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18808,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [20:19:02]free response buf [20:19:02]execute_script done [20:19:02]execute_script returns [20:19:02]free content buf [20:19:02]Sock 9.Close socket [20:19:02]Sock 9.Thread stoped [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:07]accept exits with 7 [20:33:07]New connection [20:33:07]New thread 3066608996 created [20:33:07]Thread 3066752356 joined [20:33:07]Waiting for new connection... [20:33:07] Sock 7.Parse request [20:33:07]Sock 7.Check first char [20:33:07]Sock 7.First char is OK [20:33:07]request: POST /json_proto HTTP/1.0 [20:33:07]Method: POST [20:33:07]URL: /json_proto [20:33:07]Method is POST - this is cgi request [20:33:07]url: /json_proto [20:33:07]query_string will be loaded in cgi processing [20:33:07]execute_cgi json_proto POST (null) [20:33:07]execute_cgi path=json_proto method=POST [20:33:07]POST find Content-Length [20:33:07]Host: 172.17.62.196:8080 [20:33:07]Content-Length: 1898 [20:33:07]Content-Type: application/json [20:33:07] [20:33:07]POST finish read [20:33:07]Found Content-Length = 1898 [20:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16726", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 3.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 143.00, "quantity" : 3.000, "sum" : 429.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 984.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:07]execute_script... [20:33:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16726", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 3.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 143.00, "quantity" : 3.000, "sum" : 429.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 984.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:07]POST & json_proto [20:33:07]process_json_proto [20:33:07]json parsed OK: [20:33:07]protocol is kg_v1.0 [20:33:07]action value=close_receipt [20:33:07]process_action close_receipt [20:33:07]cmd_close_receipt [20:33:07]MH_GetDate [20:33:07]Write to MH i2c: F0 00 00 06 0B 00 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: F0 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: F0 09 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: F0 09 00 06 0B 00 85 D0 F1 66 CE CC 0E 66 C3 [20:33:07]GetLastDocTimeStamp 1727122740 [20:33:07]current date 1727123589 [20:33:07]FM_GetShiftState [20:33:07]SAM_PROTO_GetShiftState [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 13 01 00 [20:33:07]Write to MH i2c: E2 08 00 07 0B 80 13 01 00 00 00 00 00 8F [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0E 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0E 00 07 0B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 27 [20:33:07]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:33:07]wFMCommunicate OK [20:33:07]SAM_PROTO_GetShiftState done [20:33:07]FM_GetShiftState done [20:33:07]opened in 1727050372 [20:33:07]opened+sec_in_day 1727136772 [20:33:07]quantity*price = 10500 [20:33:07]sum+1 = 10501 [20:33:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48746656 Сигареты Parliament Super Slims 3.000 * 143.00 = 429.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 984.00 НСП 1% : 8.71 НДС 12% : 104.49 Наличными: 0.00 Безнал.: 984.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 85 23.09.2024 20:33 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18809 ФПД: 12337614674017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T203310&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18809&fm=12337614674017&tin=02508201610067®Number=0000000000152968&sum=98400 0 [20:33:08]StoreToDocumentArchive [20:33:08]shift 181 fd 18809 [20:33:08]save to /storage/0181/doc_00018809 [20:33:08]save last doc name /storage/0181/doc_00018809 to /storage/kkm_last_doc_name [20:33:08]save OK [20:33:08]Clear old archive folders... [20:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=729 [20:33:08]tlvbuf is 00C20D40 [20:33:08]SAM_PROTO_ClearQueue [20:33:08]wFMCommunicate request_size=4 [20:33:08]MH_SAM_APDU [20:33:08]CAPDU: 80 09 00 00 [20:33:09]Write to MH i2c: E2 08 00 14 0B 80 09 00 00 00 00 00 00 91 [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [20:33:09]RAPDU: 90 00 [20:33:09]wFMCommunicate OK [20:33:09]SAM_PROTO_ClearQueue done [20:33:09]KKMCreateOFDPacket [20:33:09]OFDProtocolAddRootSTLVToBuf [20:33:09]FM_MakeSignedData [20:33:09]FM_MakeSignedData [20:33:09]SAM_PROTO_SignData [20:33:09]wFMCommunicate request_size=4 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 0D 01 02 [20:33:09]Write to MH i2c: E2 08 00 15 0B 80 0D 01 02 00 00 00 00 99 [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 15 0B 00 90 00 94 [20:33:09]RAPDU: 90 00 [20:33:09]wFMCommunicate OK [20:33:09]wFMCommunicate request_size=255 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 0D 02 02 FA 03 00 D9 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 [20:33:09]Write to MH i2c: E2 02 01 16 0B 80 0D 02 02 FA 00 03 00 D9 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 00 00 DD [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 16 0B 00 90 00 95 [20:33:09]RAPDU: 90 00 [20:33:09]wFMCommunicate OK [20:33:09]wFMCommunicate request_size=255 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 0D 02 02 FA D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 94 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 [20:33:09]Write to MH i2c: E2 02 01 17 0B 80 0D 02 02 FA 00 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 94 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 00 00 1D [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [20:33:09]RAPDU: 90 00 [20:33:09]wFMCommunicate OK [20:33:09]wFMCommunicate request_size=238 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 0D 02 02 E9 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 86 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 79 49 00 00 35 04 06 00 0B 38 93 23 D8 61 [20:33:09]Write to MH i2c: E2 F1 00 18 0B 80 0D 02 02 E9 00 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 86 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 79 49 00 00 35 04 06 00 0B 38 93 23 D8 61 00 00 13 [20:33:10]Write i2c OK [20:33:10]MH_I2C_Read... [20:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:10]Read from MH i2c: E2 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: E2 03 00 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: E2 03 00 18 0B 00 90 00 97 [20:33:10]RAPDU: 90 00 [20:33:10]wFMCommunicate OK [20:33:10]wFMCommunicate request_size=4 [20:33:10]MH_SAM_APDU [20:33:10]CAPDU: 80 0D 03 02 [20:33:10]Write to MH i2c: E2 08 00 19 0B 80 0D 03 02 00 00 00 00 9F [20:33:10]Write i2c OK [20:33:10]MH_I2C_Read... [20:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:10]Read from MH i2c: E2 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: E2 0B 00 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: E2 0B 00 19 0B 00 7B 93 01 7D D8 17 EC 83 90 00 8A [20:33:10]RAPDU: 7B 93 01 7D D8 17 EC 83 90 00 [20:33:10]wFMCommunicate OK [20:33:10]SAM_PROTO_SignData done [20:33:10]FM_MakeSignedData done [20:33:10]CreateOFDProtocolMessage [20:33:10]wFMCommunicate request_size=4 [20:33:10]MH_SAM_APDU [20:33:10]CAPDU: 80 11 00 00 [20:33:10]Write to MH i2c: E2 08 00 1A 0B 80 11 00 00 00 00 00 00 9F [20:33:10]Write i2c OK [20:33:10]MH_I2C_Read... [20:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:10]Read from MH i2c: E2 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: E2 17 00 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: E2 17 00 1A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F8 [20:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:33:10]wFMCommunicate OK [20:33:10]CreateOFDProtocolMessage done [20:33:10]OFDSenderStorePacket 18809 [20:33:10]StoreOFDPacket docnum=18809 [20:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 ED 02 00 00 65 D9 E5 02 84 FF 5A 03 01 00 03 00 D9 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 94 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 86 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 79 49 00 00 35 04 06 00 0B 38 93 23 D8 61 7B 93 01 7D D8 17 EC 83 [20:33:10]CheckFolder [20:33:10]dirname=/storage/ofd_packets [20:33:10]CheckFolder done [20:33:10]ProducePacketName [20:33:10]name=ofd_packets/00018809 [20:33:10]NVStorageSaveData ofd_packets/00018809 [20:33:10]File name is /storage/ofd_packets/00018809 [20:33:10]Write 779 bytes [20:33:10]NVStorageSaveData done [20:33:10]OFDSenderStorePacket done [20:33:10]KKMCreateOFDPacket done [20:33:10]NVStorageSaveData kkm_last_timestamp [20:33:10]File name is /storage/kkm_last_timestamp [20:33:10]Write 4 bytes [20:33:10]NVStorageSaveData done [20:33:10]ExternCall_PrintAddStr [20:33:10]wPrintStart [20:33:10]Write to MH i2c: 01 00 00 1B 0B 26 [20:33:10]Write i2c OK [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: 01 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: 01 07 00 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 FF 0F 3B [20:33:10]RasterBufferAndPrint [20:33:10]line Счет N : (3)16726 [20:33:10]line ИНН: 02508201610067 [20:33:10]line Контрольно-Кассовый Чек [20:33:10]line ПРОДАЖА [20:33:10]line Товар: 4700000310326 [20:33:10]line Вода Адыгене 1л б/г [20:33:10]line 3.000 * 35.00 [20:33:10]line = 105.00 [20:33:10]line НДС 12% НСП 1% [20:33:10]line > о реализуемом товаре [20:33:10]line Товар: 4700000310043 [20:33:10]line Вода Жалалабат 27 1л [20:33:10]line 1.000 * 60.00 [20:33:10]line = 60.00 [20:33:10]line НДС 12% НСП 1% [20:33:10]line > о реализуемом товаре [20:33:10]line Товар: 48746656 [20:33:10]line Сигареты Parliament Super Slims [20:33:10]line 3.000 * 143.00 [20:33:10]line = 429.00 [20:33:10]line НДС 12% НСП 1% [20:33:10]line > о реализуемом товаре [20:33:10]line Товар: 4870202521216 [20:33:10]line Напиток MAXI чай 1,2 зел.лимон (новый) [20:33:10]line 1.000 * 125.00 [20:33:10]line = 125.00 [20:33:10]line НДС 12% НСП 1% [20:33:10]line > о реализуемом товаре [20:33:10]line Товар: 90448300 [20:33:10]line Энерг напиток Red Bull 0,355л [20:33:10]line 1.000 * 265.00 [20:33:10]line = 265.00 [20:33:10]line НДС 12% НСП 1% [20:33:10]line > о реализуемом товаре [20:33:10]line ИТОГО: 984.00 [20:33:10]line НСП 1% : 8.71 [20:33:10]line НДС 12% : 104.49 [20:33:10]line Наличными: 0.00 [20:33:10]line Безнал.: 984.00 [20:33:10]line Место: АЗС № 176 "Партнер Нефть" [20:33:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:33:10]line СНО: Общий режим [20:33:10]line Чек 85 23.09.2024 20:33 [20:33:10]line Смена: 181 ФФД: 1.0 [20:33:10]line ЗНМ: 0300000010 [20:33:10]line РНМ: 0000000000152968 [20:33:10]line Версия ККМ: v1.0 [20:33:10]line Платежная система: O! деньги [20:33:10]line ФМ: 0000000000959456 [20:33:10]line ФД: 18809 [20:33:10]line ФПД: 12337614674017 [20:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T203310&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18809&fm=12337614674017&tin=02508201610067®Number=0000000000152968&sum=98400 [20:33:10]line 0 [20:33:10]OFD Sender: Processing packet 18809 [packets to send 7, broken 6] [20:33:10]ProducePacketName [20:33:10]name=ofd_packets/00018809 [20:33:10]OFD Sender: To server: pG, [20:33:10]CommunicateWithHost lk.salyk.kg:30040 [20:33:10]ConnectInit lk.salyk.kg [20:33:10]written 0, free lines is 4095 [20:33:10]Connected sock=10 [20:33:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 ED 02 00 00 65 D9 E5 02 84 FF 5A 03 01 00 03 00 D9 02 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 94 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 86 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 79 49 00 00 35 04 06 00 0B 38 93 23 D8 61 7B 93 01 7D D8 17 EC 83 [20:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 6B 28 47 00 2B 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 35 39 34 35 36 10 04 04 00 79 49 00 00 F4 03 04 00 E9 79 F1 66 B6 04 01 00 00 3B 9D 44 AA 7A 89 4D C9 [20:33:11]CommunicateWithHost err = 0 [20:33:11]CheckOFDResponse [20:33:11]1017 (14) - 77093643461234 [20:33:11]1041 (16) - 0000000000959456 [20:33:11]1040 (4) - 18809 [20:33:11]1012 (4) - 23.09.2024 14:23 [20:33:11]1206 (1) - 0 [20:33:11]OFD Sender: Remove packet 18809 [20:33:11]ProducePacketName [20:33:11]name=ofd_packets/00018809 [20:33:11]NVStorageDeleteData [20:33:11]Write to MH i2c: 01 00 00 5F 0B 6A [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 07 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 07 00 5F 0B 00 00 00 00 00 C6 0B 42 [20:33:11]RasterBufferAndPrint [20:33:11]line [20:33:11]line [20:33:11]line [20:33:11]line [20:33:11]line [20:33:11]written 0, free lines is 3023 [20:33:11]MH_Cut [20:33:11]Write to MH i2c: D1 01 00 66 0B 01 43 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: D1 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: D1 01 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: D1 01 00 66 0B 00 42 [20:33:11]Write to MH i2c: 01 00 00 67 0B 72 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]OFD Sender: No OFD packet to send [20:33:12]*** Cut start [20:33:12]*** Partial cut [20:33:12]*** CUTSNS_PIN = 1 [20:33:12]*** CUTSNS_PIN = 0 [20:33:12]*** Brake cut motor [20:33:12]Read from MH i2c: 01 [20:33:12]MH_I2C_Read... [20:33:12]*** Stop cut motor [20:33:12]*** Cut end [20:33:12]Read from MH i2c: 01 07 00 [20:33:12]MH_I2C_Read... [20:33:12]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 FF 0F 87 [20:33:12]process_action close_receipt done [20:33:12]requested_data is exist [20:33:12]produce_requested_data [20:33:12]requested_item fm.sn is exist - process it [20:33:12]wFMCommunicate request_size=4 [20:33:12]MH_SAM_APDU [20:33:12]CAPDU: 80 11 00 00 [20:33:12]Write to MH i2c: E2 08 00 68 0B 80 11 00 00 00 00 00 00 ED [20:33:12]Write i2c OK [20:33:12]MH_I2C_Read... [20:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:12]Read from MH i2c: E2 [20:33:12]MH_I2C_Read... [20:33:12]Read from MH i2c: E2 17 00 [20:33:12]MH_I2C_Read... [20:33:12]Read from MH i2c: E2 17 00 68 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 46 [20:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:33:12]wFMCommunicate OK [20:33:12]requested_item fd.num is exist - process it [20:33:12]SAM_PROTO_GetFieldsCounters [20:33:12]wFMCommunicate request_size=4 [20:33:12]MH_SAM_APDU [20:33:12]CAPDU: 80 13 00 00 [20:33:12]Write to MH i2c: E2 08 00 69 0B 80 13 00 00 00 00 00 00 F0 [20:33:12]Write i2c OK [20:33:12]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 62 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 62 00 69 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 79 49 00 00 0E 04 04 00 B5 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 93 [20:33:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 79 49 00 00 0E 04 04 00 B5 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 [20:33:13]wFMCommunicate OK [20:33:13]SAM_PROTO_GetFieldsCounters done [20:33:13]requested_item shift.num is exist - process it [20:33:13]requested_item shift.opened is exist - process it [20:33:13]req_shift_opened [20:33:13]FM_GetShiftState [20:33:13]SAM_PROTO_GetShiftState [20:33:13]wFMCommunicate request_size=4 [20:33:13]MH_SAM_APDU [20:33:13]CAPDU: 80 13 01 00 [20:33:13]Write to MH i2c: E2 08 00 6A 0B 80 13 01 00 00 00 00 00 F2 [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 0E 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 0E 00 6A 0B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8A [20:33:13]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:33:13]wFMCommunicate OK [20:33:13]SAM_PROTO_GetShiftState done [20:33:13]FM_GetShiftState done [20:33:13]req_shift_opened done [20:33:13]requested_item shift.open_date is exist - process it [20:33:13]req_shift_open_date [20:33:13]req_shift_open_date done [20:33:13]produce_requested_data done [20:33:13]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18809,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [20:33:13]process_action_free close_receipt [20:33:13]json_value_free [20:33:13]json_value_free done [20:33:13]process_json_proto returns [20:33:13]Send response to host [20:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18809,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [20:33:13]free response buf [20:33:13]execute_script done [20:33:13]execute_script returns [20:33:13]free content buf [20:33:13]Sock 7.Close socket [20:33:13]Sock 7.Thread stoped [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:39]accept exits with 9 [20:33:39]New connection [20:33:39]New thread 3066752356 created [20:33:39]Thread 3066608996 joined [20:33:39]Waiting for new connection... [20:33:39] Sock 9.Parse request [20:33:39]Sock 9.Check first char [20:33:39]Sock 9.First char is OK [20:33:39]request: POST /json_proto HTTP/1.0 [20:33:39]Method: POST [20:33:39]URL: /json_proto [20:33:39]Method is POST - this is cgi request [20:33:39]url: /json_proto [20:33:39]query_string will be loaded in cgi processing [20:33:39]execute_cgi json_proto POST (null) [20:33:39]execute_cgi path=json_proto method=POST [20:33:39]POST find Content-Length [20:33:39]Host: 172.17.62.196:8080 [20:33:39]Content-Length: 805 [20:33:39]Content-Type: application/json [20:33:39] [20:33:39]POST finish read [20:33:39]Found Content-Length = 805 [20:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16727", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:39]execute_script... [20:33:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16727", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:39]POST & json_proto [20:33:39]process_json_proto [20:33:39]json parsed OK: [20:33:39]protocol is kg_v1.0 [20:33:39]action value=close_receipt [20:33:39]process_action close_receipt [20:33:39]cmd_close_receipt [20:33:39]MH_GetDate [20:33:39]Write to MH i2c: F0 00 00 6B 0B 65 [20:33:39]Write i2c OK [20:33:39]MH_I2C_Read... [20:33:39]Read from MH i2c: F0 [20:33:39]MH_I2C_Read... [20:33:39]Read from MH i2c: F0 09 00 [20:33:39]MH_I2C_Read... [20:33:39]Read from MH i2c: F0 09 00 6B 0B 00 A5 D0 F1 66 CE CC 0E 66 48 [20:33:39]GetLastDocTimeStamp 1727123590 [20:33:39]current date 1727123621 [20:33:39]FM_GetShiftState [20:33:39]SAM_PROTO_GetShiftState [20:33:39]wFMCommunicate request_size=4 [20:33:39]MH_SAM_APDU [20:33:39]CAPDU: 80 13 01 00 [20:33:39]Write to MH i2c: E2 08 00 6C 0B 80 13 01 00 00 00 00 00 F4 [20:33:39]Write i2c OK [20:33:39]MH_I2C_Read... [20:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:39]Read from MH i2c: E2 [20:33:39]MH_I2C_Read... [20:33:39]Read from MH i2c: E2 0E 00 [20:33:39]MH_I2C_Read... [20:33:39]Read from MH i2c: E2 0E 00 6C 0B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 8C [20:33:39]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:33:39]wFMCommunicate OK [20:33:39]SAM_PROTO_GetShiftState done [20:33:39]FM_GetShiftState done [20:33:39]opened in 1727050372 [20:33:39]opened+sec_in_day 1727136772 [20:33:39]quantity*price = 6000 [20:33:39]sum+1 = 6001 [20:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 86 23.09.2024 20:33 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18810 ФПД: 8457303949031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T203341&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18810&fm=8457303949031&tin=02508201610067®Number=0000000000152968&sum=6000 0 [20:33:40]StoreToDocumentArchive [20:33:40]shift 181 fd 18810 [20:33:40]save to /storage/0181/doc_00018810 [20:33:40]save last doc name /storage/0181/doc_00018810 to /storage/kkm_last_doc_name [20:33:40]save OK [20:33:40]Clear old archive folders... [20:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:33:40]tlvbuf is 00C210E0 [20:33:40]SAM_PROTO_ClearQueue [20:33:40]wFMCommunicate request_size=4 [20:33:40]MH_SAM_APDU [20:33:40]CAPDU: 80 09 00 00 [20:33:40]Write to MH i2c: E2 08 00 79 0B 80 09 00 00 00 00 00 00 F6 [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:40]Read from MH i2c: E2 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 03 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 03 00 79 0B 00 90 00 F8 [20:33:40]RAPDU: 90 00 [20:33:40]wFMCommunicate OK [20:33:40]SAM_PROTO_ClearQueue done [20:33:40]KKMCreateOFDPacket [20:33:40]OFDProtocolAddRootSTLVToBuf [20:33:40]FM_MakeSignedData [20:33:40]FM_MakeSignedData [20:33:40]SAM_PROTO_SignData [20:33:40]wFMCommunicate request_size=4 [20:33:40]MH_SAM_APDU [20:33:40]CAPDU: 80 0D 01 02 [20:33:40]Write to MH i2c: E2 08 00 7A 0B 80 0D 01 02 00 00 00 00 FE [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:40]Read from MH i2c: E2 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 03 00 [20:33:40]MH_I2C_Read... [20:33:40]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [20:33:40]RAPDU: 90 00 [20:33:40]wFMCommunicate OK [20:33:40]wFMCommunicate request_size=255 [20:33:40]MH_SAM_APDU [20:33:40]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [20:33:40]Write to MH i2c: E2 02 01 7B 0B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 16 [20:33:40]Write i2c OK [20:33:40]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [20:33:41]RAPDU: 90 00 [20:33:41]wFMCommunicate OK [20:33:41]wFMCommunicate request_size=35 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7A 49 00 00 35 04 06 00 07 B1 1E 98 FE E7 [20:33:41]Write to MH i2c: E2 26 00 7C 0B 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7A 49 00 00 35 04 06 00 07 B1 1E 98 FE E7 00 00 10 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [20:33:41]RAPDU: 90 00 [20:33:41]wFMCommunicate OK [20:33:41]wFMCommunicate request_size=4 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 0D 03 02 [20:33:41]Write to MH i2c: E2 08 00 7D 0B 80 0D 03 02 00 00 00 00 03 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 0B 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 0B 00 7D 0B 00 94 B7 5D 98 FD E1 87 10 90 00 B9 [20:33:41]RAPDU: 94 B7 5D 98 FD E1 87 10 90 00 [20:33:41]wFMCommunicate OK [20:33:41]SAM_PROTO_SignData done [20:33:41]FM_MakeSignedData done [20:33:41]CreateOFDProtocolMessage [20:33:41]wFMCommunicate request_size=4 [20:33:41]MH_SAM_APDU [20:33:41]CAPDU: 80 11 00 00 [20:33:41]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:41]Read from MH i2c: E2 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 17 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 5C [20:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:33:41]wFMCommunicate OK [20:33:41]CreateOFDProtocolMessage done [20:33:41]OFDSenderStorePacket 18810 [20:33:41]StoreOFDPacket docnum=18810 [20:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 92 F0 20 01 4E 19 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7A 49 00 00 35 04 06 00 07 B1 1E 98 FE E7 94 B7 5D 98 FD E1 87 10 [20:33:41]CheckFolder [20:33:41]dirname=/storage/ofd_packets [20:33:41]CheckFolder done [20:33:41]ProducePacketName [20:33:41]name=ofd_packets/00018810 [20:33:41]NVStorageSaveData ofd_packets/00018810 [20:33:41]File name is /storage/ofd_packets/00018810 [20:33:41]Write 326 bytes [20:33:41]NVStorageSaveData done [20:33:41]OFDSenderStorePacket done [20:33:41]KKMCreateOFDPacket done [20:33:41]NVStorageSaveData kkm_last_timestamp [20:33:41]File name is /storage/kkm_last_timestamp [20:33:41]Write 4 bytes [20:33:41]NVStorageSaveData done [20:33:41]ExternCall_PrintAddStr [20:33:41]wPrintStart [20:33:41]Write to MH i2c: 01 00 00 7F 0B 8A [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: 01 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: 01 07 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 FF 0F 9F [20:33:41]RasterBufferAndPrint [20:33:41]line Счет N : (3)16727 [20:33:41]line ИНН: 02508201610067 [20:33:41]line Контрольно-Кассовый Чек [20:33:41]line ПРОДАЖА [20:33:41]line Товар: 4700000310043 [20:33:41]line Вода Жалалабат 27 1л [20:33:41]line 1.000 * 60.00 [20:33:41]line = 60.00 [20:33:41]line НДС 12% НСП 1% [20:33:41]line > о реализуемом товаре [20:33:41]line ИТОГО: 60.00 [20:33:41]line НСП 1% : 0.53 [20:33:41]line НДС 12% : 6.37 [20:33:41]line Наличными: 0.00 [20:33:41]line Безнал.: 60.00 [20:33:41]line Место: АЗС № 176 "Партнер Нефть" [20:33:41]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:33:41]line СНО: Общий режим [20:33:41]line Чек 86 23.09.2024 20:33 [20:33:41]line Смена: 181 ФФД: 1.0 [20:33:41]line ЗНМ: 0300000010 [20:33:41]line РНМ: 0000000000152968 [20:33:41]line Версия ККМ: v1.0 [20:33:41]line Платежная система: O! деньги [20:33:41]line ФМ: 0000000000959456 [20:33:41]line ФД: 18810 [20:33:41]line ФПД: 8457303949031 [20:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T203341&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18810&fm=8457303949031&tin=02508201610067®Number=0000000000152968&sum=6000 [20:33:41]line 0 [20:33:41]OFD Sender: Processing packet 18810 [packets to send 7, broken 6] [20:33:41]ProducePacketName [20:33:41]name=ofd_packets/00018810 [20:33:41]OFD Sender: To server: pG, [20:33:41]CommunicateWithHost lk.salyk.kg:30040 [20:33:41]ConnectInit lk.salyk.kg [20:33:41]written 0, free lines is 4095 [20:33:41]Connected sock=10 [20:33:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 92 F0 20 01 4E 19 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 D0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7A 49 00 00 35 04 06 00 07 B1 1E 98 FE E7 94 B7 5D 98 FD E1 87 10 [20:33:42]Write to MH i2c: 01 00 00 A9 0B B4 [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 07 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: 01 07 00 A9 0B 00 00 00 00 00 04 0D CC [20:33:42]RasterBufferAndPrint [20:33:42]line [20:33:42]line [20:33:42]line [20:33:42]line [20:33:42]line [20:33:42]written 0, free lines is 3341 [20:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 65 C1 47 00 C4 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 35 39 34 35 36 10 04 04 00 7A 49 00 00 F4 03 04 00 08 7A F1 66 B6 04 01 00 00 52 58 23 DF ED 2E 2C F6 [20:33:42]CommunicateWithHost err = 0 [20:33:42]CheckOFDResponse [20:33:42]1017 (14) - 77093643461234 [20:33:42]1041 (16) - 0000000000959456 [20:33:42]1040 (4) - 18810 [20:33:42]1012 (4) - 23.09.2024 14:24 [20:33:42]1206 (1) - 0 [20:33:42]OFD Sender: Remove packet 18810 [20:33:42]ProducePacketName [20:33:42]name=ofd_packets/00018810 [20:33:42]NVStorageDeleteData [20:33:42]MH_Cut [20:33:42]Write to MH i2c: D1 01 00 B0 0B 01 8D [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: D1 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: D1 01 00 [20:33:42]MH_I2C_Read... [20:33:42]Read from MH i2c: D1 01 00 B0 0B 00 8C [20:33:42]Write to MH i2c: 01 00 00 B1 0B BC [20:33:42]Write i2c OK [20:33:42]MH_I2C_Read... [20:33:42]OFD Sender: No OFD packet to send [20:33:42]*** Cut start [20:33:42]*** Partial cut [20:33:42]*** CUTSNS_PIN = 1 [20:33:42]*** CUTSNS_PIN = 0 [20:33:42]*** Brake cut motor [20:33:43]Read from MH i2c: 01 [20:33:43]MH_I2C_Read... [20:33:43]*** Stop cut motor [20:33:43]*** Cut end [20:33:43]Read from MH i2c: 01 07 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 FF 0F D1 [20:33:43]process_action close_receipt done [20:33:43]requested_data is exist [20:33:43]produce_requested_data [20:33:43]requested_item fm.sn is exist - process it [20:33:43]wFMCommunicate request_size=4 [20:33:43]MH_SAM_APDU [20:33:43]CAPDU: 80 11 00 00 [20:33:43]Write to MH i2c: E2 08 00 B2 0B 80 11 00 00 00 00 00 00 37 [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:43]Read from MH i2c: E2 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 17 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 17 00 B2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 90 [20:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:33:43]wFMCommunicate OK [20:33:43]requested_item fd.num is exist - process it [20:33:43]SAM_PROTO_GetFieldsCounters [20:33:43]wFMCommunicate request_size=4 [20:33:43]MH_SAM_APDU [20:33:43]CAPDU: 80 13 00 00 [20:33:43]Write to MH i2c: E2 08 00 B3 0B 80 13 00 00 00 00 00 00 3A [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:43]Read from MH i2c: E2 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 62 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 62 00 B3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7A 49 00 00 0E 04 04 00 B5 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 E1 [20:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7A 49 00 00 0E 04 04 00 B5 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 [20:33:43]wFMCommunicate OK [20:33:43]SAM_PROTO_GetFieldsCounters done [20:33:43]requested_item shift.num is exist - process it [20:33:43]requested_item shift.opened is exist - process it [20:33:43]req_shift_opened [20:33:43]FM_GetShiftState [20:33:43]SAM_PROTO_GetShiftState [20:33:43]wFMCommunicate request_size=4 [20:33:43]MH_SAM_APDU [20:33:43]CAPDU: 80 13 01 00 [20:33:43]Write to MH i2c: E2 08 00 B4 0B 80 13 01 00 00 00 00 00 3C [20:33:43]Write i2c OK [20:33:43]MH_I2C_Read... [20:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:43]Read from MH i2c: E2 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 0E 00 [20:33:43]MH_I2C_Read... [20:33:43]Read from MH i2c: E2 0E 00 B4 0B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D4 [20:33:43]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:33:43]wFMCommunicate OK [20:33:43]SAM_PROTO_GetShiftState done [20:33:43]FM_GetShiftState done [20:33:43]req_shift_opened done [20:33:43]requested_item shift.open_date is exist - process it [20:33:43]req_shift_open_date [20:33:43]req_shift_open_date done [20:33:43]produce_requested_data done [20:33:43]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18810,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [20:33:43]process_action_free close_receipt [20:33:43]json_value_free [20:33:43]json_value_free done [20:33:43]process_json_proto returns [20:33:43]Send response to host [20:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18810,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [20:33:43]free response buf [20:33:43]execute_script done [20:33:43]execute_script returns [20:33:43]free content buf [20:33:43]Sock 9.Close socket [20:33:43]Sock 9.Thread stoped [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:51]accept exits with 7 [20:46:51]New connection [20:46:51]New thread 3066608996 created [20:46:51]Thread 3066752356 joined [20:46:51]Waiting for new connection... [20:46:51] Sock 7.Parse request [20:46:51]Sock 7.Check first char [20:46:51]Sock 7.First char is OK [20:46:51]request: POST /json_proto HTTP/1.0 [20:46:51]Method: POST [20:46:51]URL: /json_proto [20:46:51]Method is POST - this is cgi request [20:46:51]url: /json_proto [20:46:51]query_string will be loaded in cgi processing [20:46:51]execute_cgi json_proto POST (null) [20:46:51]execute_cgi path=json_proto method=POST [20:46:51]POST find Content-Length [20:46:51]Host: 172.17.62.196:8080 [20:46:51]Content-Length: 808 [20:46:51]Content-Type: application/json [20:46:51] [20:46:51]POST finish read [20:46:51]Found Content-Length = 808 [20:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16728", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:51]execute_script... [20:46:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16728", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:51]POST & json_proto [20:46:51]process_json_proto [20:46:51]json parsed OK: [20:46:51]protocol is kg_v1.0 [20:46:51]action value=close_receipt [20:46:51]process_action close_receipt [20:46:51]cmd_close_receipt [20:46:51]MH_GetDate [20:46:51]Write to MH i2c: F0 00 00 B5 0B AF [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: F0 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: F0 09 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: F0 09 00 B5 0B 00 BD D3 F1 66 CE CC 0E 66 AD [20:46:51]GetLastDocTimeStamp 1727123621 [20:46:51]current date 1727124413 [20:46:51]FM_GetShiftState [20:46:51]SAM_PROTO_GetShiftState [20:46:51]wFMCommunicate request_size=4 [20:46:51]MH_SAM_APDU [20:46:51]CAPDU: 80 13 01 00 [20:46:51]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [20:46:51]Write i2c OK [20:46:51]MH_I2C_Read... [20:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:51]Read from MH i2c: E2 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 0E 00 [20:46:51]MH_I2C_Read... [20:46:51]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D6 [20:46:51]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:46:51]wFMCommunicate OK [20:46:51]SAM_PROTO_GetShiftState done [20:46:51]FM_GetShiftState done [20:46:51]opened in 1727050372 [20:46:51]opened+sec_in_day 1727136772 [20:46:51]quantity*price = 16000 [20:46:51]sum+1 = 16001 [20:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 87 23.09.2024 20:46 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18811 ФПД: 124567863708764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204654&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18811&fm=124567863708764&tin=02508201610067®Number=0000000000152968&sum=16000 0 [20:46:52]StoreToDocumentArchive [20:46:52]shift 181 fd 18811 [20:46:52]save to /storage/0181/doc_00018811 [20:46:52]save last doc name /storage/0181/doc_00018811 to /storage/kkm_last_doc_name [20:46:52]save OK [20:46:52]Clear old archive folders... [20:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:46:52]tlvbuf is 00BD2520 [20:46:52]SAM_PROTO_ClearQueue [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 09 00 00 [20:46:52]Write to MH i2c: E2 08 00 C3 0B 80 09 00 00 00 00 00 00 40 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [20:46:52]RAPDU: 90 00 [20:46:52]wFMCommunicate OK [20:46:52]SAM_PROTO_ClearQueue done [20:46:52]KKMCreateOFDPacket [20:46:52]OFDProtocolAddRootSTLVToBuf [20:46:52]FM_MakeSignedData [20:46:52]FM_MakeSignedData [20:46:52]SAM_PROTO_SignData [20:46:52]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 0D 01 02 [20:46:53]Write to MH i2c: E2 08 00 C4 0B 80 0D 01 02 00 00 00 00 48 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 03 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [20:46:53]RAPDU: 90 00 [20:46:53]wFMCommunicate OK [20:46:53]wFMCommunicate request_size=255 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [20:46:53]Write to MH i2c: E2 02 01 C5 0B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 A4 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]OFD Sender: No OFD packet to send [20:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 03 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [20:46:53]RAPDU: 90 00 [20:46:53]wFMCommunicate OK [20:46:53]wFMCommunicate request_size=35 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7B 49 00 00 35 04 06 00 71 4B 37 44 4C 5C [20:46:53]Write to MH i2c: E2 26 00 C6 0B 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7B 49 00 00 35 04 06 00 71 4B 37 44 4C 5C 00 00 E7 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 03 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [20:46:53]RAPDU: 90 00 [20:46:53]wFMCommunicate OK [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 0D 03 02 [20:46:53]Write to MH i2c: E2 08 00 C7 0B 80 0D 03 02 00 00 00 00 4D [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0B 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0B 00 C7 0B 00 A9 7C C1 60 FC BC 66 CD 90 00 7F [20:46:53]RAPDU: A9 7C C1 60 FC BC 66 CD 90 00 [20:46:53]wFMCommunicate OK [20:46:53]SAM_PROTO_SignData done [20:46:53]FM_MakeSignedData done [20:46:53]CreateOFDProtocolMessage [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 11 00 00 [20:46:53]Write to MH i2c: E2 08 00 C8 0B 80 11 00 00 00 00 00 00 4D [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 17 00 [20:46:53]MH_I2C_Read... [20:46:53]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 35 39 34 35 36 90 00 A6 [20:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:46:53]wFMCommunicate OK [20:46:53]CreateOFDProtocolMessage done [20:46:53]OFDSenderStorePacket 18811 [20:46:53]StoreOFDPacket docnum=18811 [20:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 DA A5 20 01 9A 25 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7B 49 00 00 35 04 06 00 71 4B 37 44 4C 5C A9 7C C1 60 FC BC 66 CD [20:46:53]CheckFolder [20:46:53]dirname=/storage/ofd_packets [20:46:53]CheckFolder done [20:46:53]ProducePacketName [20:46:53]name=ofd_packets/00018811 [20:46:53]NVStorageSaveData ofd_packets/00018811 [20:46:53]File name is /storage/ofd_packets/00018811 [20:46:53]Write 326 bytes [20:46:53]NVStorageSaveData done [20:46:53]OFDSenderStorePacket done [20:46:53]KKMCreateOFDPacket done [20:46:53]NVStorageSaveData kkm_last_timestamp [20:46:53]File name is /storage/kkm_last_timestamp [20:46:53]Write 4 bytes [20:46:53]NVStorageSaveData done [20:46:53]ExternCall_PrintAddStr [20:46:53]wPrintStart [20:46:53]Write to MH i2c: 01 00 00 C9 0B D4 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 C9 0B 00 00 00 00 00 FF 0F E9 [20:46:53]RasterBufferAndPrint [20:46:53]line Счет N : (3)16728 [20:46:53]line ИНН: 02508201610067 [20:46:53]line Контрольно-Кассовый Чек [20:46:53]line ПРОДАЖА [20:46:53]line Товар: 4860019001346 [20:46:53]line Вода Боржоми 0,5л ст [20:46:53]line 1.000 * 160.00 [20:46:53]line = 160.00 [20:46:53]line НДС 12% НСП 1% [20:46:53]line > о реализуемом товаре [20:46:53]line ИТОГО: 160.00 [20:46:53]line НСП 1% : 1.42 [20:46:53]line НДС 12% : 16.99 [20:46:53]line Наличными: 0.00 [20:46:53]line Безнал.: 160.00 [20:46:53]line Место: АЗС № 176 "Партнер Нефть" [20:46:53]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:46:53]line СНО: Общий режим [20:46:53]line Чек 87 23.09.2024 20:46 [20:46:53]line Смена: 181 ФФД: 1.0 [20:46:53]line ЗНМ: 0300000010 [20:46:53]line РНМ: 0000000000152968 [20:46:53]line Версия ККМ: v1.0 [20:46:53]line Платежная система: O! деньги [20:46:53]line ФМ: 0000000000959456 [20:46:53]line ФД: 18811 [20:46:53]line ФПД: 124567863708764 [20:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204654&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18811&fm=124567863708764&tin=02508201610067®Number=0000000000152968&sum=16000 [20:46:53]line 0 [20:46:53]OFD Sender: Processing packet 18811 [packets to send 7, broken 6] [20:46:53]ProducePacketName [20:46:53]name=ofd_packets/00018811 [20:46:53]OFD Sender: To server: pG, [20:46:53]CommunicateWithHost lk.salyk.kg:30040 [20:46:53]ConnectInit lk.salyk.kg [20:46:53]written 0, free lines is 4095 [20:46:54]Connected sock=10 [20:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 DA A5 20 01 9A 25 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 BE D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7B 49 00 00 35 04 06 00 71 4B 37 44 4C 5C A9 7C C1 60 FC BC 66 CD [20:46:54]Write to MH i2c: 01 00 00 F3 0B FE [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: 01 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: 01 07 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: 01 07 00 F3 0B 00 00 00 00 00 00 0D 12 [20:46:54]RasterBufferAndPrint [20:46:54]line [20:46:54]line [20:46:54]line [20:46:54]line [20:46:54]line [20:46:54]written 0, free lines is 3334 [20:46:54]MH_Cut [20:46:54]Write to MH i2c: D1 01 00 FA 0B 01 D7 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: D1 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: D1 01 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: D1 01 00 FA 0B 00 D6 [20:46:54]Write to MH i2c: 01 00 00 FB 0B 06 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 78 52 47 00 54 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 35 39 34 35 36 10 04 04 00 7B 49 00 00 F4 03 04 00 21 7D F1 66 B6 04 01 00 00 C2 7C 8E 90 EE EC EC 31 [20:46:54]CommunicateWithHost err = 0 [20:46:54]CheckOFDResponse [20:46:54]1017 (14) - 77093643461234 [20:46:54]1041 (16) - 0000000000959456 [20:46:54]1040 (4) - 18811 [20:46:54]1012 (4) - 23.09.2024 14:37 [20:46:54]1206 (1) - 0 [20:46:54]OFD Sender: Remove packet 18811 [20:46:54]ProducePacketName [20:46:54]name=ofd_packets/00018811 [20:46:54]NVStorageDeleteData [20:46:54]*** Cut start [20:46:54]*** Partial cut [20:46:54]*** CUTSNS_PIN = 1 [20:46:54]OFD Sender: No OFD packet to send [20:46:54]*** CUTSNS_PIN = 0 [20:46:55]*** Brake cut motor [20:46:55]Read from MH i2c: 01 [20:46:55]MH_I2C_Read... [20:46:55]*** Stop cut motor [20:46:55]*** Cut end [20:46:55]Read from MH i2c: 01 07 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: 01 07 00 FB 0B 00 00 00 00 00 FF 0F 1B [20:46:55]process_action close_receipt done [20:46:55]requested_data is exist [20:46:55]produce_requested_data [20:46:55]requested_item fm.sn is exist - process it [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 11 00 00 [20:46:55]Write to MH i2c: E2 08 00 FC 0B 80 11 00 00 00 00 00 00 81 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 17 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 17 00 FC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DA [20:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:46:55]wFMCommunicate OK [20:46:55]requested_item fd.num is exist - process it [20:46:55]SAM_PROTO_GetFieldsCounters [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 13 00 00 [20:46:55]Write to MH i2c: E2 08 00 FD 0B 80 13 00 00 00 00 00 00 84 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 62 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 62 00 FD 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7B 49 00 00 0E 04 04 00 B5 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 2F [20:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7B 49 00 00 0E 04 04 00 B5 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 [20:46:55]wFMCommunicate OK [20:46:55]SAM_PROTO_GetFieldsCounters done [20:46:55]requested_item shift.num is exist - process it [20:46:55]requested_item shift.opened is exist - process it [20:46:55]req_shift_opened [20:46:55]FM_GetShiftState [20:46:55]SAM_PROTO_GetShiftState [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 13 01 00 [20:46:55]Write to MH i2c: E2 08 00 FE 0B 80 13 01 00 00 00 00 00 86 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 0E 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 0E 00 FE 0B 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 1E [20:46:55]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:46:55]wFMCommunicate OK [20:46:55]SAM_PROTO_GetShiftState done [20:46:55]FM_GetShiftState done [20:46:55]req_shift_opened done [20:46:55]requested_item shift.open_date is exist - process it [20:46:55]req_shift_open_date [20:46:55]req_shift_open_date done [20:46:55]produce_requested_data done [20:46:55]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18811,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [20:46:55]process_action_free close_receipt [20:46:55]json_value_free [20:46:55]json_value_free done [20:46:55]process_json_proto returns [20:46:55]Send response to host [20:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18811,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [20:46:55]free response buf [20:46:55]execute_script done [20:46:55]execute_script returns [20:46:55]free content buf [20:46:55]Sock 7.Close socket [20:46:55]Sock 7.Thread stoped [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:43]accept exits with 9 [20:47:43]New connection [20:47:43]New thread 3066752356 created [20:47:43]Thread 3066608996 joined [20:47:43]Waiting for new connection... [20:47:43] Sock 9.Parse request [20:47:43]Sock 9.Check first char [20:47:43]Sock 9.First char is OK [20:47:43]request: POST /json_proto HTTP/1.0 [20:47:43]Method: POST [20:47:43]URL: /json_proto [20:47:43]Method is POST - this is cgi request [20:47:43]url: /json_proto [20:47:43]query_string will be loaded in cgi processing [20:47:43]execute_cgi json_proto POST (null) [20:47:43]execute_cgi path=json_proto method=POST [20:47:43]POST find Content-Length [20:47:43]Host: 172.17.62.196:8080 [20:47:43]Content-Length: 627 [20:47:43]Content-Type: application/json [20:47:43] [20:47:43]POST finish read [20:47:43]Found Content-Length = 627 [20:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16729", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:43]execute_script... [20:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16729", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:43]POST & json_proto [20:47:43]process_json_proto [20:47:43]json parsed OK: [20:47:43]protocol is kg_v1.0 [20:47:43]action value=close_receipt [20:47:43]process_action close_receipt [20:47:43]cmd_close_receipt [20:47:43]MH_GetDate [20:47:43]Write to MH i2c: F0 00 00 FF 0B F9 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: F0 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: F0 09 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: F0 09 00 FF 0B 00 F1 D3 F1 66 CE CC 0E 66 2B [20:47:43]GetLastDocTimeStamp 1727124414 [20:47:43]current date 1727124465 [20:47:43]FM_GetShiftState [20:47:43]SAM_PROTO_GetShiftState [20:47:43]wFMCommunicate request_size=4 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 13 01 00 [20:47:43]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 0E 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 21 [20:47:43]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:47:43]wFMCommunicate OK [20:47:43]SAM_PROTO_GetShiftState done [20:47:43]FM_GetShiftState done [20:47:43]opened in 1727050372 [20:47:43]opened+sec_in_day 1727136772 [20:47:43]quantity*price = 13900 [20:47:43]sum+1 = 13901 [20:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 88 23.09.2024 20:47 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18812 ФПД: 213750123005176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204745&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18812&fm=213750123005176&tin=02508201610067®Number=0000000000152968&sum=13900 0 [20:47:44]StoreToDocumentArchive [20:47:44]shift 181 fd 18812 [20:47:44]save to /storage/0181/doc_00018812 [20:47:44]save last doc name /storage/0181/doc_00018812 to /storage/kkm_last_doc_name [20:47:44]save OK [20:47:44]Clear old archive folders... [20:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=280 [20:47:44]tlvbuf is 00BF6040 [20:47:44]SAM_PROTO_ClearQueue [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 09 00 00 [20:47:44]Write to MH i2c: E2 08 00 0D 0C 80 09 00 00 00 00 00 00 8B [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 03 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 03 00 0D 0C 00 90 00 8D [20:47:44]RAPDU: 90 00 [20:47:44]wFMCommunicate OK [20:47:44]SAM_PROTO_ClearQueue done [20:47:44]KKMCreateOFDPacket [20:47:44]OFDProtocolAddRootSTLVToBuf [20:47:44]FM_MakeSignedData [20:47:44]FM_MakeSignedData [20:47:44]SAM_PROTO_SignData [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 0D 01 02 [20:47:44]Write to MH i2c: E2 08 00 0E 0C 80 0D 01 02 00 00 00 00 93 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 03 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 03 00 0E 0C 00 90 00 8E [20:47:44]RAPDU: 90 00 [20:47:44]wFMCommunicate OK [20:47:44]wFMCommunicate request_size=255 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F1 D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 [20:47:44]Write to MH i2c: E2 02 01 0F 0C 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F1 D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 00 92 [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]OFD Sender: No OFD packet to send [20:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:45]Read from MH i2c: E2 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 03 00 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [20:47:45]RAPDU: 90 00 [20:47:45]wFMCommunicate OK [20:47:45]wFMCommunicate request_size=39 [20:47:45]MH_SAM_APDU [20:47:45]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7C 49 00 00 35 04 06 00 C2 67 94 27 04 F8 [20:47:45]Write to MH i2c: E2 2A 00 10 0C 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7C 49 00 00 35 04 06 00 C2 67 94 27 04 F8 00 00 FC [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:45]Read from MH i2c: E2 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 03 00 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [20:47:45]RAPDU: 90 00 [20:47:45]wFMCommunicate OK [20:47:45]wFMCommunicate request_size=4 [20:47:45]MH_SAM_APDU [20:47:45]CAPDU: 80 0D 03 02 [20:47:45]Write to MH i2c: E2 08 00 11 0C 80 0D 03 02 00 00 00 00 98 [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:45]Read from MH i2c: E2 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 0B 00 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 0B 00 11 0C 00 5E 79 3D AC F2 20 3A 50 90 00 F5 [20:47:45]RAPDU: 5E 79 3D AC F2 20 3A 50 90 00 [20:47:45]wFMCommunicate OK [20:47:45]SAM_PROTO_SignData done [20:47:45]FM_MakeSignedData done [20:47:45]CreateOFDProtocolMessage [20:47:45]wFMCommunicate request_size=4 [20:47:45]MH_SAM_APDU [20:47:45]CAPDU: 80 11 00 00 [20:47:45]Write to MH i2c: E2 08 00 12 0C 80 11 00 00 00 00 00 00 98 [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:45]Read from MH i2c: E2 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 17 00 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: E2 17 00 12 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F1 [20:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:47:45]wFMCommunicate OK [20:47:45]CreateOFDProtocolMessage done [20:47:45]OFDSenderStorePacket 18812 [20:47:45]StoreOFDPacket docnum=18812 [20:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 A0 2D 24 01 82 DC 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F1 D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7C 49 00 00 35 04 06 00 C2 67 94 27 04 F8 5E 79 3D AC F2 20 3A 50 [20:47:45]CheckFolder [20:47:45]dirname=/storage/ofd_packets [20:47:45]CheckFolder done [20:47:45]ProducePacketName [20:47:45]name=ofd_packets/00018812 [20:47:45]NVStorageSaveData ofd_packets/00018812 [20:47:45]File name is /storage/ofd_packets/00018812 [20:47:45]Write 330 bytes [20:47:45]NVStorageSaveData done [20:47:45]OFDSenderStorePacket done [20:47:45]KKMCreateOFDPacket done [20:47:45]NVStorageSaveData kkm_last_timestamp [20:47:45]File name is /storage/kkm_last_timestamp [20:47:45]Write 4 bytes [20:47:45]NVStorageSaveData done [20:47:45]ExternCall_PrintAddStr [20:47:45]wPrintStart [20:47:45]Write to MH i2c: 01 00 00 13 0C 1F [20:47:45]Write i2c OK [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: 01 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: 01 07 00 [20:47:45]MH_I2C_Read... [20:47:45]Read from MH i2c: 01 07 00 13 0C 00 00 00 00 00 FF 0F 34 [20:47:45]RasterBufferAndPrint [20:47:45]line Счет N : (3)16729 [20:47:45]line ИНН: 02508201610067 [20:47:45]line Контрольно-Кассовый Чек [20:47:45]line ПРОДАЖА [20:47:45]line Товар: 48741231 [20:47:45]line Сигареты Winston Super Slims Silver [20:47:45]line 1.000 * 139.00 [20:47:45]line = 139.00 [20:47:45]line НДС 12% НСП 1% [20:47:45]line > о реализуемом товаре [20:47:45]line ИТОГО: 139.00 [20:47:45]line НСП 1% : 1.23 [20:47:45]line НДС 12% : 14.76 [20:47:45]line Наличными: 139.00 [20:47:45]line Безнал.: 0.00 [20:47:45]line Место: АЗС № 176 "Партнер Нефть" [20:47:45]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:47:45]line СНО: Общий режим [20:47:45]line Чек 88 23.09.2024 20:47 [20:47:45]line Смена: 181 ФФД: 1.0 [20:47:45]line ЗНМ: 0300000010 [20:47:45]line РНМ: 0000000000152968 [20:47:45]line Версия ККМ: v1.0 [20:47:45]line ФМ: 0000000000959456 [20:47:45]line ФД: 18812 [20:47:45]line ФПД: 213750123005176 [20:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T204745&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18812&fm=213750123005176&tin=02508201610067®Number=0000000000152968&sum=13900 [20:47:45]line 0 [20:47:45]OFD Sender: Processing packet 18812 [packets to send 7, broken 6] [20:47:45]ProducePacketName [20:47:45]name=ofd_packets/00018812 [20:47:45]OFD Sender: To server: pG, [20:47:45]CommunicateWithHost lk.salyk.kg:30040 [20:47:45]ConnectInit lk.salyk.kg [20:47:45]written 0, free lines is 4095 [20:47:45]Connected sock=10 [20:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 A0 2D 24 01 82 DC 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F1 D3 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7C 49 00 00 35 04 06 00 C2 67 94 27 04 F8 5E 79 3D AC F2 20 3A 50 [20:47:46]Write to MH i2c: 01 00 00 3C 0C 48 [20:47:46]Write i2c OK [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: 01 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: 01 07 00 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: 01 07 00 3C 0C 00 00 00 00 00 0D 0D 69 [20:47:46]RasterBufferAndPrint [20:47:46]line [20:47:46]line [20:47:46]line [20:47:46]line [20:47:46]line [20:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 8A E8 47 00 4F 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 35 39 34 35 36 10 04 04 00 7C 49 00 00 F4 03 04 00 55 7D F1 66 B6 04 01 00 00 66 25 E9 C7 A1 7D 0B 50 [20:47:46]CommunicateWithHost err = 0 [20:47:46]CheckOFDResponse [20:47:46]1017 (14) - 77093643461234 [20:47:46]1041 (16) - 0000000000959456 [20:47:46]1040 (4) - 18812 [20:47:46]1012 (4) - 23.09.2024 14:38 [20:47:46]1206 (1) - 0 [20:47:46]OFD Sender: Remove packet 18812 [20:47:46]ProducePacketName [20:47:46]name=ofd_packets/00018812 [20:47:46]NVStorageDeleteData [20:47:46]written 0, free lines is 3350 [20:47:46]MH_Cut [20:47:46]Write to MH i2c: D1 01 00 43 0C 01 21 [20:47:46]Write i2c OK [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: D1 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: D1 01 00 [20:47:46]MH_I2C_Read... [20:47:46]Read from MH i2c: D1 01 00 43 0C 00 20 [20:47:46]Write to MH i2c: 01 00 00 44 0C 50 [20:47:46]Write i2c OK [20:47:46]MH_I2C_Read... [20:47:46]OFD Sender: No OFD packet to send [20:47:46]*** Cut start [20:47:46]*** Partial cut [20:47:46]*** CUTSNS_PIN = 1 [20:47:46]*** CUTSNS_PIN = 0 [20:47:47]*** Brake cut motor [20:47:47]Read from MH i2c: 01 [20:47:47]MH_I2C_Read... [20:47:47]*** Stop cut motor [20:47:47]*** Cut end [20:47:47]Read from MH i2c: 01 07 00 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 FF 0F 65 [20:47:47]process_action close_receipt done [20:47:47]requested_data is exist [20:47:47]produce_requested_data [20:47:47]requested_item fm.sn is exist - process it [20:47:47]wFMCommunicate request_size=4 [20:47:47]MH_SAM_APDU [20:47:47]CAPDU: 80 11 00 00 [20:47:47]Write to MH i2c: E2 08 00 45 0C 80 11 00 00 00 00 00 00 CB [20:47:47]Write i2c OK [20:47:47]MH_I2C_Read... [20:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:47]Read from MH i2c: E2 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: E2 17 00 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: E2 17 00 45 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 24 [20:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:47:47]wFMCommunicate OK [20:47:47]requested_item fd.num is exist - process it [20:47:47]SAM_PROTO_GetFieldsCounters [20:47:47]wFMCommunicate request_size=4 [20:47:47]MH_SAM_APDU [20:47:47]CAPDU: 80 13 00 00 [20:47:47]Write to MH i2c: E2 08 00 46 0C 80 13 00 00 00 00 00 00 CE [20:47:47]Write i2c OK [20:47:47]MH_I2C_Read... [20:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:47]Read from MH i2c: E2 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: E2 62 00 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: E2 62 00 46 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7C 49 00 00 0E 04 04 00 B5 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 7D [20:47:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7C 49 00 00 0E 04 04 00 B5 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 [20:47:47]wFMCommunicate OK [20:47:47]SAM_PROTO_GetFieldsCounters done [20:47:47]requested_item shift.num is exist - process it [20:47:47]requested_item shift.opened is exist - process it [20:47:47]req_shift_opened [20:47:47]FM_GetShiftState [20:47:47]SAM_PROTO_GetShiftState [20:47:47]wFMCommunicate request_size=4 [20:47:47]MH_SAM_APDU [20:47:47]CAPDU: 80 13 01 00 [20:47:47]Write to MH i2c: E2 08 00 47 0C 80 13 01 00 00 00 00 00 D0 [20:47:47]Write i2c OK [20:47:47]MH_I2C_Read... [20:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:47]Read from MH i2c: E2 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: E2 0E 00 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: E2 0E 00 47 0C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 68 [20:47:47]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:47:47]wFMCommunicate OK [20:47:47]SAM_PROTO_GetShiftState done [20:47:47]FM_GetShiftState done [20:47:47]req_shift_opened done [20:47:47]requested_item shift.open_date is exist - process it [20:47:47]req_shift_open_date [20:47:47]req_shift_open_date done [20:47:47]produce_requested_data done [20:47:47]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18812,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [20:47:47]process_action_free close_receipt [20:47:47]json_value_free [20:47:47]json_value_free done [20:47:47]process_json_proto returns [20:47:47]Send response to host [20:47:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18812,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [20:47:47]free response buf [20:47:47]execute_script done [20:47:47]execute_script returns [20:47:47]free content buf [20:47:47]Sock 9.Close socket [20:47:47]Sock 9.Thread stoped [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]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:36]accept exits with 7 [20:54:36]New connection [20:54:36]New thread 3066608996 created [20:54:36]Thread 3066752356 joined [20:54:36]Waiting for new connection... [20:54:36] Sock 7.Parse request [20:54:36]Sock 7.Check first char [20:54:36]Sock 7.First char is OK [20:54:36]request: POST /json_proto HTTP/1.0 [20:54:36]Method: POST [20:54:36]URL: /json_proto [20:54:36]Method is POST - this is cgi request [20:54:36]url: /json_proto [20:54:36]query_string will be loaded in cgi processing [20:54:36]execute_cgi json_proto POST (null) [20:54:36]execute_cgi path=json_proto method=POST [20:54:36]POST find Content-Length [20:54:36]Host: 172.17.62.196:8080 [20:54:36]Content-Length: 620 [20:54:36]Content-Type: application/json [20:54:36] [20:54:36]POST finish read [20:54:36]Found Content-Length = 620 [20:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16730", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:36]execute_script... [20:54:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16730", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:36]POST & json_proto [20:54:36]process_json_proto [20:54:36]json parsed OK: [20:54:36]protocol is kg_v1.0 [20:54:36]action value=close_receipt [20:54:36]process_action close_receipt [20:54:36]cmd_close_receipt [20:54:36]MH_GetDate [20:54:36]Write to MH i2c: F0 00 00 48 0C 43 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: F0 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: F0 09 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: F0 09 00 48 0C 00 8E D5 F1 66 CE CC 0E 66 14 [20:54:36]GetLastDocTimeStamp 1727124465 [20:54:36]current date 1727124878 [20:54:36]FM_GetShiftState [20:54:36]SAM_PROTO_GetShiftState [20:54:36]wFMCommunicate request_size=4 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 13 01 00 [20:54:36]Write to MH i2c: E2 08 00 49 0C 80 13 01 00 00 00 00 00 D2 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0E 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0E 00 49 0C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 6A [20:54:36]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:54:36]wFMCommunicate OK [20:54:36]SAM_PROTO_GetShiftState done [20:54:36]FM_GetShiftState done [20:54:36]opened in 1727050372 [20:54:36]opened+sec_in_day 1727136772 [20:54:36]quantity*price = 14400 [20:54:36]sum+1 = 14401 [20:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 89 23.09.2024 20:54 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18813 ФПД: 243971845394922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T205438&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18813&fm=243971845394922&tin=02508201610067®Number=0000000000152968&sum=14400 0 [20:54:37]StoreToDocumentArchive [20:54:37]shift 181 fd 18813 [20:54:37]save to /storage/0181/doc_00018813 [20:54:37]save last doc name /storage/0181/doc_00018813 to /storage/kkm_last_doc_name [20:54:37]save OK [20:54:37]Clear old archive folders... [20:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:54:37]tlvbuf is 00BED040 [20:54:37]SAM_PROTO_ClearQueue [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 09 00 00 [20:54:37]Write to MH i2c: E2 08 00 56 0C 80 09 00 00 00 00 00 00 D4 [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [20:54:37]RAPDU: 90 00 [20:54:37]wFMCommunicate OK [20:54:37]SAM_PROTO_ClearQueue done [20:54:37]KKMCreateOFDPacket [20:54:37]OFDProtocolAddRootSTLVToBuf [20:54:37]FM_MakeSignedData [20:54:37]FM_MakeSignedData [20:54:37]SAM_PROTO_SignData [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 0D 01 02 [20:54:37]Write to MH i2c: E2 08 00 57 0C 80 0D 01 02 00 00 00 00 DC [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [20:54:37]RAPDU: 90 00 [20:54:37]wFMCommunicate OK [20:54:37]wFMCommunicate request_size=255 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8E D5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 [20:54:37]Write to MH i2c: E2 02 01 58 0C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8E D5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 00 00 00 [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 03 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [20:54:38]RAPDU: 90 00 [20:54:38]wFMCommunicate OK [20:54:38]wFMCommunicate request_size=32 [20:54:38]MH_SAM_APDU [20:54:38]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 34 35 36 10 04 04 00 7D 49 00 00 35 04 06 00 DD E4 1F 2E 11 EA [20:54:38]Write to MH i2c: E2 23 00 59 0C 80 0D 02 02 1B 00 30 30 30 39 35 39 34 35 36 10 04 04 00 7D 49 00 00 35 04 06 00 DD E4 1F 2E 11 EA 00 00 11 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 03 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 03 00 59 0C 00 90 00 D9 [20:54:38]RAPDU: 90 00 [20:54:38]wFMCommunicate OK [20:54:38]wFMCommunicate request_size=4 [20:54:38]MH_SAM_APDU [20:54:38]CAPDU: 80 0D 03 02 [20:54:38]Write to MH i2c: E2 08 00 5A 0C 80 0D 03 02 00 00 00 00 E1 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 0B 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 0B 00 5A 0C 00 71 95 D7 85 55 29 47 02 90 00 0B [20:54:38]RAPDU: 71 95 D7 85 55 29 47 02 90 00 [20:54:38]wFMCommunicate OK [20:54:38]SAM_PROTO_SignData done [20:54:38]FM_MakeSignedData done [20:54:38]CreateOFDProtocolMessage [20:54:38]wFMCommunicate request_size=4 [20:54:38]MH_SAM_APDU [20:54:38]CAPDU: 80 11 00 00 [20:54:38]Write to MH i2c: E2 08 00 5B 0C 80 11 00 00 00 00 00 00 E1 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 17 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 17 00 5B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3A [20:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:54:38]wFMCommunicate OK [20:54:38]CreateOFDProtocolMessage done [20:54:38]OFDSenderStorePacket 18813 [20:54:38]StoreOFDPacket docnum=18813 [20:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 EE 0C 1D 01 6F 2E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8E D5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7D 49 00 00 35 04 06 00 DD E4 1F 2E 11 EA 71 95 D7 85 55 29 47 02 [20:54:38]CheckFolder [20:54:38]dirname=/storage/ofd_packets [20:54:38]CheckFolder done [20:54:38]ProducePacketName [20:54:38]name=ofd_packets/00018813 [20:54:38]NVStorageSaveData ofd_packets/00018813 [20:54:38]File name is /storage/ofd_packets/00018813 [20:54:38]Write 323 bytes [20:54:38]NVStorageSaveData done [20:54:38]OFDSenderStorePacket done [20:54:38]KKMCreateOFDPacket done [20:54:38]NVStorageSaveData kkm_last_timestamp [20:54:38]File name is /storage/kkm_last_timestamp [20:54:38]Write 4 bytes [20:54:38]NVStorageSaveData done [20:54:38]ExternCall_PrintAddStr [20:54:38]wPrintStart [20:54:38]Write to MH i2c: 01 00 00 5C 0C 68 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 5C 0C 00 00 00 00 00 FF 0F 7D [20:54:38]RasterBufferAndPrint [20:54:38]line Счет N : (3)16730 [20:54:38]line ИНН: 02508201610067 [20:54:38]line Контрольно-Кассовый Чек [20:54:38]line ПРОДАЖА [20:54:38]line Товар: 48747059 [20:54:38]line Сигареты Winston Legend Blue [20:54:38]line 1.000 * 144.00 [20:54:38]line = 144.00 [20:54:38]line НДС 12% НСП 1% [20:54:38]line > о реализуемом товаре [20:54:38]line ИТОГО: 144.00 [20:54:38]line НСП 1% : 1.27 [20:54:38]line НДС 12% : 15.29 [20:54:38]line Наличными: 144.00 [20:54:38]line Безнал.: 0.00 [20:54:38]line Место: АЗС № 176 "Партнер Нефть" [20:54:38]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [20:54:38]line СНО: Общий режим [20:54:38]line Чек 89 23.09.2024 20:54 [20:54:38]line Смена: 181 ФФД: 1.0 [20:54:38]line ЗНМ: 0300000010 [20:54:38]line РНМ: 0000000000152968 [20:54:38]line Версия ККМ: v1.0 [20:54:38]line ФМ: 0000000000959456 [20:54:38]line ФД: 18813 [20:54:38]line ФПД: 243971845394922 [20:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T205438&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18813&fm=243971845394922&tin=02508201610067®Number=0000000000152968&sum=14400 [20:54:38]line 0 [20:54:38]written 0, free lines is 4095 [20:54:38]OFD Sender: Processing packet 18813 [packets to send 7, broken 6] [20:54:38]ProducePacketName [20:54:38]name=ofd_packets/00018813 [20:54:38]OFD Sender: To server: pG, [20:54:38]CommunicateWithHost lk.salyk.kg:30040 [20:54:38]ConnectInit lk.salyk.kg [20:54:38]Connected sock=10 [20:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 25 01 00 00 EE 0C 1D 01 6F 2E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 8E D5 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7D 49 00 00 35 04 06 00 DD E4 1F 2E 11 EA 71 95 D7 85 55 29 47 02 [20:54:39]Write to MH i2c: 01 00 00 85 0C 91 [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: 01 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: 01 07 00 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: 01 07 00 85 0C 00 00 00 00 00 01 0D A6 [20:54:39]RasterBufferAndPrint [20:54:39]line [20:54:39]line [20:54:39]line [20:54:39]line [20:54:39]line [20:54:39]written 0, free lines is 3335 [20:54:39]MH_Cut [20:54:39]Write to MH i2c: D1 01 00 8C 0C 01 6A [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: D1 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: D1 01 00 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: D1 01 00 8C 0C 00 69 [20:54:39]Write to MH i2c: 01 00 00 8D 0C 99 [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4D CB 47 00 E5 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 35 39 34 35 36 10 04 04 00 7D 49 00 00 F4 03 04 00 F1 7E F1 66 B6 04 01 00 00 AA 72 1B AC 86 C8 25 29 [20:54:39]CommunicateWithHost err = 0 [20:54:39]CheckOFDResponse [20:54:39]1017 (14) - 77093643461234 [20:54:39]1041 (16) - 0000000000959456 [20:54:39]1040 (4) - 18813 [20:54:39]1012 (4) - 23.09.2024 14:45 [20:54:39]1206 (1) - 0 [20:54:39]OFD Sender: Remove packet 18813 [20:54:39]ProducePacketName [20:54:39]name=ofd_packets/00018813 [20:54:39]NVStorageDeleteData [20:54:39]OFD Sender: No OFD packet to send [20:54:39]*** Cut start [20:54:39]*** Partial cut [20:54:39]*** CUTSNS_PIN = 1 [20:54:39]*** CUTSNS_PIN = 0 [20:54:39]*** Brake cut motor [20:54:40]Read from MH i2c: 01 [20:54:40]MH_I2C_Read... [20:54:40]*** Stop cut motor [20:54:40]*** Cut end [20:54:40]Read from MH i2c: 01 07 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: 01 07 00 8D 0C 00 00 00 00 00 FF 0F AE [20:54:40]process_action close_receipt done [20:54:40]requested_data is exist [20:54:40]produce_requested_data [20:54:40]requested_item fm.sn is exist - process it [20:54:40]wFMCommunicate request_size=4 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 11 00 00 [20:54:40]Write to MH i2c: E2 08 00 8E 0C 80 11 00 00 00 00 00 00 14 [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:40]Read from MH i2c: E2 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 17 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 17 00 8E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6D [20:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [20:54:40]wFMCommunicate OK [20:54:40]requested_item fd.num is exist - process it [20:54:40]SAM_PROTO_GetFieldsCounters [20:54:40]wFMCommunicate request_size=4 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 13 00 00 [20:54:40]Write to MH i2c: E2 08 00 8F 0C 80 13 00 00 00 00 00 00 17 [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:40]Read from MH i2c: E2 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 62 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 62 00 8F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7D 49 00 00 0E 04 04 00 B5 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 CA [20:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7D 49 00 00 0E 04 04 00 B5 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 [20:54:40]wFMCommunicate OK [20:54:40]SAM_PROTO_GetFieldsCounters done [20:54:40]requested_item shift.num is exist - process it [20:54:40]requested_item shift.opened is exist - process it [20:54:40]req_shift_opened [20:54:40]FM_GetShiftState [20:54:40]SAM_PROTO_GetShiftState [20:54:40]wFMCommunicate request_size=4 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 13 01 00 [20:54:40]Write to MH i2c: E2 08 00 90 0C 80 13 01 00 00 00 00 00 19 [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:40]Read from MH i2c: E2 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 0E 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 0E 00 90 0C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B1 [20:54:40]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [20:54:40]wFMCommunicate OK [20:54:40]SAM_PROTO_GetShiftState done [20:54:40]FM_GetShiftState done [20:54:40]req_shift_opened done [20:54:40]requested_item shift.open_date is exist - process it [20:54:40]req_shift_open_date [20:54:40]req_shift_open_date done [20:54:40]produce_requested_data done [20:54:40]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18813,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [20:54:40]process_action_free close_receipt [20:54:40]json_value_free [20:54:40]json_value_free done [20:54:40]process_json_proto returns [20:54:40]Send response to host [20:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18813,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [20:54:40]free response buf [20:54:40]execute_script done [20:54:40]execute_script returns [20:54:40]free content buf [20:54:40]Sock 7.Close socket [20:54:40]Sock 7.Thread stoped [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:19]accept exits with 9 [21:04:19]New connection [21:04:19]New thread 3066752356 created [21:04:19]Thread 3066608996 joined [21:04:19]Waiting for new connection... [21:04:19] Sock 9.Parse request [21:04:19]Sock 9.Check first char [21:04:19]Sock 9.First char is OK [21:04:19]request: POST /json_proto HTTP/1.0 [21:04:19]Method: POST [21:04:19]URL: /json_proto [21:04:19]Method is POST - this is cgi request [21:04:19]url: /json_proto [21:04:19]query_string will be loaded in cgi processing [21:04:19]execute_cgi json_proto POST (null) [21:04:19]execute_cgi path=json_proto method=POST [21:04:19]POST find Content-Length [21:04:19]Host: 172.17.62.196:8080 [21:04:19]Content-Length: 613 [21:04:19]Content-Type: application/json [21:04:19] [21:04:19]POST finish read [21:04:19]Found Content-Length = 613 [21:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16731", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:19]execute_script... [21:04:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16731", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:19]POST & json_proto [21:04:19]process_json_proto [21:04:19]json parsed OK: [21:04:19]protocol is kg_v1.0 [21:04:19]action value=close_receipt [21:04:19]process_action close_receipt [21:04:19]cmd_close_receipt [21:04:19]MH_GetDate [21:04:19]Write to MH i2c: F0 00 00 91 0C 8C [21:04:19]Write i2c OK [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: F0 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: F0 09 00 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: F0 09 00 91 0C 00 D5 D7 F1 66 CE CC 0E 66 A6 [21:04:19]GetLastDocTimeStamp 1727124878 [21:04:19]current date 1727125461 [21:04:19]FM_GetShiftState [21:04:19]SAM_PROTO_GetShiftState [21:04:19]wFMCommunicate request_size=4 [21:04:19]MH_SAM_APDU [21:04:19]CAPDU: 80 13 01 00 [21:04:19]Write to MH i2c: E2 08 00 92 0C 80 13 01 00 00 00 00 00 1B [21:04:19]Write i2c OK [21:04:19]MH_I2C_Read... [21:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:19]Read from MH i2c: E2 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 0E 00 [21:04:19]MH_I2C_Read... [21:04:19]Read from MH i2c: E2 0E 00 92 0C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B3 [21:04:19]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [21:04:19]wFMCommunicate OK [21:04:19]SAM_PROTO_GetShiftState done [21:04:19]FM_GetShiftState done [21:04:19]opened in 1727050372 [21:04:19]opened+sec_in_day 1727136772 [21:04:19]quantity*price = 11000 [21:04:19]sum+1 = 11001 [21:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 90 23.09.2024 21:04 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18814 ФПД: 230270977017105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T210421&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18814&fm=230270977017105&tin=02508201610067®Number=0000000000152968&sum=11000 0 [21:04:20]StoreToDocumentArchive [21:04:20]shift 181 fd 18814 [21:04:20]save to /storage/0181/doc_00018814 [21:04:20]save last doc name /storage/0181/doc_00018814 to /storage/kkm_last_doc_name [21:04:20]save OK [21:04:20]Clear old archive folders... [21:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=266 [21:04:20]tlvbuf is B6F24400 [21:04:20]SAM_PROTO_ClearQueue [21:04:20]wFMCommunicate request_size=4 [21:04:20]MH_SAM_APDU [21:04:20]CAPDU: 80 09 00 00 [21:04:20]Write to MH i2c: E2 08 00 9F 0C 80 09 00 00 00 00 00 00 1D [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:20]Read from MH i2c: E2 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 03 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [21:04:20]RAPDU: 90 00 [21:04:20]wFMCommunicate OK [21:04:20]SAM_PROTO_ClearQueue done [21:04:20]KKMCreateOFDPacket [21:04:20]OFDProtocolAddRootSTLVToBuf [21:04:20]FM_MakeSignedData [21:04:20]FM_MakeSignedData [21:04:20]SAM_PROTO_SignData [21:04:20]wFMCommunicate request_size=4 [21:04:20]MH_SAM_APDU [21:04:20]CAPDU: 80 0D 01 02 [21:04:20]Write to MH i2c: E2 08 00 A0 0C 80 0D 01 02 00 00 00 00 25 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:20]Read from MH i2c: E2 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 03 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [21:04:20]RAPDU: 90 00 [21:04:20]wFMCommunicate OK [21:04:20]wFMCommunicate request_size=255 [21:04:20]MH_SAM_APDU [21:04:20]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 D5 D7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 [21:04:20]Write to MH i2c: E2 02 01 A1 0C 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 D5 D7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 00 00 B7 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:21]Read from MH i2c: E2 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 03 00 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 03 00 A1 0C 00 90 00 21 [21:04:21]RAPDU: 90 00 [21:04:21]wFMCommunicate OK [21:04:21]wFMCommunicate request_size=25 [21:04:21]MH_SAM_APDU [21:04:21]CAPDU: 80 0D 02 02 14 35 36 10 04 04 00 7E 49 00 00 35 04 06 00 D1 6E 23 C9 85 11 [21:04:21]Write to MH i2c: E2 1C 00 A2 0C 80 0D 02 02 14 00 35 36 10 04 04 00 7E 49 00 00 35 04 06 00 D1 6E 23 C9 85 11 00 00 9A [21:04:21]Write i2c OK [21:04:21]MH_I2C_Read... [21:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:21]Read from MH i2c: E2 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 03 00 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 03 00 A2 0C 00 90 00 22 [21:04:21]RAPDU: 90 00 [21:04:21]wFMCommunicate OK [21:04:21]wFMCommunicate request_size=4 [21:04:21]MH_SAM_APDU [21:04:21]CAPDU: 80 0D 03 02 [21:04:21]Write to MH i2c: E2 08 00 A3 0C 80 0D 03 02 00 00 00 00 2A [21:04:21]Write i2c OK [21:04:21]MH_I2C_Read... [21:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:21]Read from MH i2c: E2 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 0B 00 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 0B 00 A3 0C 00 92 C7 B0 2F 3B FD 4C 25 90 00 0C [21:04:21]RAPDU: 92 C7 B0 2F 3B FD 4C 25 90 00 [21:04:21]wFMCommunicate OK [21:04:21]SAM_PROTO_SignData done [21:04:21]FM_MakeSignedData done [21:04:21]CreateOFDProtocolMessage [21:04:21]wFMCommunicate request_size=4 [21:04:21]MH_SAM_APDU [21:04:21]CAPDU: 80 11 00 00 [21:04:21]Write to MH i2c: E2 08 00 A4 0C 80 11 00 00 00 00 00 00 2A [21:04:21]Write i2c OK [21:04:21]MH_I2C_Read... [21:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:21]Read from MH i2c: E2 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 17 00 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 17 00 A4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 83 [21:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:04:21]wFMCommunicate OK [21:04:21]CreateOFDProtocolMessage done [21:04:21]OFDSenderStorePacket 18814 [21:04:21]StoreOFDPacket docnum=18814 [21:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 7A 41 16 01 73 7C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 D5 D7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7E 49 00 00 35 04 06 00 D1 6E 23 C9 85 11 92 C7 B0 2F 3B FD 4C 25 [21:04:21]CheckFolder [21:04:21]dirname=/storage/ofd_packets [21:04:21]CheckFolder done [21:04:21]ProducePacketName [21:04:21]name=ofd_packets/00018814 [21:04:21]NVStorageSaveData ofd_packets/00018814 [21:04:21]File name is /storage/ofd_packets/00018814 [21:04:21]Write 316 bytes [21:04:21]NVStorageSaveData done [21:04:21]OFDSenderStorePacket done [21:04:21]KKMCreateOFDPacket done [21:04:21]NVStorageSaveData kkm_last_timestamp [21:04:21]File name is /storage/kkm_last_timestamp [21:04:21]Write 4 bytes [21:04:21]NVStorageSaveData done [21:04:21]ExternCall_PrintAddStr [21:04:21]wPrintStart [21:04:21]Write to MH i2c: 01 00 00 A5 0C B1 [21:04:21]Write i2c OK [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: 01 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: 01 07 00 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: 01 07 00 A5 0C 00 00 00 00 00 FF 0F C6 [21:04:21]RasterBufferAndPrint [21:04:21]line Счет N : (3)16731 [21:04:21]line ИНН: 02508201610067 [21:04:21]line Контрольно-Кассовый Чек [21:04:21]line ПРОДАЖА [21:04:21]line Товар: 4870001570071 [21:04:21]line Напиток Pepsi 1л [21:04:21]line 1.000 * 110.00 [21:04:21]line = 110.00 [21:04:21]line НДС 12% НСП 1% [21:04:21]line > о реализуемом товаре [21:04:21]line ИТОГО: 110.00 [21:04:21]line НСП 1% : 0.97 [21:04:21]line НДС 12% : 11.68 [21:04:21]line Наличными: 110.00 [21:04:21]line Безнал.: 0.00 [21:04:21]line Место: АЗС № 176 "Партнер Нефть" [21:04:21]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:04:21]line СНО: Общий режим [21:04:21]line Чек 90 23.09.2024 21:04 [21:04:21]line Смена: 181 ФФД: 1.0 [21:04:21]line ЗНМ: 0300000010 [21:04:21]line РНМ: 0000000000152968 [21:04:21]line Версия ККМ: v1.0 [21:04:21]line ФМ: 0000000000959456 [21:04:21]line ФД: 18814 [21:04:21]line ФПД: 230270977017105 [21:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T210421&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18814&fm=230270977017105&tin=02508201610067®Number=0000000000152968&sum=11000 [21:04:21]line 0 [21:04:21]OFD Sender: Processing packet 18814 [packets to send 7, broken 6] [21:04:21]ProducePacketName [21:04:21]name=ofd_packets/00018814 [21:04:21]OFD Sender: To server: pG, [21:04:21]CommunicateWithHost lk.salyk.kg:30040 [21:04:21]ConnectInit lk.salyk.kg [21:04:21]written 0, free lines is 4095 [21:04:21]Connected sock=10 [21:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 7A 41 16 01 73 7C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 D5 D7 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7E 49 00 00 35 04 06 00 D1 6E 23 C9 85 11 92 C7 B0 2F 3B FD 4C 25 [21:04:22]Write to MH i2c: 01 00 00 CD 0C D9 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: 01 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: 01 07 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 20 0D 0D [21:04:22]RasterBufferAndPrint [21:04:22]line [21:04:22]line [21:04:22]line [21:04:22]line [21:04:22]line [21:04:22]written 0, free lines is 3366 [21:04:22]MH_Cut [21:04:22]Write to MH i2c: D1 01 00 D4 0C 01 B2 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: D1 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: D1 01 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: D1 01 00 D4 0C 00 B1 [21:04:22]Write to MH i2c: 01 00 00 D5 0C E1 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 5C 25 47 00 73 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 35 39 34 35 36 10 04 04 00 7E 49 00 00 F4 03 04 00 38 81 F1 66 B6 04 01 00 00 0B 31 8B 95 86 DF CE 1A [21:04:22]CommunicateWithHost err = 0 [21:04:22]CheckOFDResponse [21:04:22]1017 (14) - 77093643461234 [21:04:22]1041 (16) - 0000000000959456 [21:04:22]1040 (4) - 18814 [21:04:22]1012 (4) - 23.09.2024 14:54 [21:04:22]1206 (1) - 0 [21:04:22]OFD Sender: Remove packet 18814 [21:04:22]ProducePacketName [21:04:22]name=ofd_packets/00018814 [21:04:22]NVStorageDeleteData [21:04:22]OFD Sender: No OFD packet to send [21:04:22]*** Cut start [21:04:22]*** Partial cut [21:04:22]*** CUTSNS_PIN = 1 [21:04:22]*** CUTSNS_PIN = 0 [21:04:22]*** Brake cut motor [21:04:23]Read from MH i2c: 01 [21:04:23]MH_I2C_Read... [21:04:23]*** Stop cut motor [21:04:23]*** Cut end [21:04:23]Read from MH i2c: 01 07 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 FF 0F F6 [21:04:23]process_action close_receipt done [21:04:23]requested_data is exist [21:04:23]produce_requested_data [21:04:23]requested_item fm.sn is exist - process it [21:04:23]wFMCommunicate request_size=4 [21:04:23]MH_SAM_APDU [21:04:23]CAPDU: 80 11 00 00 [21:04:23]Write to MH i2c: E2 08 00 D6 0C 80 11 00 00 00 00 00 00 5C [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:23]Read from MH i2c: E2 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 17 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 17 00 D6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B5 [21:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:04:23]wFMCommunicate OK [21:04:23]requested_item fd.num is exist - process it [21:04:23]SAM_PROTO_GetFieldsCounters [21:04:23]wFMCommunicate request_size=4 [21:04:23]MH_SAM_APDU [21:04:23]CAPDU: 80 13 00 00 [21:04:23]Write to MH i2c: E2 08 00 D7 0C 80 13 00 00 00 00 00 00 5F [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:23]Read from MH i2c: E2 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 62 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 62 00 D7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7E 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7E 49 00 00 0E 04 04 00 B5 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 [21:04:23]wFMCommunicate OK [21:04:23]SAM_PROTO_GetFieldsCounters done [21:04:23]requested_item shift.num is exist - process it [21:04:23]requested_item shift.opened is exist - process it [21:04:23]req_shift_opened [21:04:23]FM_GetShiftState [21:04:23]SAM_PROTO_GetShiftState [21:04:23]wFMCommunicate request_size=4 [21:04:23]MH_SAM_APDU [21:04:23]CAPDU: 80 13 01 00 [21:04:23]Write to MH i2c: E2 08 00 D8 0C 80 13 01 00 00 00 00 00 61 [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:23]Read from MH i2c: E2 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 0E 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 0E 00 D8 0C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F9 [21:04:23]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [21:04:23]wFMCommunicate OK [21:04:23]SAM_PROTO_GetShiftState done [21:04:23]FM_GetShiftState done [21:04:23]req_shift_opened done [21:04:23]requested_item shift.open_date is exist - process it [21:04:23]req_shift_open_date [21:04:23]req_shift_open_date done [21:04:23]produce_requested_data done [21:04:23]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18814,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [21:04:23]process_action_free close_receipt [21:04:23]json_value_free [21:04:23]json_value_free done [21:04:23]process_json_proto returns [21:04:23]Send response to host [21:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18814,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [21:04:23]free response buf [21:04:23]execute_script done [21:04:23]execute_script returns [21:04:23]free content buf [21:04:23]Sock 9.Close socket [21:04:23]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]accept exits with 7 [21:09:42]New connection [21:09:42]New thread 3066608996 created [21:09:42]Thread 3066752356 joined [21:09:42]Waiting for new connection... [21:09:42] Sock 7.Parse request [21:09:42]Sock 7.Check first char [21:09:42]Sock 7.First char is OK [21:09:42]request: POST /json_proto HTTP/1.0 [21:09:42]Method: POST [21:09:42]URL: /json_proto [21:09:42]Method is POST - this is cgi request [21:09:42]url: /json_proto [21:09:42]query_string will be loaded in cgi processing [21:09:42]execute_cgi json_proto POST (null) [21:09:42]execute_cgi path=json_proto method=POST [21:09:42]POST find Content-Length [21:09:42]Host: 172.17.62.196:8080 [21:09:42]Content-Length: 785 [21:09:42]Content-Type: application/json [21:09:42] [21:09:42]POST finish read [21:09:42]Found Content-Length = 785 [21:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)116551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 0.00, "quantity" : 21.970, "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\u000A90855", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:42]execute_script... [21:09: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)116551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 0.00, "quantity" : 21.970, "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\u000A90855", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:42]POST & json_proto [21:09:42]process_json_proto [21:09:42]json parsed OK: [21:09:42]protocol is kg_v1.0 [21:09:42]action value=close_receipt [21:09:42]process_action close_receipt [21:09:42]cmd_close_receipt [21:09:42]MH_GetDate [21:09:42]Write to MH i2c: F0 00 00 D9 0C D4 [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: F0 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: F0 09 00 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: F0 09 00 D9 0C 00 19 D9 F1 66 CE CC 0E 66 34 [21:09:42]GetLastDocTimeStamp 1727125461 [21:09:42]current date 1727125785 [21:09:42]FM_GetShiftState [21:09:42]SAM_PROTO_GetShiftState [21:09:42]wFMCommunicate request_size=4 [21:09:42]MH_SAM_APDU [21:09:42]CAPDU: 80 13 01 00 [21:09:42]Write to MH i2c: E2 08 00 DA 0C 80 13 01 00 00 00 00 00 63 [21:09:42]Write i2c OK [21:09:42]MH_I2C_Read... [21:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:42]Read from MH i2c: E2 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: E2 0E 00 [21:09:42]MH_I2C_Read... [21:09:42]Read from MH i2c: E2 0E 00 DA 0C 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FB [21:09:42]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [21:09:42]wFMCommunicate OK [21:09:42]SAM_PROTO_GetShiftState done [21:09:42]FM_GetShiftState done [21:09:42]opened in 1727050372 [21:09:42]opened+sec_in_day 1727136772 [21:09:42]quantity*price = 0 [21:09:42]sum+1 = 1 [21:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 91 23.09.2024 21:09 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Талоны: Топливная Карта 90855 ФМ: 0000000000959456 ФД: 18815 ФПД: 227620837519462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T210945&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18815&fm=227620837519462&tin=02508201610067®Number=0000000000152968&sum=0 [21:09:43]StoreToDocumentArchive [21:09:43]shift 181 fd 18815 [21:09:43]save to /storage/0181/doc_00018815 [21:09:43]save last doc name /storage/0181/doc_00018815 to /storage/kkm_last_doc_name [21:09:43]save OK [21:09:43]Clear old archive folders... [21:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:09:43]tlvbuf is 00C01650 [21:09:43]SAM_PROTO_ClearQueue [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 09 00 00 [21:09:43]Write to MH i2c: E2 08 00 E7 0C 80 09 00 00 00 00 00 00 65 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 E7 0C 00 90 00 67 [21:09:43]RAPDU: 90 00 [21:09:43]wFMCommunicate OK [21:09:43]SAM_PROTO_ClearQueue done [21:09:43]KKMCreateOFDPacket [21:09:43]OFDProtocolAddRootSTLVToBuf [21:09:43]FM_MakeSignedData [21:09:43]FM_MakeSignedData [21:09:43]SAM_PROTO_SignData [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 0D 01 02 [21:09:43]Write to MH i2c: E2 08 00 E8 0C 80 0D 01 02 00 00 00 00 6D [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [21:09:44]RAPDU: 90 00 [21:09:44]wFMCommunicate OK [21:09:44]wFMCommunicate request_size=255 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 55 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 5B 00 00 00 F4 03 04 00 19 D9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7F 49 00 00 35 04 06 00 [21:09:44]Write to MH i2c: E2 02 01 E9 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 55 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 5B 00 00 00 F4 03 04 00 19 D9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7F 49 00 00 35 04 06 00 00 00 75 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [21:09:44]RAPDU: 90 00 [21:09:44]wFMCommunicate OK [21:09:44]wFMCommunicate request_size=11 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 0D 02 02 06 CF 05 1B 29 F0 66 [21:09:44]Write to MH i2c: E2 0E 00 EA 0C 80 0D 02 02 06 00 CF 05 1B 29 F0 66 00 00 EA [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 03 00 EA 0C 00 90 00 6A [21:09:44]RAPDU: 90 00 [21:09:44]wFMCommunicate OK [21:09:44]wFMCommunicate request_size=4 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 0D 03 02 [21:09:44]Write to MH i2c: E2 08 00 EB 0C 80 0D 03 02 00 00 00 00 72 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 0B 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 0B 00 EB 0C 00 57 03 97 83 57 54 3D F7 90 00 C6 [21:09:44]RAPDU: 57 03 97 83 57 54 3D F7 90 00 [21:09:44]wFMCommunicate OK [21:09:44]SAM_PROTO_SignData done [21:09:44]FM_MakeSignedData done [21:09:44]CreateOFDProtocolMessage [21:09:44]wFMCommunicate request_size=4 [21:09:44]MH_SAM_APDU [21:09:44]CAPDU: 80 11 00 00 [21:09:44]Write to MH i2c: E2 08 00 EC 0C 80 11 00 00 00 00 00 00 72 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:44]Read from MH i2c: E2 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 17 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: E2 17 00 EC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CB [21:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:09:44]wFMCommunicate OK [21:09:44]CreateOFDProtocolMessage done [21:09:44]OFDSenderStorePacket 18815 [21:09:44]StoreOFDPacket docnum=18815 [21:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 74 66 08 01 0A AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 55 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 5B 00 00 00 F4 03 04 00 19 D9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7F 49 00 00 35 04 06 00 CF 05 1B 29 F0 66 57 03 97 83 57 54 3D F7 [21:09:44]CheckFolder [21:09:44]dirname=/storage/ofd_packets [21:09:44]CheckFolder done [21:09:44]ProducePacketName [21:09:44]name=ofd_packets/00018815 [21:09:44]NVStorageSaveData ofd_packets/00018815 [21:09:44]File name is /storage/ofd_packets/00018815 [21:09:44]Write 302 bytes [21:09:44]NVStorageSaveData done [21:09:44]OFDSenderStorePacket done [21:09:44]KKMCreateOFDPacket done [21:09:44]NVStorageSaveData kkm_last_timestamp [21:09:44]File name is /storage/kkm_last_timestamp [21:09:44]Write 4 bytes [21:09:44]NVStorageSaveData done [21:09:44]ExternCall_PrintAddStr [21:09:44]wPrintStart [21:09:44]Write to MH i2c: 01 00 00 ED 0C F9 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 FF 0F 0E [21:09:44]RasterBufferAndPrint [21:09:44]line Счет N : (1)116551 [21:09:44]line ИНН: 02508201610067 [21:09:44]line Контрольно-Кассовый Чек [21:09:44]line ПРОДАЖА [21:09:44]line ТРК (МРК, ГНК) : 14 [21:09:44]line Товар: 2710124130 [21:09:44]line SUPER-92-К-5 [21:09:44]line 21.970 * 0.00 [21:09:44]line = 0.00 [21:09:44]line НДС 12% НСП 1% [21:09:44]line > о реализуемом товаре [21:09:44]line ИТОГО: 0.00 [21:09:44]line НСП 1% : 0.00 [21:09:44]line НДС 12% : 0.00 [21:09:44]line Наличными: 0.00 [21:09:44]line Безнал.: 0.00 [21:09:44]line Место: АЗС № 176 "Партнер Нефть" [21:09:44]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:09:44]line СНО: Общий режим [21:09:44]line Чек 91 23.09.2024 21:09 [21:09:44]line Смена: 181 ФФД: 1.0 [21:09:44]line ЗНМ: 0300000010 [21:09:44]line РНМ: 0000000000152968 [21:09:44]line Версия ККМ: v1.0 [21:09:44]line Талоны: Топливная Карта [21:09:44]line 90855 [21:09:44]line ФМ: 0000000000959456 [21:09:44]line ФД: 18815 [21:09:44]line ФПД: 227620837519462 [21:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T210945&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18815&fm=227620837519462&tin=02508201610067®Number=0000000000152968&sum=0 [21:09:44]OFD Sender: Processing packet 18815 [packets to send 7, broken 6] [21:09:44]ProducePacketName [21:09:44]name=ofd_packets/00018815 [21:09:44]OFD Sender: To server: pG, [21:09:44]CommunicateWithHost lk.salyk.kg:30040 [21:09:44]ConnectInit lk.salyk.kg [21:09:44]written 0, free lines is 4095 [21:09:44]Connected sock=10 [21:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 01 00 00 74 66 08 01 0A AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 55 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 5B 00 00 00 F4 03 04 00 19 D9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 7F 49 00 00 35 04 06 00 CF 05 1B 29 F0 66 57 03 97 83 57 54 3D F7 [21:09:45]Write to MH i2c: 01 00 00 17 0D 24 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 12 0D 4A [21:09:45]RasterBufferAndPrint [21:09:45]line [21:09:45]line [21:09:45]line [21:09:45]line [21:09:45]line [21:09:45]written 0, free lines is 3352 [21:09:45]MH_Cut [21:09:45]Write to MH i2c: D1 01 00 1E 0D 01 FD [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: D1 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: D1 01 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: D1 01 00 1E 0D 00 FC [21:09:45]Write to MH i2c: 01 00 00 1F 0D 2C [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 33 A8 47 00 B0 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 35 39 34 35 36 10 04 04 00 7F 49 00 00 F4 03 04 00 7C 82 F1 66 B6 04 01 00 00 E5 26 B3 60 2D 5C 76 9B [21:09:45]CommunicateWithHost err = 0 [21:09:45]CheckOFDResponse [21:09:45]1017 (14) - 77093643461234 [21:09:45]1041 (16) - 0000000000959456 [21:09:45]1040 (4) - 18815 [21:09:45]1012 (4) - 23.09.2024 15:00 [21:09:45]1206 (1) - 0 [21:09:45]OFD Sender: Remove packet 18815 [21:09:45]ProducePacketName [21:09:45]name=ofd_packets/00018815 [21:09:45]NVStorageDeleteData [21:09:45]OFD Sender: No OFD packet to send [21:09:45]*** Cut start [21:09:45]*** Partial cut [21:09:45]*** CUTSNS_PIN = 1 [21:09:45]*** CUTSNS_PIN = 0 [21:09:46]*** Brake cut motor [21:09:46]Read from MH i2c: 01 [21:09:46]MH_I2C_Read... [21:09:46]*** Stop cut motor [21:09:46]*** Cut end [21:09:46]Read from MH i2c: 01 07 00 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FF 0F 41 [21:09:46]process_action close_receipt done [21:09:46]requested_data is exist [21:09:46]produce_requested_data [21:09:46]requested_item fm.sn is exist - process it [21:09:46]wFMCommunicate request_size=4 [21:09:46]MH_SAM_APDU [21:09:46]CAPDU: 80 11 00 00 [21:09:46]Write to MH i2c: E2 08 00 20 0D 80 11 00 00 00 00 00 00 A7 [21:09:46]Write i2c OK [21:09:46]MH_I2C_Read... [21:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:46]Read from MH i2c: E2 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: E2 17 00 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: E2 17 00 20 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 00 [21:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:09:46]wFMCommunicate OK [21:09:46]requested_item fd.num is exist - process it [21:09:46]SAM_PROTO_GetFieldsCounters [21:09:46]wFMCommunicate request_size=4 [21:09:46]MH_SAM_APDU [21:09:46]CAPDU: 80 13 00 00 [21:09:46]Write to MH i2c: E2 08 00 21 0D 80 13 00 00 00 00 00 00 AA [21:09:46]Write i2c OK [21:09:46]MH_I2C_Read... [21:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:46]Read from MH i2c: E2 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: E2 62 00 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: E2 62 00 21 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7F 49 00 00 0E 04 04 00 B5 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 65 [21:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 7F 49 00 00 0E 04 04 00 B5 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 [21:09:46]wFMCommunicate OK [21:09:46]SAM_PROTO_GetFieldsCounters done [21:09:46]requested_item shift.num is exist - process it [21:09:46]requested_item shift.opened is exist - process it [21:09:46]req_shift_opened [21:09:46]FM_GetShiftState [21:09:46]SAM_PROTO_GetShiftState [21:09:46]wFMCommunicate request_size=4 [21:09:46]MH_SAM_APDU [21:09:46]CAPDU: 80 13 01 00 [21:09:46]Write to MH i2c: E2 08 00 22 0D 80 13 01 00 00 00 00 00 AC [21:09:46]Write i2c OK [21:09:46]MH_I2C_Read... [21:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:46]Read from MH i2c: E2 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: E2 0E 00 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: E2 0E 00 22 0D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 44 [21:09:46]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [21:09:46]wFMCommunicate OK [21:09:46]SAM_PROTO_GetShiftState done [21:09:46]FM_GetShiftState done [21:09:46]req_shift_opened done [21:09:46]requested_item shift.open_date is exist - process it [21:09:46]req_shift_open_date [21:09:46]req_shift_open_date done [21:09:46]produce_requested_data done [21:09:46]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18815,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [21:09:46]process_action_free close_receipt [21:09:46]json_value_free [21:09:46]json_value_free done [21:09:46]process_json_proto returns [21:09:46]Send response to host [21:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18815,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [21:09:46]free response buf [21:09:46]execute_script done [21:09:46]execute_script returns [21:09:46]free content buf [21:09:46]Sock 7.Close socket [21:09:46]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:27:56]accept exits with 9 [21:27:56]New connection [21:27:56]New thread 3066752356 created [21:27:56]Thread 3066608996 joined [21:27:56]Waiting for new connection... [21:27:56] Sock 9.Parse request [21:27:56]Sock 9.Check first char [21:27:56]Sock 9.First char is OK [21:27:56]request: POST /json_proto HTTP/1.0 [21:27:56]Method: POST [21:27:56]URL: /json_proto [21:27:56]Method is POST - this is cgi request [21:27:56]url: /json_proto [21:27:56]query_string will be loaded in cgi processing [21:27:56]execute_cgi json_proto POST (null) [21:27:56]execute_cgi path=json_proto method=POST [21:27:56]POST find Content-Length [21:27:56]Host: 172.17.62.196:8080 [21:27:56]Content-Length: 871 [21:27:56]Content-Type: application/json [21:27:56] [21:27:56]POST finish read [21:27:56]Found Content-Length = 871 [21:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16732", "tax_sys" : 0, "items" : [ { "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:56]execute_script... [21: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 : (3)16732", "tax_sys" : 0, "items" : [ { "code": "5000159438056", "name": "\u0414\u0440\u0430\u0436\u0435 Skittles \u041A\u0438\u0441\u043B\u043E\u043C\u0438\u043A\u0441", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:56]POST & json_proto [21:27:56]process_json_proto [21:27:56]json parsed OK: [21:27:56]protocol is kg_v1.0 [21:27:56]action value=close_receipt [21:27:56]process_action close_receipt [21:27:56]cmd_close_receipt [21:27:56]MH_GetDate [21:27:56]Write to MH i2c: F0 00 00 23 0D 1F [21:27:56]Write i2c OK [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: F0 [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: F0 09 00 [21:27:56]MH_I2C_Read... [21:27:56]Read from MH i2c: F0 09 00 23 0D 00 5F DD F1 66 CE CC 0E 66 C9 [21:27:56]GetLastDocTimeStamp 1727125785 [21:27:56]current date 1727126879 [21:27:56]FM_GetShiftState [21:27:56]SAM_PROTO_GetShiftState [21:27:56]wFMCommunicate request_size=4 [21:27:56]MH_SAM_APDU [21:27:56]CAPDU: 80 13 01 00 [21:27:56]Write to MH i2c: E2 08 00 24 0D 80 13 01 00 00 00 00 00 AE [21:27:56]Write i2c OK [21:27:56]MH_I2C_Read... [21:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:57]Read from MH i2c: E2 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 0E 00 [21:27:57]MH_I2C_Read... [21:27:57]Read from MH i2c: E2 0E 00 24 0D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 46 [21:27:57]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [21:27:57]wFMCommunicate OK [21:27:57]SAM_PROTO_GetShiftState done [21:27:57]FM_GetShiftState done [21:27:57]opened in 1727050372 [21:27:57]opened+sec_in_day 1727136772 [21:27:57]quantity*price = 6000 [21:27:57]sum+1 = 6001 [21:27:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 92 23.09.2024 21:27 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18816 ФПД: 67016595927479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T212759&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18816&fm=67016595927479&tin=02508201610067®Number=0000000000152968&sum=10500 0 [21:27:58]StoreToDocumentArchive [21:27:58]shift 181 fd 18816 [21:27:58]save to /storage/0181/doc_00018816 [21:27:58]save last doc name /storage/0181/doc_00018816 to /storage/kkm_last_doc_name [21:27:58]save OK [21:27:58]Clear old archive folders... [21:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=370 [21:27:58]tlvbuf is 00BEC9B0 [21:27:58]SAM_PROTO_ClearQueue [21:27:58]wFMCommunicate request_size=4 [21:27:58]MH_SAM_APDU [21:27:58]CAPDU: 80 09 00 00 [21:27:58]Write to MH i2c: E2 08 00 31 0D 80 09 00 00 00 00 00 00 B0 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [21:27:58]RAPDU: 90 00 [21:27:58]wFMCommunicate OK [21:27:58]SAM_PROTO_ClearQueue done [21:27:58]KKMCreateOFDPacket [21:27:58]OFDProtocolAddRootSTLVToBuf [21:27:58]FM_MakeSignedData [21:27:58]FM_MakeSignedData [21:27:58]SAM_PROTO_SignData [21:27:58]wFMCommunicate request_size=4 [21:27:58]MH_SAM_APDU [21:27:58]CAPDU: 80 0D 01 02 [21:27:58]Write to MH i2c: E2 08 00 32 0D 80 0D 01 02 00 00 00 00 B8 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [21:27:58]RAPDU: 90 00 [21:27:58]wFMCommunicate OK [21:27:58]wFMCommunicate request_size=255 [21:27:58]MH_SAM_APDU [21:27:58]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 [21:27:58]Write to MH i2c: E2 02 01 33 0D 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 06 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [21:27:58]RAPDU: 90 00 [21:27:58]wFMCommunicate OK [21:27:58]wFMCommunicate request_size=129 [21:27:58]MH_SAM_APDU [21:27:58]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 5F DD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 80 49 00 00 35 04 06 00 3C F3 84 64 F1 B7 [21:27:58]Write to MH i2c: E2 84 00 34 0D 80 0D 02 02 7C 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 5F DD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 80 49 00 00 35 04 06 00 3C F3 84 64 F1 B7 00 00 AE [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 03 00 34 0D 00 90 00 B5 [21:27:58]RAPDU: 90 00 [21:27:58]wFMCommunicate OK [21:27:58]wFMCommunicate request_size=4 [21:27:58]MH_SAM_APDU [21:27:58]CAPDU: 80 0D 03 02 [21:27:58]Write to MH i2c: E2 08 00 35 0D 80 0D 03 02 00 00 00 00 BD [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 0B 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 0B 00 35 0D 00 4F 94 83 E0 DC A1 95 25 90 00 3B [21:27:58]RAPDU: 4F 94 83 E0 DC A1 95 25 90 00 [21:27:58]wFMCommunicate OK [21:27:58]SAM_PROTO_SignData done [21:27:58]FM_MakeSignedData done [21:27:58]CreateOFDProtocolMessage [21:27:58]wFMCommunicate request_size=4 [21:27:58]MH_SAM_APDU [21:27:58]CAPDU: 80 11 00 00 [21:27:58]Write to MH i2c: E2 08 00 36 0D 80 11 00 00 00 00 00 00 BD [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:58]Read from MH i2c: E2 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: E2 17 00 [21:27:58]MH_I2C_Read... [21:27:58]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 35 39 34 35 36 90 00 16 [21:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:27:58]wFMCommunicate OK [21:27:58]CreateOFDProtocolMessage done [21:27:58]OFDSenderStorePacket 18816 [21:27:58]StoreOFDPacket docnum=18816 [21:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 86 01 00 00 84 0C 7E 01 AA 19 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 5F DD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 80 49 00 00 35 04 06 00 3C F3 84 64 F1 B7 4F 94 83 E0 DC A1 95 25 [21:27:58]CheckFolder [21:27:58]dirname=/storage/ofd_packets [21:27:58]CheckFolder done [21:27:58]ProducePacketName [21:27:58]name=ofd_packets/00018816 [21:27:58]NVStorageSaveData ofd_packets/00018816 [21:27:58]File name is /storage/ofd_packets/00018816 [21:27:58]Write 420 bytes [21:27:58]NVStorageSaveData done [21:27:58]OFDSenderStorePacket done [21:27:58]KKMCreateOFDPacket done [21:27:58]NVStorageSaveData kkm_last_timestamp [21:27:58]File name is /storage/kkm_last_timestamp [21:27:58]Write 4 bytes [21:27:58]NVStorageSaveData done [21:27:58]ExternCall_PrintAddStr [21:27:58]wPrintStart [21:27:58]Write to MH i2c: 01 00 00 37 0D 44 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 37 0D 00 00 00 00 00 FF 0F 59 [21:27:58]RasterBufferAndPrint [21:27:58]line Счет N : (3)16732 [21:27:58]line ИНН: 02508201610067 [21:27:59]line Контрольно-Кассовый Чек [21:27:59]line ПРОДАЖА [21:27:59]line Товар: 5000159438056 [21:27:59]line Драже Skittles Кисломикс [21:27:59]line 1.000 * 60.00 [21:27:59]line = 60.00 [21:27:59]line НДС 12% НСП 1% [21:27:59]line > о реализуемом товаре [21:27:59]line Товар: 42113270 [21:27:59]line Жев Orbit арбуз [21:27:59]line 1.000 * 45.00 [21:27:59]line = 45.00 [21:27:59]line НДС 12% НСП 1% [21:27:59]line > о реализуемом товаре [21:27:59]line ИТОГО: 105.00 [21:27:59]line НСП 1% : 0.93 [21:27:59]line НДС 12% : 11.15 [21:27:59]line Наличными: 105.00 [21:27:59]line Безнал.: 0.00 [21:27:59]line Место: АЗС № 176 "Партнер Нефть" [21:27:59]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:27:59]line СНО: Общий режим [21:27:59]line Чек 92 23.09.2024 21:27 [21:27:59]line Смена: 181 ФФД: 1.0 [21:27:59]line ЗНМ: 0300000010 [21:27:59]line РНМ: 0000000000152968 [21:27:59]line Версия ККМ: v1.0 [21:27:59]line ФМ: 0000000000959456 [21:27:59]line ФД: 18816 [21:27:59]line ФПД: 67016595927479 [21:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T212759&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18816&fm=67016595927479&tin=02508201610067®Number=0000000000152968&sum=10500 [21:27:59]line 0 [21:27:59]OFD Sender: Processing packet 18816 [packets to send 7, broken 6] [21:27:59]ProducePacketName [21:27:59]name=ofd_packets/00018816 [21:27:59]OFD Sender: To server: pG, [21:27:59]CommunicateWithHost lk.salyk.kg:30040 [21:27:59]ConnectInit lk.salyk.kg [21:27:59]written 0, free lines is 4095 [21:27:59]Connected sock=10 [21:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 86 01 00 00 84 0C 7E 01 AA 19 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 30 30 30 31 35 39 34 33 38 30 35 36 06 04 26 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 53 6B 69 74 74 6C 65 73 20 D0 9A D0 B8 D1 81 D0 BB D0 BE D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 5F DD F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 80 49 00 00 35 04 06 00 3C F3 84 64 F1 B7 4F 94 83 E0 DC A1 95 25 [21:27:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 97 30 47 00 CC 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 35 39 34 35 36 10 04 04 00 80 49 00 00 F4 03 04 00 C2 86 F1 66 B6 04 01 00 00 5B 2C D1 30 8A BD A7 3F [21:27:59]CommunicateWithHost err = 0 [21:27:59]CheckOFDResponse [21:27:59]1017 (14) - 77093643461234 [21:27:59]1041 (16) - 0000000000959456 [21:27:59]1040 (4) - 18816 [21:27:59]1012 (4) - 23.09.2024 15:18 [21:27:59]1206 (1) - 0 [21:27:59]OFD Sender: Remove packet 18816 [21:27:59]ProducePacketName [21:27:59]name=ofd_packets/00018816 [21:27:59]NVStorageDeleteData [21:27:59]Write to MH i2c: 01 00 00 65 0D 72 [21:27:59]Write i2c OK [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: 01 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: 01 07 00 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: 01 07 00 65 0D 00 00 00 00 00 D5 0C 5A [21:27:59]RasterBufferAndPrint [21:27:59]line [21:27:59]line [21:27:59]line [21:27:59]line [21:27:59]line [21:27:59]written 0, free lines is 3291 [21:27:59]MH_Cut [21:27:59]Write to MH i2c: D1 01 00 6C 0D 01 4B [21:27:59]Write i2c OK [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: D1 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: D1 01 00 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: D1 01 00 6C 0D 00 4A [21:27:59]Write to MH i2c: 01 00 00 6D 0D 7A [21:27:59]Write i2c OK [21:27:59]MH_I2C_Read... [21:28:00]OFD Sender: No OFD packet to send [21:28:00]*** Cut start [21:28:00]*** Partial cut [21:28:00]*** CUTSNS_PIN = 1 [21:28:00]*** CUTSNS_PIN = 0 [21:28:00]*** Brake cut motor [21:28:00]Read from MH i2c: 01 [21:28:00]MH_I2C_Read... [21:28:00]*** Stop cut motor [21:28:00]*** Cut end [21:28:00]Read from MH i2c: 01 07 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: 01 07 00 6D 0D 00 00 00 00 00 FF 0F 8F [21:28:00]process_action close_receipt done [21:28:00]requested_data is exist [21:28:00]produce_requested_data [21:28:00]requested_item fm.sn is exist - process it [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 11 00 00 [21:28:00]Write to MH i2c: E2 08 00 6E 0D 80 11 00 00 00 00 00 00 F5 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 17 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 17 00 6E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4E [21:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:28:00]wFMCommunicate OK [21:28:00]requested_item fd.num is exist - process it [21:28:00]SAM_PROTO_GetFieldsCounters [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 13 00 00 [21:28:00]Write to MH i2c: E2 08 00 6F 0D 80 13 00 00 00 00 00 00 F8 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 62 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 62 00 6F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 80 49 00 00 0E 04 04 00 B5 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 B7 [21:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 80 49 00 00 0E 04 04 00 B5 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 [21:28:01]wFMCommunicate OK [21:28:01]SAM_PROTO_GetFieldsCounters done [21:28:01]requested_item shift.num is exist - process it [21:28:01]requested_item shift.opened is exist - process it [21:28:01]req_shift_opened [21:28:01]FM_GetShiftState [21:28:01]SAM_PROTO_GetShiftState [21:28:01]wFMCommunicate request_size=4 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 13 01 00 [21:28:01]Write to MH i2c: E2 08 00 70 0D 80 13 01 00 00 00 00 00 FA [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0E 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0E 00 70 0D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 92 [21:28:01]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [21:28:01]wFMCommunicate OK [21:28:01]SAM_PROTO_GetShiftState done [21:28:01]FM_GetShiftState done [21:28:01]req_shift_opened done [21:28:01]requested_item shift.open_date is exist - process it [21:28:01]req_shift_open_date [21:28:01]req_shift_open_date done [21:28:01]produce_requested_data done [21:28:01]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18816,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [21:28:01]process_action_free close_receipt [21:28:01]json_value_free [21:28:01]json_value_free done [21:28:01]process_json_proto returns [21:28:01]Send response to host [21:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18816,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [21:28:01]free response buf [21:28:01]execute_script done [21:28:01]execute_script returns [21:28:01]free content buf [21:28:01]Sock 9.Close socket [21:28:01]Sock 9.Thread stoped [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:17]accept exits with 7 [21:43:17]New connection [21:43:17]New thread 3066608996 created [21:43:17]Thread 3066752356 joined [21:43:17]Waiting for new connection... [21:43:17] Sock 7.Parse request [21:43:17]Sock 7.Check first char [21:43:17]Sock 7.First char is OK [21:43:17]request: POST /json_proto HTTP/1.0 [21:43:17]Method: POST [21:43:17]URL: /json_proto [21:43:17]Method is POST - this is cgi request [21:43:17]url: /json_proto [21:43:17]query_string will be loaded in cgi processing [21:43:17]execute_cgi json_proto POST (null) [21:43:17]execute_cgi path=json_proto method=POST [21:43:17]POST find Content-Length [21:43:17]Host: 172.17.62.196:8080 [21:43:17]Content-Length: 782 [21:43:17]Content-Type: application/json [21:43:17] [21:43:17]POST finish read [21:43:17]Found Content-Length = 782 [21:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16733", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:17]execute_script... [21: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 : (3)16733", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:17]POST & json_proto [21:43:17]process_json_proto [21:43:17]json parsed OK: [21:43:17]protocol is kg_v1.0 [21:43:17]action value=close_receipt [21:43:17]process_action close_receipt [21:43:17]cmd_close_receipt [21:43:17]MH_GetDate [21:43:17]Write to MH i2c: F0 00 00 71 0D 6D [21:43:17]Write i2c OK [21:43:17]MH_I2C_Read... [21:43:17]Read from MH i2c: F0 [21:43:17]MH_I2C_Read... [21:43:17]Read from MH i2c: F0 09 00 [21:43:17]MH_I2C_Read... [21:43:17]Read from MH i2c: F0 09 00 71 0D 00 F8 E0 F1 66 CE CC 0E 66 B3 [21:43:17]GetLastDocTimeStamp 1727126879 [21:43:17]current date 1727127800 [21:43:17]FM_GetShiftState [21:43:17]SAM_PROTO_GetShiftState [21:43:17]wFMCommunicate request_size=4 [21:43:17]MH_SAM_APDU [21:43:17]CAPDU: 80 13 01 00 [21:43:17]Write to MH i2c: E2 08 00 72 0D 80 13 01 00 00 00 00 00 FC [21:43:17]Write i2c OK [21:43:17]MH_I2C_Read... [21:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:17]Read from MH i2c: E2 [21:43:17]MH_I2C_Read... [21:43:17]Read from MH i2c: E2 0E 00 [21:43:17]MH_I2C_Read... [21:43:17]Read from MH i2c: E2 0E 00 72 0D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 94 [21:43:17]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [21:43:17]wFMCommunicate OK [21:43:17]SAM_PROTO_GetShiftState done [21:43:17]FM_GetShiftState done [21:43:17]opened in 1727050372 [21:43:17]opened+sec_in_day 1727136772 [21:43:17]quantity*price = 15600 [21:43:17]sum+1 = 15601 [21:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 0.00 Безнал.: 156.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 93 23.09.2024 21:43 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18817 ФПД: 225386059033461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T214320&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18817&fm=225386059033461&tin=02508201610067®Number=0000000000152968&sum=15600 0 [21:43:18]StoreToDocumentArchive [21:43:18]shift 181 fd 18817 [21:43:18]save to /storage/0181/doc_00018817 [21:43:18]save last doc name /storage/0181/doc_00018817 to /storage/kkm_last_doc_name [21:43:18]save OK [21:43:18]Clear old archive folders... [21:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:43:18]tlvbuf is 00C045C0 [21:43:18]SAM_PROTO_ClearQueue [21:43:18]wFMCommunicate request_size=4 [21:43:18]MH_SAM_APDU [21:43:18]CAPDU: 80 09 00 00 [21:43:18]Write to MH i2c: E2 08 00 7F 0D 80 09 00 00 00 00 00 00 FE [21:43:18]Write i2c OK [21:43:18]MH_I2C_Read... [21:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:18]Read from MH i2c: E2 [21:43:18]MH_I2C_Read... [21:43:18]Read from MH i2c: E2 03 00 [21:43:18]MH_I2C_Read... [21:43:18]Read from MH i2c: E2 03 00 7F 0D 00 90 00 00 [21:43:18]RAPDU: 90 00 [21:43:18]wFMCommunicate OK [21:43:18]SAM_PROTO_ClearQueue done [21:43:18]KKMCreateOFDPacket [21:43:18]OFDProtocolAddRootSTLVToBuf [21:43:18]FM_MakeSignedData [21:43:18]FM_MakeSignedData [21:43:18]SAM_PROTO_SignData [21:43:18]wFMCommunicate request_size=4 [21:43:18]MH_SAM_APDU [21:43:18]CAPDU: 80 0D 01 02 [21:43:18]Write to MH i2c: E2 08 00 80 0D 80 0D 01 02 00 00 00 00 06 [21:43:18]Write i2c OK [21:43:18]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 80 0D 00 90 00 01 [21:43:19]RAPDU: 90 00 [21:43:19]wFMCommunicate OK [21:43:19]wFMCommunicate request_size=255 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F8 E0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 [21:43:19]Write to MH i2c: E2 02 01 81 0D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F8 E0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 00 00 28 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 81 0D 00 90 00 02 [21:43:19]RAPDU: 90 00 [21:43:19]wFMCommunicate OK [21:43:19]wFMCommunicate request_size=33 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 34 35 36 10 04 04 00 81 49 00 00 35 04 06 00 CC FC C7 FC 6B 75 [21:43:19]Write to MH i2c: E2 24 00 82 0D 80 0D 02 02 1C 00 30 30 30 30 39 35 39 34 35 36 10 04 04 00 81 49 00 00 35 04 06 00 CC FC C7 FC 6B 75 00 00 D3 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 03 00 82 0D 00 90 00 03 [21:43:19]RAPDU: 90 00 [21:43:19]wFMCommunicate OK [21:43:19]wFMCommunicate request_size=4 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 0D 03 02 [21:43:19]Write to MH i2c: E2 08 00 83 0D 80 0D 03 02 00 00 00 00 0B [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 0B 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 0B 00 83 0D 00 2C 6C 5F 50 3C 32 C3 BA 90 00 3E [21:43:19]RAPDU: 2C 6C 5F 50 3C 32 C3 BA 90 00 [21:43:19]wFMCommunicate OK [21:43:19]SAM_PROTO_SignData done [21:43:19]FM_MakeSignedData done [21:43:19]CreateOFDProtocolMessage [21:43:19]wFMCommunicate request_size=4 [21:43:19]MH_SAM_APDU [21:43:19]CAPDU: 80 11 00 00 [21:43:19]Write to MH i2c: E2 08 00 84 0D 80 11 00 00 00 00 00 00 0B [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:19]Read from MH i2c: E2 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 17 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: E2 17 00 84 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 64 [21:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:43:19]wFMCommunicate OK [21:43:19]CreateOFDProtocolMessage done [21:43:19]OFDSenderStorePacket 18817 [21:43:19]StoreOFDPacket docnum=18817 [21:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 5B 5D 1E 01 9C 04 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F8 E0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 81 49 00 00 35 04 06 00 CC FC C7 FC 6B 75 2C 6C 5F 50 3C 32 C3 BA [21:43:19]CheckFolder [21:43:19]dirname=/storage/ofd_packets [21:43:19]CheckFolder done [21:43:19]ProducePacketName [21:43:19]name=ofd_packets/00018817 [21:43:19]NVStorageSaveData ofd_packets/00018817 [21:43:19]File name is /storage/ofd_packets/00018817 [21:43:19]Write 324 bytes [21:43:19]NVStorageSaveData done [21:43:19]OFDSenderStorePacket done [21:43:19]KKMCreateOFDPacket done [21:43:19]NVStorageSaveData kkm_last_timestamp [21:43:19]File name is /storage/kkm_last_timestamp [21:43:19]Write 4 bytes [21:43:19]NVStorageSaveData done [21:43:19]ExternCall_PrintAddStr [21:43:19]wPrintStart [21:43:19]Write to MH i2c: 01 00 00 85 0D 92 [21:43:19]Write i2c OK [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: 01 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: 01 07 00 [21:43:19]MH_I2C_Read... [21:43:19]Read from MH i2c: 01 07 00 85 0D 00 00 00 00 00 FF 0F A7 [21:43:19]RasterBufferAndPrint [21:43:19]line Счет N : (3)16733 [21:43:19]line ИНН: 02508201610067 [21:43:19]line Контрольно-Кассовый Чек [21:43:19]line ПРОДАЖА [21:43:19]line Товар: 48741958 [21:43:19]line Сигареты Parliament Aqua Blue [21:43:19]line 1.000 * 156.00 [21:43:19]line = 156.00 [21:43:19]line НДС 12% НСП 1% [21:43:19]line > о реализуемом товаре [21:43:19]line ИТОГО: 156.00 [21:43:19]line НСП 1% : 1.38 [21:43:19]line НДС 12% : 16.57 [21:43:19]line Наличными: 0.00 [21:43:19]line Безнал.: 156.00 [21:43:19]line Место: АЗС № 176 "Партнер Нефть" [21:43:19]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [21:43:19]line СНО: Общий режим [21:43:19]line Чек 93 23.09.2024 21:43 [21:43:19]line Смена: 181 ФФД: 1.0 [21:43:19]line ЗНМ: 0300000010 [21:43:19]line РНМ: 0000000000152968 [21:43:19]line Версия ККМ: v1.0 [21:43:19]line Платежная система: O! деньги [21:43:19]line ФМ: 0000000000959456 [21:43:19]line ФД: 18817 [21:43:19]line ФПД: 225386059033461 [21:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T214320&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18817&fm=225386059033461&tin=02508201610067®Number=0000000000152968&sum=15600 [21:43:19]line 0 [21:43:19]OFD Sender: Processing packet 18817 [packets to send 7, broken 6] [21:43:19]ProducePacketName [21:43:19]name=ofd_packets/00018817 [21:43:19]OFD Sender: To server: pG, [21:43:19]CommunicateWithHost lk.salyk.kg:30040 [21:43:19]ConnectInit lk.salyk.kg [21:43:19]written 0, free lines is 4095 [21:43:20]Connected sock=11 [21:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 26 01 00 00 5B 5D 1E 01 9C 04 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 F8 E0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 81 49 00 00 35 04 06 00 CC FC C7 FC 6B 75 2C 6C 5F 50 3C 32 C3 BA [21:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 04 D1 47 00 78 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 35 39 34 35 36 10 04 04 00 81 49 00 00 F4 03 04 00 5B 8A F1 66 B6 04 01 00 00 C3 CE 5E F5 8E E7 C6 17 [21:43:20]CommunicateWithHost err = 0 [21:43:20]CheckOFDResponse [21:43:20]1017 (14) - 77093643461234 [21:43:20]1041 (16) - 0000000000959456 [21:43:20]1040 (4) - 18817 [21:43:20]1012 (4) - 23.09.2024 15:33 [21:43:20]1206 (1) - 0 [21:43:20]OFD Sender: Remove packet 18817 [21:43:20]ProducePacketName [21:43:20]name=ofd_packets/00018817 [21:43:20]NVStorageDeleteData [21:43:20]Write to MH i2c: 01 00 00 B0 0D BD [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: 01 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: 01 07 00 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: 01 07 00 B0 0D 00 00 00 00 00 DB 0C AB [21:43:20]RasterBufferAndPrint [21:43:20]line [21:43:20]line [21:43:20]line [21:43:20]line [21:43:20]line [21:43:20]written 0, free lines is 3298 [21:43:20]MH_Cut [21:43:20]Write to MH i2c: D1 01 00 B7 0D 01 96 [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: D1 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: D1 01 00 [21:43:20]MH_I2C_Read... [21:43:20]Read from MH i2c: D1 01 00 B7 0D 00 95 [21:43:20]Write to MH i2c: 01 00 00 B8 0D C5 [21:43:20]Write i2c OK [21:43:20]MH_I2C_Read... [21:43:20]OFD Sender: No OFD packet to send [21:43:20]*** Cut start [21:43:20]*** Partial cut [21:43:20]*** CUTSNS_PIN = 1 [21:43:20]*** CUTSNS_PIN = 0 [21:43:21]*** Brake cut motor [21:43:21]Read from MH i2c: 01 [21:43:21]MH_I2C_Read... [21:43:21]*** Stop cut motor [21:43:21]*** Cut end [21:43:21]Read from MH i2c: 01 07 00 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: 01 07 00 B8 0D 00 00 00 00 00 FF 0F DA [21:43:21]process_action close_receipt done [21:43:21]requested_data is exist [21:43:21]produce_requested_data [21:43:21]requested_item fm.sn is exist - process it [21:43:21]wFMCommunicate request_size=4 [21:43:21]MH_SAM_APDU [21:43:21]CAPDU: 80 11 00 00 [21:43:21]Write to MH i2c: E2 08 00 B9 0D 80 11 00 00 00 00 00 00 40 [21:43:21]Write i2c OK [21:43:21]MH_I2C_Read... [21:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:21]Read from MH i2c: E2 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 17 00 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 17 00 B9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 99 [21:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [21:43:21]wFMCommunicate OK [21:43:21]requested_item fd.num is exist - process it [21:43:21]SAM_PROTO_GetFieldsCounters [21:43:21]wFMCommunicate request_size=4 [21:43:21]MH_SAM_APDU [21:43:21]CAPDU: 80 13 00 00 [21:43:21]Write to MH i2c: E2 08 00 BA 0D 80 13 00 00 00 00 00 00 43 [21:43:21]Write i2c OK [21:43:21]MH_I2C_Read... [21:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:21]Read from MH i2c: E2 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 62 00 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 62 00 BA 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 81 49 00 00 0E 04 04 00 B5 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 06 [21: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 81 49 00 00 0E 04 04 00 B5 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 [21:43:21]wFMCommunicate OK [21:43:21]SAM_PROTO_GetFieldsCounters done [21:43:21]requested_item shift.num is exist - process it [21:43:21]requested_item shift.opened is exist - process it [21:43:21]req_shift_opened [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 BB 0D 80 13 01 00 00 00 00 00 45 [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 BB 0D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 DD [21:43:21]RAPDU: 09 00 01 84 B2 F0 66 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]req_shift_opened done [21:43:21]requested_item shift.open_date is exist - process it [21:43:21]req_shift_open_date [21:43:21]req_shift_open_date done [21:43:21]produce_requested_data done [21:43:21]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18817,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [21:43:21]process_action_free close_receipt [21:43:21]json_value_free [21:43:21]json_value_free done [21:43:21]process_json_proto returns [21:43:21]Send response to host [21:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18817,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [21:43:21]free response buf [21:43:21]execute_script done [21:43:21]execute_script returns [21:43:21]free content buf [21:43:21]Sock 7.Close socket [21:43:21]Sock 7.Thread stoped [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09: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:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:00]accept exits with 9 [22:19:00]New connection [22:19:00]New thread 3066752356 created [22:19:00]Thread 3066608996 joined [22:19:00]Waiting for new connection... [22:19:00] Sock 9.Parse request [22:19:00]Sock 9.Check first char [22:19:00]Sock 9.First char is OK [22:19:00]request: POST /json_proto HTTP/1.0 [22:19:00]Method: POST [22:19:00]URL: /json_proto [22:19:00]Method is POST - this is cgi request [22:19:00]url: /json_proto [22:19:00]query_string will be loaded in cgi processing [22:19:00]execute_cgi json_proto POST (null) [22:19:00]execute_cgi path=json_proto method=POST [22:19:00]POST find Content-Length [22:19:00]Host: 172.17.62.196:8080 [22:19:00]Content-Length: 824 [22:19:00]Content-Type: application/json [22:19:00] [22:19:00]POST finish read [22:19:00]Found Content-Length = 824 [22:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16734", "tax_sys" : 0, "items" : [ { "code": "46146632", "name": "\u0420/\u0436 Orbit XXL \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430,\u0431\u0430\u043D\u0430\u043D 20,4\u0433", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:00]execute_script... [22:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16734", "tax_sys" : 0, "items" : [ { "code": "46146632", "name": "\u0420/\u0436 Orbit XXL \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430,\u0431\u0430\u043D\u0430\u043D 20,4\u0433", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:00]POST & json_proto [22:19:00]process_json_proto [22:19:00]json parsed OK: [22:19:00]protocol is kg_v1.0 [22:19:00]action value=close_receipt [22:19:00]process_action close_receipt [22:19:00]cmd_close_receipt [22:19:00]MH_GetDate [22:19:00]Write to MH i2c: F0 00 00 BC 0D B8 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: F0 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: F0 09 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: F0 09 00 BC 0D 00 57 E9 F1 66 CE CC 0E 66 66 [22:19:00]GetLastDocTimeStamp 1727127800 [22:19:00]current date 1727129943 [22:19:00]FM_GetShiftState [22:19:00]SAM_PROTO_GetShiftState [22:19:00]wFMCommunicate request_size=4 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 13 01 00 [22:19:00]Write to MH i2c: E2 08 00 BD 0D 80 13 01 00 00 00 00 00 47 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 0E 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 0E 00 BD 0D 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 DF [22:19:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:19:00]wFMCommunicate OK [22:19:00]SAM_PROTO_GetShiftState done [22:19:00]FM_GetShiftState done [22:19:00]opened in 1727050372 [22:19:00]opened+sec_in_day 1727136772 [22:19:00]quantity*price = 5500 [22:19:00]sum+1 = 5501 [22:19:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 0.00 Безнал.: 55.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 94 23.09.2024 22:19 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18818 ФПД: 59005268161214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221903&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18818&fm=59005268161214&tin=02508201610067®Number=0000000000152968&sum=5500 0 [22:19:02]StoreToDocumentArchive [22:19:02]shift 181 fd 18818 [22:19:02]save to /storage/0181/doc_00018818 [22:19:02]save last doc name /storage/0181/doc_00018818 to /storage/kkm_last_doc_name [22:19:02]save OK [22:19:02]Clear old archive folders... [22:19:02]ProcessDocumentItem done err = 0, tmpTLVsize=287 [22:19:02]tlvbuf is 00C02280 [22:19:02]SAM_PROTO_ClearQueue [22:19:02]wFMCommunicate request_size=4 [22:19:02]MH_SAM_APDU [22:19:02]CAPDU: 80 09 00 00 [22:19:02]Write to MH i2c: E2 08 00 CA 0D 80 09 00 00 00 00 00 00 49 [22:19:02]Write i2c OK [22:19:02]MH_I2C_Read... [22:19:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:02]Read from MH i2c: E2 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 CA 0D 00 90 00 4B [22:19:02]RAPDU: 90 00 [22:19:02]wFMCommunicate OK [22:19:02]SAM_PROTO_ClearQueue done [22:19:02]KKMCreateOFDPacket [22:19:02]OFDProtocolAddRootSTLVToBuf [22:19:02]FM_MakeSignedData [22:19:02]FM_MakeSignedData [22:19:02]SAM_PROTO_SignData [22:19:02]wFMCommunicate request_size=4 [22:19:02]MH_SAM_APDU [22:19:02]CAPDU: 80 0D 01 02 [22:19:02]Write to MH i2c: E2 08 00 CB 0D 80 0D 01 02 00 00 00 00 51 [22:19:02]Write i2c OK [22:19:02]MH_I2C_Read... [22:19:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:02]Read from MH i2c: E2 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 CB 0D 00 90 00 4C [22:19:02]RAPDU: 90 00 [22:19:02]wFMCommunicate OK [22:19:02]wFMCommunicate request_size=255 [22:19:02]MH_SAM_APDU [22:19:02]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 E9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [22:19:02]Write to MH i2c: E2 02 01 CC 0D 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 E9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 C7 [22:19:02]Write i2c OK [22:19:02]MH_I2C_Read... [22:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:02]Read from MH i2c: E2 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 CC 0D 00 90 00 4D [22:19:02]RAPDU: 90 00 [22:19:02]wFMCommunicate OK [22:19:02]wFMCommunicate request_size=46 [22:19:02]MH_SAM_APDU [22:19:02]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 82 49 00 00 35 04 06 00 35 AA 3C 0C 72 BE [22:19:02]Write to MH i2c: E2 31 00 CD 0D 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 82 49 00 00 35 04 06 00 35 AA 3C 0C 72 BE 00 00 11 [22:19:02]Write i2c OK [22:19:02]MH_I2C_Read... [22:19:02]OFD Sender: No OFD packet to send [22:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:02]Read from MH i2c: E2 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 03 00 CD 0D 00 90 00 4E [22:19:02]RAPDU: 90 00 [22:19:02]wFMCommunicate OK [22:19:02]wFMCommunicate request_size=4 [22:19:02]MH_SAM_APDU [22:19:02]CAPDU: 80 0D 03 02 [22:19:02]Write to MH i2c: E2 08 00 CE 0D 80 0D 03 02 00 00 00 00 56 [22:19:02]Write i2c OK [22:19:02]MH_I2C_Read... [22:19:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:02]Read from MH i2c: E2 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 0B 00 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 0B 00 CE 0D 00 99 71 AE CC A1 23 4B 5A 90 00 44 [22:19:02]RAPDU: 99 71 AE CC A1 23 4B 5A 90 00 [22:19:02]wFMCommunicate OK [22:19:02]SAM_PROTO_SignData done [22:19:02]FM_MakeSignedData done [22:19:02]CreateOFDProtocolMessage [22:19:02]wFMCommunicate request_size=4 [22:19:02]MH_SAM_APDU [22:19:02]CAPDU: 80 11 00 00 [22:19:02]Write to MH i2c: E2 08 00 CF 0D 80 11 00 00 00 00 00 00 56 [22:19:02]Write i2c OK [22:19:02]MH_I2C_Read... [22:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:02]Read from MH i2c: E2 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 17 00 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: E2 17 00 CF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 AF [22:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:19:02]wFMCommunicate OK [22:19:02]CreateOFDProtocolMessage done [22:19:02]OFDSenderStorePacket 18818 [22:19:02]StoreOFDPacket docnum=18818 [22:19:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 68 D1 2B 01 EB AB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 E9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 82 49 00 00 35 04 06 00 35 AA 3C 0C 72 BE 99 71 AE CC A1 23 4B 5A [22:19:02]CheckFolder [22:19:02]dirname=/storage/ofd_packets [22:19:02]CheckFolder done [22:19:02]ProducePacketName [22:19:02]name=ofd_packets/00018818 [22:19:02]NVStorageSaveData ofd_packets/00018818 [22:19:02]File name is /storage/ofd_packets/00018818 [22:19:02]Write 337 bytes [22:19:02]NVStorageSaveData done [22:19:02]OFDSenderStorePacket done [22:19:02]KKMCreateOFDPacket done [22:19:02]NVStorageSaveData kkm_last_timestamp [22:19:02]File name is /storage/kkm_last_timestamp [22:19:02]Write 4 bytes [22:19:02]NVStorageSaveData done [22:19:02]ExternCall_PrintAddStr [22:19:02]wPrintStart [22:19:02]Write to MH i2c: 01 00 00 D0 0D DD [22:19:02]Write i2c OK [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: 01 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: 01 07 00 [22:19:02]MH_I2C_Read... [22:19:02]Read from MH i2c: 01 07 00 D0 0D 00 00 00 00 00 FF 0F F2 [22:19:02]RasterBufferAndPrint [22:19:02]line Счет N : (3)16734 [22:19:02]line ИНН: 02508201610067 [22:19:02]line Контрольно-Кассовый Чек [22:19:02]line ПРОДАЖА [22:19:02]line Товар: 46146632 [22:19:02]line Р/ж Orbit XXL клубника,банан 20,4г [22:19:02]line 1.000 * 55.00 [22:19:02]line = 55.00 [22:19:02]line НДС 12% НСП 1% [22:19:02]line > о реализуемом товаре [22:19:02]line ИТОГО: 55.00 [22:19:02]line НСП 1% : 0.49 [22:19:02]line НДС 12% : 5.84 [22:19:02]line Наличными: 0.00 [22:19:02]line Безнал.: 55.00 [22:19:02]line Место: АЗС № 176 "Партнер Нефть" [22:19:02]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:19:02]line СНО: Общий режим [22:19:02]line Чек 94 23.09.2024 22:19 [22:19:02]line Смена: 181 ФФД: 1.0 [22:19:02]line ЗНМ: 0300000010 [22:19:02]line РНМ: 0000000000152968 [22:19:02]line Версия ККМ: v1.0 [22:19:02]line Платежная система: O! деньги [22:19:02]line ФМ: 0000000000959456 [22:19:02]line ФД: 18818 [22:19:02]line ФПД: 59005268161214 [22:19:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T221903&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18818&fm=59005268161214&tin=02508201610067®Number=0000000000152968&sum=5500 [22:19:02]line 0 [22:19:02]OFD Sender: Processing packet 18818 [packets to send 7, broken 6] [22:19:02]ProducePacketName [22:19:02]name=ofd_packets/00018818 [22:19:02]OFD Sender: To server: pG, [22:19:02]CommunicateWithHost lk.salyk.kg:30040 [22:19:02]ConnectInit lk.salyk.kg [22:19:02]written 0, free lines is 4095 [22:19:03]Connected sock=10 [22:19:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 68 D1 2B 01 EB AB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 15 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 57 E9 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 82 49 00 00 35 04 06 00 35 AA 3C 0C 72 BE 99 71 AE CC A1 23 4B 5A [22:19:03]Write to MH i2c: 01 00 00 FB 0D 08 [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: 01 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: 01 07 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: 01 07 00 FB 0D 00 00 00 00 00 F1 0C 0C [22:19:03]RasterBufferAndPrint [22:19:03]line [22:19:03]line [22:19:03]line [22:19:03]line [22:19:03]line [22:19:03]written 0, free lines is 3320 [22:19:03]MH_Cut [22:19:03]Write to MH i2c: D1 01 00 02 0E 01 E2 [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: D1 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: D1 01 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: D1 01 00 02 0E 00 E1 [22:19:03]Write to MH i2c: 01 00 00 03 0E 11 [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 84 F8 47 00 1E 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 35 39 34 35 36 10 04 04 00 82 49 00 00 F4 03 04 00 BA 92 F1 66 B6 04 01 00 00 09 A7 2F 00 71 D2 A0 DE [22:19:03]CommunicateWithHost err = 0 [22:19:03]CheckOFDResponse [22:19:03]1017 (14) - 77093643461234 [22:19:03]1041 (16) - 0000000000959456 [22:19:03]1040 (4) - 18818 [22:19:03]1012 (4) - 23.09.2024 16:09 [22:19:03]1206 (1) - 0 [22:19:03]OFD Sender: Remove packet 18818 [22:19:03]ProducePacketName [22:19:03]name=ofd_packets/00018818 [22:19:03]NVStorageDeleteData [22:19:03]OFD Sender: No OFD packet to send [22:19:04]*** Cut start [22:19:04]*** Partial cut [22:19:04]*** CUTSNS_PIN = 1 [22:19:04]*** CUTSNS_PIN = 0 [22:19:04]*** Brake cut motor [22:19:04]Read from MH i2c: 01 [22:19:04]MH_I2C_Read... [22:19:04]*** Stop cut motor [22:19:04]*** Cut end [22:19:04]Read from MH i2c: 01 07 00 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: 01 07 00 03 0E 00 00 00 00 00 FF 0F 26 [22:19:04]process_action close_receipt done [22:19:04]requested_data is exist [22:19:04]produce_requested_data [22:19:04]requested_item fm.sn is exist - process it [22:19:04]wFMCommunicate request_size=4 [22:19:04]MH_SAM_APDU [22:19:04]CAPDU: 80 11 00 00 [22:19:04]Write to MH i2c: E2 08 00 04 0E 80 11 00 00 00 00 00 00 8C [22:19:04]Write i2c OK [22:19:04]MH_I2C_Read... [22:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:04]Read from MH i2c: E2 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 17 00 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 17 00 04 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 E5 [22:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:19:04]wFMCommunicate OK [22:19:04]requested_item fd.num is exist - process it [22:19:04]SAM_PROTO_GetFieldsCounters [22:19:04]wFMCommunicate request_size=4 [22:19:04]MH_SAM_APDU [22:19:04]CAPDU: 80 13 00 00 [22:19:04]Write to MH i2c: E2 08 00 05 0E 80 13 00 00 00 00 00 00 8F [22:19:04]Write i2c OK [22:19:04]MH_I2C_Read... [22:19:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:04]Read from MH i2c: E2 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 62 00 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 62 00 05 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 82 49 00 00 0E 04 04 00 B5 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 56 [22:19:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 82 49 00 00 0E 04 04 00 B5 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 [22:19:04]wFMCommunicate OK [22:19:04]SAM_PROTO_GetFieldsCounters done [22:19:04]requested_item shift.num is exist - process it [22:19:04]requested_item shift.opened is exist - process it [22:19:04]req_shift_opened [22:19:04]FM_GetShiftState [22:19:04]SAM_PROTO_GetShiftState [22:19:04]wFMCommunicate request_size=4 [22:19:04]MH_SAM_APDU [22:19:04]CAPDU: 80 13 01 00 [22:19:04]Write to MH i2c: E2 08 00 06 0E 80 13 01 00 00 00 00 00 91 [22:19:04]Write i2c OK [22:19:04]MH_I2C_Read... [22:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:04]Read from MH i2c: E2 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 0E 00 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 0E 00 06 0E 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 29 [22:19:04]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:19:04]wFMCommunicate OK [22:19:04]SAM_PROTO_GetShiftState done [22:19:04]FM_GetShiftState done [22:19:04]req_shift_opened done [22:19:04]requested_item shift.open_date is exist - process it [22:19:04]req_shift_open_date [22:19:04]req_shift_open_date done [22:19:04]produce_requested_data done [22:19:04]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18818,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [22:19:04]process_action_free close_receipt [22:19:04]json_value_free [22:19:04]json_value_free done [22:19:04]process_json_proto returns [22:19:04]Send response to host [22:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18818,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [22:19:04]free response buf [22:19:04]execute_script done [22:19:04]execute_script returns [22:19:04]free content buf [22:19:04]Sock 9.Close socket [22:19:04]Sock 9.Thread stoped [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21: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:57]accept exits with 7 [22:22:57]New connection [22:22:57]New thread 3066608996 created [22:22:57]Thread 3066752356 joined [22:22:57]Waiting for new connection... [22:22:57] Sock 7.Parse request [22:22:57]Sock 7.Check first char [22:22:57]Sock 7.First char is OK [22:22:57]request: POST /json_proto HTTP/1.0 [22:22:57]Method: POST [22:22:57]URL: /json_proto [22:22:57]Method is POST - this is cgi request [22:22:57]url: /json_proto [22:22:57]query_string will be loaded in cgi processing [22:22:57]execute_cgi json_proto POST (null) [22:22:57]execute_cgi path=json_proto method=POST [22:22:57]POST find Content-Length [22:22:57]Host: 172.17.62.196:8080 [22:22:57]Content-Length: 1019 [22:22:57]Content-Type: application/json [22:22:57] [22:22:57]POST finish read [22:22:57]Found Content-Length = 1019 [22:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16735", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:57]execute_script... [22:22:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16735", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40099484", "name": "\u0416\u0435\u0432 Orbit White \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:57]POST & json_proto [22:22:57]process_json_proto [22:22:57]json parsed OK: [22:22:57]protocol is kg_v1.0 [22:22:57]action value=close_receipt [22:22:57]process_action close_receipt [22:22:57]cmd_close_receipt [22:22:57]MH_GetDate [22:22:57]Write to MH i2c: F0 00 00 07 0E 04 [22:22:57]Write i2c OK [22:22:57]MH_I2C_Read... [22:22:57]Read from MH i2c: F0 [22:22:57]MH_I2C_Read... [22:22:57]Read from MH i2c: F0 09 00 [22:22:57]MH_I2C_Read... [22:22:57]Read from MH i2c: F0 09 00 07 0E 00 44 EA F1 66 CE CC 0E 66 A0 [22:22:57]GetLastDocTimeStamp 1727129943 [22:22:57]current date 1727130180 [22:22:57]FM_GetShiftState [22:22:57]SAM_PROTO_GetShiftState [22:22:57]wFMCommunicate request_size=4 [22:22:57]MH_SAM_APDU [22:22:57]CAPDU: 80 13 01 00 [22:22:57]Write to MH i2c: E2 08 00 08 0E 80 13 01 00 00 00 00 00 93 [22:22:57]Write i2c OK [22:22:57]MH_I2C_Read... [22:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:57]Read from MH i2c: E2 [22:22:57]MH_I2C_Read... [22:22:57]Read from MH i2c: E2 0E 00 [22:22:57]MH_I2C_Read... [22:22:57]Read from MH i2c: E2 0E 00 08 0E 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 2B [22:22:57]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:22:57]wFMCommunicate OK [22:22:57]SAM_PROTO_GetShiftState done [22:22:57]FM_GetShiftState done [22:22:57]opened in 1727050372 [22:22:57]opened+sec_in_day 1727136772 [22:22:57]quantity*price = 5900 [22:22:57]sum+1 = 5901 [22:22:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40099484 Жев Orbit White под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 0.00 Безнал.: 104.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 95 23.09.2024 22:23 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18819 ФПД: 268535838316282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T222300&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18819&fm=268535838316282&tin=02508201610067®Number=0000000000152968&sum=10400 0 [22:22:59]StoreToDocumentArchive [22:22:59]shift 181 fd 18819 [22:22:59]save to /storage/0181/doc_00018819 [22:22:59]save last doc name /storage/0181/doc_00018819 to /storage/kkm_last_doc_name [22:22:59]save OK [22:22:59]Clear old archive folders... [22:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=373 [22:22:59]tlvbuf is 00BFC1C0 [22:22:59]SAM_PROTO_ClearQueue [22:22:59]wFMCommunicate request_size=4 [22:22:59]MH_SAM_APDU [22:22:59]CAPDU: 80 09 00 00 [22:22:59]Write to MH i2c: E2 08 00 15 0E 80 09 00 00 00 00 00 00 95 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:59]Read from MH i2c: E2 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 15 0E 00 90 00 97 [22:22:59]RAPDU: 90 00 [22:22:59]wFMCommunicate OK [22:22:59]SAM_PROTO_ClearQueue done [22:22:59]KKMCreateOFDPacket [22:22:59]OFDProtocolAddRootSTLVToBuf [22:22:59]FM_MakeSignedData [22:22:59]FM_MakeSignedData [22:22:59]SAM_PROTO_SignData [22:22:59]wFMCommunicate request_size=4 [22:22:59]MH_SAM_APDU [22:22:59]CAPDU: 80 0D 01 02 [22:22:59]Write to MH i2c: E2 08 00 16 0E 80 0D 01 02 00 00 00 00 9D [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:59]Read from MH i2c: E2 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 16 0E 00 90 00 98 [22:22:59]RAPDU: 90 00 [22:22:59]wFMCommunicate OK [22:22:59]wFMCommunicate request_size=255 [22:22:59]MH_SAM_APDU [22:22:59]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 [22:22:59]Write to MH i2c: E2 02 01 17 0E 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 00 00 99 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:59]Read from MH i2c: E2 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 17 0E 00 90 00 99 [22:22:59]RAPDU: 90 00 [22:22:59]wFMCommunicate OK [22:22:59]wFMCommunicate request_size=132 [22:22:59]MH_SAM_APDU [22:22:59]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 44 EA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 83 49 00 00 35 04 06 00 F4 3B 5F 40 96 FA [22:22:59]Write to MH i2c: E2 87 00 18 0E 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 44 EA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 83 49 00 00 35 04 06 00 F4 3B 5F 40 96 FA 00 00 C4 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:59]Read from MH i2c: E2 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 03 00 18 0E 00 90 00 9A [22:22:59]RAPDU: 90 00 [22:22:59]wFMCommunicate OK [22:22:59]wFMCommunicate request_size=4 [22:22:59]MH_SAM_APDU [22:22:59]CAPDU: 80 0D 03 02 [22:22:59]Write to MH i2c: E2 08 00 19 0E 80 0D 03 02 00 00 00 00 A2 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:59]Read from MH i2c: E2 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 0B 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 0B 00 19 0E 00 5F B9 69 B8 F4 09 7A 88 90 00 DB [22:22:59]RAPDU: 5F B9 69 B8 F4 09 7A 88 90 00 [22:22:59]wFMCommunicate OK [22:22:59]SAM_PROTO_SignData done [22:22:59]FM_MakeSignedData done [22:22:59]CreateOFDProtocolMessage [22:22:59]wFMCommunicate request_size=4 [22:22:59]MH_SAM_APDU [22:22:59]CAPDU: 80 11 00 00 [22:22:59]Write to MH i2c: E2 08 00 1A 0E 80 11 00 00 00 00 00 00 A2 [22:22:59]Write i2c OK [22:22:59]MH_I2C_Read... [22:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:59]Read from MH i2c: E2 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 17 00 [22:22:59]MH_I2C_Read... [22:22:59]Read from MH i2c: E2 17 00 1A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 FB [22:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:22:59]wFMCommunicate OK [22:22:59]CreateOFDProtocolMessage done [22:22:59]OFDSenderStorePacket 18819 [22:22:59]StoreOFDPacket docnum=18819 [22:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 89 01 00 00 E0 6B 81 01 D7 7F 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 44 EA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 83 49 00 00 35 04 06 00 F4 3B 5F 40 96 FA 5F B9 69 B8 F4 09 7A 88 [22:22:59]CheckFolder [22:22:59]dirname=/storage/ofd_packets [22:22:59]CheckFolder done [22:22:59]ProducePacketName [22:22:59]name=ofd_packets/00018819 [22:22:59]NVStorageSaveData ofd_packets/00018819 [22:22:59]File name is /storage/ofd_packets/00018819 [22:22:59]Write 423 bytes [22:22:59]NVStorageSaveData done [22:22:59]OFDSenderStorePacket done [22:22:59]KKMCreateOFDPacket done [22:22:59]NVStorageSaveData kkm_last_timestamp [22:22:59]File name is /storage/kkm_last_timestamp [22:22:59]Write 4 bytes [22:22:59]NVStorageSaveData done [22:23:00]ExternCall_PrintAddStr [22:23:00]wPrintStart [22:23:00]Write to MH i2c: 01 00 00 1B 0E 29 [22:23:00]OFD Sender: Processing packet 18819 [packets to send 7, broken 6] [22:23:00]ProducePacketName [22:23:00]name=ofd_packets/00018819 [22:23:00]OFD Sender: To server: pG, [22:23:00]CommunicateWithHost lk.salyk.kg:30040 [22:23:00]ConnectInit lk.salyk.kg [22:23:00]Write i2c OK [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: 01 [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: 01 07 00 [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: 01 07 00 1B 0E 00 00 00 00 00 FF 0F 3E [22:23:00]RasterBufferAndPrint [22:23:00]line Счет N : (3)16735 [22:23:00]line ИНН: 02508201610067 [22:23:00]line Контрольно-Кассовый Чек [22:23:00]line ПРОДАЖА [22:23:00]line Товар: 4607065001445 [22:23:00]line Шок батончик Snickers 50,5г [22:23:00]line 1.000 * 59.00 [22:23:00]line = 59.00 [22:23:00]line НДС 12% НСП 1% [22:23:00]line > о реализуемом товаре [22:23:00]line Товар: 40099484 [22:23:00]line Жев Orbit White под [22:23:00]line 1.000 * 45.00 [22:23:00]line = 45.00 [22:23:00]line НДС 12% НСП 1% [22:23:00]line > о реализуемом товаре [22:23:00]line ИТОГО: 104.00 [22:23:00]line НСП 1% : 0.92 [22:23:00]line НДС 12% : 11.04 [22:23:00]line Наличными: 0.00 [22:23:00]line Безнал.: 104.00 [22:23:00]line Место: АЗС № 176 "Партнер Нефть" [22:23:00]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:23:00]line СНО: Общий режим [22:23:00]line Чек 95 23.09.2024 22:23 [22:23:00]line Смена: 181 ФФД: 1.0 [22:23:00]line ЗНМ: 0300000010 [22:23:00]line РНМ: 0000000000152968 [22:23:00]line Версия ККМ: v1.0 [22:23:00]line Платежная система: O! деньги [22:23:00]line ФМ: 0000000000959456 [22:23:00]line ФД: 18819 [22:23:00]line ФПД: 268535838316282 [22:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T222300&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18819&fm=268535838316282&tin=02508201610067®Number=0000000000152968&sum=10400 [22:23:00]line 0 [22:23:00]written 0, free lines is 4095 [22:23:00]Connected sock=10 [22:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 89 01 00 00 E0 6B 81 01 D7 7F 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 08 00 34 30 30 39 39 34 38 34 06 04 19 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 28 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 44 EA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 83 49 00 00 35 04 06 00 F4 3B 5F 40 96 FA 5F B9 69 B8 F4 09 7A 88 [22:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 66 92 47 00 45 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 35 39 34 35 36 10 04 04 00 83 49 00 00 F4 03 04 00 A7 93 F1 66 B6 04 01 00 00 21 75 9D 2D 5A 7F 58 A0 [22:23:00]CommunicateWithHost err = 0 [22:23:00]CheckOFDResponse [22:23:00]1017 (14) - 77093643461234 [22:23:00]1041 (16) - 0000000000959456 [22:23:00]1040 (4) - 18819 [22:23:00]1012 (4) - 23.09.2024 16:13 [22:23:00]1206 (1) - 0 [22:23:00]OFD Sender: Remove packet 18819 [22:23:00]ProducePacketName [22:23:00]name=ofd_packets/00018819 [22:23:00]NVStorageDeleteData [22:23:00]Write to MH i2c: 01 00 00 4B 0E 59 [22:23:00]Write i2c OK [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: 01 [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: 01 07 00 [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: 01 07 00 4B 0E 00 00 00 00 00 C9 0C 35 [22:23:00]RasterBufferAndPrint [22:23:00]line [22:23:00]line [22:23:00]line [22:23:00]line [22:23:00]line [22:23:00]written 0, free lines is 3282 [22:23:00]MH_Cut [22:23:00]Write to MH i2c: D1 01 00 52 0E 01 32 [22:23:00]Write i2c OK [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: D1 [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: D1 01 00 [22:23:00]MH_I2C_Read... [22:23:00]Read from MH i2c: D1 01 00 52 0E 00 31 [22:23:00]Write to MH i2c: 01 00 00 53 0E 61 [22:23:00]Write i2c OK [22:23:00]MH_I2C_Read... [22:23:01]OFD Sender: No OFD packet to send [22:23:01]*** Cut start [22:23:01]*** Partial cut [22:23:01]*** CUTSNS_PIN = 1 [22:23:01]*** CUTSNS_PIN = 0 [22:23:01]*** Brake cut motor [22:23:01]Read from MH i2c: 01 [22:23:01]MH_I2C_Read... [22:23:01]*** Stop cut motor [22:23:01]*** Cut end [22:23:01]Read from MH i2c: 01 07 00 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 FF 0F 76 [22:23:01]process_action close_receipt done [22:23:01]requested_data is exist [22:23:01]produce_requested_data [22:23:01]requested_item fm.sn is exist - process it [22:23:01]wFMCommunicate request_size=4 [22:23:01]MH_SAM_APDU [22:23:01]CAPDU: 80 11 00 00 [22:23:01]Write to MH i2c: E2 08 00 54 0E 80 11 00 00 00 00 00 00 DC [22:23:01]Write i2c OK [22:23:01]MH_I2C_Read... [22:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:01]Read from MH i2c: E2 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 17 00 [22:23:01]MH_I2C_Read... [22:23:01]Read from MH i2c: E2 17 00 54 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 35 [22:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:23:01]wFMCommunicate OK [22:23:01]requested_item fd.num is exist - process it [22:23:01]SAM_PROTO_GetFieldsCounters [22:23:01]wFMCommunicate request_size=4 [22:23:01]MH_SAM_APDU [22:23:01]CAPDU: 80 13 00 00 [22:23:01]Write to MH i2c: E2 08 00 55 0E 80 13 00 00 00 00 00 00 DF [22:23:01]Write i2c OK [22:23:01]MH_I2C_Read... [22:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:02]Read from MH i2c: E2 [22:23:02]MH_I2C_Read... [22:23:02]Read from MH i2c: E2 62 00 [22:23:02]MH_I2C_Read... [22:23:02]Read from MH i2c: E2 62 00 55 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 83 49 00 00 0E 04 04 00 B5 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 AA [22:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 83 49 00 00 0E 04 04 00 B5 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 [22:23:02]wFMCommunicate OK [22:23:02]SAM_PROTO_GetFieldsCounters done [22:23:02]requested_item shift.num is exist - process it [22:23:02]requested_item shift.opened is exist - process it [22:23:02]req_shift_opened [22:23:02]FM_GetShiftState [22:23:02]SAM_PROTO_GetShiftState [22:23:02]wFMCommunicate request_size=4 [22:23:02]MH_SAM_APDU [22:23:02]CAPDU: 80 13 01 00 [22:23:02]Write to MH i2c: E2 08 00 56 0E 80 13 01 00 00 00 00 00 E1 [22:23:02]Write i2c OK [22:23:02]MH_I2C_Read... [22:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:02]Read from MH i2c: E2 [22:23:02]MH_I2C_Read... [22:23:02]Read from MH i2c: E2 0E 00 [22:23:02]MH_I2C_Read... [22:23:02]Read from MH i2c: E2 0E 00 56 0E 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 79 [22:23:02]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:23:02]wFMCommunicate OK [22:23:02]SAM_PROTO_GetShiftState done [22:23:02]FM_GetShiftState done [22:23:02]req_shift_opened done [22:23:02]requested_item shift.open_date is exist - process it [22:23:02]req_shift_open_date [22:23:02]req_shift_open_date done [22:23:02]produce_requested_data done [22:23:02]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18819,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [22:23:02]process_action_free close_receipt [22:23:02]json_value_free [22:23:02]json_value_free done [22:23:02]process_json_proto returns [22:23:02]Send response to host [22:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18819,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [22:23:02]free response buf [22:23:02]execute_script done [22:23:02]execute_script returns [22:23:02]free content buf [22:23:02]Sock 7.Close socket [22:23:02]Sock 7.Thread stoped [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:22]accept exits with 9 [22:41:22]New connection [22:41:22]New thread 3066752356 created [22:41:22]Thread 3066608996 joined [22:41:22]Waiting for new connection... [22:41:22] Sock 9.Parse request [22:41:22]Sock 9.Check first char [22:41:22]Sock 9.First char is OK [22:41:22]request: POST /json_proto HTTP/1.0 [22:41:22]Method: POST [22:41:22]URL: /json_proto [22:41:22]Method is POST - this is cgi request [22:41:22]url: /json_proto [22:41:22]query_string will be loaded in cgi processing [22:41:22]execute_cgi json_proto POST (null) [22:41:22]execute_cgi path=json_proto method=POST [22:41:22]POST find Content-Length [22:41:22]Host: 172.17.62.196:8080 [22:41:22]Content-Length: 876 [22:41:22]Content-Type: application/json [22:41:22] [22:41:22]POST finish read [22:41:22]Found Content-Length = 876 [22:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16736", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:22]execute_script... [22:41:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16736", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:22]POST & json_proto [22:41:22]process_json_proto [22:41:22]json parsed OK: [22:41:22]protocol is kg_v1.0 [22:41:22]action value=close_receipt [22:41:22]process_action close_receipt [22:41:22]cmd_close_receipt [22:41:22]MH_GetDate [22:41:22]Write to MH i2c: F0 00 00 57 0E 54 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: F0 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: F0 09 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: F0 09 00 57 0E 00 95 EE F1 66 CE CC 0E 66 45 [22:41:22]GetLastDocTimeStamp 1727130180 [22:41:22]current date 1727131285 [22:41:22]FM_GetShiftState [22:41:22]SAM_PROTO_GetShiftState [22:41:22]wFMCommunicate request_size=4 [22:41:22]MH_SAM_APDU [22:41:22]CAPDU: 80 13 01 00 [22:41:22]Write to MH i2c: E2 08 00 58 0E 80 13 01 00 00 00 00 00 E3 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:22]Read from MH i2c: E2 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: E2 0E 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: E2 0E 00 58 0E 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 7B [22:41:22]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:41:22]wFMCommunicate OK [22:41:22]SAM_PROTO_GetShiftState done [22:41:22]FM_GetShiftState done [22:41:22]opened in 1727050372 [22:41:22]opened+sec_in_day 1727136772 [22:41:22]quantity*price = 10500 [22:41:22]sum+1 = 10501 [22:41:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 96 23.09.2024 22:41 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18820 ФПД: 251909255468548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224125&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18820&fm=251909255468548&tin=02508201610067®Number=0000000000152968&sum=15000 0 [22:41:24]StoreToDocumentArchive [22:41:24]shift 181 fd 18820 [22:41:24]save to /storage/0181/doc_00018820 [22:41:24]save last doc name /storage/0181/doc_00018820 to /storage/kkm_last_doc_name [22:41:24]save OK [22:41:24]Clear old archive folders... [22:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=381 [22:41:24]tlvbuf is 00BF5FC0 [22:41:24]SAM_PROTO_ClearQueue [22:41:24]wFMCommunicate request_size=4 [22:41:24]MH_SAM_APDU [22:41:24]CAPDU: 80 09 00 00 [22:41:24]Write to MH i2c: E2 08 00 65 0E 80 09 00 00 00 00 00 00 E5 [22:41:24]Write i2c OK [22:41:24]MH_I2C_Read... [22:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:24]Read from MH i2c: E2 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [22:41:24]RAPDU: 90 00 [22:41:24]wFMCommunicate OK [22:41:24]SAM_PROTO_ClearQueue done [22:41:24]KKMCreateOFDPacket [22:41:24]OFDProtocolAddRootSTLVToBuf [22:41:24]FM_MakeSignedData [22:41:24]FM_MakeSignedData [22:41:24]SAM_PROTO_SignData [22:41:24]wFMCommunicate request_size=4 [22:41:24]MH_SAM_APDU [22:41:24]CAPDU: 80 0D 01 02 [22:41:24]Write to MH i2c: E2 08 00 66 0E 80 0D 01 02 00 00 00 00 ED [22:41:24]Write i2c OK [22:41:24]MH_I2C_Read... [22:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:24]Read from MH i2c: E2 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [22:41:24]RAPDU: 90 00 [22:41:24]wFMCommunicate OK [22:41:24]wFMCommunicate request_size=255 [22:41:24]MH_SAM_APDU [22:41:24]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 [22:41:24]Write to MH i2c: E2 02 01 67 0E 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 15 [22:41:24]Write i2c OK [22:41:24]MH_I2C_Read... [22:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:24]Read from MH i2c: E2 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [22:41:24]RAPDU: 90 00 [22:41:24]wFMCommunicate OK [22:41:24]wFMCommunicate request_size=140 [22:41:24]MH_SAM_APDU [22:41:24]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 EE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 84 49 00 00 35 04 06 00 E5 1C 31 B0 16 04 [22:41:24]Write to MH i2c: E2 8F 00 68 0E 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 EE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 84 49 00 00 35 04 06 00 E5 1C 31 B0 16 04 00 00 00 [22:41:24]Write i2c OK [22:41:24]MH_I2C_Read... [22:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:24]Read from MH i2c: E2 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 03 00 68 0E 00 90 00 EA [22:41:24]RAPDU: 90 00 [22:41:24]wFMCommunicate OK [22:41:24]wFMCommunicate request_size=4 [22:41:24]MH_SAM_APDU [22:41:24]CAPDU: 80 0D 03 02 [22:41:24]Write to MH i2c: E2 08 00 69 0E 80 0D 03 02 00 00 00 00 F2 [22:41:24]Write i2c OK [22:41:24]MH_I2C_Read... [22:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:24]Read from MH i2c: E2 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 0B 00 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 0B 00 69 0E 00 98 90 DE 82 DA 9E 24 0A 90 00 21 [22:41:24]RAPDU: 98 90 DE 82 DA 9E 24 0A 90 00 [22:41:24]wFMCommunicate OK [22:41:24]SAM_PROTO_SignData done [22:41:24]FM_MakeSignedData done [22:41:24]CreateOFDProtocolMessage [22:41:24]wFMCommunicate request_size=4 [22:41:24]MH_SAM_APDU [22:41:24]CAPDU: 80 11 00 00 [22:41:24]Write to MH i2c: E2 08 00 6A 0E 80 11 00 00 00 00 00 00 F2 [22:41:24]Write i2c OK [22:41:24]MH_I2C_Read... [22:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:24]Read from MH i2c: E2 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 17 00 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: E2 17 00 6A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4B [22:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:41:24]wFMCommunicate OK [22:41:24]CreateOFDProtocolMessage done [22:41:24]OFDSenderStorePacket 18820 [22:41:24]StoreOFDPacket docnum=18820 [22:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 91 01 00 00 FA C6 89 01 E3 98 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 EE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 84 49 00 00 35 04 06 00 E5 1C 31 B0 16 04 98 90 DE 82 DA 9E 24 0A [22:41:24]CheckFolder [22:41:24]dirname=/storage/ofd_packets [22:41:24]CheckFolder done [22:41:24]ProducePacketName [22:41:24]name=ofd_packets/00018820 [22:41:24]NVStorageSaveData ofd_packets/00018820 [22:41:24]File name is /storage/ofd_packets/00018820 [22:41:24]Write 431 bytes [22:41:24]NVStorageSaveData done [22:41:24]OFDSenderStorePacket done [22:41:24]KKMCreateOFDPacket done [22:41:24]NVStorageSaveData kkm_last_timestamp [22:41:24]File name is /storage/kkm_last_timestamp [22:41:24]Write 4 bytes [22:41:24]NVStorageSaveData done [22:41:24]ExternCall_PrintAddStr [22:41:24]wPrintStart [22:41:24]Write to MH i2c: 01 00 00 6B 0E 79 [22:41:24]Write i2c OK [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: 01 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: 01 07 00 [22:41:24]MH_I2C_Read... [22:41:24]Read from MH i2c: 01 07 00 6B 0E 00 00 00 00 00 FF 0F 8E [22:41:24]RasterBufferAndPrint [22:41:24]line Счет N : (3)16736 [22:41:24]line ИНН: 02508201610067 [22:41:24]line Контрольно-Кассовый Чек [22:41:24]line ПРОДАЖА [22:41:24]line Товар: 5449000189318 [22:41:24]line Холодный чай Fuse лимон 1л [22:41:25]line 1.000 * 105.00 [22:41:25]line = 105.00 [22:41:25]line НДС 12% НСП 1% [22:41:25]line > о реализуемом товаре [22:41:25]line Товар: 42069942 [22:41:25]line Жев Orbit White Fresh Mint [22:41:25]line 1.000 * 45.00 [22:41:25]line = 45.00 [22:41:25]line НДС 12% НСП 1% [22:41:25]line > о реализуемом товаре [22:41:25]line ИТОГО: 150.00 [22:41:25]line НСП 1% : 1.33 [22:41:25]line НДС 12% : 15.93 [22:41:25]line Наличными: 150.00 [22:41:25]line Безнал.: 0.00 [22:41:25]line Место: АЗС № 176 "Партнер Нефть" [22:41:25]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:41:25]line СНО: Общий режим [22:41:25]line Чек 96 23.09.2024 22:41 [22:41:25]line Смена: 181 ФФД: 1.0 [22:41:25]line ЗНМ: 0300000010 [22:41:25]line РНМ: 0000000000152968 [22:41:25]line Версия ККМ: v1.0 [22:41:25]line ФМ: 0000000000959456 [22:41:25]line ФД: 18820 [22:41:25]line ФПД: 251909255468548 [22:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T224125&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18820&fm=251909255468548&tin=02508201610067®Number=0000000000152968&sum=15000 [22:41:25]line 0 [22:41:25]OFD Sender: Processing packet 18820 [packets to send 7, broken 6] [22:41:25]ProducePacketName [22:41:25]name=ofd_packets/00018820 [22:41:25]OFD Sender: To server: pG, [22:41:25]CommunicateWithHost lk.salyk.kg:30040 [22:41:25]ConnectInit lk.salyk.kg [22:41:25]written 0, free lines is 4095 [22:41:25]Connected sock=10 [22:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 91 01 00 00 FA C6 89 01 E3 98 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 EE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 84 49 00 00 35 04 06 00 E5 1C 31 B0 16 04 98 90 DE 82 DA 9E 24 0A [22:41:25]Write to MH i2c: 01 00 00 99 0E A7 [22:41:25]Write i2c OK [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: 01 [22:41:25]MH_I2C_Read... [22:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 9B 21 47 00 2A EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 84 49 00 00 F4 03 04 00 F8 97 F1 66 B6 04 01 00 00 D2 27 B4 10 40 72 52 05 [22:41:25]CommunicateWithHost err = 0 [22:41:25]CheckOFDResponse [22:41:25]1017 (14) - 77093643461234 [22:41:25]1041 (16) - 0000000000959456 [22:41:25]1040 (4) - 18820 [22:41:25]1012 (4) - 23.09.2024 16:31 [22:41:25]1206 (1) - 0 [22:41:25]OFD Sender: Remove packet 18820 [22:41:25]ProducePacketName [22:41:25]name=ofd_packets/00018820 [22:41:25]NVStorageDeleteData [22:41:25]Read from MH i2c: 01 07 00 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: 01 07 00 99 0E 00 00 00 00 00 CE 0C 88 [22:41:25]RasterBufferAndPrint [22:41:25]line [22:41:25]line [22:41:25]line [22:41:25]line [22:41:25]line [22:41:25]written 0, free lines is 3320 [22:41:25]MH_Cut [22:41:25]Write to MH i2c: D1 01 00 A0 0E 01 80 [22:41:25]Write i2c OK [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: D1 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: D1 01 00 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: D1 01 00 A0 0E 00 7F [22:41:25]Write to MH i2c: 01 00 00 A1 0E AF [22:41:25]Write i2c OK [22:41:25]MH_I2C_Read... [22:41:26]OFD Sender: No OFD packet to send [22:41:26]*** Cut start [22:41:26]*** Partial cut [22:41:26]*** CUTSNS_PIN = 1 [22:41:26]*** CUTSNS_PIN = 0 [22:41:26]*** Brake cut motor [22:41:26]Read from MH i2c: 01 [22:41:26]MH_I2C_Read... [22:41:26]*** Stop cut motor [22:41:26]*** Cut end [22:41:26]Read from MH i2c: 01 07 00 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 FF 0F C4 [22:41:26]process_action close_receipt done [22:41:26]requested_data is exist [22:41:26]produce_requested_data [22:41:26]requested_item fm.sn is exist - process it [22:41:26]wFMCommunicate request_size=4 [22:41:26]MH_SAM_APDU [22:41:26]CAPDU: 80 11 00 00 [22:41:26]Write to MH i2c: E2 08 00 A2 0E 80 11 00 00 00 00 00 00 2A [22:41:26]Write i2c OK [22:41:26]MH_I2C_Read... [22:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:26]Read from MH i2c: E2 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 17 00 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 17 00 A2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 83 [22:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:41:26]wFMCommunicate OK [22:41:26]requested_item fd.num is exist - process it [22:41:26]SAM_PROTO_GetFieldsCounters [22:41:26]wFMCommunicate request_size=4 [22:41:26]MH_SAM_APDU [22:41:26]CAPDU: 80 13 00 00 [22:41:26]Write to MH i2c: E2 08 00 A3 0E 80 13 00 00 00 00 00 00 2D [22:41:26]Write i2c OK [22:41:26]MH_I2C_Read... [22:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:26]Read from MH i2c: E2 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 62 00 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 62 00 A3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 84 49 00 00 0E 04 04 00 B5 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 FC [22:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 84 49 00 00 0E 04 04 00 B5 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 [22:41:26]wFMCommunicate OK [22:41:26]SAM_PROTO_GetFieldsCounters done [22:41:26]requested_item shift.num is exist - process it [22:41:26]requested_item shift.opened is exist - process it [22:41:26]req_shift_opened [22:41:26]FM_GetShiftState [22:41:26]SAM_PROTO_GetShiftState [22:41:26]wFMCommunicate request_size=4 [22:41:26]MH_SAM_APDU [22:41:26]CAPDU: 80 13 01 00 [22:41:26]Write to MH i2c: E2 08 00 A4 0E 80 13 01 00 00 00 00 00 2F [22:41:26]Write i2c OK [22:41:26]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0E 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0E 00 A4 0E 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C7 [22:41:27]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:41:27]wFMCommunicate OK [22:41:27]SAM_PROTO_GetShiftState done [22:41:27]FM_GetShiftState done [22:41:27]req_shift_opened done [22:41:27]requested_item shift.open_date is exist - process it [22:41:27]req_shift_open_date [22:41:27]req_shift_open_date done [22:41:27]produce_requested_data done [22:41:27]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18820,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [22:41:27]process_action_free close_receipt [22:41:27]json_value_free [22:41:27]json_value_free done [22:41:27]process_json_proto returns [22:41:27]Send response to host [22:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18820,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [22:41:27]free response buf [22:41:27]execute_script done [22:41:27]execute_script returns [22:41:27]free content buf [22:41:27]Sock 9.Close socket [22:41:27]Sock 9.Thread stoped [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [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:22]accept exits with 7 [22:50:22]New connection [22:50:22]New thread 3066608996 created [22:50:22]Thread 3066752356 joined [22:50:22]Waiting for new connection... [22:50:22] Sock 7.Parse request [22:50:22]Sock 7.Check first char [22:50:22]Sock 7.First char is OK [22:50:22]request: POST /json_proto HTTP/1.0 [22:50:22]Method: POST [22:50:22]URL: /json_proto [22:50:22]Method is POST - this is cgi request [22:50:22]url: /json_proto [22:50:22]query_string will be loaded in cgi processing [22:50:22]execute_cgi json_proto POST (null) [22:50:22]execute_cgi path=json_proto method=POST [22:50:22]POST find Content-Length [22:50:22]Host: 172.17.62.196:8080 [22:50:22]Content-Length: 651 [22:50:22]Content-Type: application/json [22:50:22] [22:50:22]POST finish read [22:50:22]Found Content-Length = 651 [22:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16737", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:22]execute_script... [22:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16737", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:22]POST & json_proto [22:50:22]process_json_proto [22:50:22]json parsed OK: [22:50:22]protocol is kg_v1.0 [22:50:22]action value=close_receipt [22:50:22]process_action close_receipt [22:50:22]cmd_close_receipt [22:50:22]MH_GetDate [22:50:22]Write to MH i2c: F0 00 00 A5 0E A2 [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: F0 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: F0 09 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: F0 09 00 A5 0E 00 B1 F0 F1 66 CE CC 0E 66 B1 [22:50:22]GetLastDocTimeStamp 1727131285 [22:50:22]current date 1727131825 [22:50:22]FM_GetShiftState [22:50:22]SAM_PROTO_GetShiftState [22:50:22]wFMCommunicate request_size=4 [22:50:22]MH_SAM_APDU [22:50:22]CAPDU: 80 13 01 00 [22:50:22]Write to MH i2c: E2 08 00 A6 0E 80 13 01 00 00 00 00 00 31 [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:22]Read from MH i2c: E2 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 0E 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 0E 00 A6 0E 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 C9 [22:50:22]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:50:22]wFMCommunicate OK [22:50:22]SAM_PROTO_GetShiftState done [22:50:22]FM_GetShiftState done [22:50:22]opened in 1727050372 [22:50:22]opened+sec_in_day 1727136772 [22:50:22]quantity*price = 12500 [22:50:22]sum+1 = 12501 [22:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 97 23.09.2024 22:50 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18821 ФПД: 276017095229437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225025&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18821&fm=276017095229437&tin=02508201610067®Number=0000000000152968&sum=12500 0 [22:50:23]StoreToDocumentArchive [22:50:23]shift 181 fd 18821 [22:50:23]save to /storage/0181/doc_00018821 [22:50:23]save last doc name /storage/0181/doc_00018821 to /storage/kkm_last_doc_name [22:50:23]save OK [22:50:23]Clear old archive folders... [22:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=284 [22:50:23]tlvbuf is B6F247E0 [22:50:23]SAM_PROTO_ClearQueue [22:50:23]wFMCommunicate request_size=4 [22:50:23]MH_SAM_APDU [22:50:23]CAPDU: 80 09 00 00 [22:50:23]Write to MH i2c: E2 08 00 B3 0E 80 09 00 00 00 00 00 00 33 [22:50:23]Write i2c OK [22:50:23]MH_I2C_Read... [22:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:23]Read from MH i2c: E2 [22:50:23]MH_I2C_Read... [22:50:23]Read from MH i2c: E2 03 00 [22:50:23]MH_I2C_Read... [22:50:23]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [22:50:23]RAPDU: 90 00 [22:50:23]wFMCommunicate OK [22:50:23]SAM_PROTO_ClearQueue done [22:50:23]KKMCreateOFDPacket [22:50:23]OFDProtocolAddRootSTLVToBuf [22:50:23]FM_MakeSignedData [22:50:23]FM_MakeSignedData [22:50:23]SAM_PROTO_SignData [22:50:23]wFMCommunicate request_size=4 [22:50:23]MH_SAM_APDU [22:50:23]CAPDU: 80 0D 01 02 [22:50:23]Write to MH i2c: E2 08 00 B4 0E 80 0D 01 02 00 00 00 00 3B [22:50:23]Write i2c OK [22:50:23]MH_I2C_Read... [22:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:23]Read from MH i2c: E2 [22:50:23]MH_I2C_Read... [22:50:23]Read from MH i2c: E2 03 00 [22:50:23]MH_I2C_Read... [22:50:23]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [22:50:23]RAPDU: 90 00 [22:50:23]wFMCommunicate OK [22:50:23]wFMCommunicate request_size=255 [22:50:23]MH_SAM_APDU [22:50:23]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B1 F0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [22:50:23]Write to MH i2c: E2 02 01 B5 0E 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B1 F0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 F1 [22:50:23]Write i2c OK [22:50:23]MH_I2C_Read... [22:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:24]Read from MH i2c: E2 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 03 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [22:50:24]RAPDU: 90 00 [22:50:24]wFMCommunicate OK [22:50:24]wFMCommunicate request_size=43 [22:50:24]MH_SAM_APDU [22:50:24]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 85 49 00 00 35 04 06 00 FB 09 3C E9 BF FD [22:50:24]Write to MH i2c: E2 2E 00 B6 0E 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 85 49 00 00 35 04 06 00 FB 09 3C E9 BF FD 00 00 DF [22:50:24]Write i2c OK [22:50:24]MH_I2C_Read... [22:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:24]Read from MH i2c: E2 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 03 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [22:50:24]RAPDU: 90 00 [22:50:24]wFMCommunicate OK [22:50:24]wFMCommunicate request_size=4 [22:50:24]MH_SAM_APDU [22:50:24]CAPDU: 80 0D 03 02 [22:50:24]Write to MH i2c: E2 08 00 B7 0E 80 0D 03 02 00 00 00 00 40 [22:50:24]Write i2c OK [22:50:24]MH_I2C_Read... [22:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:24]Read from MH i2c: E2 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 0B 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 0B 00 B7 0E 00 E5 B1 1B 1A 59 4D F6 B5 90 00 5D [22:50:24]RAPDU: E5 B1 1B 1A 59 4D F6 B5 90 00 [22:50:24]wFMCommunicate OK [22:50:24]SAM_PROTO_SignData done [22:50:24]FM_MakeSignedData done [22:50:24]CreateOFDProtocolMessage [22:50:24]wFMCommunicate request_size=4 [22:50:24]MH_SAM_APDU [22:50:24]CAPDU: 80 11 00 00 [22:50:24]Write to MH i2c: E2 08 00 B8 0E 80 11 00 00 00 00 00 00 40 [22:50:24]Write i2c OK [22:50:24]MH_I2C_Read... [22:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:24]Read from MH i2c: E2 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 17 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 17 00 B8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 99 [22:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:50:24]wFMCommunicate OK [22:50:24]CreateOFDProtocolMessage done [22:50:24]OFDSenderStorePacket 18821 [22:50:24]StoreOFDPacket docnum=18821 [22:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 DB 67 28 01 BF 6A 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B1 F0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 85 49 00 00 35 04 06 00 FB 09 3C E9 BF FD E5 B1 1B 1A 59 4D F6 B5 [22:50:24]CheckFolder [22:50:24]dirname=/storage/ofd_packets [22:50:24]CheckFolder done [22:50:24]ProducePacketName [22:50:24]name=ofd_packets/00018821 [22:50:24]NVStorageSaveData ofd_packets/00018821 [22:50:24]File name is /storage/ofd_packets/00018821 [22:50:24]Write 334 bytes [22:50:24]NVStorageSaveData done [22:50:24]OFDSenderStorePacket done [22:50:24]KKMCreateOFDPacket done [22:50:24]NVStorageSaveData kkm_last_timestamp [22:50:24]File name is /storage/kkm_last_timestamp [22:50:24]Write 4 bytes [22:50:24]NVStorageSaveData done [22:50:24]ExternCall_PrintAddStr [22:50:24]wPrintStart [22:50:24]Write to MH i2c: 01 00 00 B9 0E C7 [22:50:24]Write i2c OK [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: 01 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: 01 07 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 FF 0F DC [22:50:24]RasterBufferAndPrint [22:50:24]line Счет N : (3)16737 [22:50:24]line ИНН: 02508201610067 [22:50:24]line Контрольно-Кассовый Чек [22:50:24]line ПРОДАЖА [22:50:24]line Товар: 2000036190018 [22:50:24]line Кофе Американо XL(GABB TRADE) [22:50:24]line 1.000 * 125.00 [22:50:24]line = 125.00 [22:50:24]line НДС 12% НСП 1% [22:50:24]line > о реализуемом товаре [22:50:24]line ИТОГО: 125.00 [22:50:24]line НСП 1% : 1.11 [22:50:24]line НДС 12% : 13.27 [22:50:24]line Наличными: 125.00 [22:50:24]line Безнал.: 0.00 [22:50:24]line Место: АЗС № 176 "Партнер Нефть" [22:50:24]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [22:50:24]line СНО: Общий режим [22:50:24]line Чек 97 23.09.2024 22:50 [22:50:24]line Смена: 181 ФФД: 1.0 [22:50:24]line ЗНМ: 0300000010 [22:50:24]line РНМ: 0000000000152968 [22:50:24]line Версия ККМ: v1.0 [22:50:24]line ФМ: 0000000000959456 [22:50:24]line ФД: 18821 [22:50:24]line ФПД: 276017095229437 [22:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T225025&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18821&fm=276017095229437&tin=02508201610067®Number=0000000000152968&sum=12500 [22:50:24]line 0 [22:50:24]OFD Sender: Processing packet 18821 [packets to send 7, broken 6] [22:50:24]ProducePacketName [22:50:24]name=ofd_packets/00018821 [22:50:24]OFD Sender: To server: pG, [22:50:24]CommunicateWithHost lk.salyk.kg:30040 [22:50:24]ConnectInit lk.salyk.kg [22:50:24]written 0, free lines is 4095 [22:50:24]Connected sock=10 [22:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 30 01 00 00 DB 67 28 01 BF 6A 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 B1 F0 F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 85 49 00 00 35 04 06 00 FB 09 3C E9 BF FD E5 B1 1B 1A 59 4D F6 B5 [22:50:25]Write to MH i2c: 01 00 00 E2 0E F0 [22:50:25]Write i2c OK [22:50:25]MH_I2C_Read... [22:50:25]Read from MH i2c: 01 [22:50:25]MH_I2C_Read... [22:50:25]Read from MH i2c: 01 07 00 [22:50:25]MH_I2C_Read... [22:50:25]Read from MH i2c: 01 07 00 E2 0E 00 00 00 00 00 0F 0D 13 [22:50:25]RasterBufferAndPrint [22:50:25]line [22:50:25]line [22:50:25]line [22:50:25]line [22:50:25]line [22:50:25]written 0, free lines is 3349 [22:50:25]MH_Cut [22:50:25]Write to MH i2c: D1 01 00 E9 0E 01 C9 [22:50:25]Write i2c OK [22:50:25]MH_I2C_Read... [22:50:25]Read from MH i2c: D1 [22:50:25]MH_I2C_Read... [22:50:25]Read from MH i2c: D1 01 00 [22:50:25]MH_I2C_Read... [22:50:25]Read from MH i2c: D1 01 00 E9 0E 00 C8 [22:50:25]Write to MH i2c: 01 00 00 EA 0E F8 [22:50:25]Write i2c OK [22:50:25]MH_I2C_Read... [22:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 31 1B 47 00 EC 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 35 39 34 35 36 10 04 04 00 85 49 00 00 F4 03 04 00 14 9A F1 66 B6 04 01 00 00 BF 5D BC 78 56 98 BC 23 [22:50:25]CommunicateWithHost err = 0 [22:50:25]CheckOFDResponse [22:50:25]1017 (14) - 77093643461234 [22:50:25]1041 (16) - 0000000000959456 [22:50:25]1040 (4) - 18821 [22:50:25]1012 (4) - 23.09.2024 16:40 [22:50:25]1206 (1) - 0 [22:50:25]OFD Sender: Remove packet 18821 [22:50:25]ProducePacketName [22:50:25]name=ofd_packets/00018821 [22:50:25]NVStorageDeleteData [22:50:25]OFD Sender: No OFD packet to send [22:50:25]*** Cut start [22:50:25]*** Partial cut [22:50:25]*** CUTSNS_PIN = 1 [22:50:25]*** CUTSNS_PIN = 0 [22:50:25]*** Brake cut motor [22:50:26]Read from MH i2c: 01 [22:50:26]MH_I2C_Read... [22:50:26]*** Stop cut motor [22:50:26]*** Cut end [22:50:26]Read from MH i2c: 01 07 00 [22:50:26]MH_I2C_Read... [22:50:26]Read from MH i2c: 01 07 00 EA 0E 00 00 00 00 00 FF 0F 0D [22:50:26]process_action close_receipt done [22:50:26]requested_data is exist [22:50:26]produce_requested_data [22:50:26]requested_item fm.sn is exist - process it [22:50:26]wFMCommunicate request_size=4 [22:50:26]MH_SAM_APDU [22:50:26]CAPDU: 80 11 00 00 [22:50:26]Write to MH i2c: E2 08 00 EB 0E 80 11 00 00 00 00 00 00 73 [22:50:26]Write i2c OK [22:50:26]MH_I2C_Read... [22:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:26]Read from MH i2c: E2 [22:50:26]MH_I2C_Read... [22:50:26]Read from MH i2c: E2 17 00 [22:50:26]MH_I2C_Read... [22:50:26]Read from MH i2c: E2 17 00 EB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CC [22:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [22:50:26]wFMCommunicate OK [22:50:26]requested_item fd.num is exist - process it [22:50:26]SAM_PROTO_GetFieldsCounters [22:50:26]wFMCommunicate request_size=4 [22:50:26]MH_SAM_APDU [22:50:26]CAPDU: 80 13 00 00 [22:50:26]Write to MH i2c: E2 08 00 EC 0E 80 13 00 00 00 00 00 00 76 [22:50:26]Write i2c OK [22:50:26]MH_I2C_Read... [22:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:26]Read from MH i2c: E2 [22:50:26]MH_I2C_Read... [22:50:26]Read from MH i2c: E2 62 00 [22:50:26]MH_I2C_Read... [22:50:26]Read from MH i2c: E2 62 00 EC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 85 49 00 00 0E 04 04 00 B5 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 49 [22:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 85 49 00 00 0E 04 04 00 B5 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 [22:50:26]wFMCommunicate OK [22:50:26]SAM_PROTO_GetFieldsCounters done [22:50:26]requested_item shift.num is exist - process it [22:50:26]requested_item shift.opened is exist - process it [22:50:26]req_shift_opened [22:50:26]FM_GetShiftState [22:50:26]SAM_PROTO_GetShiftState [22:50:26]wFMCommunicate request_size=4 [22:50:26]MH_SAM_APDU [22:50:26]CAPDU: 80 13 01 00 [22:50:26]Write to MH i2c: E2 08 00 ED 0E 80 13 01 00 00 00 00 00 78 [22:50:26]Write i2c OK [22:50:26]MH_I2C_Read... [22:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:26]Read from MH i2c: E2 [22:50:26]MH_I2C_Read... [22:50:26]Read from MH i2c: E2 0E 00 [22:50:26]MH_I2C_Read... [22:50:26]Read from MH i2c: E2 0E 00 ED 0E 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 10 [22:50:26]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [22:50:26]wFMCommunicate OK [22:50:26]SAM_PROTO_GetShiftState done [22:50:26]FM_GetShiftState done [22:50:26]req_shift_opened done [22:50:26]requested_item shift.open_date is exist - process it [22:50:26]req_shift_open_date [22:50:26]req_shift_open_date done [22:50:26]produce_requested_data done [22:50:26]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18821,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [22:50:26]process_action_free close_receipt [22:50:26]json_value_free [22:50:26]json_value_free done [22:50:26]process_json_proto returns [22:50:26]Send response to host [22:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18821,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [22:50:26]free response buf [22:50:26]execute_script done [22:50:26]execute_script returns [22:50:26]free content buf [22:50:26]Sock 7.Close socket [22:50:26]Sock 7.Thread stoped [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:21]ConnectInit Can't connect to host [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:39]ConnectInit Can't connect to host [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:20:57]ConnectInit Can't connect to host [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30: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:46]accept exits with 9 [23:30:46]New connection [23:30:46]New thread 3066752356 created [23:30:46]Thread 3066608996 joined [23:30:46]Waiting for new connection... [23:30:46] Sock 9.Parse request [23:30:46]Sock 9.Check first char [23:30:46]Sock 9.First char is OK [23:30:46]request: POST /json_proto HTTP/1.0 [23:30:46]Method: POST [23:30:46]URL: /json_proto [23:30:46]Method is POST - this is cgi request [23:30:46]url: /json_proto [23:30:46]query_string will be loaded in cgi processing [23:30:46]execute_cgi json_proto POST (null) [23:30:46]execute_cgi path=json_proto method=POST [23:30:46]POST find Content-Length [23:30:46]Host: 172.17.62.196:8080 [23:30:46]Content-Length: 613 [23:30:46]Content-Type: application/json [23:30:46] [23:30:46]POST finish read [23:30:46]Found Content-Length = 613 [23:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16740", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:46]execute_script... [23:30:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16740", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:46]POST & json_proto [23:30:46]process_json_proto [23:30:46]json parsed OK: [23:30:46]protocol is kg_v1.0 [23:30:46]action value=close_receipt [23:30:46]process_action close_receipt [23:30:46]cmd_close_receipt [23:30:46]MH_GetDate [23:30:46]Write to MH i2c: F0 00 00 8C 0F 8A [23:30:46]Write i2c OK [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: F0 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: F0 09 00 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: F0 09 00 8C 0F 00 29 FA F1 66 CE CC 0E 66 1B [23:30:46]GetLastDocTimeStamp 1727132540 [23:30:46]current date 1727134249 [23:30:46]FM_GetShiftState [23:30:46]SAM_PROTO_GetShiftState [23:30:46]wFMCommunicate request_size=4 [23:30:46]MH_SAM_APDU [23:30:46]CAPDU: 80 13 01 00 [23:30:46]Write to MH i2c: E2 08 00 8D 0F 80 13 01 00 00 00 00 00 19 [23:30:46]Write i2c OK [23:30:46]MH_I2C_Read... [23:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:46]Read from MH i2c: E2 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 0E 00 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 0E 00 8D 0F 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B1 [23:30:46]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:30:46]wFMCommunicate OK [23:30:46]SAM_PROTO_GetShiftState done [23:30:46]FM_GetShiftState done [23:30:46]opened in 1727050372 [23:30:46]opened+sec_in_day 1727136772 [23:30:46]quantity*price = 11000 [23:30:46]sum+1 = 11001 [23:30:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 100 23.09.2024 23:30 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18824 ФПД: 254775357606311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T233049&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18824&fm=254775357606311&tin=02508201610067®Number=0000000000152968&sum=11000 0 [23:30:47]StoreToDocumentArchive [23:30:47]shift 181 fd 18824 [23:30:47]save to /storage/0181/doc_00018824 [23:30:47]save last doc name /storage/0181/doc_00018824 to /storage/kkm_last_doc_name [23:30:47]save OK [23:30:47]Clear old archive folders... [23:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=266 [23:30:47]tlvbuf is 00C4A260 [23:30:47]SAM_PROTO_ClearQueue [23:30:47]wFMCommunicate request_size=4 [23:30:47]MH_SAM_APDU [23:30:47]CAPDU: 80 09 00 00 [23:30:47]Write to MH i2c: E2 08 00 9A 0F 80 09 00 00 00 00 00 00 1B [23:30:47]Write i2c OK [23:30:47]MH_I2C_Read... [23:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:47]Read from MH i2c: E2 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: E2 03 00 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [23:30:47]RAPDU: 90 00 [23:30:47]wFMCommunicate OK [23:30:47]SAM_PROTO_ClearQueue done [23:30:47]KKMCreateOFDPacket [23:30:47]OFDProtocolAddRootSTLVToBuf [23:30:47]FM_MakeSignedData [23:30:47]FM_MakeSignedData [23:30:47]SAM_PROTO_SignData [23:30:47]wFMCommunicate request_size=4 [23:30:47]MH_SAM_APDU [23:30:47]CAPDU: 80 0D 01 02 [23:30:47]Write to MH i2c: E2 08 00 9B 0F 80 0D 01 02 00 00 00 00 23 [23:30:47]Write i2c OK [23:30:47]MH_I2C_Read... [23:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:47]Read from MH i2c: E2 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: E2 03 00 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [23:30:47]RAPDU: 90 00 [23:30:47]wFMCommunicate OK [23:30:47]wFMCommunicate request_size=255 [23:30:47]MH_SAM_APDU [23:30:47]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 29 FA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 [23:30:47]Write to MH i2c: E2 02 01 9C 0F 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 29 FA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 00 00 36 [23:30:47]Write i2c OK [23:30:47]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 03 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [23:30:48]RAPDU: 90 00 [23:30:48]wFMCommunicate OK [23:30:48]wFMCommunicate request_size=25 [23:30:48]MH_SAM_APDU [23:30:48]CAPDU: 80 0D 02 02 14 35 36 10 04 04 00 88 49 00 00 35 04 06 00 E7 B7 82 B0 09 A7 [23:30:48]Write to MH i2c: E2 1C 00 9D 0F 80 0D 02 02 14 00 35 36 10 04 04 00 88 49 00 00 35 04 06 00 E7 B7 82 B0 09 A7 00 00 61 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 03 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [23:30:48]RAPDU: 90 00 [23:30:48]wFMCommunicate OK [23:30:48]wFMCommunicate request_size=4 [23:30:48]MH_SAM_APDU [23:30:48]CAPDU: 80 0D 03 02 [23:30:48]Write to MH i2c: E2 08 00 9E 0F 80 0D 03 02 00 00 00 00 28 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 0B 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 0B 00 9E 0F 00 67 4F CB 3D 34 9D 5F 94 90 00 AB [23:30:48]RAPDU: 67 4F CB 3D 34 9D 5F 94 90 00 [23:30:48]wFMCommunicate OK [23:30:48]SAM_PROTO_SignData done [23:30:48]FM_MakeSignedData done [23:30:48]CreateOFDProtocolMessage [23:30:48]wFMCommunicate request_size=4 [23:30:48]MH_SAM_APDU [23:30:48]CAPDU: 80 11 00 00 [23:30:48]Write to MH i2c: E2 08 00 9F 0F 80 11 00 00 00 00 00 00 28 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 17 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 17 00 9F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 81 [23:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:30:48]wFMCommunicate OK [23:30:48]CreateOFDProtocolMessage done [23:30:48]OFDSenderStorePacket 18824 [23:30:48]StoreOFDPacket docnum=18824 [23:30:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 4A E8 16 01 31 BE 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 29 FA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 88 49 00 00 35 04 06 00 E7 B7 82 B0 09 A7 67 4F CB 3D 34 9D 5F 94 [23:30:48]CheckFolder [23:30:48]dirname=/storage/ofd_packets [23:30:48]CheckFolder done [23:30:48]ProducePacketName [23:30:48]name=ofd_packets/00018824 [23:30:48]NVStorageSaveData ofd_packets/00018824 [23:30:48]File name is /storage/ofd_packets/00018824 [23:30:48]Write 316 bytes [23:30:48]NVStorageSaveData done [23:30:48]OFDSenderStorePacket done [23:30:48]KKMCreateOFDPacket done [23:30:48]NVStorageSaveData kkm_last_timestamp [23:30:48]File name is /storage/kkm_last_timestamp [23:30:48]Write 4 bytes [23:30:48]NVStorageSaveData done [23:30:48]ExternCall_PrintAddStr [23:30:48]wPrintStart [23:30:48]Write to MH i2c: 01 00 00 A0 0F AF [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: 01 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: 01 07 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: 01 07 00 A0 0F 00 00 00 00 00 FF 0F C4 [23:30:48]RasterBufferAndPrint [23:30:48]line Счет N : (3)16740 [23:30:48]line ИНН: 02508201610067 [23:30:48]line Контрольно-Кассовый Чек [23:30:48]line ПРОДАЖА [23:30:48]line Товар: 4870001570071 [23:30:48]line Напиток Pepsi 1л [23:30:48]line 1.000 * 110.00 [23:30:48]line = 110.00 [23:30:48]line НДС 12% НСП 1% [23:30:48]line > о реализуемом товаре [23:30:48]line ИТОГО: 110.00 [23:30:48]line НСП 1% : 0.97 [23:30:48]line НДС 12% : 11.68 [23:30:48]line Наличными: 110.00 [23:30:48]line Безнал.: 0.00 [23:30:48]line Место: АЗС № 176 "Партнер Нефть" [23:30:48]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [23:30:48]line СНО: Общий режим [23:30:48]line Чек 100 23.09.2024 23:30 [23:30:48]line Смена: 181 ФФД: 1.0 [23:30:48]line ЗНМ: 0300000010 [23:30:48]line РНМ: 0000000000152968 [23:30:48]line Версия ККМ: v1.0 [23:30:48]line ФМ: 0000000000959456 [23:30:48]line ФД: 18824 [23:30:48]line ФПД: 254775357606311 [23:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T233049&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18824&fm=254775357606311&tin=02508201610067®Number=0000000000152968&sum=11000 [23:30:48]line 0 [23:30:48]OFD Sender: Processing packet 18824 [packets to send 7, broken 6] [23:30:48]ProducePacketName [23:30:48]name=ofd_packets/00018824 [23:30:48]OFD Sender: To server: pG, [23:30:48]CommunicateWithHost lk.salyk.kg:30040 [23:30:48]ConnectInit lk.salyk.kg [23:30:48]written 0, free lines is 4095 [23:30:48]Connected sock=10 [23:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1E 01 00 00 4A E8 16 01 31 BE 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 29 FA F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 88 49 00 00 35 04 06 00 E7 B7 82 B0 09 A7 67 4F CB 3D 34 9D 5F 94 [23:30:49]Write to MH i2c: 01 00 00 C8 0F D7 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: 01 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: 01 07 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: 01 07 00 C8 0F 00 00 00 00 00 1E 0D 09 [23:30:49]RasterBufferAndPrint [23:30:49]line [23:30:49]line [23:30:49]line [23:30:49]line [23:30:49]line [23:30:49]written 0, free lines is 3364 [23:30:49]MH_Cut [23:30:49]Write to MH i2c: D1 01 00 CF 0F 01 B0 [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: D1 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: D1 01 00 [23:30:49]MH_I2C_Read... [23:30:49]Read from MH i2c: D1 01 00 CF 0F 00 AF [23:30:49]Write to MH i2c: 01 00 00 D0 0F DF [23:30:49]Write i2c OK [23:30:49]MH_I2C_Read... [23:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 57 AA 47 00 06 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 35 39 34 35 36 10 04 04 00 88 49 00 00 F4 03 04 00 8C A3 F1 66 B6 04 01 00 00 7A 1E 6C E5 A2 9E B1 87 [23:30:49]CommunicateWithHost err = 0 [23:30:49]CheckOFDResponse [23:30:49]1017 (14) - 77093643461234 [23:30:49]1041 (16) - 0000000000959456 [23:30:49]1040 (4) - 18824 [23:30:49]1012 (4) - 23.09.2024 17:21 [23:30:49]1206 (1) - 0 [23:30:49]OFD Sender: Remove packet 18824 [23:30:49]ProducePacketName [23:30:49]name=ofd_packets/00018824 [23:30:49]NVStorageDeleteData [23:30:49]OFD Sender: No OFD packet to send [23:30:49]*** Cut start [23:30:49]*** Partial cut [23:30:49]*** CUTSNS_PIN = 1 [23:30:49]*** CUTSNS_PIN = 0 [23:30:49]*** Brake cut motor [23:30:50]Read from MH i2c: 01 [23:30:50]MH_I2C_Read... [23:30:50]*** Stop cut motor [23:30:50]*** Cut end [23:30:50]Read from MH i2c: 01 07 00 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: 01 07 00 D0 0F 00 00 00 00 00 FF 0F F4 [23:30:50]process_action close_receipt done [23:30:50]requested_data is exist [23:30:50]produce_requested_data [23:30:50]requested_item fm.sn is exist - process it [23:30:50]wFMCommunicate request_size=4 [23:30:50]MH_SAM_APDU [23:30:50]CAPDU: 80 11 00 00 [23:30:50]Write to MH i2c: E2 08 00 D1 0F 80 11 00 00 00 00 00 00 5A [23:30:50]Write i2c OK [23:30:50]MH_I2C_Read... [23:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:50]Read from MH i2c: E2 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: E2 17 00 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: E2 17 00 D1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B3 [23:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:30:50]wFMCommunicate OK [23:30:50]requested_item fd.num is exist - process it [23:30:50]SAM_PROTO_GetFieldsCounters [23:30:50]wFMCommunicate request_size=4 [23:30:50]MH_SAM_APDU [23:30:50]CAPDU: 80 13 00 00 [23:30:50]Write to MH i2c: E2 08 00 D2 0F 80 13 00 00 00 00 00 00 5D [23:30:50]Write i2c OK [23:30:50]MH_I2C_Read... [23:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:50]Read from MH i2c: E2 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: E2 62 00 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: E2 62 00 D2 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 88 49 00 00 0E 04 04 00 B5 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 3C [23:30:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 88 49 00 00 0E 04 04 00 B5 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 [23:30:50]wFMCommunicate OK [23:30:50]SAM_PROTO_GetFieldsCounters done [23:30:50]requested_item shift.num is exist - process it [23:30:50]requested_item shift.opened is exist - process it [23:30:50]req_shift_opened [23:30:50]FM_GetShiftState [23:30:50]SAM_PROTO_GetShiftState [23:30:50]wFMCommunicate request_size=4 [23:30:50]MH_SAM_APDU [23:30:50]CAPDU: 80 13 01 00 [23:30:50]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [23:30:50]Write i2c OK [23:30:50]MH_I2C_Read... [23:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:50]Read from MH i2c: E2 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: E2 0E 00 [23:30:50]MH_I2C_Read... [23:30:50]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F7 [23:30:50]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:30:50]wFMCommunicate OK [23:30:50]SAM_PROTO_GetShiftState done [23:30:50]FM_GetShiftState done [23:30:50]req_shift_opened done [23:30:50]requested_item shift.open_date is exist - process it [23:30:50]req_shift_open_date [23:30:50]req_shift_open_date done [23:30:50]produce_requested_data done [23:30:50]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18824,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [23:30:50]process_action_free close_receipt [23:30:50]json_value_free [23:30:50]json_value_free done [23:30:50]process_json_proto returns [23:30:50]Send response to host [23:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18824,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [23:30:50]free response buf [23:30:50]execute_script done [23:30:50]execute_script returns [23:30:50]free content buf [23:30:50]Sock 9.Close socket [23:30:50]Sock 9.Thread stoped [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [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:17]accept exits with 7 [23:32:17]New connection [23:32:17]New thread 3066608996 created [23:32:17]Thread 3066752356 joined [23:32:17]Waiting for new connection... [23:32:17] Sock 7.Parse request [23:32:17]Sock 7.Check first char [23:32:17]Sock 7.First char is OK [23:32:17]request: POST /json_proto HTTP/1.0 [23:32:17]Method: POST [23:32:17]URL: /json_proto [23:32:17]Method is POST - this is cgi request [23:32:17]url: /json_proto [23:32:17]query_string will be loaded in cgi processing [23:32:17]execute_cgi json_proto POST (null) [23:32:17]execute_cgi path=json_proto method=POST [23:32:17]POST find Content-Length [23:32:17]Host: 172.17.62.196:8080 [23:32:17]Content-Length: 215 [23:32:17]Content-Type: application/json [23:32:17] [23:32:17]POST finish read [23:32:17]Found Content-Length = 215 [23:32:17]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" ] } } [23:32:17]execute_script... [23:32:17]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" ] } } [23:32:17]POST & json_proto [23:32:17]process_json_proto [23:32:17]json parsed OK: [23:32:17]protocol is kg_v1.0 [23:32:17]action value=get_value [23:32:17]process_action get_value [23:32:17]cmd_get_value [23:32:17]process_action get_value done [23:32:17]requested_data is exist [23:32:17]produce_requested_data [23:32:17]requested_item kkm.sn is exist - process it [23:32:17]requested_item kkm.ver is exist - process it [23:32:17]requested_item fm.sn is exist - process it [23:32:17]wFMCommunicate request_size=4 [23:32:17]MH_SAM_APDU [23:32:17]CAPDU: 80 11 00 00 [23:32:17]Write to MH i2c: E2 08 00 D4 0F 80 11 00 00 00 00 00 00 5D [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:17]Read from MH i2c: E2 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 17 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 17 00 D4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B6 [23:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:32:17]wFMCommunicate OK [23:32:17]requested_item fd.num is exist - process it [23:32:17]SAM_PROTO_GetFieldsCounters [23:32:17]wFMCommunicate request_size=4 [23:32:17]MH_SAM_APDU [23:32:17]CAPDU: 80 13 00 00 [23:32:17]Write to MH i2c: E2 08 00 D5 0F 80 13 00 00 00 00 00 00 60 [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:17]Read from MH i2c: E2 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 62 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 62 00 D5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 88 49 00 00 0E 04 04 00 B5 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 3F [23:32:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 88 49 00 00 0E 04 04 00 B5 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 [23:32:17]wFMCommunicate OK [23:32:17]SAM_PROTO_GetFieldsCounters done [23:32:17]requested_item shift.num is exist - process it [23:32:17]requested_item shift.opened is exist - process it [23:32:17]req_shift_opened [23:32:17]FM_GetShiftState [23:32:17]SAM_PROTO_GetShiftState [23:32:17]wFMCommunicate request_size=4 [23:32:17]MH_SAM_APDU [23:32:17]CAPDU: 80 13 01 00 [23:32:17]Write to MH i2c: E2 08 00 D6 0F 80 13 01 00 00 00 00 00 62 [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:18]Read from MH i2c: E2 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 0E 00 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 0E 00 D6 0F 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 FA [23:32:18]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:32:18]wFMCommunicate OK [23:32:18]SAM_PROTO_GetShiftState done [23:32:18]FM_GetShiftState done [23:32:18]req_shift_opened done [23:32:18]requested_item shift.open_date is exist - process it [23:32:18]req_shift_open_date [23:32:18]req_shift_open_date done [23:32:18]produce_requested_data done [23:32:18]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18824,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [23:32:18]process_action_free get_value [23:32:18]json_value_free [23:32:18]json_value_free done [23:32:18]process_json_proto returns [23:32:18]Send response to host [23:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18824,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [23:32:18]free response buf [23:32:18]execute_script done [23:32:18]execute_script returns [23:32:18]free content buf [23:32:18]Sock 7.Close socket [23:32:18]Sock 7.Thread stoped [23:32:18]accept exits with 9 [23:32:18]New connection [23:32:18]New thread 3066752356 created [23:32:18]Thread 3066608996 joined [23:32:18]Waiting for new connection... [23:32:18] Sock 9.Parse request [23:32:18]Sock 9.Check first char [23:32:18]Sock 9.First char is OK [23:32:18]request: POST /json_proto HTTP/1.0 [23:32:18]Method: POST [23:32:18]URL: /json_proto [23:32:18]Method is POST - this is cgi request [23:32:18]url: /json_proto [23:32:18]query_string will be loaded in cgi processing [23:32:18]execute_cgi json_proto POST (null) [23:32:18]execute_cgi path=json_proto method=POST [23:32:18]POST find Content-Length [23:32:18]Host: 172.17.62.196:8080 [23:32:18]Content-Length: 331 [23:32:18]Content-Type: application/json [23:32:18] [23:32:18]POST finish read [23:32:18]Found Content-Length = 331 [23:32:18]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" ] } } [23:32:18]execute_script... [23:32:18]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" ] } } [23:32:18]POST & json_proto [23:32:18]process_json_proto [23:32:18]json parsed OK: [23:32:18]protocol is kg_v1.0 [23:32:18]action value=get_value [23:32:18]process_action get_value [23:32:18]cmd_get_value [23:32:18]process_action get_value done [23:32:18]requested_data is exist [23:32:18]produce_requested_data [23:32:18]requested_item fm.sale.total is exist - process it [23:32:18]SAM_PROTO_GetFMData [23:32:18]wFMCommunicate request_size=4 [23:32:18]MH_SAM_APDU [23:32:18]CAPDU: 80 13 03 00 [23:32:18]Write to MH i2c: E2 08 00 D7 0F 80 13 03 00 00 00 00 00 65 [23:32:18]Write i2c OK [23:32:18]MH_I2C_Read... [23:32:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:32:18]Read from MH i2c: E2 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 FD 00 [23:32:18]MH_I2C_Read... [23:32:18]Read from MH i2c: E2 FD 00 D7 0F 00 BE 04 85 04 BA 04 6E 04 04 00 1E 48 00 00 69 04 A0 00 6F 04 04 00 0F 48 00 00 B1 04 04 00 0E A8 8D 31 70 04 04 00 50 02 2A 1F 72 04 04 00 BE A5 63 12 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 D5 46 43 05 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 2B 3F 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 02 [23:32:18]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 1E 48 00 00 69 04 A0 00 6F 04 04 00 0F 48 00 00 B1 04 04 00 0E A8 8D 31 70 04 04 00 50 02 2A 1F 72 04 04 00 BE A5 63 12 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 D5 46 43 05 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 2B 3F 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [23:32:18]wFMCommunicate OK [23:32:18]wFMCommunicate request_size=4 [23:32:18]MH_SAM_APDU [23:32:18]CAPDU: 80 17 00 00 [23:32:18]Write to MH i2c: E2 08 00 D8 0F 80 17 00 00 00 00 00 00 67 [23:32:18]Write i2c OK [23:32:18]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 D8 0F 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [23:32:19]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:19]wFMCommunicate OK [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 17 00 00 [23:32:19]Write to MH i2c: E2 08 00 D9 0F 80 17 00 00 00 00 00 00 68 [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 D9 0F 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [23:32:19]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:32:19]wFMCommunicate OK [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 17 00 00 [23:32:19]Write to MH i2c: E2 08 00 DA 0F 80 17 00 00 00 00 00 00 69 [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 FD 00 DA 0F 00 04 F7 03 00 00 EF 03 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 90 00 E4 [23:32:19]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [23:32:19]wFMCommunicate OK [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 17 00 00 [23:32:19]Write to MH i2c: E2 08 00 DB 0F 80 17 00 00 00 00 00 00 6A [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:19]OFD Sender: No OFD packet to send [23:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 DB 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 DB 00 DB 0F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C [23:32:19]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:32:19]wFMCommunicate OK [23:32:19]SAM_PROTO_GetFMData done [23:32:19]requested_item fm.sale_refund.total is exist - process it [23:32:19]requested_item fm.buy.total is exist - process it [23:32:19]requested_item shift.sale.total is exist - process it [23:32:19]SAM_PROTO_GetShiftData [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 13 02 00 [23:32:19]Write to MH i2c: E2 08 00 DC 0F 80 13 02 00 00 00 00 00 69 [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:32:20]Read from MH i2c: E2 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 DC 0F 00 AE 04 AA 04 AA 04 6E 04 04 00 64 00 00 00 69 04 9B 00 6F 04 04 00 64 00 00 00 B1 04 03 00 0C 9D 24 70 04 03 00 D8 03 1F 72 04 03 00 34 99 05 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 79 E3 03 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 EF 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 2B [23:32:20]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 64 00 00 00 69 04 9B 00 6F 04 04 00 64 00 00 00 B1 04 03 00 0C 9D 24 70 04 03 00 D8 03 1F 72 04 03 00 34 99 05 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 79 E3 03 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 EF 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:32:20]wFMCommunicate OK [23:32:20]wFMCommunicate request_size=4 [23:32:20]MH_SAM_APDU [23:32:20]CAPDU: 80 17 00 00 [23:32:20]Write to MH i2c: E2 08 00 DD 0F 80 17 00 00 00 00 00 00 6C [23:32:20]Write i2c OK [23:32:20]MH_I2C_Read... [23:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:20]Read from MH i2c: E2 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 DD 0F 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 8E [23:32:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:32:20]wFMCommunicate OK [23:32:20]wFMCommunicate request_size=4 [23:32:20]MH_SAM_APDU [23:32:20]CAPDU: 80 17 00 00 [23:32:20]Write to MH i2c: E2 08 00 DE 0F 80 17 00 00 00 00 00 00 6D [23:32:20]Write i2c OK [23:32:20]MH_I2C_Read... [23:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:20]Read from MH i2c: E2 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 [23:32:20]MH_I2C_Read... [23:32:20]Read from MH i2c: E2 FD 00 DE 0F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 24 [23:32:20]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:32:20]wFMCommunicate OK [23:32:20]wFMCommunicate request_size=4 [23:32:20]MH_SAM_APDU [23:32:20]CAPDU: 80 17 00 00 [23:32:20]Write to MH i2c: E2 08 00 DF 0F 80 17 00 00 00 00 00 00 6E [23:32:20]Write i2c OK [23:32:20]MH_I2C_Read... [23:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:32:21]Read from MH i2c: E2 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 FD 00 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 FD 00 DF 0F 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E0 [23:32:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:32:21]wFMCommunicate OK [23:32:21]wFMCommunicate request_size=4 [23:32:21]MH_SAM_APDU [23:32:21]CAPDU: 80 17 00 00 [23:32:21]Write to MH i2c: E2 08 00 E0 0F 80 17 00 00 00 00 00 00 6F [23:32:21]Write i2c OK [23:32:21]MH_I2C_Read... [23:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:32:21]Read from MH i2c: E2 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 CB 00 [23:32:21]MH_I2C_Read... [23:32:21]Read from MH i2c: E2 CB 00 E0 0F 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 58 [23:32:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:32:21]wFMCommunicate OK [23:32:21]SAM_PROTO_GetShiftData done [23:32:21]requested_item shift.sale.total_cash is exist - process it [23:32:21]requested_item shift.sale_refund.total is exist - process it [23:32:21]requested_item shift.sale_refund.total_cash is exist - process it [23:32:21]requested_item shift.buy.total is exist - process it [23:32:21]requested_item shift.buy.total_cash is exist - process it [23:32:21]produce_requested_data done [23:32:21]produce_requested_data return {"fm.sale.total":8313671.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":23995.00,"shift.sale.total_cash":20326.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} [23:32:21]process_action_free get_value [23:32:21]json_value_free [23:32:21]json_value_free done [23:32:21]process_json_proto returns [23:32:21]Send response to host [23:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8313671.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":23995.00,"shift.sale.total_cash":20326.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}}} [23:32:21]free response buf [23:32:21]execute_script done [23:32:21]execute_script returns [23:32:21]free content buf [23:32:21]Sock 9.Close socket [23:32:21]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:48:56]accept exits with 7 [23:48:56]New connection [23:48:56]New thread 3066608996 created [23:48:56]Thread 3066752356 joined [23:48:56]Waiting for new connection... [23:48:56] Sock 7.Parse request [23:48:56]Sock 7.Check first char [23:48:56]Sock 7.First char is OK [23:48:56]request: POST /json_proto HTTP/1.0 [23:48:56]Method: POST [23:48:56]URL: /json_proto [23:48:56]Method is POST - this is cgi request [23:48:56]url: /json_proto [23:48:56]query_string will be loaded in cgi processing [23:48:56]execute_cgi json_proto POST (null) [23:48:56]execute_cgi path=json_proto method=POST [23:48:56]POST find Content-Length [23:48:56]Host: 172.17.62.196:8080 [23:48:56]Content-Length: 622 [23:48:56]Content-Type: application/json [23:48:56] [23:48:56]POST finish read [23:48:56]Found Content-Length = 622 [23:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16741", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:56]execute_script... [23:48:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16741", "tax_sys" : 0, "items" : [ { "code": "4630002599859", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Standart 15w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:56]POST & json_proto [23:48:56]process_json_proto [23:48:56]json parsed OK: [23:48:56]protocol is kg_v1.0 [23:48:56]action value=close_receipt [23:48:56]process_action close_receipt [23:48:56]cmd_close_receipt [23:48:56]MH_GetDate [23:48:56]Write to MH i2c: F0 00 00 E1 0F DF [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: F0 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: F0 09 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: F0 09 00 E1 0F 00 6B FE F1 66 CE CC 0E 66 B6 [23:48:56]GetLastDocTimeStamp 1727134249 [23:48:56]current date 1727135339 [23:48:56]FM_GetShiftState [23:48:56]SAM_PROTO_GetShiftState [23:48:56]wFMCommunicate request_size=4 [23:48:56]MH_SAM_APDU [23:48:56]CAPDU: 80 13 01 00 [23:48:56]Write to MH i2c: E2 08 00 E2 0F 80 13 01 00 00 00 00 00 6E [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:56]Read from MH i2c: E2 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 0E 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: E2 0E 00 E2 0F 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 06 [23:48:56]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:48:56]wFMCommunicate OK [23:48:56]SAM_PROTO_GetShiftState done [23:48:56]FM_GetShiftState done [23:48:56]opened in 1727050372 [23:48:56]opened+sec_in_day 1727136772 [23:48:56]quantity*price = 40500 [23:48:56]sum+1 = 40501 [23:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 101 23.09.2024 23:48 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18825 ФПД: 127964917243926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T234859&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18825&fm=127964917243926&tin=02508201610067®Number=0000000000152968&sum=40500 0 [23:48:57]StoreToDocumentArchive [23:48:57]shift 181 fd 18825 [23:48:57]save to /storage/0181/doc_00018825 [23:48:57]save last doc name /storage/0181/doc_00018825 to /storage/kkm_last_doc_name [23:48:57]save OK [23:48:57]Clear old archive folders... [23:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=283 [23:48:57]tlvbuf is 00C63E40 [23:48:57]SAM_PROTO_ClearQueue [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 09 00 00 [23:48:57]Write to MH i2c: E2 08 00 EF 0F 80 09 00 00 00 00 00 00 70 [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 EF 0F 00 90 00 72 [23:48:58]RAPDU: 90 00 [23:48:58]wFMCommunicate OK [23:48:58]SAM_PROTO_ClearQueue done [23:48:58]KKMCreateOFDPacket [23:48:58]OFDProtocolAddRootSTLVToBuf [23:48:58]FM_MakeSignedData [23:48:58]FM_MakeSignedData [23:48:58]SAM_PROTO_SignData [23:48:58]wFMCommunicate request_size=4 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 0D 01 02 [23:48:58]Write to MH i2c: E2 08 00 F0 0F 80 0D 01 02 00 00 00 00 78 [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 F0 0F 00 90 00 73 [23:48:58]RAPDU: 90 00 [23:48:58]wFMCommunicate OK [23:48:58]wFMCommunicate request_size=255 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 [23:48:58]Write to MH i2c: E2 02 01 F1 0F 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 00 00 8F [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [23:48:58]RAPDU: 90 00 [23:48:58]wFMCommunicate OK [23:48:58]wFMCommunicate request_size=42 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 89 49 00 00 35 04 06 00 74 62 27 6F A0 16 [23:48:58]Write to MH i2c: E2 2D 00 F2 0F 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 89 49 00 00 35 04 06 00 74 62 27 6F A0 16 00 00 4A [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [23:48:58]RAPDU: 90 00 [23:48:58]wFMCommunicate OK [23:48:58]wFMCommunicate request_size=4 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 0D 03 02 [23:48:58]Write to MH i2c: E2 08 00 F3 0F 80 0D 03 02 00 00 00 00 7D [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 0B 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 0B 00 F3 0F 00 2E F3 38 2F A8 A2 03 20 90 00 73 [23:48:58]RAPDU: 2E F3 38 2F A8 A2 03 20 90 00 [23:48:58]wFMCommunicate OK [23:48:58]SAM_PROTO_SignData done [23:48:58]FM_MakeSignedData done [23:48:58]CreateOFDProtocolMessage [23:48:58]wFMCommunicate request_size=4 [23:48:58]MH_SAM_APDU [23:48:58]CAPDU: 80 11 00 00 [23:48:58]Write to MH i2c: E2 08 00 F4 0F 80 11 00 00 00 00 00 00 7D [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:58]Read from MH i2c: E2 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 17 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: E2 17 00 F4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 D6 [23:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:48:58]wFMCommunicate OK [23:48:58]CreateOFDProtocolMessage done [23:48:58]OFDSenderStorePacket 18825 [23:48:58]StoreOFDPacket docnum=18825 [23:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2F 01 00 00 53 5F 27 01 3F 74 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 89 49 00 00 35 04 06 00 74 62 27 6F A0 16 2E F3 38 2F A8 A2 03 20 [23:48:58]CheckFolder [23:48:58]dirname=/storage/ofd_packets [23:48:58]CheckFolder done [23:48:58]ProducePacketName [23:48:58]name=ofd_packets/00018825 [23:48:58]NVStorageSaveData ofd_packets/00018825 [23:48:58]File name is /storage/ofd_packets/00018825 [23:48:58]Write 333 bytes [23:48:58]NVStorageSaveData done [23:48:58]OFDSenderStorePacket done [23:48:58]KKMCreateOFDPacket done [23:48:58]NVStorageSaveData kkm_last_timestamp [23:48:58]File name is /storage/kkm_last_timestamp [23:48:58]Write 4 bytes [23:48:58]NVStorageSaveData done [23:48:58]ExternCall_PrintAddStr [23:48:58]wPrintStart [23:48:58]Write to MH i2c: 01 00 00 F5 0F 04 [23:48:58]Write i2c OK [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 07 00 [23:48:58]MH_I2C_Read... [23:48:58]Read from MH i2c: 01 07 00 F5 0F 00 00 00 00 00 FF 0F 19 [23:48:58]RasterBufferAndPrint [23:48:58]line Счет N : (3)16741 [23:48:58]line ИНН: 02508201610067 [23:48:58]line Контрольно-Кассовый Чек [23:48:58]line ПРОДАЖА [23:48:58]line Товар: 4630002599859 [23:48:58]line Масло Gazpromneft Standart 15w40 1л [23:48:58]line 1.000 * 405.00 [23:48:58]line = 405.00 [23:48:58]line НДС 12% НСП 1% [23:48:58]line > о реализуемом товаре [23:48:58]line ИТОГО: 405.00 [23:48:58]line НСП 1% : 3.58 [23:48:58]line НДС 12% : 43.01 [23:48:58]line Наличными: 405.00 [23:48:58]line Безнал.: 0.00 [23:48:58]line Место: АЗС № 176 "Партнер Нефть" [23:48:58]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [23:48:58]line СНО: Общий режим [23:48:58]line Чек 101 23.09.2024 23:48 [23:48:58]line Смена: 181 ФФД: 1.0 [23:48:58]line ЗНМ: 0300000010 [23:48:58]line РНМ: 0000000000152968 [23:48:58]line Версия ККМ: v1.0 [23:48:58]line ФМ: 0000000000959456 [23:48:58]line ФД: 18825 [23:48:58]line ФПД: 127964917243926 [23:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T234859&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18825&fm=127964917243926&tin=02508201610067®Number=0000000000152968&sum=40500 [23:48:58]line 0 [23:48:58]OFD Sender: Processing packet 18825 [packets to send 7, broken 6] [23:48:58]ProducePacketName [23:48:58]name=ofd_packets/00018825 [23:48:58]OFD Sender: To server: pG, [23:48:58]CommunicateWithHost lk.salyk.kg:30040 [23:48:58]ConnectInit lk.salyk.kg [23:48:58]written 0, free lines is 4095 [23:48:59]Connected sock=10 [23:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2F 01 00 00 53 5F 27 01 3F 74 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 32 35 39 39 38 35 39 06 04 29 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 74 61 6E 64 61 72 74 20 31 35 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 6B FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 89 49 00 00 35 04 06 00 74 62 27 6F A0 16 2E F3 38 2F A8 A2 03 20 [23:48:59]Write to MH i2c: 01 00 00 1E 10 2E [23:48:59]Write i2c OK [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: 01 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: 01 07 00 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: 01 07 00 1E 10 00 00 00 00 00 0D 0D 4F [23:48:59]RasterBufferAndPrint [23:48:59]line [23:48:59]line [23:48:59]line [23:48:59]line [23:48:59]line [23:48:59]written 0, free lines is 3347 [23:48:59]MH_Cut [23:48:59]Write to MH i2c: D1 01 00 25 10 01 07 [23:48:59]Write i2c OK [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: D1 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: D1 01 00 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: D1 01 00 25 10 00 06 [23:48:59]Write to MH i2c: 01 00 00 26 10 36 [23:48:59]Write i2c OK [23:48:59]MH_I2C_Read... [23:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 8A B7 47 00 52 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 35 39 34 35 36 10 04 04 00 89 49 00 00 F4 03 04 00 CE A7 F1 66 B6 04 01 00 00 CF 54 7C ED DC 86 77 28 [23:48:59]CommunicateWithHost err = 0 [23:48:59]CheckOFDResponse [23:48:59]1017 (14) - 77093643461234 [23:48:59]1041 (16) - 0000000000959456 [23:48:59]1040 (4) - 18825 [23:48:59]1012 (4) - 23.09.2024 17:39 [23:48:59]1206 (1) - 0 [23:48:59]OFD Sender: Remove packet 18825 [23:48:59]ProducePacketName [23:48:59]name=ofd_packets/00018825 [23:48:59]NVStorageDeleteData [23:48:59]OFD Sender: No OFD packet to send [23:48:59]*** Cut start [23:48:59]*** Partial cut [23:48:59]*** CUTSNS_PIN = 1 [23:49:00]*** CUTSNS_PIN = 0 [23:49:00]*** Brake cut motor [23:49:00]Read from MH i2c: 01 [23:49:00]MH_I2C_Read... [23:49:00]*** Stop cut motor [23:49:00]*** Cut end [23:49:00]Read from MH i2c: 01 07 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: 01 07 00 26 10 00 00 00 00 00 FF 0F 4B [23:49:00]process_action close_receipt done [23:49:00]requested_data is exist [23:49:00]produce_requested_data [23:49:00]requested_item fm.sn is exist - process it [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 11 00 00 [23:49:00]Write to MH i2c: E2 08 00 27 10 80 11 00 00 00 00 00 00 B1 [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 17 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 17 00 27 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 0A [23:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:49:00]wFMCommunicate OK [23:49:00]requested_item fd.num is exist - process it [23:49:00]SAM_PROTO_GetFieldsCounters [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 13 00 00 [23:49:00]Write to MH i2c: E2 08 00 28 10 80 13 00 00 00 00 00 00 B4 [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 62 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 62 00 28 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 89 49 00 00 0E 04 04 00 B5 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 97 [23:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 89 49 00 00 0E 04 04 00 B5 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 [23:49:00]wFMCommunicate OK [23:49:00]SAM_PROTO_GetFieldsCounters done [23:49:00]requested_item shift.num is exist - process it [23:49:00]requested_item shift.opened is exist - process it [23:49:00]req_shift_opened [23:49:00]FM_GetShiftState [23:49:00]SAM_PROTO_GetShiftState [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 13 01 00 [23:49:00]Write to MH i2c: E2 08 00 29 10 80 13 01 00 00 00 00 00 B6 [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 0E 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 0E 00 29 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 4E [23:49:00]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:49:00]wFMCommunicate OK [23:49:00]SAM_PROTO_GetShiftState done [23:49:00]FM_GetShiftState done [23:49:00]req_shift_opened done [23:49:00]requested_item shift.open_date is exist - process it [23:49:00]req_shift_open_date [23:49:00]req_shift_open_date done [23:49:00]produce_requested_data done [23:49:00]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18825,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [23:49:00]process_action_free close_receipt [23:49:00]json_value_free [23:49:00]json_value_free done [23:49:00]process_json_proto returns [23:49:00]Send response to host [23:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18825,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [23:49:00]free response buf [23:49:00]execute_script done [23:49:00]execute_script returns [23:49:00]free content buf [23:49:00]Sock 7.Close socket [23:49:00]Sock 7.Thread stoped [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:16]accept exits with 9 [23:50:16]New connection [23:50:16]New thread 3066752356 created [23:50:16]Thread 3066608996 joined [23:50:16]Waiting for new connection... [23:50:16] Sock 9.Parse request [23:50:16]Sock 9.Check first char [23:50:16]Sock 9.First char is OK [23:50:16]request: POST /json_proto HTTP/1.0 [23:50:16]Method: POST [23:50:16]URL: /json_proto [23:50:16]Method is POST - this is cgi request [23:50:16]url: /json_proto [23:50:16]query_string will be loaded in cgi processing [23:50:16]execute_cgi json_proto POST (null) [23:50:16]execute_cgi path=json_proto method=POST [23:50:16]POST find Content-Length [23:50:16]Host: 172.17.62.196:8080 [23:50:16]Content-Length: 904 [23:50:16]Content-Type: application/json [23:50:16] [23:50:16]POST finish read [23:50:16]Found Content-Length = 904 [23:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16742", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329014077", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 Babyfox 45\u0433/30", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:16]execute_script... [23: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 : (3)16742", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329014077", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 Babyfox 45\u0433/30", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:16]POST & json_proto [23:50:16]process_json_proto [23:50:16]json parsed OK: [23:50:16]protocol is kg_v1.0 [23:50:16]action value=close_receipt [23:50:16]process_action close_receipt [23:50:16]cmd_close_receipt [23:50:16]MH_GetDate [23:50:16]Write to MH i2c: F0 00 00 2A 10 29 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 09 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 09 00 2A 10 00 BA FE F1 66 CE CC 0E 66 4F [23:50:16]GetLastDocTimeStamp 1727135339 [23:50:16]current date 1727135418 [23:50:16]FM_GetShiftState [23:50:16]SAM_PROTO_GetShiftState [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 13 01 00 [23:50:16]Write to MH i2c: E2 08 00 2B 10 80 13 01 00 00 00 00 00 B8 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 0E 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 0E 00 2B 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 50 [23:50:16]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetShiftState done [23:50:16]FM_GetShiftState done [23:50:16]opened in 1727050372 [23:50:16]opened+sec_in_day 1727136772 [23:50:16]quantity*price = 14400 [23:50:16]sum+1 = 14401 [23:50:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4690329014077 Шоколад молочный Babyfox 45г/30 3.000 * 40.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 264.00 НСП 1% : 2.33 НДС 12% : 28.03 Наличными: 264.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 102 23.09.2024 23:50 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18826 ФПД: 227655484103695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T235019&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18826&fm=227655484103695&tin=02508201610067®Number=0000000000152968&sum=26400 0 [23:50:17]StoreToDocumentArchive [23:50:17]shift 181 fd 18826 [23:50:17]save to /storage/0181/doc_00018826 [23:50:17]save last doc name /storage/0181/doc_00018826 to /storage/kkm_last_doc_name [23:50:17]save OK [23:50:17]Clear old archive folders... [23:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=392 [23:50:17]tlvbuf is 00C63800 [23:50:17]SAM_PROTO_ClearQueue [23:50:17]wFMCommunicate request_size=4 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 09 00 00 [23:50:17]Write to MH i2c: E2 08 00 38 10 80 09 00 00 00 00 00 00 BA [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 38 10 00 90 00 BC [23:50:17]RAPDU: 90 00 [23:50:17]wFMCommunicate OK [23:50:17]SAM_PROTO_ClearQueue done [23:50:17]KKMCreateOFDPacket [23:50:17]OFDProtocolAddRootSTLVToBuf [23:50:17]FM_MakeSignedData [23:50:17]FM_MakeSignedData [23:50:17]SAM_PROTO_SignData [23:50:17]wFMCommunicate request_size=4 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 0D 01 02 [23:50:17]Write to MH i2c: E2 08 00 39 10 80 0D 01 02 00 00 00 00 C2 [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 39 10 00 90 00 BD [23:50:17]RAPDU: 90 00 [23:50:17]wFMCommunicate OK [23:50:17]wFMCommunicate request_size=255 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [23:50:17]Write to MH i2c: E2 02 01 3A 10 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 B6 [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 3A 10 00 90 00 BE [23:50:17]RAPDU: 90 00 [23:50:17]wFMCommunicate OK [23:50:17]wFMCommunicate request_size=151 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 BB FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8A 49 00 00 35 04 06 00 CF 0D 2C 42 DC 0F [23:50:17]Write to MH i2c: E2 9A 00 3B 10 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 BB FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8A 49 00 00 35 04 06 00 CF 0D 2C 42 DC 0F 00 00 C7 [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 03 00 3B 10 00 90 00 BF [23:50:17]RAPDU: 90 00 [23:50:17]wFMCommunicate OK [23:50:17]wFMCommunicate request_size=4 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 0D 03 02 [23:50:17]Write to MH i2c: E2 08 00 3C 10 80 0D 03 02 00 00 00 00 C7 [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 0B 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 0B 00 3C 10 00 E2 AF 14 27 00 70 A5 89 90 00 32 [23:50:17]RAPDU: E2 AF 14 27 00 70 A5 89 90 00 [23:50:17]wFMCommunicate OK [23:50:17]SAM_PROTO_SignData done [23:50:17]FM_MakeSignedData done [23:50:17]CreateOFDProtocolMessage [23:50:17]wFMCommunicate request_size=4 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 11 00 00 [23:50:17]Write to MH i2c: E2 08 00 3D 10 80 11 00 00 00 00 00 00 C7 [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 17 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 17 00 3D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 20 [23:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:50:17]wFMCommunicate OK [23:50:17]CreateOFDProtocolMessage done [23:50:17]OFDSenderStorePacket 18826 [23:50:17]StoreOFDPacket docnum=18826 [23:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9C 01 00 00 19 7D 94 01 0E CD 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 BB FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8A 49 00 00 35 04 06 00 CF 0D 2C 42 DC 0F E2 AF 14 27 00 70 A5 89 [23:50:17]CheckFolder [23:50:17]dirname=/storage/ofd_packets [23:50:17]CheckFolder done [23:50:17]ProducePacketName [23:50:17]name=ofd_packets/00018826 [23:50:17]NVStorageSaveData ofd_packets/00018826 [23:50:17]File name is /storage/ofd_packets/00018826 [23:50:17]Write 442 bytes [23:50:17]NVStorageSaveData done [23:50:17]OFDSenderStorePacket done [23:50:17]KKMCreateOFDPacket done [23:50:17]NVStorageSaveData kkm_last_timestamp [23:50:17]File name is /storage/kkm_last_timestamp [23:50:17]Write 4 bytes [23:50:17]NVStorageSaveData done [23:50:17]ExternCall_PrintAddStr [23:50:17]wPrintStart [23:50:17]Write to MH i2c: 01 00 00 3E 10 4E [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: 01 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: 01 07 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: 01 07 00 3E 10 00 00 00 00 00 FF 0F 63 [23:50:18]RasterBufferAndPrint [23:50:18]line Счет N : (3)16742 [23:50:18]line ИНН: 02508201610067 [23:50:18]line Контрольно-Кассовый Чек [23:50:18]line ПРОДАЖА [23:50:18]line Товар: 48743570 [23:50:18]line Сигареты Winston XStyle Blue [23:50:18]line 1.000 * 144.00 [23:50:18]line = 144.00 [23:50:18]line НДС 12% НСП 1% [23:50:18]line > о реализуемом товаре [23:50:18]line Товар: 4690329014077 [23:50:18]line Шоколад молочный Babyfox 45г/30 [23:50:18]line 3.000 * 40.00 [23:50:18]line = 120.00 [23:50:18]line НДС 12% НСП 1% [23:50:18]line > о реализуемом товаре [23:50:18]line ИТОГО: 264.00 [23:50:18]line НСП 1% : 2.33 [23:50:18]line НДС 12% : 28.03 [23:50:18]line Наличными: 264.00 [23:50:18]line Безнал.: 0.00 [23:50:18]line Место: АЗС № 176 "Партнер Нефть" [23:50:18]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [23:50:18]line СНО: Общий режим [23:50:18]line Чек 102 23.09.2024 23:50 [23:50:18]line Смена: 181 ФФД: 1.0 [23:50:18]line ЗНМ: 0300000010 [23:50:18]line РНМ: 0000000000152968 [23:50:18]line Версия ККМ: v1.0 [23:50:18]line ФМ: 0000000000959456 [23:50:18]line ФД: 18826 [23:50:18]line ФПД: 227655484103695 [23:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T235019&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18826&fm=227655484103695&tin=02508201610067®Number=0000000000152968&sum=26400 [23:50:18]line 0 [23:50:18]OFD Sender: Processing packet 18826 [packets to send 7, broken 6] [23:50:18]ProducePacketName [23:50:18]name=ofd_packets/00018826 [23:50:18]OFD Sender: To server: pG, [23:50:18]CommunicateWithHost lk.salyk.kg:30040 [23:50:18]ConnectInit lk.salyk.kg [23:50:18]written 0, free lines is 4095 [23:50:18]Connected sock=7 [23:50:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 9C 01 00 00 19 7D 94 01 0E CD 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 34 30 37 37 06 04 2F 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 42 61 62 79 66 6F 78 20 34 35 D0 B3 2F 33 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 BB FE F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8A 49 00 00 35 04 06 00 CF 0D 2C 42 DC 0F E2 AF 14 27 00 70 A5 89 [23:50:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 D2 CE 47 00 54 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 35 39 34 35 36 10 04 04 00 8A 49 00 00 F4 03 04 00 1D A8 F1 66 B6 04 01 00 00 F2 16 6F F3 48 9F CB D1 [23:50:18]CommunicateWithHost err = 0 [23:50:18]CheckOFDResponse [23:50:18]1017 (14) - 77093643461234 [23:50:18]1041 (16) - 0000000000959456 [23:50:18]1040 (4) - 18826 [23:50:18]1012 (4) - 23.09.2024 17:40 [23:50:18]1206 (1) - 0 [23:50:18]OFD Sender: Remove packet 18826 [23:50:18]ProducePacketName [23:50:18]name=ofd_packets/00018826 [23:50:18]NVStorageDeleteData [23:50:18]Write to MH i2c: 01 00 00 6D 10 7D [23:50:18]Write i2c OK [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: 01 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: 01 07 00 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: 01 07 00 6D 10 00 00 00 00 00 CB 0C 5B [23:50:18]RasterBufferAndPrint [23:50:18]line [23:50:18]line [23:50:18]line [23:50:18]line [23:50:18]line [23:50:18]written 0, free lines is 3284 [23:50:18]MH_Cut [23:50:18]Write to MH i2c: D1 01 00 74 10 01 56 [23:50:18]Write i2c OK [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: D1 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: D1 01 00 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: D1 01 00 74 10 00 55 [23:50:18]Write to MH i2c: 01 00 00 75 10 85 [23:50:18]Write i2c OK [23:50:18]MH_I2C_Read... [23:50:19]OFD Sender: No OFD packet to send [23:50:19]*** Cut start [23:50:19]*** Partial cut [23:50:19]*** CUTSNS_PIN = 1 [23:50:19]*** CUTSNS_PIN = 0 [23:50:19]*** Brake cut motor [23:50:19]Read from MH i2c: 01 [23:50:19]MH_I2C_Read... [23:50:19]*** Stop cut motor [23:50:19]*** Cut end [23:50:19]Read from MH i2c: 01 07 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: 01 07 00 75 10 00 00 00 00 00 FF 0F 9A [23:50:19]process_action close_receipt done [23:50:19]requested_data is exist [23:50:19]produce_requested_data [23:50:19]requested_item fm.sn is exist - process it [23:50:19]wFMCommunicate request_size=4 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 11 00 00 [23:50:19]Write to MH i2c: E2 08 00 76 10 80 11 00 00 00 00 00 00 00 [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:20]Read from MH i2c: E2 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 17 00 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 17 00 76 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 59 [23:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:50:20]wFMCommunicate OK [23:50:20]requested_item fd.num is exist - process it [23:50:20]SAM_PROTO_GetFieldsCounters [23:50:20]wFMCommunicate request_size=4 [23:50:20]MH_SAM_APDU [23:50:20]CAPDU: 80 13 00 00 [23:50:20]Write to MH i2c: E2 08 00 77 10 80 13 00 00 00 00 00 00 03 [23:50:20]Write i2c OK [23:50:20]MH_I2C_Read... [23:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:20]Read from MH i2c: E2 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 62 00 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 62 00 77 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8A 49 00 00 0E 04 04 00 B5 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 EA [23: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8A 49 00 00 0E 04 04 00 B5 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 [23:50:20]wFMCommunicate OK [23:50:20]SAM_PROTO_GetFieldsCounters done [23:50:20]requested_item shift.num is exist - process it [23:50:20]requested_item shift.opened is exist - process it [23:50:20]req_shift_opened [23:50:20]FM_GetShiftState [23:50:20]SAM_PROTO_GetShiftState [23:50:20]wFMCommunicate request_size=4 [23:50:20]MH_SAM_APDU [23:50:20]CAPDU: 80 13 01 00 [23:50:20]Write to MH i2c: E2 08 00 78 10 80 13 01 00 00 00 00 00 05 [23:50:20]Write i2c OK [23:50:20]MH_I2C_Read... [23:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:20]Read from MH i2c: E2 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 0E 00 [23:50:20]MH_I2C_Read... [23:50:20]Read from MH i2c: E2 0E 00 78 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 9D [23:50:20]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:50:20]wFMCommunicate OK [23:50:20]SAM_PROTO_GetShiftState done [23:50:20]FM_GetShiftState done [23:50:20]req_shift_opened done [23:50:20]requested_item shift.open_date is exist - process it [23:50:20]req_shift_open_date [23:50:20]req_shift_open_date done [23:50:20]produce_requested_data done [23:50:20]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18826,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [23:50:20]process_action_free close_receipt [23:50:20]json_value_free [23:50:20]json_value_free done [23:50:20]process_json_proto returns [23:50:20]Send response to host [23:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18826,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [23:50:20]free response buf [23:50:20]execute_script done [23:50:20]execute_script returns [23:50:20]free content buf [23:50:20]Sock 9.Close socket [23:50:20]Sock 9.Thread stoped [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]accept exits with 10 [23:55:29]New connection [23:55:29]New thread 3066608996 created [23:55:29]Thread 3066752356 joined [23:55:29]Waiting for new connection... [23:55:29] Sock 10.Parse request [23:55:29]Sock 10.Check first char [23:55:29]Sock 10.First char is OK [23:55:29]request: POST /json_proto HTTP/1.0 [23:55:29]Method: POST [23:55:29]URL: /json_proto [23:55:29]Method is POST - this is cgi request [23:55:29]url: /json_proto [23:55:29]query_string will be loaded in cgi processing [23:55:29]execute_cgi json_proto POST (null) [23:55:29]execute_cgi path=json_proto method=POST [23:55:29]POST find Content-Length [23:55:29]Host: 172.17.62.196:8080 [23:55:29]Content-Length: 1033 [23:55:29]Content-Type: application/json [23:55:29] [23:55:29]POST finish read [23:55:29]Found Content-Length = 1033 [23:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16743", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:29]execute_script... [23:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16743", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:29]POST & json_proto [23:55:29]process_json_proto [23:55:29]json parsed OK: [23:55:29]protocol is kg_v1.0 [23:55:29]action value=close_receipt [23:55:29]process_action close_receipt [23:55:29]cmd_close_receipt [23:55:29]MH_GetDate [23:55:29]Write to MH i2c: F0 00 00 79 10 78 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 09 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 09 00 79 10 00 F4 FF F1 66 CE CC 0E 66 D9 [23:55:29]GetLastDocTimeStamp 1727135419 [23:55:29]current date 1727135732 [23:55:29]FM_GetShiftState [23:55:29]SAM_PROTO_GetShiftState [23:55:29]wFMCommunicate request_size=4 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 13 01 00 [23:55:29]Write to MH i2c: E2 08 00 7A 10 80 13 01 00 00 00 00 00 07 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 0E 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 0E 00 7A 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 9F [23:55:29]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:55:29]wFMCommunicate OK [23:55:29]SAM_PROTO_GetShiftState done [23:55:29]FM_GetShiftState done [23:55:29]opened in 1727050372 [23:55:29]opened+sec_in_day 1727136772 [23:55:29]quantity*price = 13900 [23:55:29]sum+1 = 13901 [23:55:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.07 Наличными: 0.00 Безнал.: 189.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 103 23.09.2024 23:55 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18827 ФПД: 183335603752792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T235532&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18827&fm=183335603752792&tin=02508201610067®Number=0000000000152968&sum=18900 0 [23:55:30]StoreToDocumentArchive [23:55:30]shift 181 fd 18827 [23:55:30]save to /storage/0181/doc_00018827 [23:55:30]save last doc name /storage/0181/doc_00018827 to /storage/kkm_last_doc_name [23:55:30]save OK [23:55:30]Clear old archive folders... [23:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=377 [23:55:30]tlvbuf is 00C638C0 [23:55:30]SAM_PROTO_ClearQueue [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 09 00 00 [23:55:30]Write to MH i2c: E2 08 00 87 10 80 09 00 00 00 00 00 00 09 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 87 10 00 90 00 0B [23:55:30]RAPDU: 90 00 [23:55:30]wFMCommunicate OK [23:55:30]SAM_PROTO_ClearQueue done [23:55:30]KKMCreateOFDPacket [23:55:30]OFDProtocolAddRootSTLVToBuf [23:55:30]FM_MakeSignedData [23:55:30]FM_MakeSignedData [23:55:30]SAM_PROTO_SignData [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 0D 01 02 [23:55:30]Write to MH i2c: E2 08 00 88 10 80 0D 01 02 00 00 00 00 11 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 88 10 00 90 00 0C [23:55:30]RAPDU: 90 00 [23:55:30]wFMCommunicate OK [23:55:30]wFMCommunicate request_size=255 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE [23:55:30]Write to MH i2c: E2 02 01 89 10 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 00 00 99 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 89 10 00 90 00 0D [23:55:30]RAPDU: 90 00 [23:55:30]wFMCommunicate OK [23:55:30]wFMCommunicate request_size=136 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F4 FF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8B 49 00 00 35 04 06 00 A6 BE 25 89 4F 58 [23:55:30]Write to MH i2c: E2 8B 00 8A 10 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F4 FF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8B 49 00 00 35 04 06 00 A6 BE 25 89 4F 58 00 00 53 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 03 00 8A 10 00 90 00 0E [23:55:30]RAPDU: 90 00 [23:55:30]wFMCommunicate OK [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 0D 03 02 [23:55:30]Write to MH i2c: E2 08 00 8B 10 80 0D 03 02 00 00 00 00 16 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 0B 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 0B 00 8B 10 00 C5 A5 62 E5 FF 6B AD 7C 90 00 5B [23:55:30]RAPDU: C5 A5 62 E5 FF 6B AD 7C 90 00 [23:55:30]wFMCommunicate OK [23:55:30]SAM_PROTO_SignData done [23:55:30]FM_MakeSignedData done [23:55:30]CreateOFDProtocolMessage [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 11 00 00 [23:55:30]Write to MH i2c: E2 08 00 8C 10 80 11 00 00 00 00 00 00 16 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 17 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 17 00 8C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6F [23:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:55:30]wFMCommunicate OK [23:55:30]CreateOFDProtocolMessage done [23:55:30]OFDSenderStorePacket 18827 [23:55:30]StoreOFDPacket docnum=18827 [23:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 8D 01 00 00 08 F6 85 01 D7 A6 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F4 FF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8B 49 00 00 35 04 06 00 A6 BE 25 89 4F 58 C5 A5 62 E5 FF 6B AD 7C [23:55:30]CheckFolder [23:55:30]dirname=/storage/ofd_packets [23:55:30]CheckFolder done [23:55:30]ProducePacketName [23:55:30]name=ofd_packets/00018827 [23:55:30]NVStorageSaveData ofd_packets/00018827 [23:55:30]File name is /storage/ofd_packets/00018827 [23:55:30]Write 427 bytes [23:55:30]NVStorageSaveData done [23:55:30]OFDSenderStorePacket done [23:55:30]KKMCreateOFDPacket done [23:55:30]NVStorageSaveData kkm_last_timestamp [23:55:31]File name is /storage/kkm_last_timestamp [23:55:31]Write 4 bytes [23:55:31]NVStorageSaveData done [23:55:31]ExternCall_PrintAddStr [23:55:31]wPrintStart [23:55:31]Write to MH i2c: 01 00 00 8D 10 9D [23:55:31]OFD Sender: Processing packet 18827 [packets to send 7, broken 6] [23:55:31]ProducePacketName [23:55:31]name=ofd_packets/00018827 [23:55:31]OFD Sender: To server: pG, [23:55:31]CommunicateWithHost lk.salyk.kg:30040 [23:55:31]ConnectInit lk.salyk.kg [23:55:31]Write i2c OK [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: 01 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: 01 07 00 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: 01 07 00 8D 10 00 00 00 00 00 FF 0F B2 [23:55:31]RasterBufferAndPrint [23:55:31]line Счет N : (3)16743 [23:55:31]line ИНН: 02508201610067 [23:55:31]line Контрольно-Кассовый Чек [23:55:31]line ПРОДАЖА [23:55:31]line Товар: 48741224 [23:55:31]line Сигареты Winston Super Slims Blue [23:55:31]line 1.000 * 139.00 [23:55:31]line = 139.00 [23:55:31]line НДС 12% НСП 1% [23:55:31]line > о реализуемом товаре [23:55:31]line Товар: 4700000160358 [23:55:31]line Вода Легенда 1л [23:55:31]line 1.000 * 50.00 [23:55:31]line = 50.00 [23:55:31]line НДС 12% НСП 1% [23:55:31]line > о реализуемом товаре [23:55:31]line ИТОГО: 189.00 [23:55:31]line НСП 1% : 1.67 [23:55:31]line НДС 12% : 20.07 [23:55:31]line Наличными: 0.00 [23:55:31]line Безнал.: 189.00 [23:55:31]line Место: АЗС № 176 "Партнер Нефть" [23:55:31]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [23:55:31]line СНО: Общий режим [23:55:31]line Чек 103 23.09.2024 23:55 [23:55:31]line Смена: 181 ФФД: 1.0 [23:55:31]line ЗНМ: 0300000010 [23:55:31]line РНМ: 0000000000152968 [23:55:31]line Версия ККМ: v1.0 [23:55:31]line Платежная система: O! деньги [23:55:31]line ФМ: 0000000000959456 [23:55:31]line ФД: 18827 [23:55:31]line ФПД: 183335603752792 [23:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T235532&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18827&fm=183335603752792&tin=02508201610067®Number=0000000000152968&sum=18900 [23:55:31]line 0 [23:55:31]written 0, free lines is 4095 [23:55:31]Connected sock=9 [23:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 8D 01 00 00 08 F6 85 01 D7 A6 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 49 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 F4 FF F1 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8B 49 00 00 35 04 06 00 A6 BE 25 89 4F 58 C5 A5 62 E5 FF 6B AD 7C [23:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 03 EA 47 00 9F 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8B 49 00 00 F4 03 04 00 56 A9 F1 66 B6 04 01 00 00 BD F4 17 7C 4C FD 92 A7 [23:55:31]CommunicateWithHost err = 0 [23:55:31]CheckOFDResponse [23:55:31]1017 (14) - 77093643461234 [23:55:31]1041 (16) - 0000000000959456 [23:55:31]1040 (4) - 18827 [23:55:31]1012 (4) - 23.09.2024 17:45 [23:55:31]1206 (1) - 0 [23:55:31]OFD Sender: Remove packet 18827 [23:55:31]ProducePacketName [23:55:31]name=ofd_packets/00018827 [23:55:31]NVStorageDeleteData [23:55:31]Write to MH i2c: 01 00 00 BE 10 CE [23:55:31]Write i2c OK [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: 01 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: 01 07 00 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 96 0C 77 [23:55:31]RasterBufferAndPrint [23:55:31]line [23:55:31]line [23:55:31]line [23:55:31]line [23:55:31]line [23:55:31]written 0, free lines is 3228 [23:55:31]MH_Cut [23:55:31]Write to MH i2c: D1 01 00 C5 10 01 A7 [23:55:31]Write i2c OK [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: D1 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: D1 01 00 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: D1 01 00 C5 10 00 A6 [23:55:31]Write to MH i2c: 01 00 00 C6 10 D6 [23:55:31]Write i2c OK [23:55:31]MH_I2C_Read... [23:55:32]OFD Sender: No OFD packet to send [23:55:32]*** Cut start [23:55:32]*** Partial cut [23:55:32]*** CUTSNS_PIN = 1 [23:55:32]*** CUTSNS_PIN = 0 [23:55:32]*** Brake cut motor [23:55:33]Read from MH i2c: 01 [23:55:33]MH_I2C_Read... [23:55:33]*** Stop cut motor [23:55:33]*** Cut end [23:55:33]Read from MH i2c: 01 07 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [23:55:33]process_action close_receipt done [23:55:33]requested_data is exist [23:55:33]produce_requested_data [23:55:33]requested_item fm.sn is exist - process it [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 11 00 00 [23:55:33]Write to MH i2c: E2 08 00 C7 10 80 11 00 00 00 00 00 00 51 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 17 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 17 00 C7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 AA [23:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [23:55:33]wFMCommunicate OK [23:55:33]requested_item fd.num is exist - process it [23:55:33]SAM_PROTO_GetFieldsCounters [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 13 00 00 [23:55:33]Write to MH i2c: E2 08 00 C8 10 80 13 00 00 00 00 00 00 54 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 62 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 62 00 C8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8B 49 00 00 0E 04 04 00 B5 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 3F [23:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8B 49 00 00 0E 04 04 00 B5 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 [23:55:33]wFMCommunicate OK [23:55:33]SAM_PROTO_GetFieldsCounters done [23:55:33]requested_item shift.num is exist - process it [23:55:33]requested_item shift.opened is exist - process it [23:55:33]req_shift_opened [23:55:33]FM_GetShiftState [23:55:33]SAM_PROTO_GetShiftState [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 13 01 00 [23:55:33]Write to MH i2c: E2 08 00 C9 10 80 13 01 00 00 00 00 00 56 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:33]Read from MH i2c: E2 0E 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 0E 00 C9 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 EE [23:55:33]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [23:55:33]wFMCommunicate OK [23:55:33]SAM_PROTO_GetShiftState done [23:55:33]FM_GetShiftState done [23:55:33]req_shift_opened done [23:55:33]requested_item shift.open_date is exist - process it [23:55:33]req_shift_open_date [23:55:33]req_shift_open_date done [23:55:33]produce_requested_data done [23:55:33]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18827,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [23:55:33]process_action_free close_receipt [23:55:33]json_value_free [23:55:33]json_value_free done [23:55:33]process_json_proto returns [23:55:33]Send response to host [23:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18827,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [23:55:33]free response buf [23:55:33]execute_script done [23:55:33]execute_script returns [23:55:33]free content buf [23:55:33]Sock 10.Close socket [23:55:33]Sock 10.Thread stoped [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:19]accept exits with 7 [00:05:19]New connection [00:05:19]New thread 3066752356 created [00:05:19]Thread 3066608996 joined [00:05:19]Waiting for new connection... [00:05:19] Sock 7.Parse request [00:05:19]Sock 7.Check first char [00:05:19]Sock 7.First char is OK [00:05:19]request: POST /json_proto HTTP/1.0 [00:05:19]Method: POST [00:05:19]URL: /json_proto [00:05:19]Method is POST - this is cgi request [00:05:19]url: /json_proto [00:05:19]query_string will be loaded in cgi processing [00:05:19]execute_cgi json_proto POST (null) [00:05:19]execute_cgi path=json_proto method=POST [00:05:19]POST find Content-Length [00:05:19]Host: 172.17.62.196:8080 [00:05:19]Content-Length: 780 [00:05:19]Content-Type: application/json [00:05:19] [00:05:19]POST finish read [00:05:19]Found Content-Length = 780 [00:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16744", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:19]execute_script... [00:05:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16744", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:19]POST & json_proto [00:05:19]process_json_proto [00:05:19]json parsed OK: [00:05:19]protocol is kg_v1.0 [00:05:19]action value=close_receipt [00:05:19]process_action close_receipt [00:05:19]cmd_close_receipt [00:05:19]MH_GetDate [00:05:19]Write to MH i2c: F0 00 00 CA 10 C9 [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: F0 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: F0 09 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: F0 09 00 CA 10 00 42 02 F2 66 CE CC 0E 66 7C [00:05:19]GetLastDocTimeStamp 1727135732 [00:05:19]current date 1727136322 [00:05:19]FM_GetShiftState [00:05:19]SAM_PROTO_GetShiftState [00:05:19]wFMCommunicate request_size=4 [00:05:19]MH_SAM_APDU [00:05:19]CAPDU: 80 13 01 00 [00:05:19]Write to MH i2c: E2 08 00 CB 10 80 13 01 00 00 00 00 00 58 [00:05:19]Write i2c OK [00:05:19]MH_I2C_Read... [00:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:19]Read from MH i2c: E2 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 0E 00 [00:05:19]MH_I2C_Read... [00:05:19]Read from MH i2c: E2 0E 00 CB 10 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 F0 [00:05:19]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:05:19]wFMCommunicate OK [00:05:19]SAM_PROTO_GetShiftState done [00:05:19]FM_GetShiftState done [00:05:19]opened in 1727050372 [00:05:19]opened+sec_in_day 1727136772 [00:05:19]quantity*price = 40500 [00:05:19]sum+1 = 40501 [00:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 0.00 Безнал.: 405.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 104 24.09.2024 00:05 Смена: 181 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000959456 ФД: 18828 ФПД: 224382828466508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T000522&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18828&fm=224382828466508&tin=02508201610067®Number=0000000000152968&sum=40500 0 [00:05:21]StoreToDocumentArchive [00:05:21]shift 181 fd 18828 [00:05:21]save to /storage/0181/doc_00018828 [00:05:21]save last doc name /storage/0181/doc_00018828 to /storage/kkm_last_doc_name [00:05:21]save OK [00:05:21]Clear old archive folders... [00:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [00:05:21]tlvbuf is 00C01CF0 [00:05:21]SAM_PROTO_ClearQueue [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 09 00 00 [00:05:21]Write to MH i2c: E2 08 00 D8 10 80 09 00 00 00 00 00 00 5A [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [00:05:21]RAPDU: 90 00 [00:05:21]wFMCommunicate OK [00:05:21]SAM_PROTO_ClearQueue done [00:05:21]KKMCreateOFDPacket [00:05:21]OFDProtocolAddRootSTLVToBuf [00:05:21]FM_MakeSignedData [00:05:21]FM_MakeSignedData [00:05:21]SAM_PROTO_SignData [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 0D 01 02 [00:05:21]Write to MH i2c: E2 08 00 D9 10 80 0D 01 02 00 00 00 00 62 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 D9 10 00 90 00 5D [00:05:21]RAPDU: 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=255 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 42 02 F2 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 [00:05:21]Write to MH i2c: E2 02 01 DA 10 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 42 02 F2 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 00 1C [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 DA 10 00 90 00 5E [00:05:21]RAPDU: 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=39 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8C 49 00 00 35 04 06 00 CC 13 32 C8 D1 4C [00:05:21]Write to MH i2c: E2 2A 00 DB 10 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8C 49 00 00 35 04 06 00 CC 13 32 C8 D1 4C 00 00 F1 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [00:05:21]RAPDU: 90 00 [00:05:21]wFMCommunicate OK [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 0D 03 02 [00:05:21]Write to MH i2c: E2 08 00 DC 10 80 0D 03 02 00 00 00 00 67 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 0B 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 0B 00 DC 10 00 FB E5 5C DA D0 A8 A7 40 90 00 DD [00:05:21]RAPDU: FB E5 5C DA D0 A8 A7 40 90 00 [00:05:21]wFMCommunicate OK [00:05:21]SAM_PROTO_SignData done [00:05:21]FM_MakeSignedData done [00:05:21]CreateOFDProtocolMessage [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 11 00 00 [00:05:21]Write to MH i2c: E2 08 00 DD 10 80 11 00 00 00 00 00 00 67 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 17 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 17 00 DD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 C0 [00:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:05:21]wFMCommunicate OK [00:05:21]CreateOFDProtocolMessage done [00:05:21]OFDSenderStorePacket 18828 [00:05:21]StoreOFDPacket docnum=18828 [00:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 96 F6 24 01 38 75 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 42 02 F2 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8C 49 00 00 35 04 06 00 CC 13 32 C8 D1 4C FB E5 5C DA D0 A8 A7 40 [00:05:21]CheckFolder [00:05:21]dirname=/storage/ofd_packets [00:05:21]CheckFolder done [00:05:21]ProducePacketName [00:05:21]name=ofd_packets/00018828 [00:05:21]NVStorageSaveData ofd_packets/00018828 [00:05:21]File name is /storage/ofd_packets/00018828 [00:05:21]Write 330 bytes [00:05:21]NVStorageSaveData done [00:05:21]OFDSenderStorePacket done [00:05:21]KKMCreateOFDPacket done [00:05:21]NVStorageSaveData kkm_last_timestamp [00:05:21]File name is /storage/kkm_last_timestamp [00:05:21]Write 4 bytes [00:05:21]NVStorageSaveData done [00:05:21]ExternCall_PrintAddStr [00:05:21]wPrintStart [00:05:21]Write to MH i2c: 01 00 00 DE 10 EE [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: 01 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: 01 07 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: 01 07 00 DE 10 00 00 00 00 00 FF 0F 03 [00:05:21]RasterBufferAndPrint [00:05:21]line Счет N : (3)16744 [00:05:21]line ИНН: 02508201610067 [00:05:21]line Контрольно-Кассовый Чек [00:05:21]line ПРОДАЖА [00:05:21]line Товар: 4650063110756 [00:05:21]line Масло Gazpromneft Super 10w40 1л [00:05:21]line 1.000 * 405.00 [00:05:21]line = 405.00 [00:05:21]line НДС 12% НСП 1% [00:05:21]line > о реализуемом товаре [00:05:21]line ИТОГО: 405.00 [00:05:21]line НСП 1% : 3.58 [00:05:21]line НДС 12% : 43.01 [00:05:21]line Наличными: 0.00 [00:05:21]line Безнал.: 405.00 [00:05:21]line Место: АЗС № 176 "Партнер Нефть" [00:05:21]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:05:21]line СНО: Общий режим [00:05:21]line Чек 104 24.09.2024 00:05 [00:05:21]line Смена: 181 ФФД: 1.0 [00:05:21]line ЗНМ: 0300000010 [00:05:21]line РНМ: 0000000000152968 [00:05:21]line Версия ККМ: v1.0 [00:05:21]line Платежная система: O! деньги [00:05:21]line ФМ: 0000000000959456 [00:05:21]line ФД: 18828 [00:05:21]line ФПД: 224382828466508 [00:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T000522&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18828&fm=224382828466508&tin=02508201610067®Number=0000000000152968&sum=40500 [00:05:21]line 0 [00:05:21]OFD Sender: Processing packet 18828 [packets to send 7, broken 6] [00:05:21]ProducePacketName [00:05:21]name=ofd_packets/00018828 [00:05:21]OFD Sender: To server: pG, [00:05:21]CommunicateWithHost lk.salyk.kg:30040 [00:05:21]ConnectInit lk.salyk.kg [00:05:21]written 0, free lines is 4095 [00:05:22]Connected sock=10 [00:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 96 F6 24 01 38 75 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 42 02 F2 66 0E 04 04 00 B5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8C 49 00 00 35 04 06 00 CC 13 32 C8 D1 4C FB E5 5C DA D0 A8 A7 40 [00:05:22]Write to MH i2c: 01 00 00 09 11 1A [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: 01 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: 01 07 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: 01 07 00 09 11 00 00 00 00 00 E2 0C 0F [00:05:22]RasterBufferAndPrint [00:05:22]line [00:05:22]line [00:05:22]line [00:05:22]line [00:05:22]line [00:05:22]written 0, free lines is 3304 [00:05:22]MH_Cut [00:05:22]Write to MH i2c: D1 01 00 10 11 01 F3 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: D1 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: D1 01 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: D1 01 00 10 11 00 F2 [00:05:22]Write to MH i2c: 01 00 00 11 11 22 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 3E 41 47 00 FB 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 35 39 34 35 36 10 04 04 00 8C 49 00 00 F4 03 04 00 A5 AB F1 66 B6 04 01 00 00 BE 2B BB A8 EF 30 42 B9 [00:05:22]CommunicateWithHost err = 0 [00:05:22]CheckOFDResponse [00:05:22]1017 (14) - 77093643461234 [00:05:22]1041 (16) - 0000000000959456 [00:05:22]1040 (4) - 18828 [00:05:22]1012 (4) - 23.09.2024 17:55 [00:05:22]1206 (1) - 0 [00:05:22]OFD Sender: Remove packet 18828 [00:05:22]ProducePacketName [00:05:22]name=ofd_packets/00018828 [00:05:22]NVStorageDeleteData [00:05:22]OFD Sender: No OFD packet to send [00:05:23]*** Cut start [00:05:23]*** Partial cut [00:05:23]*** CUTSNS_PIN = 1 [00:05:23]*** CUTSNS_PIN = 0 [00:05:23]*** Brake cut motor [00:05:23]Read from MH i2c: 01 [00:05:23]MH_I2C_Read... [00:05:23]*** Stop cut motor [00:05:23]*** Cut end [00:05:23]Read from MH i2c: 01 07 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 FF 0F 37 [00:05:23]process_action close_receipt done [00:05:23]requested_data is exist [00:05:23]produce_requested_data [00:05:23]requested_item fm.sn is exist - process it [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 11 00 00 [00:05:23]Write to MH i2c: E2 08 00 12 11 80 11 00 00 00 00 00 00 9D [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 17 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 17 00 12 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F6 [00:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:05:23]wFMCommunicate OK [00:05:23]requested_item fd.num is exist - process it [00:05:23]SAM_PROTO_GetFieldsCounters [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 13 00 00 [00:05:23]Write to MH i2c: E2 08 00 13 11 80 13 00 00 00 00 00 00 A0 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 62 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 62 00 13 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 8F [00:05:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 [00:05:23]wFMCommunicate OK [00:05:23]SAM_PROTO_GetFieldsCounters done [00:05:23]requested_item shift.num is exist - process it [00:05:23]requested_item shift.opened is exist - process it [00:05:23]req_shift_opened [00:05:23]FM_GetShiftState [00:05:23]SAM_PROTO_GetShiftState [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 13 01 00 [00:05:23]Write to MH i2c: E2 08 00 14 11 80 13 01 00 00 00 00 00 A2 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 0E 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 0E 00 14 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 3A [00:05:23]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:05:23]wFMCommunicate OK [00:05:23]SAM_PROTO_GetShiftState done [00:05:23]FM_GetShiftState done [00:05:23]req_shift_opened done [00:05:23]requested_item shift.open_date is exist - process it [00:05:23]req_shift_open_date [00:05:23]req_shift_open_date done [00:05:23]produce_requested_data done [00:05:23]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:05:23]process_action_free close_receipt [00:05:23]json_value_free [00:05:23]json_value_free done [00:05:23]process_json_proto returns [00:05:23]Send response to host [00:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:05:23]free response buf [00:05:23]execute_script done [00:05:23]execute_script returns [00:05:23]free content buf [00:05:23]Sock 7.Close socket [00:05:23]Sock 7.Thread stoped [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:19]accept exits with 9 [00:06:19]New connection [00:06:19]New thread 3066608996 created [00:06:19]Thread 3066752356 joined [00:06:19]Waiting for new connection... [00:06:19] Sock 9.Parse request [00:06:19]Sock 9.Check first char [00:06:19]Sock 9.First char is OK [00:06:19]request: POST /json_proto HTTP/1.0 [00:06:19]Method: POST [00:06:19]URL: /json_proto [00:06:19]Method is POST - this is cgi request [00:06:19]url: /json_proto [00:06:19]query_string will be loaded in cgi processing [00:06:19]execute_cgi json_proto POST (null) [00:06:19]execute_cgi path=json_proto method=POST [00:06:19]POST find Content-Length [00:06:19]Host: 172.17.62.196:8080 [00:06:19]Content-Length: 215 [00:06:19]Content-Type: application/json [00:06:19] [00:06:19]POST finish read [00:06:19]Found Content-Length = 215 [00:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:19]execute_script... [00:06:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:19]POST & json_proto [00:06:19]process_json_proto [00:06:19]json parsed OK: [00:06:19]protocol is kg_v1.0 [00:06:19]action value=get_value [00:06:19]process_action get_value [00:06:19]cmd_get_value [00:06:19]process_action get_value done [00:06:19]requested_data is exist [00:06:19]produce_requested_data [00:06:19]requested_item kkm.sn is exist - process it [00:06:19]requested_item kkm.ver is exist - process it [00:06:19]requested_item fm.sn is exist - process it [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 11 00 00 [00:06:19]Write to MH i2c: E2 08 00 15 11 80 11 00 00 00 00 00 00 A0 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 17 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 17 00 15 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F9 [00:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:06:19]wFMCommunicate OK [00:06:19]requested_item fd.num is exist - process it [00:06:19]SAM_PROTO_GetFieldsCounters [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 00 00 [00:06:19]Write to MH i2c: E2 08 00 16 11 80 13 00 00 00 00 00 00 A3 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 16 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 92 [00: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetFieldsCounters done [00:06:19]requested_item shift.num is exist - process it [00:06:19]requested_item shift.opened is exist - process it [00:06:19]req_shift_opened [00:06:19]FM_GetShiftState [00:06:19]SAM_PROTO_GetShiftState [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 01 00 [00:06:19]Write to MH i2c: E2 08 00 17 11 80 13 01 00 00 00 00 00 A5 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 17 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 3D [00:06:19]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetShiftState done [00:06:19]FM_GetShiftState done [00:06:19]req_shift_opened done [00:06:19]requested_item shift.open_date is exist - process it [00:06:19]req_shift_open_date [00:06:19]req_shift_open_date done [00:06:19]produce_requested_data done [00:06:19]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:06:19]process_action_free get_value [00:06:19]json_value_free [00:06:19]json_value_free done [00:06:19]process_json_proto returns [00:06:19]Send response to host [00:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:06:19]free response buf [00:06:19]execute_script done [00:06:19]execute_script returns [00:06:19]free content buf [00:06:19]Sock 9.Close socket [00:06:19]Sock 9.Thread stoped [00:06:19]accept exits with 7 [00:06:19]New connection [00:06:19]New thread 3066752356 created [00:06:19]Thread 3066608996 joined [00:06:19]Waiting for new connection... [00:06:19] Sock 7.Parse request [00:06:19]Sock 7.Check first char [00:06:19]Sock 7.First char is OK [00:06:19]request: POST /json_proto HTTP/1.0 [00:06:19]Method: POST [00:06:19]URL: /json_proto [00:06:19]Method is POST - this is cgi request [00:06:19]url: /json_proto [00:06:19]query_string will be loaded in cgi processing [00:06:19]execute_cgi json_proto POST (null) [00:06:19]execute_cgi path=json_proto method=POST [00:06:19]POST find Content-Length [00:06:19]Host: 172.17.62.196:8080 [00:06:19]Content-Length: 331 [00:06:19]Content-Type: application/json [00:06:19] [00:06:19]POST finish read [00:06:19]Found Content-Length = 331 [00:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:19]execute_script... [00:06:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:19]POST & json_proto [00:06:19]process_json_proto [00:06:19]json parsed OK: [00:06:19]protocol is kg_v1.0 [00:06:19]action value=get_value [00:06:19]process_action get_value [00:06:19]cmd_get_value [00:06:19]process_action get_value done [00:06:19]requested_data is exist [00:06:19]produce_requested_data [00:06:19]requested_item fm.sale.total is exist - process it [00:06:19]SAM_PROTO_GetFMData [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 03 00 [00:06:19]Write to MH i2c: E2 08 00 18 11 80 13 03 00 00 00 00 00 A8 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 18 11 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 DC [00:06:19]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 19 11 80 17 00 00 00 00 00 00 AA [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 19 11 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [00:06:20]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 1A 11 80 17 00 00 00 00 00 00 AB [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 1A 11 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [00:06:20]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 1B 11 80 17 00 00 00 00 00 00 AC [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 1B 11 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:06:20]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 1C 11 80 17 00 00 00 00 00 00 AD [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 DB 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 DB 00 1C 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [00:06:21]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]SAM_PROTO_GetFMData done [00:06:21]requested_item fm.sale_refund.total is exist - process it [00:06:21]requested_item fm.buy.total is exist - process it [00:06:21]requested_item shift.sale.total is exist - process it [00:06:21]SAM_PROTO_GetShiftData [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 13 02 00 [00:06:21]Write to MH i2c: E2 08 00 1D 11 80 13 02 00 00 00 00 00 AC [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 1D 11 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 07 [00:06:21]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 1E 11 80 17 00 00 00 00 00 00 AF [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 1E 11 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 D1 [00:06:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 1F 11 80 17 00 00 00 00 00 00 B0 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 1F 11 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 67 [00:06:22]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 20 11 80 17 00 00 00 00 00 00 B1 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 20 11 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 23 [00:06:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 21 11 80 17 00 00 00 00 00 00 B2 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 CB 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 CB 00 21 11 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9B [00:06:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:22]wFMCommunicate OK [00:06:22]SAM_PROTO_GetShiftData done [00:06:22]requested_item shift.sale.total_cash is exist - process it [00:06:22]requested_item shift.sale_refund.total is exist - process it [00:06:22]requested_item shift.sale_refund.total_cash is exist - process it [00:06:22]requested_item shift.buy.total is exist - process it [00:06:22]requested_item shift.buy.total_cash is exist - process it [00:06:22]produce_requested_data done [00:06:22]produce_requested_data return {"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:22]process_action_free get_value [00:06:22]json_value_free [00:06:22]json_value_free done [00:06:22]process_json_proto returns [00:06:22]Send response to host [00:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:22]free response buf [00:06:22]execute_script done [00:06:22]execute_script returns [00:06:22]free content buf [00:06:22]Sock 7.Close socket [00:06:22]Sock 7.Thread stoped [00:06:22]accept exits with 9 [00:06:22]New connection [00:06:22]New thread 3066608996 created [00:06:22]Thread 3066752356 joined [00:06:22]Waiting for new connection... [00:06:22] Sock 9.Parse request [00:06:22]Sock 9.Check first char [00:06:22]Sock 9.First char is OK [00:06:22]request: POST /json_proto HTTP/1.0 [00:06:22]Method: POST [00:06:22]URL: /json_proto [00:06:22]Method is POST - this is cgi request [00:06:22]url: /json_proto [00:06:22]query_string will be loaded in cgi processing [00:06:22]execute_cgi json_proto POST (null) [00:06:22]execute_cgi path=json_proto method=POST [00:06:22]POST find Content-Length [00:06:22]Host: 172.17.62.196:8080 [00:06:22]Content-Length: 331 [00:06:22]Content-Type: application/json [00:06:22] [00:06:22]POST finish read [00:06:22]Found Content-Length = 331 [00:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:22]execute_script... [00:06:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:22]POST & json_proto [00:06:22]process_json_proto [00:06:22]json parsed OK: [00:06:22]protocol is kg_v1.0 [00:06:22]action value=get_value [00:06:22]process_action get_value [00:06:22]cmd_get_value [00:06:22]process_action get_value done [00:06:22]requested_data is exist [00:06:22]produce_requested_data [00:06:22]requested_item fm.sale.total is exist - process it [00:06:22]SAM_PROTO_GetFMData [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 13 03 00 [00:06:22]Write to MH i2c: E2 08 00 22 11 80 13 03 00 00 00 00 00 B2 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]OFD Sender: No OFD packet to send [00:06:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 22 11 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 E6 [00:06:23]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 23 11 80 17 00 00 00 00 00 00 B4 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 23 11 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [00:06:23]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 24 11 80 17 00 00 00 00 00 00 B5 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 FD 00 24 11 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [00:06:23]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 25 11 80 17 00 00 00 00 00 00 B6 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 25 11 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:06:24]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 26 11 80 17 00 00 00 00 00 00 B7 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 DB 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 DB 00 26 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [00:06:24]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:24]wFMCommunicate OK [00:06:24]SAM_PROTO_GetFMData done [00:06:24]requested_item fm.sale_refund.total is exist - process it [00:06:24]requested_item fm.buy.total is exist - process it [00:06:24]requested_item shift.sale.total is exist - process it [00:06:24]SAM_PROTO_GetShiftData [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 13 02 00 [00:06:24]Write to MH i2c: E2 08 00 27 11 80 13 02 00 00 00 00 00 B6 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 27 11 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 11 [00:06:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 17 00 00 [00:06:25]Write to MH i2c: E2 08 00 28 11 80 17 00 00 00 00 00 00 B9 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 28 11 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 DB [00:06:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 17 00 00 [00:06:25]Write to MH i2c: E2 08 00 29 11 80 17 00 00 00 00 00 00 BA [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 29 11 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 71 [00:06:26]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 2A 11 80 17 00 00 00 00 00 00 BB [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 2A 11 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 2D [00:06:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 2B 11 80 17 00 00 00 00 00 00 BC [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 CB 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 CB 00 2B 11 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A5 [00:06:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:26]wFMCommunicate OK [00:06:26]SAM_PROTO_GetShiftData done [00:06:26]requested_item shift.sale.total_cash is exist - process it [00:06:26]requested_item shift.sale_refund.total is exist - process it [00:06:26]requested_item shift.sale_refund.total_cash is exist - process it [00:06:26]requested_item shift.buy.total is exist - process it [00:06:26]requested_item shift.buy.total_cash is exist - process it [00:06:26]produce_requested_data done [00:06:26]produce_requested_data return {"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:26]process_action_free get_value [00:06:26]json_value_free [00:06:26]json_value_free done [00:06:26]process_json_proto returns [00:06:26]Send response to host [00:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:26]free response buf [00:06:26]execute_script done [00:06:26]execute_script returns [00:06:26]free content buf [00:06:26]Sock 9.Close socket [00:06:26]Sock 9.Thread stoped [00:06:26]accept exits with 7 [00:06:26]New connection [00:06:26]New thread 3066752356 created [00:06:26]Thread 3066608996 joined [00:06:26]Waiting for new connection... [00:06:26] Sock 7.Parse request [00:06:26]Sock 7.Check first char [00:06:26]Sock 7.First char is OK [00:06:26]request: POST /json_proto HTTP/1.0 [00:06:26]Method: POST [00:06:26]URL: /json_proto [00:06:26]Method is POST - this is cgi request [00:06:26]url: /json_proto [00:06:26]query_string will be loaded in cgi processing [00:06:26]execute_cgi json_proto POST (null) [00:06:26]execute_cgi path=json_proto method=POST [00:06:26]POST find Content-Length [00:06:26]Host: 172.17.62.196:8080 [00:06:26]Content-Length: 251 [00:06:26]Content-Type: application/json [00:06:26] [00:06:26]POST finish read [00:06:26]Found Content-Length = 251 [00:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043C\u0435\u0434\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]execute_script... [00:06:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043C\u0435\u0434\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]POST & json_proto [00:06:26]process_json_proto [00:06:26]json parsed OK: [00:06:26]protocol is kg_v1.0 [00:06:26]action value=x_report [00:06:26]process_action x_report [00:06:26]cmd_x_report [00:06:26]MH_GetDate [00:06:26]Write to MH i2c: F0 00 00 2C 11 2C [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 2C 11 00 85 02 F2 66 CE CC 0E 66 22 [00:06:27]GetLastDocTimeStamp 1727136322 [00:06:27]current date 1727136389 [00:06:27]FM_GetShiftState [00:06:27]SAM_PROTO_GetShiftState [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 13 01 00 [00:06:27]Write to MH i2c: E2 08 00 2D 11 80 13 01 00 00 00 00 00 BB [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0E 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 0E 00 2D 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 53 [00:06:27]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetShiftState done [00:06:27]FM_GetShiftState done [00:06:27]KKMCreateXReportDocument [00:06:27]Load OK [00:06:27]Malloc new data [00:06:27]MH_GetDate [00:06:27]Write to MH i2c: F0 00 00 2E 11 2E [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: F0 09 00 2E 11 00 86 02 F2 66 CE CC 0E 66 25 [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 11 00 00 [00:06:27]Write to MH i2c: E2 08 00 2F 11 80 11 00 00 00 00 00 00 BA [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 17 00 2F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 13 [00:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetFieldsCounters [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 13 00 00 [00:06:27]Write to MH i2c: E2 08 00 30 11 80 13 00 00 00 00 00 00 BD [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 62 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 62 00 30 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 AC [00:06:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_GetFieldsCounters done [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]Malloc new data [00:06:27]KKMCreateXReportDocument OK [00:06:27]KKMSetXReportData OK [00:06:27]KKMPrepareXReportFMData [00:06:27]SAM_PROTO_GetShiftData [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 13 02 00 [00:06:27]Write to MH i2c: E2 08 00 31 11 80 13 02 00 00 00 00 00 C0 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 FD 00 31 11 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 1B [00:06:27]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:06:28]00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 17 00 00 [00:06:28]Write to MH i2c: E2 08 00 32 11 80 17 00 00 00 00 00 00 C3 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 32 11 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E5 [00:06:28]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:06:28]wFMCommunicate OK [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 17 00 00 [00:06:28]Write to MH i2c: E2 08 00 33 11 80 17 00 00 00 00 00 00 C4 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 FD 00 33 11 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 7B [00:06:28]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:06:29]wFMCommunicate OK [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 17 00 00 [00:06:29]Write to MH i2c: E2 08 00 34 11 80 17 00 00 00 00 00 00 C5 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 FD 00 34 11 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 37 [00:06:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:06:29]wFMCommunicate OK [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 17 00 00 [00:06:29]Write to MH i2c: E2 08 00 35 11 80 17 00 00 00 00 00 00 C6 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 CB 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 CB 00 35 11 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AF [00:06:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_GetShiftData done [00:06:29]1194 (1194) - счетчики итогов смены [00:06:29] 1134 (4) - 104 - количество чеков со всеми признаками расчетов [00:06:29] 1129 (155) - счетчики операций «приход» [00:06:29] 1135 (4) - 104 - количество чеков по признаку расчетов [00:06:29] 1201 (3) - 25258.00 - общая итоговая сумма в чеках [00:06:29] 1136 (3) - 20995.00 - итоговая сумма в чеках наличными [00:06:29] 1138 (3) - 4263.00 - итоговая сумма в чеках безналичными [00:06:29] 1024 (122) - суммы налогов [00:06:29] 1006 (9) - суммы НДС [00:06:29] 1010 (1) - 0% - код ставки НДС [00:06:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:29] 1006 (12) - суммы НДС [00:06:29] 1010 (1) - 12% - код ставки НДС [00:06:29] 1011 (3) - 2682.53 - сумма НДС по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 0% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (11) - суммы НСП [00:06:29] 1014 (1) - 1% - код ставки НСП [00:06:29] 1015 (2) - 223.47 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 2% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 3% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 5% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 0,50% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1007 (9) - суммы НСП [00:06:29] 1014 (1) - 1,50% - код ставки НСП [00:06:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:29] 1130 (141) - счетчики операций «возврат прихода» [00:06:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:30] 1024 (117) - суммы налогов [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 0% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 12% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 2% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 3% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 5% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1131 (141) - счетчики операций «расход» [00:06:30] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:30] 1024 (117) - суммы налогов [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 0% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 12% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 2% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 3% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 5% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1132 (141) - счетчики операций «возврат расхода» [00:06:30] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:30] 1024 (117) - суммы налогов [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 0% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1006 (9) - суммы НДС [00:06:30] 1010 (1) - 12% - код ставки НДС [00:06:30] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 2% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 3% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 5% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 0,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1007 (9) - суммы НСП [00:06:30] 1014 (1) - 1,50% - код ставки НСП [00:06:30] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:30] 1133 (588) - - счетчики коррекции - не используются [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1194 (04AA) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1134 (046E) [00:06:30]Malloc new data [00:06:30]Processing tag 1129 (0469) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1135 (046F) [00:06:30]Malloc new data [00:06:30]Processing tag 1201 (04B1) [00:06:30]Malloc new data [00:06:30]Processing tag 1136 (0470) [00:06:30]Malloc new data [00:06:30]Processing tag 1138 (0472) [00:06:30]Malloc new data [00:06:30]Processing tag 1024 (0400) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1130 (046A) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1135 (046F) [00:06:30]Malloc new data [00:06:30]Processing tag 1201 (04B1) [00:06:30]Malloc new data [00:06:30]Processing tag 1136 (0470) [00:06:30]Malloc new data [00:06:30]Processing tag 1138 (0472) [00:06:30]Malloc new data [00:06:30]Processing tag 1024 (0400) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1131 (046B) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1135 (046F) [00:06:30]Malloc new data [00:06:30]Processing tag 1201 (04B1) [00:06:30]Malloc new data [00:06:30]Processing tag 1136 (0470) [00:06:30]Malloc new data [00:06:30]Processing tag 1138 (0472) [00:06:30]Malloc new data [00:06:30]Processing tag 1024 (0400) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1006 (03EE) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1010 (03F2) [00:06:30]Malloc new data [00:06:30]Processing tag 1011 (03F3) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:30]Processing tag 1014 (03F6) [00:06:30]Malloc new data [00:06:30]Processing tag 1015 (03F7) [00:06:30]Malloc new data [00:06:30]SetTLVBufToDocument err=0 [00:06:30]Processing tag 1007 (03EF) [00:06:30]Load OK [00:06:30]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1132 (046C) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1135 (046F) [00:06:31]Malloc new data [00:06:31]Processing tag 1201 (04B1) [00:06:31]Malloc new data [00:06:31]Processing tag 1136 (0470) [00:06:31]Malloc new data [00:06:31]Processing tag 1138 (0472) [00:06:31]Malloc new data [00:06:31]Processing tag 1024 (0400) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1006 (03EE) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1010 (03F2) [00:06:31]Malloc new data [00:06:31]Processing tag 1011 (03F3) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1007 (03EF) [00:06:31]Load OK [00:06:31]SetTLVBufToDocument [00:06:31]Processing tag 1014 (03F6) [00:06:31]Malloc new data [00:06:31]Processing tag 1015 (03F7) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Processing tag 1133 (046D) [00:06:31]Malloc new data [00:06:31]SetTLVBufToDocument err=0 [00:06:31]SetTLVBufToDocument err=0 [00:06:31]Malloc new data [00:06:31]SAM_PROTO_GetFMData [00:06:31]wFMCommunicate request_size=4 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 13 03 00 [00:06:31]Write to MH i2c: E2 08 00 36 11 80 13 03 00 00 00 00 00 C6 [00:06:31]Write i2c OK [00:06:31]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 36 11 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 FA [00:06:31]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:06:31]wFMCommunicate OK [00:06:31]wFMCommunicate request_size=4 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 17 00 00 [00:06:31]Write to MH i2c: E2 08 00 37 11 80 17 00 00 00 00 00 00 C8 [00:06:31]Write i2c OK [00:06:31]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 37 11 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F8 [00:06:32]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 17 00 00 [00:06:32]Write to MH i2c: E2 08 00 38 11 80 17 00 00 00 00 00 00 C9 [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 38 11 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [00:06:32]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 17 00 00 [00:06:32]Write to MH i2c: E2 08 00 39 11 80 17 00 00 00 00 00 00 CA [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 39 11 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:06:33]RAPDU: 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:06:33]09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:33]wFMCommunicate OK [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 17 00 00 [00:06:33]Write to MH i2c: E2 08 00 3A 11 80 17 00 00 00 00 00 00 CB [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 DB 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 DB 00 3A 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AD [00:06:33]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:33]wFMCommunicate OK [00:06:33]SAM_PROTO_GetFMData done [00:06:33]FM_GetFMData:85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 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 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:34]oper:6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:34]total:6A 95 8F 31 [00:06:34]Malloc new data [00:06:34]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 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 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:34]total:00 8C 55 [00:06:34]Malloc new data [00:06:34]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:34]total: [00:06:34]Malloc new data [00:06:34]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:34]total: [00:06:34]Malloc new data [00:06:34]KKMPrepareXReportFMData err=0 [00:06:34]Х отчет ИНН: 02508201610067 Кассир: Мамедов Э. 24.09.2024 00:06 Смена: 10 РНМ: 0000000000152968 ЗНМ: 0300000010 СНО: Общий режим Всего чеков: 104 ИТОГИ ПРИХОД Чеков: 104 Общий итог: 25258.00 Итого наличными: 20995.00 Итого безнал.: 4263.00 НДС 0% : 0.00 НДС 12% : 2682.53 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 223.47 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 20995.00 НС Приход: 8314934.82 НС Возвр.Прихода: 56064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000959456 [00:06:34]StoreToDocumentArchive [00:06:34]MH_GetDate [00:06:34]Write to MH i2c: F0 00 00 3B 11 3B [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: F0 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: F0 09 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: F0 09 00 3B 11 00 8D 02 F2 66 CE CC 0E 66 39 [00:06:34]shift 10 fd 1727136397 [00:06:34]Create dir for shift 0010 [00:06:34]save to /storage/0010/doc_1727136397 [00:06:34]save last doc name /storage/0010/doc_1727136397 to /storage/kkm_last_doc_name [00:06:34]save OK [00:06:34]Clear old archive folders... [00:06:34]NVStorageSaveData kkm_last_timestamp [00:06:34]File name is /storage/kkm_last_timestamp [00:06:34]Write 4 bytes [00:06:34]NVStorageSaveData done [00:06:34]ExternCall_PrintAddStr [00:06:34]wPrintStart [00:06:34]Write to MH i2c: 01 00 00 3C 11 4D [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: 01 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 07 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 07 00 3C 11 00 00 00 00 00 FF 0F 62 [00:06:35]RasterBufferAndPrint [00:06:35]line Х отчет [00:06:35]line ИНН: 02508201610067 [00:06:35]line Кассир: Мамедов Э. [00:06:35]line 24.09.2024 00:06 [00:06:35]line Смена: 10 [00:06:35]line РНМ: 0000000000152968 [00:06:35]line ЗНМ: 0300000010 [00:06:35]line СНО: Общий режим [00:06:35]line Всего чеков: 104 [00:06:35]line ИТОГИ ПРИХОД [00:06:35]line Чеков: 104 [00:06:35]line Общий итог: 25258.00 [00:06:35]line Итого наличными: 20995.00 [00:06:35]line Итого безнал.: 4263.00 [00:06:35]line НДС 0% : 0.00 [00:06:35]line НДС 12% : 2682.53 [00:06:35]line НСП 0% : 0.00 [00:06:35]line НСП 1,50% : 0.00 [00:06:35]line НСП 0,50% : 0.00 [00:06:35]line НСП 5% : 0.00 [00:06:35]line НСП 3% : 0.00 [00:06:35]line НСП 2% : 0.00 [00:06:35]line НСП 1% : 223.47 [00:06:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:35]line Чеков: 0 [00:06:35]line Общий итог: 0.00 [00:06:35]line Итого наличными: 0.00 [00:06:35]line Итого безнал.: 0.00 [00:06:35]line НДС 0% : 0.00 [00:06:35]line НДС 12% : 0.00 [00:06:35]line НСП 0% : 0.00 [00:06:35]line НСП 1,50% : 0.00 [00:06:35]line НСП 0,50% : 0.00 [00:06:35]line НСП 5% : 0.00 [00:06:35]line НСП 3% : 0.00 [00:06:35]line НСП 2% : 0.00 [00:06:35]line НСП 1% : 0.00 [00:06:35]line ИТОГИ РАСХОД [00:06:35]line Чеков: 0 [00:06:35]line Общий итог: 0.00 [00:06:35]line Итого наличными: 0.00 [00:06:35]line Итого безнал.: 0.00 [00:06:35]line НДС 0% : 0.00 [00:06:35]line НДС 12% : 0.00 [00:06:35]line НСП 0% : 0.00 [00:06:35]line НСП 1,50% : 0.00 [00:06:35]line НСП 0,50% : 0.00 [00:06:35]line НСП 5% : 0.00 [00:06:35]line НСП 3% : 0.00 [00:06:35]line НСП 2% : 0.00 [00:06:35]line НСП 1% : 0.00 [00:06:35]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:35]line Чеков: 0 [00:06:35]line Общий итог: 0.00 [00:06:35]line Итого наличными: 0.00 [00:06:35]line Итого безнал.: 0.00 [00:06:35]line НДС 0% : 0.00 [00:06:35]line НДС 12% : 0.00 [00:06:35]line НСП 0% : 0.00 [00:06:35]line НСП 1,50% : 0.00 [00:06:35]line НСП 0,50% : 0.00 [00:06:35]line НСП 5% : 0.00 [00:06:35]line НСП 3% : 0.00 [00:06:35]line НСП 2% : 0.00 [00:06:35]line НСП 1% : 0.00 [00:06:35]line Сумма внесений: 0.00 [00:06:35]line Сумма выплат: 0.00 [00:06:35]line Нал. в кассе: 20995.00 [00:06:35]line НС Приход: 8314934.82 [00:06:35]line НС Возвр.Прихода: 56064.00 [00:06:35]line НС Расход: 0.00 [00:06:35]line НС Возвр.Расхода: 0.00 [00:06:35]line ФМ: 0000000000959456 [00:06:35]written 0, free lines is 4095 [00:06:35]Write to MH i2c: 01 00 00 87 11 98 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 07 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 1C 0B C6 [00:06:35]RasterBufferAndPrint [00:06:35]line [00:06:35]line [00:06:35]line [00:06:35]line [00:06:35]line [00:06:35]written 0, free lines is 2880 [00:06:35]MH_Cut [00:06:35]Write to MH i2c: D1 01 00 8E 11 01 71 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: D1 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: D1 01 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: D1 01 00 8E 11 00 70 [00:06:35]Write to MH i2c: 01 00 00 8F 11 A0 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:36]*** Cut start [00:06:36]*** Partial cut [00:06:36]*** CUTSNS_PIN = 1 [00:06:36]*** CUTSNS_PIN = 0 [00:06:37]*** Brake cut motor [00:06:37]Read from MH i2c: 01 [00:06:37]MH_I2C_Read... [00:06:37]*** Stop cut motor [00:06:37]*** Cut end [00:06:37]Read from MH i2c: 01 07 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [00:06:37]process_action x_report done [00:06:37]requested_data is exist [00:06:37]produce_requested_data [00:06:37]requested_item fd.num is exist - process it [00:06:37]SAM_PROTO_GetFieldsCounters [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 13 00 00 [00:06:37]Write to MH i2c: E2 08 00 90 11 80 13 00 00 00 00 00 00 1D [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 62 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 62 00 90 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 0C [00:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetFieldsCounters done [00:06:37]requested_item shift.num is exist - process it [00:06:37]requested_item shift.opened is exist - process it [00:06:37]req_shift_opened [00:06:37]FM_GetShiftState [00:06:37]SAM_PROTO_GetShiftState [00:06:37]wFMCommunicate request_size=4 [00:06:37]MH_SAM_APDU [00:06:37]CAPDU: 80 13 01 00 [00:06:37]Write to MH i2c: E2 08 00 91 11 80 13 01 00 00 00 00 00 1F [00:06:37]Write i2c OK [00:06:37]MH_I2C_Read... [00:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:37]Read from MH i2c: E2 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 0E 00 [00:06:37]MH_I2C_Read... [00:06:37]Read from MH i2c: E2 0E 00 91 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 B7 [00:06:37]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:06:37]wFMCommunicate OK [00:06:37]SAM_PROTO_GetShiftState done [00:06:37]FM_GetShiftState done [00:06:37]req_shift_opened done [00:06:37]requested_item shift.open_date is exist - process it [00:06:37]req_shift_open_date [00:06:37]req_shift_open_date done [00:06:37]produce_requested_data done [00:06:37]produce_requested_data return {"fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:06:37]process_action_free x_report [00:06:37]json_value_free [00:06:37]json_value_free done [00:06:37]process_json_proto returns [00:06:37]Send response to host [00:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:06:37]free response buf [00:06:37]execute_script done [00:06:37]execute_script returns [00:06:37]free content buf [00:06:37]Sock 7.Close socket [00:06:37]Sock 7.Thread stoped [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:14]accept exits with 9 [00:07:14]New connection [00:07:14]New thread 3066608996 created [00:07:14]Thread 3066752356 joined [00:07:14]Waiting for new connection... [00:07:14] Sock 9.Parse request [00:07:14]Sock 9.Check first char [00:07:14]Sock 9.First char is OK [00:07:14]request: POST /json_proto HTTP/1.0 [00:07:14]Method: POST [00:07:14]URL: /json_proto [00:07:14]Method is POST - this is cgi request [00:07:14]url: /json_proto [00:07:14]query_string will be loaded in cgi processing [00:07:14]execute_cgi json_proto POST (null) [00:07:14]execute_cgi path=json_proto method=POST [00:07:14]POST find Content-Length [00:07:14]Host: 172.17.62.196:8080 [00:07:14]Content-Length: 215 [00:07:14]Content-Type: application/json [00:07:14] [00:07:14]POST finish read [00:07:14]Found Content-Length = 215 [00:07:14]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:14]execute_script... [00:07:14]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:14]POST & json_proto [00:07:14]process_json_proto [00:07:14]json parsed OK: [00:07:14]protocol is kg_v1.0 [00:07:14]action value=get_value [00:07:14]process_action get_value [00:07:14]cmd_get_value [00:07:14]process_action get_value done [00:07:14]requested_data is exist [00:07:14]produce_requested_data [00:07:14]requested_item kkm.sn is exist - process it [00:07:14]requested_item kkm.ver is exist - process it [00:07:14]requested_item fm.sn is exist - process it [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 11 00 00 [00:07:14]Write to MH i2c: E2 08 00 92 11 80 11 00 00 00 00 00 00 1D [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 17 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 17 00 92 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 76 [00:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:07:14]wFMCommunicate OK [00:07:14]requested_item fd.num is exist - process it [00:07:14]SAM_PROTO_GetFieldsCounters [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 13 00 00 [00:07:14]Write to MH i2c: E2 08 00 93 11 80 13 00 00 00 00 00 00 20 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 62 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 62 00 93 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 0F [00: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8C 49 00 00 0E 04 04 00 B5 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 [00:07:14]wFMCommunicate OK [00:07:14]SAM_PROTO_GetFieldsCounters done [00:07:14]requested_item shift.num is exist - process it [00:07:14]requested_item shift.opened is exist - process it [00:07:14]req_shift_opened [00:07:14]FM_GetShiftState [00:07:14]SAM_PROTO_GetShiftState [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 13 01 00 [00:07:14]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:14]Read from MH i2c: E2 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 0E 00 [00:07:14]MH_I2C_Read... [00:07:14]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 BA [00:07:14]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:07:14]wFMCommunicate OK [00:07:14]SAM_PROTO_GetShiftState done [00:07:14]FM_GetShiftState done [00:07:14]req_shift_opened done [00:07:14]requested_item shift.open_date is exist - process it [00:07:14]req_shift_open_date [00:07:14]req_shift_open_date done [00:07:14]produce_requested_data done [00:07:14]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372} [00:07:14]process_action_free get_value [00:07:14]json_value_free [00:07:14]json_value_free done [00:07:14]process_json_proto returns [00:07:14]Send response to host [00:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18828,"shift.num":181,"shift.opened":1,"shift.open_date":1727050372}}} [00:07:14]free response buf [00:07:14]execute_script done [00:07:14]execute_script returns [00:07:14]free content buf [00:07:14]Sock 9.Close socket [00:07:14]Sock 9.Thread stoped [00:07:14]accept exits with 7 [00:07:14]New connection [00:07:14]New thread 3066752356 created [00:07:14]Thread 3066608996 joined [00:07:14]Waiting for new connection... [00:07:14] Sock 7.Parse request [00:07:14]Sock 7.Check first char [00:07:14]Sock 7.First char is OK [00:07:14]request: POST /json_proto HTTP/1.0 [00:07:14]Method: POST [00:07:14]URL: /json_proto [00:07:14]Method is POST - this is cgi request [00:07:14]url: /json_proto [00:07:14]query_string will be loaded in cgi processing [00:07:14]execute_cgi json_proto POST (null) [00:07:14]execute_cgi path=json_proto method=POST [00:07:14]POST find Content-Length [00:07:14]Host: 172.17.62.196:8080 [00:07:14]Content-Length: 331 [00:07:14]Content-Type: application/json [00:07:14] [00:07:14]POST finish read [00:07:14]Found Content-Length = 331 [00:07:14]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:14]execute_script... [00:07:14]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:14]POST & json_proto [00:07:14]process_json_proto [00:07:14]json parsed OK: [00:07:14]protocol is kg_v1.0 [00:07:14]action value=get_value [00:07:14]process_action get_value [00:07:14]cmd_get_value [00:07:14]process_action get_value done [00:07:14]requested_data is exist [00:07:14]produce_requested_data [00:07:14]requested_item fm.sale.total is exist - process it [00:07:14]SAM_PROTO_GetFMData [00:07:14]wFMCommunicate request_size=4 [00:07:14]MH_SAM_APDU [00:07:14]CAPDU: 80 13 03 00 [00:07:14]Write to MH i2c: E2 08 00 95 11 80 13 03 00 00 00 00 00 25 [00:07:14]Write i2c OK [00:07:14]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 95 11 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 59 [00:07:15]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:07:15]wFMCommunicate OK [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 17 00 00 [00:07:15]Write to MH i2c: E2 08 00 96 11 80 17 00 00 00 00 00 00 27 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 96 11 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:07:15]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:15]wFMCommunicate OK [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 17 00 00 [00:07:15]Write to MH i2c: E2 08 00 97 11 80 17 00 00 00 00 00 00 28 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:15]Read from MH i2c: E2 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 [00:07:15]MH_I2C_Read... [00:07:15]Read from MH i2c: E2 FD 00 97 11 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [00:07:15]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:15]wFMCommunicate OK [00:07:15]wFMCommunicate request_size=4 [00:07:15]MH_SAM_APDU [00:07:15]CAPDU: 80 17 00 00 [00:07:15]Write to MH i2c: E2 08 00 98 11 80 17 00 00 00 00 00 00 29 [00:07:15]Write i2c OK [00:07:15]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 98 11 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:07:16]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 99 11 80 17 00 00 00 00 00 00 2A [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 DB 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 DB 00 99 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [00:07:16]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16]wFMCommunicate OK [00:07:16]SAM_PROTO_GetFMData done [00:07:16]requested_item fm.sale_refund.total is exist - process it [00:07:16]requested_item fm.buy.total is exist - process it [00:07:16]requested_item shift.sale.total is exist - process it [00:07:16]SAM_PROTO_GetShiftData [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 13 02 00 [00:07:16]Write to MH i2c: E2 08 00 9A 11 80 13 02 00 00 00 00 00 29 [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 FD 00 9A 11 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 84 [00:07:16]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:07:16]wFMCommunicate OK [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 17 00 00 [00:07:16]Write to MH i2c: E2 08 00 9B 11 80 17 00 00 00 00 00 00 2C [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 9B 11 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 4E [00:07:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 9C 11 80 17 00 00 00 00 00 00 2D [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 9C 11 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E4 [00:07:17]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 9D 11 80 17 00 00 00 00 00 00 2E [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 FD 00 9D 11 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A0 [00:07:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 17 00 00 [00:07:17]Write to MH i2c: E2 08 00 9E 11 80 17 00 00 00 00 00 00 2F [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 CB 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 CB 00 9E 11 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 18 [00:07:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:18]wFMCommunicate OK [00:07:18]SAM_PROTO_GetShiftData done [00:07:18]requested_item shift.sale.total_cash is exist - process it [00:07:18]requested_item shift.sale_refund.total is exist - process it [00:07:18]requested_item shift.sale_refund.total_cash is exist - process it [00:07:18]requested_item shift.buy.total is exist - process it [00:07:18]requested_item shift.buy.total_cash is exist - process it [00:07:18]produce_requested_data done [00:07:18]produce_requested_data return {"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:18]process_action_free get_value [00:07:18]json_value_free [00:07:18]json_value_free done [00:07:18]process_json_proto returns [00:07:18]Send response to host [00:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:18]free response buf [00:07:18]execute_script done [00:07:18]execute_script returns [00:07:18]free content buf [00:07:18]Sock 7.Close socket [00:07:18]Sock 7.Thread stoped [00:07:18]accept exits with 9 [00:07:18]New connection [00:07:18]New thread 3066608996 created [00:07:18]Thread 3066752356 joined [00:07:18]Waiting for new connection... [00:07:18] Sock 9.Parse request [00:07:18]Sock 9.Check first char [00:07:18]Sock 9.First char is OK [00:07:18]request: POST /json_proto HTTP/1.0 [00:07:18]Method: POST [00:07:18]URL: /json_proto [00:07:18]Method is POST - this is cgi request [00:07:18]url: /json_proto [00:07:18]query_string will be loaded in cgi processing [00:07:18]execute_cgi json_proto POST (null) [00:07:18]execute_cgi path=json_proto method=POST [00:07:18]POST find Content-Length [00:07:18]Host: 172.17.62.196:8080 [00:07:18]Content-Length: 331 [00:07:18]Content-Type: application/json [00:07:18] [00:07:18]POST finish read [00:07:18]Found Content-Length = 331 [00:07:18]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:18]execute_script... [00:07:18]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:18]POST & json_proto [00:07:18]process_json_proto [00:07:18]json parsed OK: [00:07:18]protocol is kg_v1.0 [00:07:18]action value=get_value [00:07:18]process_action get_value [00:07:18]cmd_get_value [00:07:18]process_action get_value done [00:07:18]requested_data is exist [00:07:18]produce_requested_data [00:07:18]requested_item fm.sale.total is exist - process it [00:07:18]SAM_PROTO_GetFMData [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 13 03 00 [00:07:18]Write to MH i2c: E2 08 00 9F 11 80 13 03 00 00 00 00 00 2F [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]OFD Sender: No OFD packet to send [00:07:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 FD 00 9F 11 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 63 [00:07:18]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 17 00 00 [00:07:18]Write to MH i2c: E2 08 00 A0 11 80 17 00 00 00 00 00 00 31 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 A0 11 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [00:07:19]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 17 00 00 [00:07:19]Write to MH i2c: E2 08 00 A1 11 80 17 00 00 00 00 00 00 32 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 A1 11 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [00:07:19]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:19]wFMCommunicate OK [00:07:19]wFMCommunicate request_size=4 [00:07:19]MH_SAM_APDU [00:07:19]CAPDU: 80 17 00 00 [00:07:19]Write to MH i2c: E2 08 00 A2 11 80 17 00 00 00 00 00 00 33 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:19]Read from MH i2c: E2 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: E2 FD 00 A2 11 00 04 F7 03 00 00 EF 03 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 90 00 AE [00:07:19]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:07:20]wFMCommunicate OK [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 17 00 00 [00:07:20]Write to MH i2c: E2 08 00 A3 11 80 17 00 00 00 00 00 00 34 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 DB 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 DB 00 A3 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:20]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20]wFMCommunicate OK [00:07:20]SAM_PROTO_GetFMData done [00:07:20]requested_item fm.sale_refund.total is exist - process it [00:07:20]requested_item fm.buy.total is exist - process it [00:07:20]requested_item shift.sale.total is exist - process it [00:07:20]SAM_PROTO_GetShiftData [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 13 02 00 [00:07:20]Write to MH i2c: E2 08 00 A4 11 80 13 02 00 00 00 00 00 33 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 FD 00 A4 11 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8E [00:07:21]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:07:21]wFMCommunicate OK [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 17 00 00 [00:07:21]Write to MH i2c: E2 08 00 A5 11 80 17 00 00 00 00 00 00 36 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 A5 11 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 58 [00:07:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:07:21]wFMCommunicate OK [00:07:21]wFMCommunicate request_size=4 [00:07:21]MH_SAM_APDU [00:07:21]CAPDU: 80 17 00 00 [00:07:21]Write to MH i2c: E2 08 00 A6 11 80 17 00 00 00 00 00 00 37 [00:07:21]Write i2c OK [00:07:21]MH_I2C_Read... [00:07:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:21]Read from MH i2c: E2 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 [00:07:21]MH_I2C_Read... [00:07:21]Read from MH i2c: E2 FD 00 A6 11 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 EE [00:07:21]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:07:22]wFMCommunicate OK [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 17 00 00 [00:07:22]Write to MH i2c: E2 08 00 A7 11 80 17 00 00 00 00 00 00 38 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 FD 00 A7 11 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 AA [00:07:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:07:22]wFMCommunicate OK [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 17 00 00 [00:07:22]Write to MH i2c: E2 08 00 A8 11 80 17 00 00 00 00 00 00 39 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 CB 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 CB 00 A8 11 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 22 [00:07:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:22]wFMCommunicate OK [00:07:22]SAM_PROTO_GetShiftData done [00:07:22]requested_item shift.sale.total_cash is exist - process it [00:07:22]requested_item shift.sale_refund.total is exist - process it [00:07:22]requested_item shift.sale_refund.total_cash is exist - process it [00:07:22]requested_item shift.buy.total is exist - process it [00:07:22]requested_item shift.buy.total_cash is exist - process it [00:07:22]produce_requested_data done [00:07:22]produce_requested_data return {"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:22]process_action_free get_value [00:07:22]json_value_free [00:07:22]json_value_free done [00:07:22]process_json_proto returns [00:07:22]Send response to host [00:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:22]free response buf [00:07:22]execute_script done [00:07:22]execute_script returns [00:07:22]free content buf [00:07:22]Sock 9.Close socket [00:07:22]Sock 9.Thread stoped [00:07:22]accept exits with 7 [00:07:22]New connection [00:07:22]New thread 3066752356 created [00:07:22]Thread 3066608996 joined [00:07:22]Waiting for new connection... [00:07:22] Sock 7.Parse request [00:07:22]Sock 7.Check first char [00:07:22]Sock 7.First char is OK [00:07:22]request: POST /json_proto HTTP/1.0 [00:07:22]Method: POST [00:07:22]URL: /json_proto [00:07:22]Method is POST - this is cgi request [00:07:22]url: /json_proto [00:07:22]query_string will be loaded in cgi processing [00:07:22]execute_cgi json_proto POST (null) [00:07:22]execute_cgi path=json_proto method=POST [00:07:22]POST find Content-Length [00:07:22]Host: 172.17.62.196:8080 [00:07:22]Content-Length: 254 [00:07:22]Content-Type: application/json [00:07:22] [00:07:22]POST finish read [00:07:22]Found Content-Length = 254 [00:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0435\u0434\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:22]execute_script... [00:07:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0435\u0434\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:22]POST & json_proto [00:07:22]process_json_proto [00:07:22]json parsed OK: [00:07:22]protocol is kg_v1.0 [00:07:22]action value=close_shift [00:07:22]process_action close_shift [00:07:22]cmd_close_shift [00:07:22]MH_GetDate [00:07:22]Write to MH i2c: F0 00 00 A9 11 A9 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: F0 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: F0 09 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: F0 09 00 A9 11 00 BD 02 F2 66 CE CC 0E 66 D7 [00:07:22]GetLastDocTimeStamp 1727136390 [00:07:22]current date 1727136445 [00:07:22]FM_GetShiftState [00:07:22]SAM_PROTO_GetShiftState [00:07:22]wFMCommunicate request_size=4 [00:07:22]MH_SAM_APDU [00:07:22]CAPDU: 80 13 01 00 [00:07:22]Write to MH i2c: E2 08 00 AA 11 80 13 01 00 00 00 00 00 38 [00:07:22]Write i2c OK [00:07:22]MH_I2C_Read... [00:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:22]Read from MH i2c: E2 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 0E 00 [00:07:22]MH_I2C_Read... [00:07:22]Read from MH i2c: E2 0E 00 AA 11 00 09 00 01 84 B2 F0 66 00 00 00 00 90 00 D0 [00:07:23]RAPDU: 09 00 01 84 B2 F0 66 00 00 00 00 90 00 [00:07:23]wFMCommunicate OK [00:07:23]SAM_PROTO_GetShiftState done [00:07:23]FM_GetShiftState done [00:07:23]KKMCreateCloseShiftDocument [00:07:23]Load OK [00:07:23]Malloc new data [00:07:23]MH_GetDate [00:07:23]Write to MH i2c: F0 00 00 AB 11 AB [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: F0 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: F0 09 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: F0 09 00 AB 11 00 BE 02 F2 66 CE CC 0E 66 DA [00:07:23]Malloc new data [00:07:23]Malloc new data [00:07:23]Malloc new data [00:07:23]Malloc new data [00:07:23]KKMCreateCloseShiftDocument OK [00:07:23]KKMSetCloseShiftData OK [00:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:07:23]tlvbuf is 00CDE6A0 [00:07:23]KKMLoadAndSignCloseShiftData [00:07:23]SAM_PROTO_ProcessDocument [00:07:23]wFMCommunicate request_size=9 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 15 01 00 04 05 00 45 00 [00:07:23]Write to MH i2c: E2 0C 00 AC 11 80 15 01 00 04 00 05 00 45 00 00 00 8E [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [00:07:23]RAPDU: 90 00 [00:07:23]wFMCommunicate OK [00:07:23]wFMCommunicate request_size=23 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:07:23]Write to MH i2c: E2 1A 00 AD 11 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 33 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 AD 11 00 90 00 32 [00:07:23]RAPDU: 90 00 [00:07:23]wFMCommunicate OK [00:07:23]wFMCommunicate request_size=28 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 [00:07:23]Write to MH i2c: E2 1F 00 AE 11 80 15 02 00 17 00 FD 03 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 00 00 FC [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 AE 11 00 90 00 33 [00:07:23]RAPDU: 90 00 [00:07:23]wFMCommunicate OK [00:07:23]wFMCommunicate request_size=13 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 15 02 00 08 F4 03 04 00 BE 02 F2 66 [00:07:23]Write to MH i2c: E2 10 00 AF 11 80 15 02 00 08 00 F4 03 04 00 BE 02 F2 66 00 00 63 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [00:07:23]RAPDU: 90 00 [00:07:23]wFMCommunicate OK [00:07:23]wFMCommunicate request_size=25 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [00:07:23]Write to MH i2c: E2 1C 00 B0 11 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 A9 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 [00:07:23]MH_I2C_Read... [00:07:23]Read from MH i2c: E2 03 00 B0 11 00 90 00 35 [00:07:23]RAPDU: 90 00 [00:07:23]wFMCommunicate OK [00:07:23]wFMCommunicate request_size=4 [00:07:23]MH_SAM_APDU [00:07:23]CAPDU: 80 15 03 00 [00:07:23]Write to MH i2c: E2 08 00 B1 11 80 15 03 00 00 00 00 00 43 [00:07:23]Write i2c OK [00:07:23]MH_I2C_Read... [00:07:23]OFD Sender: No OFD packet to send [00:07:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:07:23]Read from MH i2c: E2 [00:07:23]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 B1 11 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8D 49 00 00 0E 04 04 00 B5 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 A0 [00:07:24]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8D 49 00 00 0E 04 04 00 B5 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:07:24]wFMCommunicate OK [00:07:24]SAM_PROTO_ProcessDocument answer len = 1265 [00:07:24]SAM_PROTO_ProcessDocument remain to read = 1017 [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 17 00 00 [00:07:24]Write to MH i2c: E2 08 00 B2 11 80 17 00 00 00 00 00 00 43 [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:24]Read from MH i2c: E2 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 [00:07:24]MH_I2C_Read... [00:07:24]Read from MH i2c: E2 FD 00 B2 11 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 8C [00:07:24]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:24]wFMCommunicate OK [00:07:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:24]SAM_PROTO_ProcessDocument remain to read = 767 [00:07:24]wFMCommunicate request_size=4 [00:07:24]MH_SAM_APDU [00:07:24]CAPDU: 80 17 00 00 [00:07:24]Write to MH i2c: E2 08 00 B3 11 80 17 00 00 00 00 00 00 44 [00:07:24]Write i2c OK [00:07:24]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 B3 11 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 A6 [00:07:25]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:25]wFMCommunicate OK [00:07:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:25]SAM_PROTO_ProcessDocument remain to read = 517 [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 17 00 00 [00:07:25]Write to MH i2c: E2 08 00 B4 11 80 17 00 00 00 00 00 00 45 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:25]Read from MH i2c: E2 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 [00:07:25]MH_I2C_Read... [00:07:25]Read from MH i2c: E2 FD 00 B4 11 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 CF [00:07:25]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [00:07:25]wFMCommunicate OK [00:07:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:25]SAM_PROTO_ProcessDocument remain to read = 267 [00:07:25]wFMCommunicate request_size=4 [00:07:25]MH_SAM_APDU [00:07:25]CAPDU: 80 17 00 00 [00:07:25]Write to MH i2c: E2 08 00 B5 11 80 17 00 00 00 00 00 00 46 [00:07:25]Write i2c OK [00:07:25]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 FD 00 B5 11 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 0E [00:07:26]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:26]wFMCommunicate OK [00:07:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:07:26]SAM_PROTO_ProcessDocument remain to read = 17 [00:07:26]wFMCommunicate request_size=4 [00:07:26]MH_SAM_APDU [00:07:26]CAPDU: 80 17 00 00 [00:07:26]Write to MH i2c: E2 08 00 B6 11 80 17 00 00 00 00 00 00 47 [00:07:26]Write i2c OK [00:07:26]MH_I2C_Read... [00:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:07:26]Read from MH i2c: E2 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 14 00 [00:07:26]MH_I2C_Read... [00:07:26]Read from MH i2c: E2 14 00 B6 11 00 01 00 06 F7 03 00 00 35 04 06 00 47 63 78 F3 47 4B 90 00 33 [00:07:26]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 47 63 78 F3 47 4B 90 00 [00:07:26]wFMCommunicate OK [00:07:26]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:07:26]SAM_PROTO_ProcessDocument done [00:07:26]1209 (1) - 1.0 - номер версии ФФД [00:07:26]1041 (16) - 0000000000959456 - номер ФМ [00:07:26]1040 (4) - 18829 - номер ФД [00:07:26]1038 (4) - 181 - номер смены [00:07:26]1118 (4) - 104 - количество кассовых чеков за смену [00:07:26]1111 (4) - 106 - общее количество ФД за смену [00:07:26]1194 (1194) - счетчики итогов смены [00:07:26] 1134 (4) - 104 - количество чеков со всеми признаками расчетов [00:07:26] 1129 (155) - счетчики операций «приход» [00:07:26] 1135 (4) - 104 - количество чеков по признаку расчетов [00:07:26] 1201 (3) - 25258.00 - общая итоговая сумма в чеках [00:07:26] 1136 (3) - 20995.00 - итоговая сумма в чеках наличными [00:07:26] 1138 (3) - 4263.00 - итоговая сумма в чеках безналичными [00:07:26] 1024 (122) - суммы налогов [00:07:26] 1006 (9) - суммы НДС [00:07:26] 1010 (1) - 0% - код ставки НДС [00:07:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:26] 1006 (12) - суммы НДС [00:07:26] 1010 (1) - 12% - код ставки НДС [00:07:26] 1011 (3) - 2682.53 - сумма НДС по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (11) - суммы НСП [00:07:26] 1014 (1) - 1% - код ставки НСП [00:07:26] 1015 (2) - 223.47 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 2% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 3% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 5% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 1,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1130 (141) - счетчики операций «возврат прихода» [00:07:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:26] 1024 (117) - суммы налогов [00:07:26] 1006 (9) - суммы НДС [00:07:26] 1010 (1) - 0% - код ставки НДС [00:07:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:26] 1006 (9) - суммы НДС [00:07:26] 1010 (1) - 12% - код ставки НДС [00:07:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 1% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 2% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 3% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 5% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 1,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1131 (141) - счетчики операций «расход» [00:07:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:26] 1024 (117) - суммы налогов [00:07:26] 1006 (9) - суммы НДС [00:07:26] 1010 (1) - 0% - код ставки НДС [00:07:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:26] 1006 (9) - суммы НДС [00:07:26] 1010 (1) - 12% - код ставки НДС [00:07:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 1% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 2% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 3% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 5% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 1,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1132 (141) - счетчики операций «возврат расхода» [00:07:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:26] 1024 (117) - суммы налогов [00:07:26] 1006 (9) - суммы НДС [00:07:26] 1010 (1) - 0% - код ставки НДС [00:07:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:26] 1006 (9) - суммы НДС [00:07:26] 1010 (1) - 12% - код ставки НДС [00:07:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 1% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 2% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 3% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 5% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 0,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1007 (9) - суммы НСП [00:07:26] 1014 (1) - 1,50% - код ставки НСП [00:07:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:26] 1133 (588) - - счетчики коррекции - не используются [00:07:26]1077 (6) - 78492556543819 - ФПД [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1209 (04B9) [00:07:26]Malloc new data [00:07:26]Processing tag 1041 (0411) [00:07:26]Processing tag 1040 (0410) [00:07:26]Malloc new data [00:07:26]Processing tag 1038 (040E) [00:07:26]Malloc new data [00:07:26]Processing tag 1118 (045E) [00:07:26]Malloc new data [00:07:26]Processing tag 1111 (0457) [00:07:26]Malloc new data [00:07:26]Processing tag 1194 (04AA) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1134 (046E) [00:07:26]Malloc new data [00:07:26]Processing tag 1129 (0469) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1135 (046F) [00:07:26]Malloc new data [00:07:26]Processing tag 1201 (04B1) [00:07:26]Malloc new data [00:07:26]Processing tag 1136 (0470) [00:07:26]Malloc new data [00:07:26]Processing tag 1138 (0472) [00:07:26]Malloc new data [00:07:26]Processing tag 1024 (0400) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1006 (03EE) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1010 (03F2) [00:07:26]Malloc new data [00:07:26]Processing tag 1011 (03F3) [00:07:26]Malloc new data [00:07:26]SetTLVBufToDocument err=0 [00:07:26]Processing tag 1006 (03EE) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1010 (03F2) [00:07:26]Malloc new data [00:07:26]Processing tag 1011 (03F3) [00:07:26]Malloc new data [00:07:26]SetTLVBufToDocument err=0 [00:07:26]Processing tag 1007 (03EF) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1014 (03F6) [00:07:26]Malloc new data [00:07:26]Processing tag 1015 (03F7) [00:07:26]Malloc new data [00:07:26]SetTLVBufToDocument err=0 [00:07:26]Processing tag 1007 (03EF) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1014 (03F6) [00:07:26]Malloc new data [00:07:26]Processing tag 1015 (03F7) [00:07:26]Malloc new data [00:07:26]SetTLVBufToDocument err=0 [00:07:26]Processing tag 1007 (03EF) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1014 (03F6) [00:07:26]Malloc new data [00:07:26]Processing tag 1015 (03F7) [00:07:26]Malloc new data [00:07:26]SetTLVBufToDocument err=0 [00:07:26]Processing tag 1007 (03EF) [00:07:26]Load OK [00:07:26]SetTLVBufToDocument [00:07:26]Processing tag 1014 (03F6) [00:07:26]Malloc new data [00:07:26]Processing tag 1015 (03F7) [00:07:26]Malloc new data [00:07:26]SetTLVBufToDocument err=0 [00:07:26]Processing tag 1007 (03EF) [00:07:26]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1130 (046A) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1135 (046F) [00:07:27]Malloc new data [00:07:27]Processing tag 1201 (04B1) [00:07:27]Malloc new data [00:07:27]Processing tag 1136 (0470) [00:07:27]Malloc new data [00:07:27]Processing tag 1138 (0472) [00:07:27]Malloc new data [00:07:27]Processing tag 1024 (0400) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1006 (03EE) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1010 (03F2) [00:07:27]Malloc new data [00:07:27]Processing tag 1011 (03F3) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1006 (03EE) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1010 (03F2) [00:07:27]Malloc new data [00:07:27]Processing tag 1011 (03F3) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1131 (046B) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1135 (046F) [00:07:27]Malloc new data [00:07:27]Processing tag 1201 (04B1) [00:07:27]Malloc new data [00:07:27]Processing tag 1136 (0470) [00:07:27]Malloc new data [00:07:27]Processing tag 1138 (0472) [00:07:27]Malloc new data [00:07:27]Processing tag 1024 (0400) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1006 (03EE) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1010 (03F2) [00:07:27]Malloc new data [00:07:27]Processing tag 1011 (03F3) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1006 (03EE) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1010 (03F2) [00:07:27]Malloc new data [00:07:27]Processing tag 1011 (03F3) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1132 (046C) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1135 (046F) [00:07:27]Malloc new data [00:07:27]Processing tag 1201 (04B1) [00:07:27]Malloc new data [00:07:27]Processing tag 1136 (0470) [00:07:27]Malloc new data [00:07:27]Processing tag 1138 (0472) [00:07:27]Malloc new data [00:07:27]Processing tag 1024 (0400) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1006 (03EE) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1010 (03F2) [00:07:27]Malloc new data [00:07:27]Processing tag 1011 (03F3) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1006 (03EE) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1010 (03F2) [00:07:27]Malloc new data [00:07:27]Processing tag 1011 (03F3) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1007 (03EF) [00:07:27]Load OK [00:07:27]SetTLVBufToDocument [00:07:27]Processing tag 1014 (03F6) [00:07:27]Malloc new data [00:07:27]Processing tag 1015 (03F7) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1133 (046D) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Processing tag 1077 (0435) [00:07:27]Malloc new data [00:07:27]SetTLVBufToDocument err=0 [00:07:27]Malloc new data [00:07:27]SAM_PROTO_GetFMData [00:07:27]wFMCommunicate request_size=4 [00:07:27]MH_SAM_APDU [00:07:27]CAPDU: 80 13 03 00 [00:07:27]Write to MH i2c: E2 08 00 B7 11 80 13 03 00 00 00 00 00 47 [00:07:27]Write i2c OK [00:07:27]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 B7 11 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 7B [00:07:28]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:07:28]wFMCommunicate OK [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 17 00 00 [00:07:28]Write to MH i2c: E2 08 00 B8 11 80 17 00 00 00 00 00 00 49 [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]OFD Sender: No OFD packet to send [00:07:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 FD 00 B8 11 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:07:28]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 17 00 00 [00:07:29]Write to MH i2c: E2 08 00 B9 11 80 17 00 00 00 00 00 00 4A [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 B9 11 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [00:07:29]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 17 00 00 [00:07:29]Write to MH i2c: E2 08 00 BA 11 80 17 00 00 00 00 00 00 4B [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 FD 00 BA 11 00 04 F7 03 00 00 EF 03 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 90 00 C6 [00:07:29]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 BB 11 80 17 00 00 00 00 00 00 4C [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 DB 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 DB 00 BB 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2E [00:07:30]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30]wFMCommunicate OK [00:07:30]SAM_PROTO_GetFMData done [00:07:30]Malloc new data [00:07:30]Malloc new data [00:07:30]Malloc new data [00:07:30]Malloc new data [00:07:30]KKMLoadAndSignCloseShiftData err=0 [00:07:30]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мамедов Э. 24.09.2024 00:07 Смена: 181 РНМ: 0000000000152968 ЗНМ: 0300000010 СНО: Общий режим Чеков за смену: 104 ФД за смену: 106 Всего чеков: 104 ИТОГИ ПРИХОД Чеков: 104 Общий итог: 25258.00 Итого наличными: 20995.00 Итого безнал.: 4263.00 НДС 0% : 0.00 НДС 12% : 2682.53 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 223.47 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 20995.00 НС Приход: 8314934.82 НС Возвр.Прихода: 56064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 18829 ФМ: 0000000000959456 ФПД: 78492556543819 [00:07:30]StoreToDocumentArchive [00:07:30]shift 181 fd 18829 [00:07:30]save to /storage/0181/doc_00018829 [00:07:30]save last doc name /storage/0181/doc_00018829 to /storage/kkm_last_doc_name [00:07:30]save OK [00:07:30]Clear old archive folders... [00:07:30]Remove dir /storage/0010 [00:07:30]opendir ok [00:07:30]file . [00:07:30]file .. [00:07:30]file doc_1727136397 [00:07:30]remove file /storage/0010/doc_1727136397 [00:07:30]remove dir /storage/0010 [00:07:30]NVStorageSaveData kkm_registers [00:07:30]File name is /storage/kkm_registers [00:07:30]Write 24 bytes [00:07:30]NVStorageSaveData done [00:07:30]NVStorageSaveData kkm_registers [00:07:30]File name is /storage/kkm_registers [00:07:30]Write 24 bytes [00:07:30]NVStorageSaveData done [00:07:30]ProcessDocumentItem done err = 0, tmpTLVsize=1377 [00:07:30]tlvbuf is 00CB8BA0 [00:07:30]SAM_PROTO_ClearQueue [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 09 00 00 [00:07:30]Write to MH i2c: E2 08 00 BC 11 80 09 00 00 00 00 00 00 3F [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 03 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [00:07:30]RAPDU: 90 00 [00:07:30]wFMCommunicate OK [00:07:30]SAM_PROTO_ClearQueue done [00:07:30]KKMCreateOFDPacket [00:07:30]OFDProtocolAddRootSTLVToBuf [00:07:30]FM_MakeSignedData [00:07:30]FM_MakeSignedData [00:07:30]SAM_PROTO_SignData [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 0D 01 02 [00:07:30]Write to MH i2c: E2 08 00 BD 11 80 0D 01 02 00 00 00 00 47 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 03 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [00:07:30]RAPDU: 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=255 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 0D 02 02 FA 05 00 61 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 BE 02 F2 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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:07:31]Write to MH i2c: E2 02 01 BE 11 80 0D 02 02 FA 00 05 00 61 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 BE 02 F2 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 00 C1 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 03 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [00:07:31]RAPDU: 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=255 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 0D 02 02 FA 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 4B 57 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 [00:07:31]Write to MH i2c: E2 02 01 BF 11 80 0D 02 02 FA 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 4B 57 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 00 00 57 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [00:07:32]RAPDU: 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=255 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 0D 02 02 FA 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:07:32]Write to MH i2c: E2 02 01 C0 11 80 0D 02 02 FA 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 00 11 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [00:07:32]RAPDU: 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=255 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 0D 02 02 FA 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:07:33]Write to MH i2c: E2 02 01 C1 11 80 0D 02 02 FA 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 00 11 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [00:07:33]RAPDU: 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=255 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:33]Write to MH i2c: E2 02 01 C2 11 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:07:33]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 D3 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 03 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [00:07:34]RAPDU: 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=136 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 0D 02 02 83 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 47 63 78 F3 47 4B [00:07:34]Write to MH i2c: E2 8B 00 C3 11 80 0D 02 02 83 00 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 47 63 78 F3 47 4B 00 00 11 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 03 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [00:07:34]RAPDU: 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 0D 03 02 [00:07:34]Write to MH i2c: E2 08 00 C4 11 80 0D 03 02 00 00 00 00 50 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 0B 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 0B 00 C4 11 00 A8 D9 62 BF 6E 7C 85 64 90 00 C6 [00:07:34]RAPDU: A8 D9 62 BF 6E 7C 85 64 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_SignData done [00:07:34]FM_MakeSignedData done [00:07:34]CreateOFDProtocolMessage [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 11 00 00 [00:07:34]Write to MH i2c: E2 08 00 C5 11 80 11 00 00 00 00 00 00 50 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 17 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 17 00 C5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A9 [00:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:07:34]wFMCommunicate OK [00:07:34]CreateOFDProtocolMessage done [00:07:34]OFDSenderStorePacket 18829 [00:07:34]StoreOFDPacket docnum=18829 [00:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 75 05 00 00 5E D8 6D 05 B9 23 5A 05 01 00 05 00 61 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 BE 02 F2 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 8D 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 47 63 78 F3 47 4B A8 D9 62 BF 6E 7C 85 64 [00:07:35]CheckFolder [00:07:35]dirname=/storage/ofd_packets [00:07:35]CheckFolder done [00:07:35]ProducePacketName [00:07:35]name=ofd_packets/00018829 [00:07:35]NVStorageSaveData ofd_packets/00018829 [00:07:35]File name is /storage/ofd_packets/00018829 [00:07:35]Write 1427 bytes [00:07:35]NVStorageSaveData done [00:07:35]OFDSenderStorePacket done [00:07:35]KKMCreateOFDPacket done [00:07:35]NVStorageSaveData kkm_last_timestamp [00:07:35]File name is /storage/kkm_last_timestamp [00:07:35]Write 4 bytes [00:07:35]NVStorageSaveData done [00:07:35]ExternCall_PrintAddStr [00:07:35]wPrintStart [00:07:35]Write to MH i2c: 01 00 00 C6 11 D7 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: 01 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: 01 07 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: 01 07 00 C6 11 00 00 00 00 00 FF 0F EC [00:07:35]RasterBufferAndPrint [00:07:35]line Отчет о закрытии смены [00:07:35]line ФФД: 1.0 [00:07:35]line ИНН: 02508201610067 [00:07:35]line Кассир: Мамедов Э. [00:07:35]line 24.09.2024 00:07 [00:07:35]line Смена: 181 [00:07:35]line РНМ: 0000000000152968 [00:07:35]line ЗНМ: 0300000010 [00:07:35]line СНО: Общий режим [00:07:35]line Чеков за смену: 104 [00:07:35]line ФД за смену: 106 [00:07:35]line Всего чеков: 104 [00:07:35]line ИТОГИ ПРИХОД [00:07:35]line Чеков: 104 [00:07:35]line Общий итог: 25258.00 [00:07:35]line Итого наличными: 20995.00 [00:07:35]line Итого безнал.: 4263.00 [00:07:35]line НДС 0% : 0.00 [00:07:35]line НДС 12% : 2682.53 [00:07:35]line НСП 0% : 0.00 [00:07:35]line НСП 1,50% : 0.00 [00:07:35]line НСП 0,50% : 0.00 [00:07:35]line НСП 5% : 0.00 [00:07:35]line НСП 3% : 0.00 [00:07:35]line НСП 2% : 0.00 [00:07:35]line НСП 1% : 223.47 [00:07:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:35]line Чеков: 0 [00:07:35]line Общий итог: 0.00 [00:07:35]line Итого наличными: 0.00 [00:07:35]line Итого безнал.: 0.00 [00:07:35]OFD Sender: Processing packet 18829 [packets to send 7, broken 6] [00:07:35]ProducePacketName [00:07:35]name=ofd_packets/00018829 [00:07:35]OFD Sender: To server: pG, [00:07:35]CommunicateWithHost lk.salyk.kg:30040 [00:07:35]ConnectInit lk.salyk.kg [00:07:35]line НДС 0% : 0.00 [00:07:35]line НДС 12% : 0.00 [00:07:35]line НСП 0% : 0.00 [00:07:35]line НСП 1,50% : 0.00 [00:07:35]line НСП 0,50% : 0.00 [00:07:35]line НСП 5% : 0.00 [00:07:35]line НСП 3% : 0.00 [00:07:35]line НСП 2% : 0.00 [00:07:35]line НСП 1% : 0.00 [00:07:35]line ИТОГИ РАСХОД [00:07:35]line Чеков: 0 [00:07:35]line Общий итог: 0.00 [00:07:35]line Итого наличными: 0.00 [00:07:35]line Итого безнал.: 0.00 [00:07:35]line НДС 0% : 0.00 [00:07:35]line НДС 12% : 0.00 [00:07:35]line НСП 0% : 0.00 [00:07:35]line НСП 1,50% : 0.00 [00:07:35]line НСП 0,50% : 0.00 [00:07:35]line НСП 5% : 0.00 [00:07:35]line НСП 3% : 0.00 [00:07:35]line НСП 2% : 0.00 [00:07:35]line НСП 1% : 0.00 [00:07:35]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:35]line Чеков: 0 [00:07:35]line Общий итог: 0.00 [00:07:35]line Итого наличными: 0.00 [00:07:35]line Итого безнал.: 0.00 [00:07:35]line НДС 0% : 0.00 [00:07:35]line НДС 12% : 0.00 [00:07:35]line НСП 0% : 0.00 [00:07:35]line НСП 1,50% : 0.00 [00:07:35]line НСП 0,50% : 0.00 [00:07:35]line НСП 5% : 0.00 [00:07:35]line НСП 3% : 0.00 [00:07:35]line НСП 2% : 0.00 [00:07:35]line НСП 1% : 0.00 [00:07:35]line Сумма внесений: 0.00 [00:07:35]line Сумма выплат: 0.00 [00:07:35]line Нал. в кассе: 20995.00 [00:07:35]line НС Приход: 8314934.82 [00:07:35]line НС Возвр.Прихода: 56064.00 [00:07:35]line НС Расход: 0.00 [00:07:35]line НС Возвр.Расхода: 0.00 [00:07:35]line ФД: 18829 [00:07:35]line ФМ: 0000000000959456 [00:07:35]line ФПД: 78492556543819 [00:07:35]written 0, free lines is 4095 [00:07:35]Connected sock=10 [00:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 75 05 00 00 5E D8 6D 05 B9 23 5A 05 01 00 05 00 61 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 13 00 D0 9C D0 B0 D0 BC D0 B5 D0 B4 D0 BE D0 B2 20 D0 AD 2E 20 F4 03 04 00 BE 02 F2 66 0E 04 04 00 B5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 AA 04 D5 04 6E 04 04 00 68 00 00 00 69 04 A2 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 Write to MH i2c: 01 01 00 00 00 00 F3 16 03 12 00 28 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 [00:07:36]09 00 Write i2c OK [00:07:36]F6 MH_I2C_Read... [00:07:36]03 Read from MH i2c: 01 01 00 [00:07:36]00 MH_I2C_Read... [00:07:36]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 Read from MH i2c: F7 01 03 07 00 00 00 [00:07:36]EF MH_I2C_Read... [00:07:36]03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 01 07 00 00 03 16 F7 12 03 00 00 00 00 00 EF 00 03 00 09 D4 00 0B F6 0E 03 [00:07:36]01 RasterBufferAndPrint [00:07:36]00 line [00:07:36]04 line [00:07:36]F7 line [00:07:36]03 line [00:07:36]00 line [00:07:36]00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 written 0, free lines is 3156 [00:07:36]00 F6 03 01 00 06 F7 03 00 00 D0 04 8D MH_Cut [00:07:36]00 Write to MH i2c: 6F D1 04 01 04 00 00 1D 00 12 00 01 00 01 00 [00:07:36]B1 04 Write i2c OK [00:07:36]00 MH_I2C_Read... [00:07:36]00 70 04 00 00 72 04 00 00 00 04 75 00 Read from MH i2c: EE D1 03 [00:07:36]09 MH_I2C_Read... [00:07:36]00 Read from MH i2c: F2 D1 03 01 00 01 [00:07:36]00 MH_I2C_Read... [00:07:36]00 F3 03 00 00 EE 03 09 00 Read from MH i2c: F2 D1 03 01 01 00 00 1D 01 12 F3 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 [00:07:36]00 Write to MH i2c: EF 01 03 00 09 00 00 1E F6 12 30 03 [00:07:36]01 00 01 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:07:36]01 MH_I2C_Read... [00:07:36]00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 47 63 78 F3 47 4B A8 D9 62 BF 6E 7C 85 64 [00:07:36]*** Cut start [00:07:36]*** Partial cut [00:07:36]*** CUTSNS_PIN = 1 [00:07:37]*** CUTSNS_PIN = 0 [00:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 BB D0 47 00 2F 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 35 39 34 35 36 10 04 04 00 8D 49 00 00 F4 03 04 00 2C AC F1 66 B6 04 01 00 00 89 C9 F9 E9 D6 A8 4F 00 [00:07:37]CommunicateWithHost err = 0 [00:07:37]*** Brake cut motor [00:07:37]CheckOFDResponse [00:07:37]1017 (14) - 77093643461234 [00:07:37]1041 (16) - 0000000000959456 [00:07:37]1040 (4) - 18829 [00:07:37]1012 (4) - 23.09.2024 17:58 [00:07:37]1206 (1) - 0 [00:07:37]OFD Sender: Remove packet 18829 [00:07:37]ProducePacketName [00:07:37]name=ofd_packets/00018829 [00:07:37]NVStorageDeleteData [00:07:37]Read from MH i2c: 01 [00:07:37]MH_I2C_Read... [00:07:37]*** Stop cut motor [00:07:37]*** Cut end [00:07:37]Read from MH i2c: 01 07 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: 01 07 00 1E 12 00 00 00 00 00 FF 0F 45 [00:07:37]process_action close_shift done [00:07:37]requested_data is exist [00:07:37]produce_requested_data [00:07:37]requested_item fd.num is exist - process it [00:07:37]SAM_PROTO_GetFieldsCounters [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 00 00 [00:07:37]Write to MH i2c: E2 08 00 1F 12 80 13 00 00 00 00 00 00 AD [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 62 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 62 00 1F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8D 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [00:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8D 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:38]wFMCommunicate OK [00:07:38]SAM_PROTO_GetFieldsCounters done [00:07:38]requested_item shift.num is exist - process it [00:07:38]requested_item shift.opened is exist - process it [00:07:38]req_shift_opened [00:07:38]FM_GetShiftState [00:07:38]SAM_PROTO_GetShiftState [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 13 01 00 [00:07:38]Write to MH i2c: E2 08 00 20 12 80 13 01 00 00 00 00 00 AF [00:07:38]OFD Sender: No OFD packet to send [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 0E 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 0E 00 20 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BA [00:07:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:38]wFMCommunicate OK [00:07:38]SAM_PROTO_GetShiftState done [00:07:38]FM_GetShiftState done [00:07:38]req_shift_opened done [00:07:38]requested_item shift.open_date is exist - process it [00:07:38]req_shift_open_date [00:07:38]FM_GetShiftState [00:07:38]SAM_PROTO_GetShiftState [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 13 01 00 [00:07:38]Write to MH i2c: E2 08 00 21 12 80 13 01 00 00 00 00 00 B0 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 0E 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 0E 00 21 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BB [00:07:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:38]wFMCommunicate OK [00:07:38]SAM_PROTO_GetShiftState done [00:07:38]FM_GetShiftState done [00:07:38]req_shift_open_date done [00:07:38]produce_requested_data done [00:07:38]produce_requested_data return {"fd.num":18829,"shift.num":181,"shift.opened":0,"shift.open_date":0} [00:07:38]process_action_free close_shift [00:07:38]json_value_free [00:07:38]json_value_free done [00:07:38]process_json_proto returns [00:07:38]Send response to host [00:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":18829,"shift.num":181,"shift.opened":0,"shift.open_date":0}}} [00:07:38]free response buf [00:07:38]execute_script done [00:07:38]execute_script returns [00:07:38]free content buf [00:07:38]Sock 7.Close socket [00:07:38]Sock 7.Thread stoped [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:53]accept exits with 9 [00:11:53]New connection [00:11:53]New thread 3066608996 created [00:11:53]Thread 3066752356 joined [00:11:53]Waiting for new connection... [00:11:53] Sock 9.Parse request [00:11:53]Sock 9.Check first char [00:11:53]Sock 9.First char is OK [00:11:53]request: POST /json_proto HTTP/1.0 [00:11:53]Method: POST [00:11:53]URL: /json_proto [00:11:53]Method is POST - this is cgi request [00:11:53]url: /json_proto [00:11:53]query_string will be loaded in cgi processing [00:11:53]execute_cgi json_proto POST (null) [00:11:53]execute_cgi path=json_proto method=POST [00:11:53]POST find Content-Length [00:11:53]Host: 172.17.62.196:8080 [00:11:53]Content-Length: 215 [00:11:53]Content-Type: application/json [00:11:53] [00:11:53]POST finish read [00:11:53]Found Content-Length = 215 [00:11: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:11:53]execute_script... [00:11: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:11:53]POST & json_proto [00:11:53]process_json_proto [00:11:53]json parsed OK: [00:11:53]protocol is kg_v1.0 [00:11:53]action value=get_value [00:11:53]process_action get_value [00:11:53]cmd_get_value [00:11:53]process_action get_value done [00:11:53]requested_data is exist [00:11:53]produce_requested_data [00:11:53]requested_item kkm.sn is exist - process it [00:11:53]requested_item kkm.ver is exist - process it [00:11:53]requested_item fm.sn is exist - process it [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 11 00 00 [00:11:53]Write to MH i2c: E2 08 00 22 12 80 11 00 00 00 00 00 00 AE [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 17 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 17 00 22 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 07 [00:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:11:53]wFMCommunicate OK [00:11:53]requested_item fd.num is exist - process it [00:11:53]SAM_PROTO_GetFieldsCounters [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 13 00 00 [00:11:53]Write to MH i2c: E2 08 00 23 12 80 13 00 00 00 00 00 00 B1 [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 62 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 62 00 23 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8D 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [00:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8D 49 00 00 0E 04 04 00 B5 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:53]wFMCommunicate OK [00:11:53]SAM_PROTO_GetFieldsCounters done [00:11:53]requested_item shift.num is exist - process it [00:11:53]requested_item shift.opened is exist - process it [00:11:53]req_shift_opened [00:11:53]FM_GetShiftState [00:11:53]SAM_PROTO_GetShiftState [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 13 01 00 [00:11:53]Write to MH i2c: E2 08 00 24 12 80 13 01 00 00 00 00 00 B3 [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 0E 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 0E 00 24 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BE [00:11:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:53]wFMCommunicate OK [00:11:53]SAM_PROTO_GetShiftState done [00:11:53]FM_GetShiftState done [00:11:53]req_shift_opened done [00:11:53]requested_item shift.open_date is exist - process it [00:11:53]req_shift_open_date [00:11:53]FM_GetShiftState [00:11:53]SAM_PROTO_GetShiftState [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 13 01 00 [00:11:53]Write to MH i2c: E2 08 00 25 12 80 13 01 00 00 00 00 00 B4 [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 0E 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 0E 00 25 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BF [00:11:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:53]wFMCommunicate OK [00:11:53]SAM_PROTO_GetShiftState done [00:11:53]FM_GetShiftState done [00:11:53]req_shift_open_date done [00:11:53]produce_requested_data done [00:11:53]produce_requested_data return {"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18829,"shift.num":181,"shift.opened":0,"shift.open_date":0} [00:11:53]process_action_free get_value [00:11:53]json_value_free [00:11:53]json_value_free done [00:11:53]process_json_proto returns [00:11:53]Send response to host [00:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000010","kkm.ver":"v1.0","fm.sn":"0000000000959456","fd.num":18829,"shift.num":181,"shift.opened":0,"shift.open_date":0}}} [00:11:53]free response buf [00:11:53]execute_script done [00:11:53]execute_script returns [00:11:53]free content buf [00:11:53]Sock 9.Close socket [00:11:53]Sock 9.Thread stoped [00:11:53]accept exits with 10 [00:11:53]New connection [00:11:53]New thread 3066752356 created [00:11:53]Thread 3066608996 joined [00:11:53]Waiting for new connection... [00:11:53] Sock 10.Parse request [00:11:53]Sock 10.Check first char [00:11:53]Sock 10.First char is OK [00:11:53]request: POST /json_proto HTTP/1.0 [00:11:53]Method: POST [00:11:53]URL: /json_proto [00:11:53]Method is POST - this is cgi request [00:11:53]url: /json_proto [00:11:53]query_string will be loaded in cgi processing [00:11:53]execute_cgi json_proto POST (null) [00:11:53]execute_cgi path=json_proto method=POST [00:11:53]POST find Content-Length [00:11:53]Host: 172.17.62.196:8080 [00:11:53]Content-Length: 331 [00:11:53]Content-Type: application/json [00:11:53] [00:11:53]POST finish read [00:11:53]Found Content-Length = 331 [00:11: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:11:53]execute_script... [00:11:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:54]POST & json_proto [00:11:54]process_json_proto [00:11:54]json parsed OK: [00:11:54]protocol is kg_v1.0 [00:11:54]action value=get_value [00:11:54]process_action get_value [00:11:54]cmd_get_value [00:11:54]process_action get_value done [00:11:54]requested_data is exist [00:11:54]produce_requested_data [00:11:54]requested_item fm.sale.total is exist - process it [00:11:54]SAM_PROTO_GetFMData [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 13 03 00 [00:11:54]Write to MH i2c: E2 08 00 26 12 80 13 03 00 00 00 00 00 B7 [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 26 12 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 EB [00:11:54]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 17 00 00 [00:11:54]Write to MH i2c: E2 08 00 27 12 80 17 00 00 00 00 00 00 B9 [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 27 12 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [00:11:54]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 17 00 00 [00:11:54]Write to MH i2c: E2 08 00 28 12 80 17 00 00 00 00 00 00 BA [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:55]Read from MH i2c: E2 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 FD 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 FD 00 28 12 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [00:11:55]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:55]wFMCommunicate OK [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 17 00 00 [00:11:55]Write to MH i2c: E2 08 00 29 12 80 17 00 00 00 00 00 00 BB [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:55]Read from MH i2c: E2 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 FD 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 FD 00 29 12 00 04 F7 03 00 00 EF 03 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 90 00 36 [00:11:55]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:11:55]wFMCommunicate OK [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 17 00 00 [00:11:55]Write to MH i2c: E2 08 00 2A 12 80 17 00 00 00 00 00 00 BC [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:11:55]Read from MH i2c: E2 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 DB 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 DB 00 2A 12 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9E [00:11:55]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:55]wFMCommunicate OK [00:11:55]SAM_PROTO_GetFMData done [00:11:55]requested_item fm.sale_refund.total is exist - process it [00:11:55]requested_item fm.buy.total is exist - process it [00:11:55]requested_item shift.sale.total is exist - process it [00:11:55]SAM_PROTO_GetShiftData [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 13 02 00 [00:11:55]Write to MH i2c: E2 08 00 2B 12 80 13 02 00 00 00 00 00 BB [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 2B 12 00 AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 16 [00:11:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 68 00 00 00 69 04 9B 00 6F 04 04 00 68 00 00 00 B1 04 03 00 68 8A 26 70 04 03 00 2C 09 20 72 04 03 00 3C 81 06 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 DD 17 04 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 4B 57 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:11:56]wFMCommunicate OK [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 17 00 00 [00:11:56]Write to MH i2c: E2 08 00 2C 12 80 17 00 00 00 00 00 00 BE [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 2C 12 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E0 [00:11:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:11:56]wFMCommunicate OK [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 17 00 00 [00:11:56]Write to MH i2c: E2 08 00 2D 12 80 17 00 00 00 00 00 00 BF [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 2D 12 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 76 [00:11:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:11:56]wFMCommunicate OK [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 17 00 00 [00:11:56]Write to MH i2c: E2 08 00 2E 12 80 17 00 00 00 00 00 00 C0 [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 [00:11:56]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 FD 00 2E 12 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 32 [00:11:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:11:57]wFMCommunicate OK [00:11:57]wFMCommunicate request_size=4 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 17 00 00 [00:11:57]Write to MH i2c: E2 08 00 2F 12 80 17 00 00 00 00 00 00 C1 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 CB 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 CB 00 2F 12 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AA [00:11:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:57]wFMCommunicate OK [00:11:57]SAM_PROTO_GetShiftData done [00:11:57]requested_item shift.sale.total_cash is exist - process it [00:11:57]requested_item shift.sale_refund.total is exist - process it [00:11:57]requested_item shift.sale_refund.total_cash is exist - process it [00:11:57]requested_item shift.buy.total is exist - process it [00:11:57]requested_item shift.buy.total_cash is exist - process it [00:11:57]produce_requested_data done [00:11:57]produce_requested_data return {"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.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:11:57]process_action_free get_value [00:11:57]json_value_free [00:11:57]json_value_free done [00:11:57]process_json_proto returns [00:11:57]Send response to host [00:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.00,"fm.buy.total":0.00,"shift.sale.total":25258.00,"shift.sale.total_cash":20995.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:11:57]free response buf [00:11:57]execute_script done [00:11:57]execute_script returns [00:11:57]free content buf [00:11:57]Sock 10.Close socket [00:11:57]Sock 10.Thread stoped [00:11:57]accept exits with 9 [00:11:57]New connection [00:11:57]New thread 3066608996 created [00:11:57]Thread 3066752356 joined [00:11:57]Waiting for new connection... [00:11:57] Sock 9.Parse request [00:11:57]Sock 9.Check first char [00:11:57]Sock 9.First char is OK [00:11:57]request: POST /json_proto HTTP/1.0 [00:11:57]Method: POST [00:11:57]URL: /json_proto [00:11:57]Method is POST - this is cgi request [00:11:57]url: /json_proto [00:11:57]query_string will be loaded in cgi processing [00:11:57]execute_cgi json_proto POST (null) [00:11:57]execute_cgi path=json_proto method=POST [00:11:57]POST find Content-Length [00:11:57]Host: 172.17.62.196:8080 [00:11:57]Content-Length: 253 [00:11:57]Content-Type: application/json [00:11:57] [00:11:57]POST finish read [00:11:57]Found Content-Length = 253 [00:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0423\u0441\u0435\u043D\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:57]execute_script... [00:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0423\u0441\u0435\u043D\u043E\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:57]POST & json_proto [00:11:57]process_json_proto [00:11:57]json parsed OK: [00:11:57]protocol is kg_v1.0 [00:11:57]action value=open_shift [00:11:57]process_action open_shift [00:11:57]cmd_open_shift [00:11:57]MH_GetDate [00:11:57]Write to MH i2c: F0 00 00 30 12 31 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: F0 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: F0 09 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: F0 09 00 30 12 00 D0 03 F2 66 CE CC 0E 66 73 [00:11:57]GetLastDocTimeStamp 1727136446 [00:11:57]current date 1727136720 [00:11:57]FM_GetShiftState [00:11:57]SAM_PROTO_GetShiftState [00:11:57]wFMCommunicate request_size=4 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 13 01 00 [00:11:57]Write to MH i2c: E2 08 00 31 12 80 13 01 00 00 00 00 00 C0 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 0E 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 0E 00 31 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CB [00:11:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:57]wFMCommunicate OK [00:11:57]SAM_PROTO_GetShiftState done [00:11:57]FM_GetShiftState done [00:11:57]KKMCreateOpenShiftDocument [00:11:57]Load OK [00:11:57]Malloc new data [00:11:57]MH_GetDate [00:11:57]Write to MH i2c: F0 00 00 32 12 33 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: F0 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: F0 09 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: F0 09 00 32 12 00 D0 03 F2 66 CE CC 0E 66 75 [00:11:57]Malloc new data [00:11:57]KKMCreateOpenShiftDocument OK [00:11:57]KKMSetOpenShiftData OK [00:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=204 [00:11:57]tlvbuf is 00C85A40 [00:11:57]KKMLoadAndSignOpenShiftData [00:11:57]SAM_PROTO_ProcessDocument [00:11:57]wFMCommunicate request_size=9 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 15 01 00 04 02 00 CC 00 [00:11:57]Write to MH i2c: E2 0C 00 33 12 80 15 01 00 04 00 02 00 CC 00 00 00 9A [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 03 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 03 00 33 12 00 90 00 B9 [00:11:57]RAPDU: 90 00 [00:11:57]wFMCommunicate OK [00:11:57]wFMCommunicate request_size=23 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:11:57]Write to MH i2c: E2 1A 00 34 12 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 BB [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 03 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 03 00 34 12 00 90 00 BA [00:11:57]RAPDU: 90 00 [00:11:57]wFMCommunicate OK [00:11:57]wFMCommunicate request_size=28 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A3 D1 81 D0 B5 D0 BD D0 BE D0 B2 D0 B0 20 D0 93 2E 20 [00:11:57]Write to MH i2c: E2 1F 00 35 12 80 15 02 00 17 00 FD 03 13 00 D0 A3 D1 81 D0 B5 D0 BD D0 BE D0 B2 D0 B0 20 D0 93 2E 20 00 00 40 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 03 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [00:11:57]RAPDU: 90 00 [00:11:57]wFMCommunicate OK [00:11:57]wFMCommunicate request_size=94 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 15 02 00 59 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 [00:11:57]Write to MH i2c: E2 61 00 36 12 80 15 02 00 59 00 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 00 00 F4 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=51 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:11:58]Write to MH i2c: E2 36 00 37 12 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 79 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=13 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 15 02 00 08 F4 03 04 00 D0 03 F2 66 [00:11:58]Write to MH i2c: E2 10 00 38 12 80 15 02 00 08 00 F4 03 04 00 D0 03 F2 66 00 00 00 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=25 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 [00:11:58]Write to MH i2c: E2 1C 00 39 12 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 00 00 33 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [00:11:58]RAPDU: 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 15 03 00 [00:11:58]Write to MH i2c: E2 08 00 3A 12 80 15 03 00 00 00 00 00 CD [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]OFD Sender: No OFD packet to send [00:11:58]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 38 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 38 00 3A 12 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8E 49 00 00 0E 04 04 00 B6 00 00 00 35 04 06 00 35 CD C8 CF 51 28 90 00 3E [00:11:58]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8E 49 00 00 0E 04 04 00 B6 00 00 00 35 04 06 00 35 CD C8 CF 51 28 90 00 [00:11:58]wFMCommunicate OK [00:11:58]SAM_PROTO_ProcessDocument answer len = 51 [00:11:58]SAM_PROTO_ProcessDocument done [00:11:58]SetTLVBufToDocument [00:11:58]Processing tag 1209 (04B9) [00:11:58]Malloc new data [00:11:58]Processing tag 1041 (0411) [00:11:58]Processing tag 1040 (0410) [00:11:58]Malloc new data [00:11:58]Processing tag 1038 (040E) [00:11:58]Malloc new data [00:11:58]Processing tag 1077 (0435) [00:11:58]Malloc new data [00:11:58]SetTLVBufToDocument err=0 [00:11:58]KKMLoadAndSignOpenShiftData store KKM data [00:11:58]KKMLoadAndSignOpenShiftData err=0 [00:11:58]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Усенова Г. Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 Место: АЗС № 176 "Партнер Нефть" 24.09.2024 00:12 Смена: 182 РНМ: 0000000000152968 ЗНМ: 0300000010 ФД: 18830 ФМ: 0000000000959456 ФПД: 59157953597736 [00:11:58]StoreToDocumentArchive [00:11:58]shift 182 fd 18830 [00:11:58]Create dir for shift 0182 [00:11:58]save to /storage/0182/doc_00018830 [00:11:58]save last doc name /storage/0182/doc_00018830 to /storage/kkm_last_doc_name [00:11:58]save OK [00:11:58]Clear old archive folders... [00:11:58]Remove dir /storage/0181 [00:11:58]opendir ok [00:11:58]file . [00:11:58]file .. [00:11:58]file doc_00018724 [00:11:58]remove file /storage/0181/doc_00018724 [00:11:58]file doc_00018725 [00:11:58]remove file /storage/0181/doc_00018725 [00:11:58]file doc_00018726 [00:11:58]remove file /storage/0181/doc_00018726 [00:11:58]file doc_00018727 [00:11:58]remove file /storage/0181/doc_00018727 [00:11:58]file doc_00018728 [00:11:58]remove file /storage/0181/doc_00018728 [00:11:58]file doc_00018729 [00:11:58]remove file /storage/0181/doc_00018729 [00:11:58]file doc_00018730 [00:11:58]remove file /storage/0181/doc_00018730 [00:11:58]file doc_00018731 [00:11:58]remove file /storage/0181/doc_00018731 [00:11:58]file doc_00018732 [00:11:58]remove file /storage/0181/doc_00018732 [00:11:58]file doc_00018733 [00:11:58]remove file /storage/0181/doc_00018733 [00:11:58]file doc_00018734 [00:11:58]remove file /storage/0181/doc_00018734 [00:11:58]file doc_00018735 [00:11:58]remove file /storage/0181/doc_00018735 [00:11:58]file doc_00018736 [00:11:58]remove file /storage/0181/doc_00018736 [00:11:58]file doc_00018737 [00:11:58]remove file /storage/0181/doc_00018737 [00:11:58]file doc_00018738 [00:11:58]remove file /storage/0181/doc_00018738 [00:11:58]file doc_00018739 [00:11:58]remove file /storage/0181/doc_00018739 [00:11:58]file doc_00018740 [00:11:58]remove file /storage/0181/doc_00018740 [00:11:58]file doc_00018741 [00:11:58]remove file /storage/0181/doc_00018741 [00:11:58]file doc_00018742 [00:11:58]remove file /storage/0181/doc_00018742 [00:11:58]file doc_00018743 [00:11:58]remove file /storage/0181/doc_00018743 [00:11:58]file doc_00018744 [00:11:58]remove file /storage/0181/doc_00018744 [00:11:58]file doc_00018745 [00:11:58]remove file /storage/0181/doc_00018745 [00:11:58]file doc_00018746 [00:11:58]remove file /storage/0181/doc_00018746 [00:11:58]file doc_00018747 [00:11:58]remove file /storage/0181/doc_00018747 [00:11:58]file doc_00018748 [00:11:58]remove file /storage/0181/doc_00018748 [00:11:58]file doc_00018749 [00:11:58]remove file /storage/0181/doc_00018749 [00:11:58]file doc_00018750 [00:11:58]remove file /storage/0181/doc_00018750 [00:11:58]file doc_00018751 [00:11:58]remove file /storage/0181/doc_00018751 [00:11:58]file doc_00018752 [00:11:58]remove file /storage/0181/doc_00018752 [00:11:58]file doc_00018753 [00:11:58]remove file /storage/0181/doc_00018753 [00:11:58]file doc_00018754 [00:11:58]remove file /storage/0181/doc_00018754 [00:11:58]file doc_00018755 [00:11:58]remove file /storage/0181/doc_00018755 [00:11:58]file doc_00018756 [00:11:59]remove file /storage/0181/doc_00018756 [00:11:59]file doc_00018757 [00:11:59]remove file /storage/0181/doc_00018757 [00:11:59]file doc_00018758 [00:11:59]remove file /storage/0181/doc_00018758 [00:11:59]file doc_00018759 [00:11:59]remove file /storage/0181/doc_00018759 [00:11:59]file doc_00018760 [00:11:59]remove file /storage/0181/doc_00018760 [00:11:59]file doc_00018761 [00:11:59]remove file /storage/0181/doc_00018761 [00:11:59]file doc_00018762 [00:11:59]remove file /storage/0181/doc_00018762 [00:11:59]file doc_00018763 [00:11:59]remove file /storage/0181/doc_00018763 [00:11:59]file doc_00018764 [00:11:59]remove file /storage/0181/doc_00018764 [00:11:59]file doc_00018765 [00:11:59]remove file /storage/0181/doc_00018765 [00:11:59]file doc_00018766 [00:11:59]remove file /storage/0181/doc_00018766 [00:11:59]file doc_00018767 [00:11:59]remove file /storage/0181/doc_00018767 [00:11:59]file doc_00018768 [00:11:59]remove file /storage/0181/doc_00018768 [00:11:59]file doc_00018769 [00:11:59]remove file /storage/0181/doc_00018769 [00:11:59]file doc_00018770 [00:11:59]remove file /storage/0181/doc_00018770 [00:11:59]file doc_00018771 [00:11:59]remove file /storage/0181/doc_00018771 [00:11:59]file doc_00018772 [00:11:59]remove file /storage/0181/doc_00018772 [00:11:59]file doc_00018773 [00:11:59]remove file /storage/0181/doc_00018773 [00:11:59]file doc_00018774 [00:11:59]remove file /storage/0181/doc_00018774 [00:11:59]file doc_00018775 [00:11:59]remove file /storage/0181/doc_00018775 [00:11:59]file doc_00018776 [00:11:59]remove file /storage/0181/doc_00018776 [00:11:59]file doc_00018777 [00:11:59]remove file /storage/0181/doc_00018777 [00:11:59]file doc_00018778 [00:11:59]remove file /storage/0181/doc_00018778 [00:11:59]file doc_00018779 [00:11:59]remove file /storage/0181/doc_00018779 [00:11:59]file doc_00018780 [00:11:59]remove file /storage/0181/doc_00018780 [00:11:59]file doc_00018781 [00:11:59]remove file /storage/0181/doc_00018781 [00:11:59]file doc_00018782 [00:11:59]remove file /storage/0181/doc_00018782 [00:11:59]file doc_00018783 [00:11:59]remove file /storage/0181/doc_00018783 [00:11:59]file doc_00018784 [00:11:59]remove file /storage/0181/doc_00018784 [00:11:59]file doc_00018785 [00:11:59]remove file /storage/0181/doc_00018785 [00:11:59]file doc_00018786 [00:11:59]remove file /storage/0181/doc_00018786 [00:11:59]file doc_00018787 [00:11:59]remove file /storage/0181/doc_00018787 [00:11:59]file doc_00018788 [00:11:59]remove file /storage/0181/doc_00018788 [00:11:59]file doc_00018789 [00:11:59]remove file /storage/0181/doc_00018789 [00:11:59]file doc_00018790 [00:11:59]remove file /storage/0181/doc_00018790 [00:11:59]file doc_00018791 [00:11:59]remove file /storage/0181/doc_00018791 [00:11:59]file doc_00018792 [00:11:59]remove file /storage/0181/doc_00018792 [00:11:59]file doc_00018793 [00:11:59]remove file /storage/0181/doc_00018793 [00:11:59]file doc_00018794 [00:11:59]remove file /storage/0181/doc_00018794 [00:11:59]file doc_00018795 [00:11:59]remove file /storage/0181/doc_00018795 [00:11:59]file doc_00018796 [00:11:59]remove file /storage/0181/doc_00018796 [00:11:59]file doc_00018797 [00:11:59]remove file /storage/0181/doc_00018797 [00:11:59]file doc_00018798 [00:11:59]remove file /storage/0181/doc_00018798 [00:11:59]file doc_00018799 [00:11:59]remove file /storage/0181/doc_00018799 [00:11:59]file doc_00018800 [00:11:59]remove file /storage/0181/doc_00018800 [00:11:59]file doc_00018801 [00:11:59]remove file /storage/0181/doc_00018801 [00:11:59]file doc_00018802 [00:11:59]remove file /storage/0181/doc_00018802 [00:11:59]file doc_00018803 [00:11:59]remove file /storage/0181/doc_00018803 [00:11:59]file doc_00018804 [00:11:59]remove file /storage/0181/doc_00018804 [00:11:59]file doc_00018805 [00:11:59]remove file /storage/0181/doc_00018805 [00:11:59]file doc_00018806 [00:11:59]remove file /storage/0181/doc_00018806 [00:11:59]file doc_00018807 [00:11:59]remove file /storage/0181/doc_00018807 [00:11:59]file doc_00018808 [00:11:59]remove file /storage/0181/doc_00018808 [00:11:59]file doc_00018809 [00:11:59]remove file /storage/0181/doc_00018809 [00:11:59]file doc_00018810 [00:11:59]remove file /storage/0181/doc_00018810 [00:11:59]file doc_00018811 [00:11:59]remove file /storage/0181/doc_00018811 [00:11:59]file doc_00018812 [00:11:59]remove file /storage/0181/doc_00018812 [00:11:59]file doc_00018813 [00:11:59]remove file /storage/0181/doc_00018813 [00:11:59]file doc_00018814 [00:11:59]remove file /storage/0181/doc_00018814 [00:11:59]file doc_00018815 [00:11:59]remove file /storage/0181/doc_00018815 [00:11:59]file doc_00018816 [00:11:59]remove file /storage/0181/doc_00018816 [00:11:59]file doc_00018817 [00:11:59]remove file /storage/0181/doc_00018817 [00:11:59]file doc_00018818 [00:11:59]remove file /storage/0181/doc_00018818 [00:11:59]file doc_00018819 [00:11:59]remove file /storage/0181/doc_00018819 [00:11:59]file doc_00018820 [00:11:59]remove file /storage/0181/doc_00018820 [00:11:59]file doc_00018821 [00:11:59]remove file /storage/0181/doc_00018821 [00:11:59]file doc_00018822 [00:11:59]remove file /storage/0181/doc_00018822 [00:11:59]file doc_00018823 [00:11:59]remove file /storage/0181/doc_00018823 [00:11:59]file doc_00018824 [00:11:59]remove file /storage/0181/doc_00018824 [00:11:59]file doc_00018825 [00:11:59]remove file /storage/0181/doc_00018825 [00:11:59]file doc_00018826 [00:11:59]remove file /storage/0181/doc_00018826 [00:11:59]file doc_00018827 [00:11:59]remove file /storage/0181/doc_00018827 [00:11:59]file doc_00018828 [00:11:59]remove file /storage/0181/doc_00018828 [00:11:59]file doc_00018829 [00:11:59]remove file /storage/0181/doc_00018829 [00:11:59]remove dir /storage/0181 [00:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=255 [00:11:59]tlvbuf is 00C197B0 [00:11:59]SAM_PROTO_ClearQueue [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 09 00 00 [00:11:59]Write to MH i2c: E2 08 00 3B 12 80 09 00 00 00 00 00 00 BF [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [00:11:59]RAPDU: 90 00 [00:11:59]wFMCommunicate OK [00:11:59]SAM_PROTO_ClearQueue done [00:11:59]KKMCreateOFDPacket [00:11:59]OFDProtocolAddRootSTLVToBuf [00:11:59]FM_MakeSignedData [00:11:59]FM_MakeSignedData [00:11:59]SAM_PROTO_SignData [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 0D 01 02 [00:11:59]Write to MH i2c: E2 08 00 3C 12 80 0D 01 02 00 00 00 00 C7 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [00:11:59]RAPDU: 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=255 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 0D 02 02 FA 02 00 FF 00 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 13 00 D0 A3 D1 81 D0 B5 D0 BD D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D0 03 F2 66 0E 04 04 00 B6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8E 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 [00:11:59]Write to MH i2c: E2 02 01 3D 12 80 0D 02 02 FA 00 02 00 FF 00 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 13 00 D0 A3 D1 81 D0 B5 D0 BD D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D0 03 F2 66 0E 04 04 00 B6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8E 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 00 00 09 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [00:11:59]RAPDU: 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=14 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 0D 02 02 09 04 06 00 35 CD C8 CF 51 28 [00:11:59]Write to MH i2c: E2 11 00 3E 12 80 0D 02 02 09 00 04 06 00 35 CD C8 CF 51 28 00 00 F8 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [00:11:59]RAPDU: 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 0D 03 02 [00:11:59]Write to MH i2c: E2 08 00 3F 12 80 0D 03 02 00 00 00 00 CC [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 0B 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 0B 00 3F 12 00 87 42 2C C9 C7 5C 2E 26 90 00 02 [00:11:59]RAPDU: 87 42 2C C9 C7 5C 2E 26 90 00 [00:11:59]wFMCommunicate OK [00:11:59]SAM_PROTO_SignData done [00:11:59]FM_MakeSignedData done [00:11:59]CreateOFDProtocolMessage [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 11 00 00 [00:11:59]Write to MH i2c: E2 08 00 40 12 80 11 00 00 00 00 00 00 CC [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 17 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 17 00 40 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 25 [00:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:11:59]wFMCommunicate OK [00:11:59]CreateOFDProtocolMessage done [00:11:59]OFDSenderStorePacket 18830 [00:11:59]StoreOFDPacket docnum=18830 [00:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 13 01 00 00 D5 4F 0B 01 AF AE 5A 02 01 00 02 00 FF 00 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 13 00 D0 A3 D1 81 D0 B5 D0 BD D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D0 03 F2 66 0E 04 04 00 B6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8E 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 35 CD C8 CF 51 28 87 42 2C C9 C7 5C 2E 26 [00:11:59]CheckFolder [00:11:59]dirname=/storage/ofd_packets [00:11:59]CheckFolder done [00:11:59]ProducePacketName [00:11:59]name=ofd_packets/00018830 [00:11:59]NVStorageSaveData ofd_packets/00018830 [00:11:59]File name is /storage/ofd_packets/00018830 [00:11:59]Write 305 bytes [00:11:59]NVStorageSaveData done [00:11:59]OFDSenderStorePacket done [00:11:59]KKMCreateOFDPacket done [00:11:59]NVStorageSaveData kkm_last_timestamp [00:11:59]File name is /storage/kkm_last_timestamp [00:11:59]Write 4 bytes [00:11:59]NVStorageSaveData done [00:11:59]ExternCall_PrintAddStr [00:11:59]wPrintStart [00:11:59]Write to MH i2c: 01 00 00 41 12 53 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: 01 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: 01 07 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [00:11:59]RasterBufferAndPrint [00:11:59]line Отчет об открытии смены [00:11:59]line ФФД: 1.0 [00:11:59]line ИНН: 02508201610067 [00:11:59]line Кассир: Усенова Г. [00:11:59]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:11:59]line Место: АЗС № 176 "Партнер Нефть" [00:11:59]line 24.09.2024 00:12 [00:11:59]line Смена: 182 [00:11:59]line РНМ: 0000000000152968 [00:11:59]line ЗНМ: 0300000010 [00:11:59]line ФД: 18830 [00:11:59]line ФМ: 0000000000959456 [00:11:59]line ФПД: 59157953597736 [00:11:59]written 0, free lines is 4095 [00:11:59]OFD Sender: Processing packet 18830 [packets to send 7, broken 6] [00:11:59]ProducePacketName [00:11:59]name=ofd_packets/00018830 [00:11:59]OFD Sender: To server: pG, [00:11:59]CommunicateWithHost lk.salyk.kg:30040 [00:11:59]ConnectInit lk.salyk.kg [00:12:00]Write to MH i2c: 01 00 00 53 12 65 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: 01 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: 01 07 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: 01 07 00 53 12 00 00 00 00 00 56 0E D0 [00:12:00]RasterBufferAndPrint [00:12:00]line [00:12:00]line [00:12:00]line [00:12:00]line [00:12:00]line [00:12:00]Connected sock=10 [00:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 13 01 00 00 D5 4F 0B 01 AF AE 5A 02 01 00 02 00 FF 00 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 13 00 D0 A3 D1 81 D0 B5 D0 BD D0 BE D0 B2 D0 B0 20 D0 93 2E 20 F1 03 55 00 37 32 30 30 30 30 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D0 9F D0 B0 D0 BC D0 B8 D1 80 D1 81 D0 BA D0 B8 D0 B9 20 D1 82 D1 80 D0 B0 D0 BA D1 82 20 31 20 D0 BA D0 BC 2C 20 D0 B4 2E 20 31 30 32 2C 20 34 30 2E 35 33 34 39 36 33 2C 20 37 32 2E 38 31 36 37 39 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 D0 03 F2 66 0E 04 04 00 B6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8E 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 35 04 06 00 35 CD C8 CF 51 28 87 42 2C C9 C7 5C 2E 26 [00:12:00]written 0, free lines is 3693 [00:12:00]MH_Cut [00:12:00]Write to MH i2c: D1 01 00 5A 12 01 3E [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: D1 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: D1 01 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: D1 01 00 5A 12 00 3D [00:12:00]Write to MH i2c: 01 00 00 5B 12 6D [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 FB 03 47 00 78 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 35 39 34 35 36 10 04 04 00 8E 49 00 00 F4 03 04 00 33 *** Cut start [00:12:00]AD F1 66 B6 04 01 00 00 9D 4D 87 43 3B 01 20 BD [00:12:00]CommunicateWithHost err = 0 [00:12:00]CheckOFDResponse [00:12:00]*** Partial cut [00:12:00]1017 (14) - 77093643461234 [00:12:00]*** CUTSNS_PIN = 1 [00:12:00]1041 (16) - 0000000000959456 [00:12:00]1040 (4) - 18830 [00:12:00]*** CUTSNS_PIN = 0 [00:12:00]1012 (4) - 23.09.2024 18:02 [00:12:00]1206 (1) - 0 [00:12:00]OFD Sender: Remove packet 18830 [00:12:00]ProducePacketName [00:12:00]name=ofd_packets/00018830 [00:12:00]NVStorageDeleteData [00:12:00]*** Brake cut motor [00:12:01]Read from MH i2c: 01 [00:12:01]MH_I2C_Read... [00:12:01]*** Stop cut motor [00:12:01]*** Cut end [00:12:01]OFD Sender: No OFD packet to send [00:12:01]Read from MH i2c: 01 07 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: 01 07 00 5B 12 00 00 00 00 00 FF 0F 82 [00:12:01]process_action open_shift done [00:12:01]requested_data is exist [00:12:01]produce_requested_data [00:12:01]requested_item fd.num is exist - process it [00:12:01]SAM_PROTO_GetFieldsCounters [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 13 00 00 [00:12:01]Write to MH i2c: E2 08 00 5C 12 80 13 00 00 00 00 00 00 EA [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 62 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 62 00 5C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8E 49 00 00 0E 04 04 00 B6 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 A4 [00:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8E 49 00 00 0E 04 04 00 B6 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:12:01]wFMCommunicate OK [00:12:01]SAM_PROTO_GetFieldsCounters done [00:12:01]requested_item shift.num is exist - process it [00:12:01]requested_item shift.opened is exist - process it [00:12:01]req_shift_opened [00:12:01]FM_GetShiftState [00:12:01]SAM_PROTO_GetShiftState [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 13 01 00 [00:12:01]Write to MH i2c: E2 08 00 5D 12 80 13 01 00 00 00 00 00 EC [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 0E 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 0E 00 5D 12 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 23 [00:12:01]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:12:01]wFMCommunicate OK [00:12:01]SAM_PROTO_GetShiftState done [00:12:01]FM_GetShiftState done [00:12:01]req_shift_opened done [00:12:01]requested_item shift.open_date is exist - process it [00:12:01]req_shift_open_date [00:12:01]req_shift_open_date done [00:12:01]produce_requested_data done [00:12:01]produce_requested_data return {"fd.num":18830,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [00:12:01]process_action_free open_shift [00:12:01]json_value_free [00:12:01]json_value_free done [00:12:01]process_json_proto returns [00:12:01]Send response to host [00:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":18830,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [00:12:01]free response buf [00:12:01]execute_script done [00:12:01]execute_script returns [00:12:01]free content buf [00:12:01]Sock 9.Close socket [00:12:01]Sock 9.Thread stoped [00:12:01]accept exits with 7 [00:12:01]New connection [00:12:01]New thread 3066752356 created [00:12:01]Thread 3066608996 joined [00:12:01]Waiting for new connection... [00:12:01] Sock 7.Parse request [00:12:01]Sock 7.Check first char [00:12:01]Sock 7.First char is OK [00:12:01]request: POST /json_proto HTTP/1.0 [00:12:01]Method: POST [00:12:01]URL: /json_proto [00:12:01]Method is POST - this is cgi request [00:12:01]url: /json_proto [00:12:01]query_string will be loaded in cgi processing [00:12:01]execute_cgi json_proto POST (null) [00:12:01]execute_cgi path=json_proto method=POST [00:12:01]POST find Content-Length [00:12:01]Host: 172.17.62.196:8080 [00:12:01]Content-Length: 331 [00:12:01]Content-Type: application/json [00:12:01] [00:12:01]POST finish read [00:12:01]Found Content-Length = 331 [00:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:01]execute_script... [00:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:01]POST & json_proto [00:12:01]process_json_proto [00:12:01]json parsed OK: [00:12:01]protocol is kg_v1.0 [00:12:01]action value=get_value [00:12:01]process_action get_value [00:12:01]cmd_get_value [00:12:01]process_action get_value done [00:12:01]requested_data is exist [00:12:01]produce_requested_data [00:12:01]requested_item fm.sale.total is exist - process it [00:12:01]SAM_PROTO_GetFMData [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 13 03 00 [00:12:01]Write to MH i2c: E2 08 00 5E 12 80 13 03 00 00 00 00 00 EF [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 5E 12 00 BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 23 [00:12:01]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 22 48 00 00 69 04 A0 00 6F 04 04 00 13 48 00 00 B1 04 04 00 6A 95 8F 31 70 04 04 00 A4 07 2B 1F 72 04 04 00 C6 8D 64 12 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 39 7B 43 05 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 87 43 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F 00 00 00 B1 04 03 00 00 8C 55 70 04 03 00 00 8C 55 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 CF 15 09 EF 03 09 00 F6 03 01 00 00 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 17 00 00 [00:12:02]Write to MH i2c: E2 08 00 5F 12 80 17 00 00 00 00 00 00 F1 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 5F 12 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:12:02]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 CF C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 17 00 00 [00:12:02]Write to MH i2c: E2 08 00 60 12 80 17 00 00 00 00 00 00 F2 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 60 12 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [00:12:02]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 17 00 00 [00:12:02]Write to MH i2c: E2 08 00 61 12 80 17 00 00 00 00 00 00 F3 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:03]Read from MH i2c: E2 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 FD 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 FD 00 61 12 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:12:03]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [00:12:03]wFMCommunicate OK [00:12:03]wFMCommunicate request_size=4 [00:12:03]MH_SAM_APDU [00:12:03]CAPDU: 80 17 00 00 [00:12:03]Write to MH i2c: E2 08 00 62 12 80 17 00 00 00 00 00 00 F4 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [00:12:03]Read from MH i2c: E2 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 DB 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 DB 00 62 12 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D6 [00:12:03]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:03]wFMCommunicate OK [00:12:03]SAM_PROTO_GetFMData done [00:12:03]requested_item fm.sale_refund.total is exist - process it [00:12:03]requested_item fm.buy.total is exist - process it [00:12:03]requested_item shift.sale.total is exist - process it [00:12:03]SAM_PROTO_GetShiftData [00:12:03]wFMCommunicate request_size=4 [00:12:03]MH_SAM_APDU [00:12:03]CAPDU: 80 13 02 00 [00:12:03]Write to MH i2c: E2 08 00 63 12 80 13 02 00 00 00 00 00 F3 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 FD 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 FD 00 63 12 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 66 [00:12:04]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:12:04]wFMCommunicate OK [00:12:04]wFMCommunicate request_size=4 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 17 00 00 [00:12:04]Write to MH i2c: E2 08 00 64 12 80 17 00 00 00 00 00 00 F6 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 FD 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 FD 00 64 12 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 FE [00:12:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:12:05]wFMCommunicate OK [00:12:05]wFMCommunicate request_size=4 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 17 00 00 [00:12:05]Write to MH i2c: E2 08 00 65 12 80 17 00 00 00 00 00 00 F7 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 FD 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 FD 00 65 12 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 C9 [00:12:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:12:05]wFMCommunicate OK [00:12:05]wFMCommunicate request_size=4 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 17 00 00 [00:12:05]Write to MH i2c: E2 08 00 66 12 80 17 00 00 00 00 00 00 F8 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 FD 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 FD 00 66 12 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 6A [00:12:05]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:12:06]wFMCommunicate OK [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 17 00 00 [00:12:06]Write to MH i2c: E2 08 00 67 12 80 17 00 00 00 00 00 00 F9 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]OFD Sender: No OFD packet to send [00:12:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 BD 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 BD 00 67 12 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 DF [00:12:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_GetShiftData done [00:12:06]requested_item shift.sale.total_cash is exist - process it [00:12:06]requested_item shift.sale_refund.total is exist - process it [00:12:06]requested_item shift.sale_refund.total_cash is exist - process it [00:12:06]requested_item shift.buy.total is exist - process it [00:12:06]requested_item shift.buy.total_cash is exist - process it [00:12:06]produce_requested_data done [00:12:06]produce_requested_data return {"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.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:12:06]process_action_free get_value [00:12:06]json_value_free [00:12:06]json_value_free done [00:12:06]process_json_proto returns [00:12:06]Send response to host [00:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8314934.82,"fm.sale_refund.total":56064.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:12:06]free response buf [00:12:06]execute_script done [00:12:06]execute_script returns [00:12:06]free content buf [00:12:06]Sock 7.Close socket [00:12:06]Sock 7.Thread stoped [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:44]accept exits with 9 [00:14:44]New connection [00:14:44]New thread 3066608996 created [00:14:44]Thread 3066752356 joined [00:14:44]Waiting for new connection... [00:14:44] Sock 9.Parse request [00:14:44]Sock 9.Check first char [00:14:44]Sock 9.First char is OK [00:14:44]request: POST /json_proto HTTP/1.0 [00:14:44]Method: POST [00:14:44]URL: /json_proto [00:14:44]Method is POST - this is cgi request [00:14:44]url: /json_proto [00:14:44]query_string will be loaded in cgi processing [00:14:44]execute_cgi json_proto POST (null) [00:14:44]execute_cgi path=json_proto method=POST [00:14:44]POST find Content-Length [00:14:44]Host: 172.17.62.196:8080 [00:14:44]Content-Length: 623 [00:14:44]Content-Type: application/json [00:14:44] [00:14:44]POST finish read [00:14:44]Found Content-Length = 623 [00:14:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16746", "tax_sys" : 0, "items" : [ { "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 143.00, "quantity" : 2.000, "sum" : 286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:44]execute_script... [00:14:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16746", "tax_sys" : 0, "items" : [ { "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 143.00, "quantity" : 2.000, "sum" : 286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:44]POST & json_proto [00:14:44]process_json_proto [00:14:44]json parsed OK: [00:14:44]protocol is kg_v1.0 [00:14:44]action value=close_receipt [00:14:44]process_action close_receipt [00:14:44]cmd_close_receipt [00:14:44]MH_GetDate [00:14:44]Write to MH i2c: F0 00 00 68 12 69 [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: F0 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: F0 09 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: F0 09 00 68 12 00 77 04 F2 66 CE CC 0E 66 53 [00:14:44]GetLastDocTimeStamp 1727136720 [00:14:44]current date 1727136887 [00:14:44]FM_GetShiftState [00:14:44]SAM_PROTO_GetShiftState [00:14:44]wFMCommunicate request_size=4 [00:14:44]MH_SAM_APDU [00:14:44]CAPDU: 80 13 01 00 [00:14:44]Write to MH i2c: E2 08 00 69 12 80 13 01 00 00 00 00 00 F8 [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:44]Read from MH i2c: E2 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 0E 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 0E 00 69 12 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 2F [00:14:44]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:14:44]wFMCommunicate OK [00:14:44]SAM_PROTO_GetShiftState done [00:14:44]FM_GetShiftState done [00:14:44]opened in 1727136720 [00:14:44]opened+sec_in_day 1727223120 [00:14:44]quantity*price = 28600 [00:14:44]sum+1 = 28601 [00:14:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 286.00 НСП 1% : 2.53 НДС 12% : 30.37 Наличными: 286.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 1 24.09.2024 00:14 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18831 ФПД: 64143909397996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T001447&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18831&fm=64143909397996&tin=02508201610067®Number=0000000000152968&sum=28600 0 [00:14:45]StoreToDocumentArchive [00:14:45]shift 182 fd 18831 [00:14:45]save to /storage/0182/doc_00018831 [00:14:45]save last doc name /storage/0182/doc_00018831 to /storage/kkm_last_doc_name [00:14:45]save OK [00:14:45]Clear old archive folders... [00:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:14:45]tlvbuf is 00C64120 [00:14:45]SAM_PROTO_ClearQueue [00:14:45]wFMCommunicate request_size=4 [00:14:45]MH_SAM_APDU [00:14:45]CAPDU: 80 09 00 00 [00:14:45]Write to MH i2c: E2 08 00 76 12 80 09 00 00 00 00 00 00 FA [00:14:45]Write i2c OK [00:14:45]MH_I2C_Read... [00:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [00:14:46]RAPDU: 90 00 [00:14:46]wFMCommunicate OK [00:14:46]SAM_PROTO_ClearQueue done [00:14:46]KKMCreateOFDPacket [00:14:46]OFDProtocolAddRootSTLVToBuf [00:14:46]FM_MakeSignedData [00:14:46]FM_MakeSignedData [00:14:46]SAM_PROTO_SignData [00:14:46]wFMCommunicate request_size=4 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 0D 01 02 [00:14:46]Write to MH i2c: E2 08 00 77 12 80 0D 01 02 00 00 00 00 02 [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [00:14:46]RAPDU: 90 00 [00:14:46]wFMCommunicate OK [00:14:46]wFMCommunicate request_size=255 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 77 04 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 [00:14:46]Write to MH i2c: E2 02 01 78 12 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 77 04 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 00 00 BA [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]OFD Sender: No OFD packet to send [00:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [00:14:46]RAPDU: 90 00 [00:14:46]wFMCommunicate OK [00:14:46]wFMCommunicate request_size=35 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8F 49 00 00 35 04 06 00 3A 56 AA EF 25 EC [00:14:46]Write to MH i2c: E2 26 00 79 12 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8F 49 00 00 35 04 06 00 3A 56 AA EF 25 EC 00 00 10 [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [00:14:46]RAPDU: 90 00 [00:14:46]wFMCommunicate OK [00:14:46]wFMCommunicate request_size=4 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 0D 03 02 [00:14:46]Write to MH i2c: E2 08 00 7A 12 80 0D 03 02 00 00 00 00 07 [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 0B 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 0B 00 7A 12 00 76 72 52 FA F5 08 EE 4F 90 00 76 [00:14:46]RAPDU: 76 72 52 FA F5 08 EE 4F 90 00 [00:14:46]wFMCommunicate OK [00:14:46]SAM_PROTO_SignData done [00:14:46]FM_MakeSignedData done [00:14:46]CreateOFDProtocolMessage [00:14:46]wFMCommunicate request_size=4 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 11 00 00 [00:14:46]Write to MH i2c: E2 08 00 7B 12 80 11 00 00 00 00 00 00 07 [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 17 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 17 00 7B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 60 [00:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:14:46]wFMCommunicate OK [00:14:46]CreateOFDProtocolMessage done [00:14:46]OFDSenderStorePacket 18831 [00:14:46]StoreOFDPacket docnum=18831 [00:14:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 DD 94 20 01 F7 C8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 77 04 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8F 49 00 00 35 04 06 00 3A 56 AA EF 25 EC 76 72 52 FA F5 08 EE 4F [00:14:46]CheckFolder [00:14:46]dirname=/storage/ofd_packets [00:14:46]CheckFolder done [00:14:46]ProducePacketName [00:14:46]name=ofd_packets/00018831 [00:14:46]NVStorageSaveData ofd_packets/00018831 [00:14:46]File name is /storage/ofd_packets/00018831 [00:14:46]Write 326 bytes [00:14:46]NVStorageSaveData done [00:14:46]OFDSenderStorePacket done [00:14:46]KKMCreateOFDPacket done [00:14:46]NVStorageSaveData kkm_last_timestamp [00:14:46]File name is /storage/kkm_last_timestamp [00:14:46]Write 4 bytes [00:14:46]NVStorageSaveData done [00:14:46]ExternCall_PrintAddStr [00:14:46]wPrintStart [00:14:46]Write to MH i2c: 01 00 00 7C 12 8E [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: 01 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: 01 07 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: 01 07 00 7C 12 00 00 00 00 00 FF 0F A3 [00:14:46]RasterBufferAndPrint [00:14:46]line Счет N : (3)16746 [00:14:46]line ИНН: 02508201610067 [00:14:46]line Контрольно-Кассовый Чек [00:14:46]line ПРОДАЖА [00:14:46]line Товар: 48746656 [00:14:46]line Сигареты Parliament Super Slims [00:14:46]line 2.000 * 143.00 [00:14:46]line = 286.00 [00:14:46]line НДС 12% НСП 1% [00:14:46]line > о реализуемом товаре [00:14:46]line ИТОГО: 286.00 [00:14:46]line НСП 1% : 2.53 [00:14:46]line НДС 12% : 30.37 [00:14:46]line Наличными: 286.00 [00:14:46]line Безнал.: 0.00 [00:14:46]line Место: АЗС № 176 "Партнер Нефть" [00:14:46]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:14:46]line СНО: Общий режим [00:14:46]line Чек 1 24.09.2024 00:14 [00:14:46]line Смена: 182 ФФД: 1.0 [00:14:46]line ЗНМ: 0300000010 [00:14:46]line РНМ: 0000000000152968 [00:14:46]line Версия ККМ: v1.0 [00:14:46]line ФМ: 0000000000959456 [00:14:46]line ФД: 18831 [00:14:46]line ФПД: 64143909397996 [00:14:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T001447&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18831&fm=64143909397996&tin=02508201610067®Number=0000000000152968&sum=28600 [00:14:46]line 0 [00:14:46]OFD Sender: Processing packet 18831 [packets to send 7, broken 6] [00:14:46]ProducePacketName [00:14:46]name=ofd_packets/00018831 [00:14:46]OFD Sender: To server: pG, [00:14:46]CommunicateWithHost lk.salyk.kg:30040 [00:14:46]ConnectInit lk.salyk.kg [00:14:46]written 0, free lines is 4095 [00:14:47]Connected sock=10 [00:14:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 28 01 00 00 DD 94 20 01 F7 C8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 B8 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 77 04 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 8F 49 00 00 35 04 06 00 3A 56 AA EF 25 EC 76 72 52 FA F5 08 EE 4F [00:14:47]Write to MH i2c: 01 00 00 A5 12 B7 [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: 01 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: 01 07 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: 01 07 00 A5 12 00 00 00 00 00 F5 0C BF [00:14:47]RasterBufferAndPrint [00:14:47]line [00:14:47]line [00:14:47]line [00:14:47]line [00:14:47]line [00:14:47]written 0, free lines is 3324 [00:14:47]MH_Cut [00:14:47]Write to MH i2c: D1 01 00 AC 12 01 90 [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: D1 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: D1 01 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: D1 01 00 AC 12 00 8F [00:14:47]Write to MH i2c: 01 00 00 AD 12 BF [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 17 5D 47 00 10 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 35 39 34 35 36 10 04 04 00 8F 49 00 00 F4 03 04 00 DA AD F1 66 B6 04 01 00 00 6A BC AA CB 01 59 73 E3 [00:14:47]CommunicateWithHost err = 0 [00:14:47]CheckOFDResponse [00:14:47]1017 (14) - 77093643461234 [00:14:47]1041 (16) - 0000000000959456 [00:14:47]1040 (4) - 18831 [00:14:47]1012 (4) - 23.09.2024 18:05 [00:14:47]1206 (1) - 0 [00:14:47]OFD Sender: Remove packet 18831 [00:14:47]ProducePacketName [00:14:47]name=ofd_packets/00018831 [00:14:47]NVStorageDeleteData [00:14:47]OFD Sender: No OFD packet to send [00:14:47]*** Cut start [00:14:47]*** Partial cut [00:14:47]*** CUTSNS_PIN = 1 [00:14:48]*** CUTSNS_PIN = 0 [00:14:48]*** Brake cut motor [00:14:48]Read from MH i2c: 01 [00:14:48]MH_I2C_Read... [00:14:48]*** Stop cut motor [00:14:48]*** Cut end [00:14:48]Read from MH i2c: 01 07 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: 01 07 00 AD 12 00 00 00 00 00 FF 0F D4 [00:14:48]process_action close_receipt done [00:14:48]requested_data is exist [00:14:48]produce_requested_data [00:14:48]requested_item fm.sn is exist - process it [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 11 00 00 [00:14:48]Write to MH i2c: E2 08 00 AE 12 80 11 00 00 00 00 00 00 3A [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:48]Read from MH i2c: E2 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 17 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 17 00 AE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 93 [00:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:14:48]wFMCommunicate OK [00:14:48]requested_item fd.num is exist - process it [00:14:48]SAM_PROTO_GetFieldsCounters [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 13 00 00 [00:14:48]Write to MH i2c: E2 08 00 AF 12 80 13 00 00 00 00 00 00 3D [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:48]Read from MH i2c: E2 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 62 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 62 00 AF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8F 49 00 00 0E 04 04 00 B6 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 FB [00:14:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 8F 49 00 00 0E 04 04 00 B6 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:14:48]wFMCommunicate OK [00:14:48]SAM_PROTO_GetFieldsCounters done [00:14:48]requested_item shift.num is exist - process it [00:14:48]requested_item shift.opened is exist - process it [00:14:48]req_shift_opened [00:14:48]FM_GetShiftState [00:14:48]SAM_PROTO_GetShiftState [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 13 01 00 [00:14:48]Write to MH i2c: E2 08 00 B0 12 80 13 01 00 00 00 00 00 3F [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:48]Read from MH i2c: E2 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 0E 00 [00:14:48]MH_I2C_Read... [00:14:48]Read from MH i2c: E2 0E 00 B0 12 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 76 [00:14:48]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:14:48]wFMCommunicate OK [00:14:48]SAM_PROTO_GetShiftState done [00:14:48]FM_GetShiftState done [00:14:48]req_shift_opened done [00:14:48]requested_item shift.open_date is exist - process it [00:14:48]req_shift_open_date [00:14:48]req_shift_open_date done [00:14:48]produce_requested_data done [00:14:48]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18831,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [00:14:48]process_action_free close_receipt [00:14:48]json_value_free [00:14:48]json_value_free done [00:14:48]process_json_proto returns [00:14:48]Send response to host [00:14:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18831,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [00:14:48]free response buf [00:14:48]execute_script done [00:14:48]execute_script returns [00:14:48]free content buf [00:14:48]Sock 9.Close socket [00:14:48]Sock 9.Thread stoped [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]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:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]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:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:22]accept exits with 7 [00:31:22]New connection [00:31:22]New thread 3066752356 created [00:31:22]Thread 3066608996 joined [00:31:22]Waiting for new connection... [00:31:22] Sock 7.Parse request [00:31:22]Sock 7.Check first char [00:31:22]Sock 7.First char is OK [00:31:22]request: POST /json_proto HTTP/1.0 [00:31:22]Method: POST [00:31:22]URL: /json_proto [00:31:22]Method is POST - this is cgi request [00:31:22]url: /json_proto [00:31:22]query_string will be loaded in cgi processing [00:31:22]execute_cgi json_proto POST (null) [00:31:22]execute_cgi path=json_proto method=POST [00:31:22]POST find Content-Length [00:31:22]Host: 172.17.62.196:8080 [00:31:22]Content-Length: 619 [00:31:22]Content-Type: application/json [00:31:22] [00:31:22]POST finish read [00:31:22]Found Content-Length = 619 [00:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16747", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:22]execute_script... [00:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16747", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:22]POST & json_proto [00:31:22]process_json_proto [00:31:22]json parsed OK: [00:31:22]protocol is kg_v1.0 [00:31:22]action value=close_receipt [00:31:22]process_action close_receipt [00:31:22]cmd_close_receipt [00:31:22]MH_GetDate [00:31:22]Write to MH i2c: F0 00 00 B1 12 B2 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 09 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: F0 09 00 B1 12 00 5D 08 F2 66 CE CC 0E 66 86 [00:31:22]GetLastDocTimeStamp 1727136887 [00:31:22]current date 1727137885 [00:31:22]FM_GetShiftState [00:31:22]SAM_PROTO_GetShiftState [00:31:22]wFMCommunicate request_size=4 [00:31:22]MH_SAM_APDU [00:31:22]CAPDU: 80 13 01 00 [00:31:22]Write to MH i2c: E2 08 00 B2 12 80 13 01 00 00 00 00 00 41 [00:31:22]Write i2c OK [00:31:22]MH_I2C_Read... [00:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:22]Read from MH i2c: E2 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 [00:31:22]MH_I2C_Read... [00:31:22]Read from MH i2c: E2 0E 00 B2 12 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 78 [00:31:22]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:31:22]wFMCommunicate OK [00:31:22]SAM_PROTO_GetShiftState done [00:31:22]FM_GetShiftState done [00:31:22]opened in 1727136720 [00:31:22]opened+sec_in_day 1727223120 [00:31:22]quantity*price = 40500 [00:31:22]sum+1 = 40501 [00:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 2 24.09.2024 00:31 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18832 ФПД: 553563446638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T003125&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18832&fm=553563446638&tin=02508201610067®Number=0000000000152968&sum=40500 0 [00:31:23]StoreToDocumentArchive [00:31:23]shift 182 fd 18832 [00:31:23]save to /storage/0182/doc_00018832 [00:31:23]save last doc name /storage/0182/doc_00018832 to /storage/kkm_last_doc_name [00:31:23]save OK [00:31:23]Clear old archive folders... [00:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=280 [00:31:23]tlvbuf is 00C04B50 [00:31:23]SAM_PROTO_ClearQueue [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 09 00 00 [00:31:23]Write to MH i2c: E2 08 00 BF 12 80 09 00 00 00 00 00 00 43 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]SAM_PROTO_ClearQueue done [00:31:23]KKMCreateOFDPacket [00:31:23]OFDProtocolAddRootSTLVToBuf [00:31:23]FM_MakeSignedData [00:31:23]FM_MakeSignedData [00:31:23]SAM_PROTO_SignData [00:31:23]wFMCommunicate request_size=4 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 01 02 [00:31:23]Write to MH i2c: E2 08 00 C0 12 80 0D 01 02 00 00 00 00 4B [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:23]Read from MH i2c: E2 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 [00:31:23]MH_I2C_Read... [00:31:23]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [00:31:23]RAPDU: 90 00 [00:31:23]wFMCommunicate OK [00:31:23]wFMCommunicate request_size=255 [00:31:23]MH_SAM_APDU [00:31:23]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D 08 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 [00:31:23]Write to MH i2c: E2 02 01 C1 12 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D 08 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 00 C1 [00:31:23]Write i2c OK [00:31:23]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [00:31:24]RAPDU: 90 00 [00:31:24]wFMCommunicate OK [00:31:24]wFMCommunicate request_size=39 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 90 49 00 00 35 04 06 00 00 80 E2 F3 DD 6E [00:31:24]Write to MH i2c: E2 2A 00 C2 12 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 90 49 00 00 35 04 06 00 00 80 E2 F3 DD 6E 00 00 88 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [00:31:24]RAPDU: 90 00 [00:31:24]wFMCommunicate OK [00:31:24]wFMCommunicate request_size=4 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 0D 03 02 [00:31:24]Write to MH i2c: E2 08 00 C3 12 80 0D 03 02 00 00 00 00 50 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 0B 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 0B 00 C3 12 00 96 5A FB 1C 2B DA 28 87 90 00 0C [00:31:24]RAPDU: 96 5A FB 1C 2B DA 28 87 90 00 [00:31:24]wFMCommunicate OK [00:31:24]SAM_PROTO_SignData done [00:31:24]FM_MakeSignedData done [00:31:24]CreateOFDProtocolMessage [00:31:24]wFMCommunicate request_size=4 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 11 00 00 [00:31:24]Write to MH i2c: E2 08 00 C4 12 80 11 00 00 00 00 00 00 50 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 17 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 17 00 C4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 A9 [00:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:31:24]wFMCommunicate OK [00:31:24]CreateOFDProtocolMessage done [00:31:24]OFDSenderStorePacket 18832 [00:31:24]StoreOFDPacket docnum=18832 [00:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 6E 9E 24 01 4E 65 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D 08 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 90 49 00 00 35 04 06 00 00 80 E2 F3 DD 6E 96 5A FB 1C 2B DA 28 87 [00:31:24]CheckFolder [00:31:24]dirname=/storage/ofd_packets [00:31:24]CheckFolder done [00:31:24]ProducePacketName [00:31:24]name=ofd_packets/00018832 [00:31:24]NVStorageSaveData ofd_packets/00018832 [00:31:24]File name is /storage/ofd_packets/00018832 [00:31:24]Write 330 bytes [00:31:24]NVStorageSaveData done [00:31:24]OFDSenderStorePacket done [00:31:24]KKMCreateOFDPacket done [00:31:24]NVStorageSaveData kkm_last_timestamp [00:31:24]File name is /storage/kkm_last_timestamp [00:31:24]Write 4 bytes [00:31:24]NVStorageSaveData done [00:31:24]ExternCall_PrintAddStr [00:31:24]wPrintStart [00:31:24]Write to MH i2c: 01 00 00 C5 12 D7 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 FF 0F EC [00:31:24]RasterBufferAndPrint [00:31:24]line Счет N : (3)16747 [00:31:24]line ИНН: 02508201610067 [00:31:24]line Контрольно-Кассовый Чек [00:31:24]line ПРОДАЖА [00:31:24]line Товар: 4650063110756 [00:31:24]line Масло Gazpromneft Super 10w40 1л [00:31:24]line 1.000 * 405.00 [00:31:24]line = 405.00 [00:31:24]line НДС 12% НСП 1% [00:31:24]line > о реализуемом товаре [00:31:24]line ИТОГО: 405.00 [00:31:24]line НСП 1% : 3.58 [00:31:24]line НДС 12% : 43.01 [00:31:24]line Наличными: 405.00 [00:31:24]line Безнал.: 0.00 [00:31:24]line Место: АЗС № 176 "Партнер Нефть" [00:31:24]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:31:24]line СНО: Общий режим [00:31:24]line Чек 2 24.09.2024 00:31 [00:31:24]line Смена: 182 ФФД: 1.0 [00:31:24]line ЗНМ: 0300000010 [00:31:24]line РНМ: 0000000000152968 [00:31:24]line Версия ККМ: v1.0 [00:31:24]line ФМ: 0000000000959456 [00:31:24]line ФД: 18832 [00:31:24]line ФПД: 553563446638 [00:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T003125&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18832&fm=553563446638&tin=02508201610067®Number=0000000000152968&sum=40500 [00:31:24]line 0 [00:31:24]OFD Sender: Processing packet 18832 [packets to send 7, broken 6] [00:31:24]ProducePacketName [00:31:24]name=ofd_packets/00018832 [00:31:24]OFD Sender: To server: pG, [00:31:24]CommunicateWithHost lk.salyk.kg:30040 [00:31:24]ConnectInit lk.salyk.kg [00:31:24]written 0, free lines is 4095 [00:31:24]Connected sock=10 [00:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2C 01 00 00 6E 9E 24 01 4E 65 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5D 08 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 90 49 00 00 35 04 06 00 00 80 E2 F3 DD 6E 96 5A FB 1C 2B DA 28 87 [00:31:25]Write to MH i2c: 01 00 00 EE 12 00 [00:31:25]Write i2c OK [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: 01 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: 01 07 00 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: 01 07 00 EE 12 00 00 00 00 00 0F 0D 23 [00:31:25]RasterBufferAndPrint [00:31:25]line [00:31:25]line [00:31:25]line [00:31:25]line [00:31:25]line [00:31:25]written 0, free lines is 3349 [00:31:25]MH_Cut [00:31:25]Write to MH i2c: D1 01 00 F5 12 01 D9 [00:31:25]Write i2c OK [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: D1 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: D1 01 00 [00:31:25]MH_I2C_Read... [00:31:25]Read from MH i2c: D1 01 00 F5 12 00 D8 [00:31:25]Write to MH i2c: 01 00 00 F6 12 08 [00:31:25]Write i2c OK [00:31:25]MH_I2C_Read... [00:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 4F 14 47 00 3C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 90 49 00 00 F4 03 04 00 C0 B1 F1 66 B6 04 01 00 00 26 8D 28 EA 10 E7 AC 19 [00:31:25]CommunicateWithHost err = 0 [00:31:25]CheckOFDResponse [00:31:25]1017 (14) - 77093643461234 [00:31:25]1041 (16) - 0000000000959456 [00:31:25]1040 (4) - 18832 [00:31:25]1012 (4) - 23.09.2024 18:21 [00:31:25]1206 (1) - 0 [00:31:25]OFD Sender: Remove packet 18832 [00:31:25]ProducePacketName [00:31:25]name=ofd_packets/00018832 [00:31:25]NVStorageDeleteData [00:31:25]OFD Sender: No OFD packet to send [00:31:25]*** Cut start [00:31:25]*** Partial cut [00:31:25]*** CUTSNS_PIN = 1 [00:31:25]*** CUTSNS_PIN = 0 [00:31:26]*** Brake cut motor [00:31:26]Read from MH i2c: 01 [00:31:26]MH_I2C_Read... [00:31:26]*** Stop cut motor [00:31:26]*** Cut end [00:31:26]Read from MH i2c: 01 07 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: 01 07 00 F6 12 00 00 00 00 00 FF 0F 1D [00:31:26]process_action close_receipt done [00:31:26]requested_data is exist [00:31:26]produce_requested_data [00:31:26]requested_item fm.sn is exist - process it [00:31:26]wFMCommunicate request_size=4 [00:31:26]MH_SAM_APDU [00:31:26]CAPDU: 80 11 00 00 [00:31:26]Write to MH i2c: E2 08 00 F7 12 80 11 00 00 00 00 00 00 83 [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:26]Read from MH i2c: E2 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 17 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 17 00 F7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 DC [00:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:31:26]wFMCommunicate OK [00:31:26]requested_item fd.num is exist - process it [00:31:26]SAM_PROTO_GetFieldsCounters [00:31:26]wFMCommunicate request_size=4 [00:31:26]MH_SAM_APDU [00:31:26]CAPDU: 80 13 00 00 [00:31:26]Write to MH i2c: E2 08 00 F8 12 80 13 00 00 00 00 00 00 86 [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:26]Read from MH i2c: E2 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 62 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 62 00 F8 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 90 49 00 00 0E 04 04 00 B6 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 48 [00:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 90 49 00 00 0E 04 04 00 B6 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:31:26]wFMCommunicate OK [00:31:26]SAM_PROTO_GetFieldsCounters done [00:31:26]requested_item shift.num is exist - process it [00:31:26]requested_item shift.opened is exist - process it [00:31:26]req_shift_opened [00:31:26]FM_GetShiftState [00:31:26]SAM_PROTO_GetShiftState [00:31:26]wFMCommunicate request_size=4 [00:31:26]MH_SAM_APDU [00:31:26]CAPDU: 80 13 01 00 [00:31:26]Write to MH i2c: E2 08 00 F9 12 80 13 01 00 00 00 00 00 88 [00:31:26]Write i2c OK [00:31:26]MH_I2C_Read... [00:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:26]Read from MH i2c: E2 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 0E 00 [00:31:26]MH_I2C_Read... [00:31:26]Read from MH i2c: E2 0E 00 F9 12 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 BF [00:31:26]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:31:26]wFMCommunicate OK [00:31:26]SAM_PROTO_GetShiftState done [00:31:26]FM_GetShiftState done [00:31:26]req_shift_opened done [00:31:26]requested_item shift.open_date is exist - process it [00:31:26]req_shift_open_date [00:31:26]req_shift_open_date done [00:31:26]produce_requested_data done [00:31:26]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18832,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [00:31:26]process_action_free close_receipt [00:31:26]json_value_free [00:31:26]json_value_free done [00:31:26]process_json_proto returns [00:31:26]Send response to host [00:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18832,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [00:31:26]free response buf [00:31:26]execute_script done [00:31:26]execute_script returns [00:31:26]free content buf [00:31:26]Sock 7.Close socket [00:31:26]Sock 7.Thread stoped [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36: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:48]accept exits with 9 [00:36:48]New connection [00:36:48]New thread 3066608996 created [00:36:48]Thread 3066752356 joined [00:36:48]Waiting for new connection... [00:36:48] Sock 9.Parse request [00:36:48]Sock 9.Check first char [00:36:48]Sock 9.First char is OK [00:36:48]request: POST /json_proto HTTP/1.0 [00:36:48]Method: POST [00:36:48]URL: /json_proto [00:36:48]Method is POST - this is cgi request [00:36:48]url: /json_proto [00:36:48]query_string will be loaded in cgi processing [00:36:48]execute_cgi json_proto POST (null) [00:36:48]execute_cgi path=json_proto method=POST [00:36:48]POST find Content-Length [00:36:48]Host: 172.17.62.196:8080 [00:36:48]Content-Length: 612 [00:36:48]Content-Type: application/json [00:36:48] [00:36:48]POST finish read [00:36:48]Found Content-Length = 612 [00:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16748", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:48]execute_script... [00: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 : (3)16748", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:48]POST & json_proto [00:36:48]process_json_proto [00:36:48]json parsed OK: [00:36:48]protocol is kg_v1.0 [00:36:48]action value=close_receipt [00:36:48]process_action close_receipt [00:36:48]cmd_close_receipt [00:36:48]MH_GetDate [00:36:48]Write to MH i2c: F0 00 00 FA 12 FB [00:36:48]Write i2c OK [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: F0 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: F0 09 00 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: F0 09 00 FA 12 00 A3 09 F2 66 CE CC 0E 66 16 [00:36:48]GetLastDocTimeStamp 1727137885 [00:36:48]current date 1727138211 [00:36:48]FM_GetShiftState [00:36:48]SAM_PROTO_GetShiftState [00:36:48]wFMCommunicate request_size=4 [00:36:48]MH_SAM_APDU [00:36:48]CAPDU: 80 13 01 00 [00:36:48]Write to MH i2c: E2 08 00 FB 12 80 13 01 00 00 00 00 00 8A [00:36:48]Write i2c OK [00:36:48]MH_I2C_Read... [00:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:48]Read from MH i2c: E2 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: E2 0E 00 [00:36:48]MH_I2C_Read... [00:36:48]Read from MH i2c: E2 0E 00 FB 12 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 C1 [00:36:48]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:36:48]wFMCommunicate OK [00:36:48]SAM_PROTO_GetShiftState done [00:36:48]FM_GetShiftState done [00:36:48]opened in 1727136720 [00:36:48]opened+sec_in_day 1727223120 [00:36:48]quantity*price = 15900 [00:36:48]sum+1 = 15901 [00:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 3 24.09.2024 00:36 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18833 ФПД: 167473109883376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T003651&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18833&fm=167473109883376&tin=02508201610067®Number=0000000000152968&sum=15900 0 [00:36:49]StoreToDocumentArchive [00:36:49]shift 182 fd 18833 [00:36:49]save to /storage/0182/doc_00018833 [00:36:49]save last doc name /storage/0182/doc_00018833 to /storage/kkm_last_doc_name [00:36:49]save OK [00:36:49]Clear old archive folders... [00:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=265 [00:36:49]tlvbuf is 00C04A30 [00:36:49]SAM_PROTO_ClearQueue [00:36:49]wFMCommunicate request_size=4 [00:36:49]MH_SAM_APDU [00:36:49]CAPDU: 80 09 00 00 [00:36:49]Write to MH i2c: E2 08 00 08 13 80 09 00 00 00 00 00 00 8D [00:36:49]Write i2c OK [00:36:49]MH_I2C_Read... [00:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:49]Read from MH i2c: E2 [00:36:49]MH_I2C_Read... [00:36:49]Read from MH i2c: E2 03 00 [00:36:49]MH_I2C_Read... [00:36:49]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [00:36:49]RAPDU: 90 00 [00:36:49]wFMCommunicate OK [00:36:49]SAM_PROTO_ClearQueue done [00:36:49]KKMCreateOFDPacket [00:36:49]OFDProtocolAddRootSTLVToBuf [00:36:49]FM_MakeSignedData [00:36:49]FM_MakeSignedData [00:36:49]SAM_PROTO_SignData [00:36:49]wFMCommunicate request_size=4 [00:36:49]MH_SAM_APDU [00:36:49]CAPDU: 80 0D 01 02 [00:36:49]Write to MH i2c: E2 08 00 09 13 80 0D 01 02 00 00 00 00 95 [00:36:49]Write i2c OK [00:36:49]MH_I2C_Read... [00:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [00:36:50]RAPDU: 90 00 [00:36:50]wFMCommunicate OK [00:36:50]wFMCommunicate request_size=255 [00:36:50]MH_SAM_APDU [00:36:50]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A3 09 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 [00:36:50]Write to MH i2c: E2 02 01 0A 13 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A3 09 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 00 00 8A [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [00:36:50]RAPDU: 90 00 [00:36:50]wFMCommunicate OK [00:36:50]wFMCommunicate request_size=24 [00:36:50]MH_SAM_APDU [00:36:50]CAPDU: 80 0D 02 02 13 36 10 04 04 00 91 49 00 00 35 04 06 00 98 50 DF 39 59 F0 [00:36:50]Write to MH i2c: E2 1B 00 0B 13 80 0D 02 02 13 00 36 10 04 04 00 91 49 00 00 35 04 06 00 98 50 DF 39 59 F0 00 00 6E [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [00:36:50]RAPDU: 90 00 [00:36:50]wFMCommunicate OK [00:36:50]wFMCommunicate request_size=4 [00:36:50]MH_SAM_APDU [00:36:50]CAPDU: 80 0D 03 02 [00:36:50]Write to MH i2c: E2 08 00 0C 13 80 0D 03 02 00 00 00 00 9A [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 0B 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 0B 00 0C 13 00 62 E5 58 51 8E 88 BB 35 90 00 91 [00:36:50]RAPDU: 62 E5 58 51 8E 88 BB 35 90 00 [00:36:50]wFMCommunicate OK [00:36:50]SAM_PROTO_SignData done [00:36:50]FM_MakeSignedData done [00:36:50]CreateOFDProtocolMessage [00:36:50]wFMCommunicate request_size=4 [00:36:50]MH_SAM_APDU [00:36:50]CAPDU: 80 11 00 00 [00:36:50]Write to MH i2c: E2 08 00 0D 13 80 11 00 00 00 00 00 00 9A [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:50]Read from MH i2c: E2 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 17 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: E2 17 00 0D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 F3 [00:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:36:50]wFMCommunicate OK [00:36:50]CreateOFDProtocolMessage done [00:36:50]OFDSenderStorePacket 18833 [00:36:50]StoreOFDPacket docnum=18833 [00:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1D 01 00 00 9C 64 15 01 A8 BB 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A3 09 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 91 49 00 00 35 04 06 00 98 50 DF 39 59 F0 62 E5 58 51 8E 88 BB 35 [00:36:50]CheckFolder [00:36:50]dirname=/storage/ofd_packets [00:36:50]CheckFolder done [00:36:50]ProducePacketName [00:36:50]name=ofd_packets/00018833 [00:36:50]NVStorageSaveData ofd_packets/00018833 [00:36:50]File name is /storage/ofd_packets/00018833 [00:36:50]Write 315 bytes [00:36:50]NVStorageSaveData done [00:36:50]OFDSenderStorePacket done [00:36:50]KKMCreateOFDPacket done [00:36:50]NVStorageSaveData kkm_last_timestamp [00:36:50]File name is /storage/kkm_last_timestamp [00:36:50]Write 4 bytes [00:36:50]NVStorageSaveData done [00:36:50]ExternCall_PrintAddStr [00:36:50]wPrintStart [00:36:50]Write to MH i2c: 01 00 00 0E 13 21 [00:36:50]Write i2c OK [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: 01 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: 01 07 00 [00:36:50]MH_I2C_Read... [00:36:50]Read from MH i2c: 01 07 00 0E 13 00 00 00 00 00 FF 0F 36 [00:36:50]RasterBufferAndPrint [00:36:50]line Счет N : (3)16748 [00:36:50]line ИНН: 02508201610067 [00:36:50]line Контрольно-Кассовый Чек [00:36:50]line ПРОДАЖА [00:36:50]line Товар: 47803152 [00:36:50]line Сигареты Mevius Revo [00:36:50]line 1.000 * 159.00 [00:36:50]line = 159.00 [00:36:50]line НДС 12% НСП 1% [00:36:50]line > о реализуемом товаре [00:36:50]line ИТОГО: 159.00 [00:36:50]line НСП 1% : 1.41 [00:36:50]line НДС 12% : 16.88 [00:36:50]line Наличными: 159.00 [00:36:50]line Безнал.: 0.00 [00:36:50]line Место: АЗС № 176 "Партнер Нефть" [00:36:50]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:36:50]line СНО: Общий режим [00:36:50]line Чек 3 24.09.2024 00:36 [00:36:50]line Смена: 182 ФФД: 1.0 [00:36:50]line ЗНМ: 0300000010 [00:36:50]line РНМ: 0000000000152968 [00:36:50]line Версия ККМ: v1.0 [00:36:50]line ФМ: 0000000000959456 [00:36:50]line ФД: 18833 [00:36:50]line ФПД: 167473109883376 [00:36:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T003651&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18833&fm=167473109883376&tin=02508201610067®Number=0000000000152968&sum=15900 [00:36:50]line 0 [00:36:50]OFD Sender: Processing packet 18833 [packets to send 7, broken 6] [00:36:50]ProducePacketName [00:36:50]name=ofd_packets/00018833 [00:36:50]OFD Sender: To server: pG, [00:36:50]CommunicateWithHost lk.salyk.kg:30040 [00:36:50]ConnectInit lk.salyk.kg [00:36:50]written 0, free lines is 4095 [00:36:50]Connected sock=10 [00:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 1D 01 00 00 9C 64 15 01 A8 BB 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A3 09 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 91 49 00 00 35 04 06 00 98 50 DF 39 59 F0 62 E5 58 51 8E 88 BB 35 [00:36:51]Write to MH i2c: 01 00 00 36 13 49 [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: 01 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: 01 07 00 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 27 0D 84 [00:36:51]RasterBufferAndPrint [00:36:51]line [00:36:51]line [00:36:51]line [00:36:51]line [00:36:51]line [00:36:51]written 0, free lines is 3373 [00:36:51]MH_Cut [00:36:51]Write to MH i2c: D1 01 00 3D 13 01 22 [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: D1 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: D1 01 00 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: D1 01 00 3D 13 00 21 [00:36:51]Write to MH i2c: 01 00 00 3E 13 51 [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 E7 70 47 00 16 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 35 39 34 35 36 10 04 04 00 91 49 00 00 F4 03 04 00 06 B3 F1 66 B6 04 01 00 00 EC 8B 05 97 56 15 1E 4C [00:36:51]CommunicateWithHost err = 0 [00:36:51]CheckOFDResponse [00:36:51]1017 (14) - 77093643461234 [00:36:51]1041 (16) - 0000000000959456 [00:36:51]1040 (4) - 18833 [00:36:51]1012 (4) - 23.09.2024 18:27 [00:36:51]1206 (1) - 0 [00:36:51]OFD Sender: Remove packet 18833 [00:36:51]ProducePacketName [00:36:51]name=ofd_packets/00018833 [00:36:51]NVStorageDeleteData [00:36:51]OFD Sender: No OFD packet to send [00:36:51]*** Cut start [00:36:51]*** Partial cut [00:36:51]*** CUTSNS_PIN = 1 [00:36:51]*** CUTSNS_PIN = 0 [00:36:52]*** Brake cut motor [00:36:52]Read from MH i2c: 01 [00:36:52]MH_I2C_Read... [00:36:52]*** Stop cut motor [00:36:52]*** Cut end [00:36:52]Read from MH i2c: 01 07 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: 01 07 00 3E 13 00 00 00 00 00 FF 0F 66 [00:36:52]process_action close_receipt done [00:36:52]requested_data is exist [00:36:52]produce_requested_data [00:36:52]requested_item fm.sn is exist - process it [00:36:52]wFMCommunicate request_size=4 [00:36:52]MH_SAM_APDU [00:36:52]CAPDU: 80 11 00 00 [00:36:52]Write to MH i2c: E2 08 00 3F 13 80 11 00 00 00 00 00 00 CC [00:36:52]Write i2c OK [00:36:52]MH_I2C_Read... [00:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:52]Read from MH i2c: E2 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 17 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 17 00 3F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 25 [00:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:36:52]wFMCommunicate OK [00:36:52]requested_item fd.num is exist - process it [00:36:52]SAM_PROTO_GetFieldsCounters [00:36:52]wFMCommunicate request_size=4 [00:36:52]MH_SAM_APDU [00:36:52]CAPDU: 80 13 00 00 [00:36:52]Write to MH i2c: E2 08 00 40 13 80 13 00 00 00 00 00 00 CF [00:36:52]Write i2c OK [00:36:52]MH_I2C_Read... [00:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:52]Read from MH i2c: E2 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 62 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 62 00 40 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 91 49 00 00 0E 04 04 00 B6 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 95 [00: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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 91 49 00 00 0E 04 04 00 B6 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:36:52]wFMCommunicate OK [00:36:52]SAM_PROTO_GetFieldsCounters done [00:36:52]requested_item shift.num is exist - process it [00:36:52]requested_item shift.opened is exist - process it [00:36:52]req_shift_opened [00:36:52]FM_GetShiftState [00:36:52]SAM_PROTO_GetShiftState [00:36:52]wFMCommunicate request_size=4 [00:36:52]MH_SAM_APDU [00:36:52]CAPDU: 80 13 01 00 [00:36:52]Write to MH i2c: E2 08 00 41 13 80 13 01 00 00 00 00 00 D1 [00:36:52]Write i2c OK [00:36:52]MH_I2C_Read... [00:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:52]Read from MH i2c: E2 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 0E 00 [00:36:52]MH_I2C_Read... [00:36:52]Read from MH i2c: E2 0E 00 41 13 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 08 [00:36:52]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:36:52]wFMCommunicate OK [00:36:52]SAM_PROTO_GetShiftState done [00:36:52]FM_GetShiftState done [00:36:52]req_shift_opened done [00:36:52]requested_item shift.open_date is exist - process it [00:36:52]req_shift_open_date [00:36:52]req_shift_open_date done [00:36:52]produce_requested_data done [00:36:52]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18833,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [00:36:52]process_action_free close_receipt [00:36:52]json_value_free [00:36:52]json_value_free done [00:36:52]process_json_proto returns [00:36:52]Send response to host [00:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18833,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [00:36:52]free response buf [00:36:52]execute_script done [00:36:52]execute_script returns [00:36:52]free content buf [00:36:52]Sock 9.Close socket [00:36:52]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41: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:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:08]accept exits with 7 [00:48:08]New connection [00:48:08]New thread 3066752356 created [00:48:08]Thread 3066608996 joined [00:48:08]Waiting for new connection... [00:48:08] Sock 7.Parse request [00:48:08]Sock 7.Check first char [00:48:08]Sock 7.First char is OK [00:48:08]request: POST /json_proto HTTP/1.0 [00:48:08]Method: POST [00:48:08]URL: /json_proto [00:48:08]Method is POST - this is cgi request [00:48:08]url: /json_proto [00:48:08]query_string will be loaded in cgi processing [00:48:08]execute_cgi json_proto POST (null) [00:48:08]execute_cgi path=json_proto method=POST [00:48:08]POST find Content-Length [00:48:08]Host: 172.17.62.196:8080 [00:48:08]Content-Length: 674 [00:48:08]Content-Type: application/json [00:48:08] [00:48:08]POST finish read [00:48:08]Found Content-Length = 674 [00:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16749", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 28.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:08]execute_script... [00:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16749", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 28.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:08]POST & json_proto [00:48:08]process_json_proto [00:48:08]json parsed OK: [00:48:08]protocol is kg_v1.0 [00:48:08]action value=close_receipt [00:48:08]process_action close_receipt [00:48:08]cmd_close_receipt [00:48:08]MH_GetDate [00:48:08]Write to MH i2c: F0 00 00 42 13 44 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: F0 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: F0 09 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: F0 09 00 42 13 00 4B 0C F2 66 CE CC 0E 66 0A [00:48:08]GetLastDocTimeStamp 1727138211 [00:48:08]current date 1727138891 [00:48:08]FM_GetShiftState [00:48:08]SAM_PROTO_GetShiftState [00:48:08]wFMCommunicate request_size=4 [00:48:08]MH_SAM_APDU [00:48:08]CAPDU: 80 13 01 00 [00:48:08]Write to MH i2c: E2 08 00 43 13 80 13 01 00 00 00 00 00 D3 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:08]Read from MH i2c: E2 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 0E 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 0E 00 43 13 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 0A [00:48:08]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:48:08]wFMCommunicate OK [00:48:08]SAM_PROTO_GetShiftState done [00:48:08]FM_GetShiftState done [00:48:08]opened in 1727136720 [00:48:08]opened+sec_in_day 1727223120 [00:48:08]quantity*price = 2800 [00:48:08]sum+1 = 2801 [00:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 28.00 НСП 1% : 0.25 НДС 12% : 2.97 Наличными: 28.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 4 24.09.2024 00:48 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18834 ФПД: 17024404172931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T004811&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18834&fm=17024404172931&tin=02508201610067®Number=0000000000152968&sum=2800 0 [00:48:09]StoreToDocumentArchive [00:48:09]shift 182 fd 18834 [00:48:09]save to /storage/0182/doc_00018834 [00:48:09]save last doc name /storage/0182/doc_00018834 to /storage/kkm_last_doc_name [00:48:09]save OK [00:48:09]Clear old archive folders... [00:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=287 [00:48:09]tlvbuf is B6E775E0 [00:48:09]SAM_PROTO_ClearQueue [00:48:09]wFMCommunicate request_size=4 [00:48:09]MH_SAM_APDU [00:48:09]CAPDU: 80 09 00 00 [00:48:09]Write to MH i2c: E2 08 00 50 13 80 09 00 00 00 00 00 00 D5 [00:48:09]Write i2c OK [00:48:09]MH_I2C_Read... [00:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:09]Read from MH i2c: E2 [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: E2 03 00 [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: E2 03 00 50 13 00 90 00 D7 [00:48:09]RAPDU: 90 00 [00:48:09]wFMCommunicate OK [00:48:09]SAM_PROTO_ClearQueue done [00:48:09]KKMCreateOFDPacket [00:48:09]OFDProtocolAddRootSTLVToBuf [00:48:09]FM_MakeSignedData [00:48:09]FM_MakeSignedData [00:48:09]SAM_PROTO_SignData [00:48:09]wFMCommunicate request_size=4 [00:48:09]MH_SAM_APDU [00:48:09]CAPDU: 80 0D 01 02 [00:48:09]Write to MH i2c: E2 08 00 51 13 80 0D 01 02 00 00 00 00 DD [00:48:09]Write i2c OK [00:48:09]MH_I2C_Read... [00:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:09]Read from MH i2c: E2 [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: E2 03 00 [00:48:09]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 03 00 51 13 00 90 00 D8 [00:48:10]RAPDU: 90 00 [00:48:10]wFMCommunicate OK [00:48:10]wFMCommunicate request_size=255 [00:48:10]MH_SAM_APDU [00:48:10]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 4B 0C F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 [00:48:10]Write to MH i2c: E2 02 01 52 13 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 4B 0C F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 00 00 EA [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:10]Read from MH i2c: E2 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 03 00 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 03 00 52 13 00 90 00 D9 [00:48:10]RAPDU: 90 00 [00:48:10]wFMCommunicate OK [00:48:10]wFMCommunicate request_size=46 [00:48:10]MH_SAM_APDU [00:48:10]CAPDU: 80 0D 02 02 29 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 92 49 00 00 35 04 06 00 0F 7B CD 90 30 83 [00:48:10]Write to MH i2c: E2 31 00 53 13 80 0D 02 02 29 00 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 92 49 00 00 35 04 06 00 0F 7B CD 90 30 83 00 00 F0 [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:10]Read from MH i2c: E2 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 03 00 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 03 00 53 13 00 90 00 DA [00:48:10]RAPDU: 90 00 [00:48:10]wFMCommunicate OK [00:48:10]wFMCommunicate request_size=4 [00:48:10]MH_SAM_APDU [00:48:10]CAPDU: 80 0D 03 02 [00:48:10]Write to MH i2c: E2 08 00 54 13 80 0D 03 02 00 00 00 00 E2 [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:10]Read from MH i2c: E2 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 0B 00 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 0B 00 54 13 00 92 2D A2 4B 58 5D 37 9A 90 00 15 [00:48:10]RAPDU: 92 2D A2 4B 58 5D 37 9A 90 00 [00:48:10]wFMCommunicate OK [00:48:10]SAM_PROTO_SignData done [00:48:10]FM_MakeSignedData done [00:48:10]CreateOFDProtocolMessage [00:48:10]wFMCommunicate request_size=4 [00:48:10]MH_SAM_APDU [00:48:10]CAPDU: 80 11 00 00 [00:48:10]Write to MH i2c: E2 08 00 55 13 80 11 00 00 00 00 00 00 E2 [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:10]Read from MH i2c: E2 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 17 00 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 17 00 55 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 3B [00:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:48:10]wFMCommunicate OK [00:48:10]CreateOFDProtocolMessage done [00:48:10]OFDSenderStorePacket 18834 [00:48:10]StoreOFDPacket docnum=18834 [00:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 0A 8C 2B 01 81 26 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 4B 0C F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 92 49 00 00 35 04 06 00 0F 7B CD 90 30 83 92 2D A2 4B 58 5D 37 9A [00:48:10]CheckFolder [00:48:10]dirname=/storage/ofd_packets [00:48:10]CheckFolder done [00:48:10]ProducePacketName [00:48:10]name=ofd_packets/00018834 [00:48:10]NVStorageSaveData ofd_packets/00018834 [00:48:10]File name is /storage/ofd_packets/00018834 [00:48:10]Write 337 bytes [00:48:10]NVStorageSaveData done [00:48:10]OFDSenderStorePacket done [00:48:10]KKMCreateOFDPacket done [00:48:10]NVStorageSaveData kkm_last_timestamp [00:48:10]File name is /storage/kkm_last_timestamp [00:48:10]Write 4 bytes [00:48:10]NVStorageSaveData done [00:48:10]ExternCall_PrintAddStr [00:48:10]wPrintStart [00:48:10]Write to MH i2c: 01 00 00 56 13 69 [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: 01 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: 01 07 00 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: 01 07 00 56 13 00 00 00 00 00 FF 0F 7E [00:48:10]RasterBufferAndPrint [00:48:10]line Счет N : (3)16749 [00:48:10]line ИНН: 02508201610067 [00:48:10]line Контрольно-Кассовый Чек [00:48:10]line ПРОДАЖА [00:48:10]line Товар: 2000053020015 [00:48:10]line Бумажные стаканы 250мл 1шт [00:48:10]line 4.000 * 7.00 [00:48:10]line = 28.00 [00:48:10]line НДС 12% НСП 1% [00:48:10]line > о реализуемом товаре [00:48:10]line ИТОГО: 28.00 [00:48:10]line НСП 1% : 0.25 [00:48:10]line НДС 12% : 2.97 [00:48:10]line Наличными: 28.00 [00:48:10]line Безнал.: 0.00 [00:48:10]line Место: АЗС № 176 "Партнер Нефть" [00:48:10]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [00:48:10]line СНО: Общий режим [00:48:10]line Чек 4 24.09.2024 00:48 [00:48:10]line Смена: 182 ФФД: 1.0 [00:48:10]line ЗНМ: 0300000010 [00:48:10]line РНМ: 0000000000152968 [00:48:10]line Версия ККМ: v1.0 [00:48:10]line ФМ: 0000000000959456 [00:48:10]line ФД: 18834 [00:48:10]line ФПД: 17024404172931 [00:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T004811&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18834&fm=17024404172931&tin=02508201610067®Number=0000000000152968&sum=2800 [00:48:10]line 0 [00:48:10]OFD Sender: Processing packet 18834 [packets to send 7, broken 6] [00:48:10]ProducePacketName [00:48:10]name=ofd_packets/00018834 [00:48:10]OFD Sender: To server: pG, [00:48:10]CommunicateWithHost lk.salyk.kg:30040 [00:48:10]ConnectInit lk.salyk.kg [00:48:10]written 0, free lines is 4095 [00:48:10]Connected sock=6 [00:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 33 01 00 00 0A 8C 2B 01 81 26 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 01 00 00 00 00 07 04 06 00 F0 0A 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 4B 0C F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 92 49 00 00 35 04 06 00 0F 7B CD 90 30 83 92 2D A2 4B 58 5D 37 9A [00:48:11]Write to MH i2c: 01 00 00 7F 13 92 [00:48:11]Write i2c OK [00:48:11]MH_I2C_Read... [00:48:11]Read from MH i2c: 01 [00:48:11]MH_I2C_Read... [00:48:11]Read from MH i2c: 01 07 00 [00:48:11]MH_I2C_Read... [00:48:11]Read from MH i2c: 01 07 00 7F 13 00 00 00 00 00 EF 0C 94 [00:48:11]RasterBufferAndPrint [00:48:11]line [00:48:11]line [00:48:11]line [00:48:11]line [00:48:11]line [00:48:11]written 0, free lines is 3317 [00:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 A0 F4 47 00 46 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 35 39 34 35 36 10 04 04 00 92 49 00 00 F4 03 04 00 AE B5 F1 66 B6 04 01 00 00 56 A7 8B C8 3C BF BE A1 [00:48:11]CommunicateWithHost err = 0 [00:48:11]CheckOFDResponse [00:48:11]1017 (14) - 77093643461234 [00:48:11]1041 (16) - 0000000000959456 [00:48:11]1040 (4) - 18834 [00:48:11]1012 (4) - 23.09.2024 18:38 [00:48:11]1206 (1) - 0 [00:48:11]OFD Sender: Remove packet 18834 [00:48:11]ProducePacketName [00:48:11]name=ofd_packets/00018834 [00:48:11]NVStorageDeleteData [00:48:11]MH_Cut [00:48:11]Write to MH i2c: D1 01 00 86 13 01 6B [00:48:11]Write i2c OK [00:48:11]MH_I2C_Read... [00:48:11]Read from MH i2c: D1 [00:48:11]MH_I2C_Read... [00:48:11]Read from MH i2c: D1 01 00 [00:48:11]MH_I2C_Read... [00:48:11]Read from MH i2c: D1 01 00 86 13 00 6A [00:48:11]Write to MH i2c: 01 00 00 87 13 9A [00:48:11]Write i2c OK [00:48:11]MH_I2C_Read... [00:48:11]OFD Sender: No OFD packet to send [00:48:11]*** Cut start [00:48:11]*** Partial cut [00:48:11]*** CUTSNS_PIN = 1 [00:48:11]*** CUTSNS_PIN = 0 [00:48:12]*** Brake cut motor [00:48:12]Read from MH i2c: 01 [00:48:12]MH_I2C_Read... [00:48:12]*** Stop cut motor [00:48:12]*** Cut end [00:48:12]Read from MH i2c: 01 07 00 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: 01 07 00 87 13 00 00 00 00 00 FF 0F AF [00:48:12]process_action close_receipt done [00:48:12]requested_data is exist [00:48:12]produce_requested_data [00:48:12]requested_item fm.sn is exist - process it [00:48:12]wFMCommunicate request_size=4 [00:48:12]MH_SAM_APDU [00:48:12]CAPDU: 80 11 00 00 [00:48:12]Write to MH i2c: E2 08 00 88 13 80 11 00 00 00 00 00 00 15 [00:48:12]Write i2c OK [00:48:12]MH_I2C_Read... [00:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:12]Read from MH i2c: E2 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 17 00 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 17 00 88 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 6E [00:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [00:48:12]wFMCommunicate OK [00:48:12]requested_item fd.num is exist - process it [00:48:12]SAM_PROTO_GetFieldsCounters [00:48:12]wFMCommunicate request_size=4 [00:48:12]MH_SAM_APDU [00:48:12]CAPDU: 80 13 00 00 [00:48:12]Write to MH i2c: E2 08 00 89 13 80 13 00 00 00 00 00 00 18 [00:48:12]Write i2c OK [00:48:12]MH_I2C_Read... [00:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:12]Read from MH i2c: E2 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 62 00 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 62 00 89 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 92 49 00 00 0E 04 04 00 B6 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 E2 [00:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 92 49 00 00 0E 04 04 00 B6 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:48:12]wFMCommunicate OK [00:48:12]SAM_PROTO_GetFieldsCounters done [00:48:12]requested_item shift.num is exist - process it [00:48:12]requested_item shift.opened is exist - process it [00:48:12]req_shift_opened [00:48:12]FM_GetShiftState [00:48:12]SAM_PROTO_GetShiftState [00:48:12]wFMCommunicate request_size=4 [00:48:12]MH_SAM_APDU [00:48:12]CAPDU: 80 13 01 00 [00:48:12]Write to MH i2c: E2 08 00 8A 13 80 13 01 00 00 00 00 00 1A [00:48:12]Write i2c OK [00:48:12]MH_I2C_Read... [00:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:12]Read from MH i2c: E2 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 0E 00 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: E2 0E 00 8A 13 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 51 [00:48:12]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [00:48:12]wFMCommunicate OK [00:48:12]SAM_PROTO_GetShiftState done [00:48:12]FM_GetShiftState done [00:48:12]req_shift_opened done [00:48:12]requested_item shift.open_date is exist - process it [00:48:12]req_shift_open_date [00:48:12]req_shift_open_date done [00:48:12]produce_requested_data done [00:48:12]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18834,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [00:48:12]process_action_free close_receipt [00:48:12]json_value_free [00:48:12]json_value_free done [00:48:12]process_json_proto returns [00:48:12]Send response to host [00:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18834,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [00:48:12]free response buf [00:48:12]execute_script done [00:48:12]execute_script returns [00:48:12]free content buf [00:48:12]Sock 7.Close socket [00:48:12]Sock 7.Thread stoped [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:11]accept exits with 9 [01:08:11]New connection [01:08:11]New thread 3066608996 created [01:08:11]Thread 3066752356 joined [01:08:11]Waiting for new connection... [01:08:11] Sock 9.Parse request [01:08:11]Sock 9.Check first char [01:08:11]Sock 9.First char is OK [01:08:11]request: POST /json_proto HTTP/1.0 [01:08:11]Method: POST [01:08:11]URL: /json_proto [01:08:11]Method is POST - this is cgi request [01:08:11]url: /json_proto [01:08:11]query_string will be loaded in cgi processing [01:08:11]execute_cgi json_proto POST (null) [01:08:11]execute_cgi path=json_proto method=POST [01:08:11]POST find Content-Length [01:08:11]Host: 172.17.62.196:8080 [01:08:11]Content-Length: 643 [01:08:11]Content-Type: application/json [01:08:11] [01:08:11]POST finish read [01:08:11]Found Content-Length = 643 [01:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16750", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 8.000, "sum" : 472.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 472.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:11]execute_script... [01:08:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16750", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 8.000, "sum" : 472.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 472.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:11]POST & json_proto [01:08:11]process_json_proto [01:08:11]json parsed OK: [01:08:11]protocol is kg_v1.0 [01:08:11]action value=close_receipt [01:08:11]process_action close_receipt [01:08:11]cmd_close_receipt [01:08:11]MH_GetDate [01:08:11]Write to MH i2c: F0 00 00 8B 13 8D [01:08:11]Write i2c OK [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: F0 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: F0 09 00 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: F0 09 00 8B 13 00 FE 10 F2 66 CE CC 0E 66 0A [01:08:11]GetLastDocTimeStamp 1727138891 [01:08:11]current date 1727140094 [01:08:11]FM_GetShiftState [01:08:11]SAM_PROTO_GetShiftState [01:08:11]wFMCommunicate request_size=4 [01:08:11]MH_SAM_APDU [01:08:11]CAPDU: 80 13 01 00 [01:08:11]Write to MH i2c: E2 08 00 8C 13 80 13 01 00 00 00 00 00 1C [01:08:11]Write i2c OK [01:08:11]MH_I2C_Read... [01:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:11]Read from MH i2c: E2 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 0E 00 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 0E 00 8C 13 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 53 [01:08:11]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [01:08:11]wFMCommunicate OK [01:08:11]SAM_PROTO_GetShiftState done [01:08:11]FM_GetShiftState done [01:08:11]opened in 1727136720 [01:08:11]opened+sec_in_day 1727223120 [01:08:11]quantity*price = 47200 [01:08:11]sum+1 = 47201 [01:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 472.00 НСП 1% : 4.18 НДС 12% : 50.12 Наличными: 472.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 5 24.09.2024 01:08 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18835 ФПД: 187316042367954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T010815&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18835&fm=187316042367954&tin=02508201610067®Number=0000000000152968&sum=47200 0 [01:08:12]StoreToDocumentArchive [01:08:12]shift 182 fd 18835 [01:08:12]save to /storage/0182/doc_00018835 [01:08:12]save last doc name /storage/0182/doc_00018835 to /storage/kkm_last_doc_name [01:08:12]save OK [01:08:12]Clear old archive folders... [01:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=281 [01:08:12]tlvbuf is 00C499A0 [01:08:12]SAM_PROTO_ClearQueue [01:08:12]wFMCommunicate request_size=4 [01:08:12]MH_SAM_APDU [01:08:12]CAPDU: 80 09 00 00 [01:08:12]Write to MH i2c: E2 08 00 99 13 80 09 00 00 00 00 00 00 1E [01:08:12]Write i2c OK [01:08:12]MH_I2C_Read... [01:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:12]Read from MH i2c: E2 [01:08:12]MH_I2C_Read... [01:08:12]Read from MH i2c: E2 03 00 [01:08:12]MH_I2C_Read... [01:08:12]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [01:08:12]RAPDU: 90 00 [01:08:12]wFMCommunicate OK [01:08:12]SAM_PROTO_ClearQueue done [01:08:12]KKMCreateOFDPacket [01:08:12]OFDProtocolAddRootSTLVToBuf [01:08:12]FM_MakeSignedData [01:08:12]FM_MakeSignedData [01:08:12]SAM_PROTO_SignData [01:08:12]wFMCommunicate request_size=4 [01:08:12]MH_SAM_APDU [01:08:12]CAPDU: 80 0D 01 02 [01:08:12]Write to MH i2c: E2 08 00 9A 13 80 0D 01 02 00 00 00 00 26 [01:08:12]Write i2c OK [01:08:12]MH_I2C_Read... [01:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:13]Read from MH i2c: E2 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 03 00 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 03 00 9A 13 00 90 00 21 [01:08:13]RAPDU: 90 00 [01:08:13]wFMCommunicate OK [01:08:13]wFMCommunicate request_size=255 [01:08:13]MH_SAM_APDU [01:08:13]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 60 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 13 00 00 00 00 07 04 06 00 60 B8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF 10 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 [01:08:13]Write to MH i2c: E2 02 01 9B 13 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 60 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 13 00 00 00 00 07 04 06 00 60 B8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF 10 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 00 D0 [01:08:13]Write i2c OK [01:08:13]MH_I2C_Read... [01:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:13]Read from MH i2c: E2 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 03 00 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 03 00 9B 13 00 90 00 22 [01:08:13]RAPDU: 90 00 [01:08:13]wFMCommunicate OK [01:08:13]wFMCommunicate request_size=40 [01:08:13]MH_SAM_APDU [01:08:13]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 93 49 00 00 35 04 06 00 AA 5C EA 2A 83 D2 [01:08:13]Write to MH i2c: E2 2B 00 9C 13 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 93 49 00 00 35 04 06 00 AA 5C EA 2A 83 D2 00 00 37 [01:08:13]Write i2c OK [01:08:13]MH_I2C_Read... [01:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:13]Read from MH i2c: E2 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 03 00 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 03 00 9C 13 00 90 00 23 [01:08:13]RAPDU: 90 00 [01:08:13]wFMCommunicate OK [01:08:13]wFMCommunicate request_size=4 [01:08:13]MH_SAM_APDU [01:08:13]CAPDU: 80 0D 03 02 [01:08:13]Write to MH i2c: E2 08 00 9D 13 80 0D 03 02 00 00 00 00 2B [01:08:13]Write i2c OK [01:08:13]MH_I2C_Read... [01:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:13]Read from MH i2c: E2 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 0B 00 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 0B 00 9D 13 00 06 94 86 8F 5B A2 26 18 90 00 16 [01:08:13]RAPDU: 06 94 86 8F 5B A2 26 18 90 00 [01:08:13]wFMCommunicate OK [01:08:13]SAM_PROTO_SignData done [01:08:13]FM_MakeSignedData done [01:08:13]CreateOFDProtocolMessage [01:08:13]wFMCommunicate request_size=4 [01:08:13]MH_SAM_APDU [01:08:13]CAPDU: 80 11 00 00 [01:08:13]Write to MH i2c: E2 08 00 9E 13 80 11 00 00 00 00 00 00 2B [01:08:13]Write i2c OK [01:08:13]MH_I2C_Read... [01:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:13]Read from MH i2c: E2 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 17 00 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: E2 17 00 9E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 84 [01:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [01:08:13]wFMCommunicate OK [01:08:13]CreateOFDProtocolMessage done [01:08:13]OFDSenderStorePacket 18835 [01:08:13]StoreOFDPacket docnum=18835 [01:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 88 D5 25 01 8B 50 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 60 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 13 00 00 00 00 07 04 06 00 60 B8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF 10 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 93 49 00 00 35 04 06 00 AA 5C EA 2A 83 D2 06 94 86 8F 5B A2 26 18 [01:08:13]CheckFolder [01:08:13]dirname=/storage/ofd_packets [01:08:13]CheckFolder done [01:08:13]ProducePacketName [01:08:13]name=ofd_packets/00018835 [01:08:13]NVStorageSaveData ofd_packets/00018835 [01:08:13]File name is /storage/ofd_packets/00018835 [01:08:13]Write 331 bytes [01:08:13]NVStorageSaveData done [01:08:13]OFDSenderStorePacket done [01:08:13]KKMCreateOFDPacket done [01:08:13]NVStorageSaveData kkm_last_timestamp [01:08:13]File name is /storage/kkm_last_timestamp [01:08:13]Write 4 bytes [01:08:13]NVStorageSaveData done [01:08:13]ExternCall_PrintAddStr [01:08:13]wPrintStart [01:08:13]Write to MH i2c: 01 00 00 9F 13 B2 [01:08:13]Write i2c OK [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: 01 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: 01 07 00 [01:08:13]MH_I2C_Read... [01:08:13]Read from MH i2c: 01 07 00 9F 13 00 00 00 00 00 FF 0F C7 [01:08:13]RasterBufferAndPrint [01:08:13]line Счет N : (3)16750 [01:08:13]line ИНН: 02508201610067 [01:08:13]line Контрольно-Кассовый Чек [01:08:13]line ПРОДАЖА [01:08:13]line Товар: 4607065001445 [01:08:13]line Шок батончик Snickers 50,5г [01:08:13]line 8.000 * 59.00 [01:08:13]line = 472.00 [01:08:13]line НДС 12% НСП 1% [01:08:13]line > о реализуемом товаре [01:08:13]line ИТОГО: 472.00 [01:08:13]line НСП 1% : 4.18 [01:08:13]line НДС 12% : 50.12 [01:08:13]line Наличными: 472.00 [01:08:13]line Безнал.: 0.00 [01:08:13]line Место: АЗС № 176 "Партнер Нефть" [01:08:13]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [01:08:13]line СНО: Общий режим [01:08:13]line Чек 5 24.09.2024 01:08 [01:08:13]line Смена: 182 ФФД: 1.0 [01:08:13]line ЗНМ: 0300000010 [01:08:13]line РНМ: 0000000000152968 [01:08:13]line Версия ККМ: v1.0 [01:08:13]line ФМ: 0000000000959456 [01:08:13]line ФД: 18835 [01:08:13]line ФПД: 187316042367954 [01:08:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T010815&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18835&fm=187316042367954&tin=02508201610067®Number=0000000000152968&sum=47200 [01:08:13]line 0 [01:08:13]OFD Sender: Processing packet 18835 [packets to send 7, broken 6] [01:08:13]ProducePacketName [01:08:13]name=ofd_packets/00018835 [01:08:13]OFD Sender: To server: pG, [01:08:13]CommunicateWithHost lk.salyk.kg:30040 [01:08:13]ConnectInit lk.salyk.kg [01:08:13]written 0, free lines is 4095 [01:08:13]Connected sock=10 [01:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 2D 01 00 00 88 D5 25 01 8B 50 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 60 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 13 00 00 00 00 07 04 06 00 60 B8 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FF 10 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 93 49 00 00 35 04 06 00 AA 5C EA 2A 83 D2 06 94 86 8F 5B A2 26 18 [01:08:14]Write to MH i2c: 01 00 00 C7 13 DA [01:08:14]Write i2c OK [01:08:14]MH_I2C_Read... [01:08:14]Read from MH i2c: 01 [01:08:14]MH_I2C_Read... [01:08:14]Read from MH i2c: 01 07 00 [01:08:14]MH_I2C_Read... [01:08:14]Read from MH i2c: 01 07 00 C7 13 00 00 00 00 00 27 0D 15 [01:08:14]RasterBufferAndPrint [01:08:14]line [01:08:14]line [01:08:14]line [01:08:14]line [01:08:14]line [01:08:14]written 0, free lines is 3373 [01:08:14]MH_Cut [01:08:14]Write to MH i2c: D1 01 00 CE 13 01 B3 [01:08:14]Write i2c OK [01:08:14]MH_I2C_Read... [01:08:14]Read from MH i2c: D1 [01:08:14]MH_I2C_Read... [01:08:14]Read from MH i2c: D1 01 00 [01:08:14]MH_I2C_Read... [01:08:14]Read from MH i2c: D1 01 00 CE 13 00 B2 [01:08:14]Write to MH i2c: 01 00 00 CF 13 E2 [01:08:14]Write i2c OK [01:08:14]MH_I2C_Read... [01:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 16 14 47 00 A2 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 35 39 34 35 36 10 04 04 00 93 49 00 00 F4 03 04 00 61 BA F1 66 B6 04 01 00 00 9F 63 AB 9C B5 BD 5C 1A [01:08:14]CommunicateWithHost err = 0 [01:08:14]CheckOFDResponse [01:08:14]1017 (14) - 77093643461234 [01:08:14]1041 (16) - 0000000000959456 [01:08:14]1040 (4) - 18835 [01:08:14]1012 (4) - 23.09.2024 18:58 [01:08:14]1206 (1) - 0 [01:08:14]OFD Sender: Remove packet 18835 [01:08:14]ProducePacketName [01:08:14]name=ofd_packets/00018835 [01:08:14]NVStorageDeleteData [01:08:14]OFD Sender: No OFD packet to send [01:08:14]*** Cut start [01:08:14]*** Partial cut [01:08:14]*** CUTSNS_PIN = 1 [01:08:14]*** CUTSNS_PIN = 0 [01:08:15]*** Brake cut motor [01:08:15]Read from MH i2c: 01 [01:08:15]MH_I2C_Read... [01:08:15]*** Stop cut motor [01:08:15]*** Cut end [01:08:15]Read from MH i2c: 01 07 00 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 FF 0F F7 [01:08:15]process_action close_receipt done [01:08:15]requested_data is exist [01:08:15]produce_requested_data [01:08:15]requested_item fm.sn is exist - process it [01:08:15]wFMCommunicate request_size=4 [01:08:15]MH_SAM_APDU [01:08:15]CAPDU: 80 11 00 00 [01:08:15]Write to MH i2c: E2 08 00 D0 13 80 11 00 00 00 00 00 00 5D [01:08:15]Write i2c OK [01:08:15]MH_I2C_Read... [01:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:15]Read from MH i2c: E2 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 17 00 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 17 00 D0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 B6 [01:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [01:08:15]wFMCommunicate OK [01:08:15]requested_item fd.num is exist - process it [01:08:15]SAM_PROTO_GetFieldsCounters [01:08:15]wFMCommunicate request_size=4 [01:08:15]MH_SAM_APDU [01:08:15]CAPDU: 80 13 00 00 [01:08:15]Write to MH i2c: E2 08 00 D1 13 80 13 00 00 00 00 00 00 60 [01:08:15]Write i2c OK [01:08:15]MH_I2C_Read... [01:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:15]Read from MH i2c: E2 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 62 00 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 62 00 D1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 93 49 00 00 0E 04 04 00 B6 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 [01:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 93 49 00 00 0E 04 04 00 B6 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 [01:08:15]wFMCommunicate OK [01:08:15]SAM_PROTO_GetFieldsCounters done [01:08:15]requested_item shift.num is exist - process it [01:08:15]requested_item shift.opened is exist - process it [01:08:15]req_shift_opened [01:08:15]FM_GetShiftState [01:08:15]SAM_PROTO_GetShiftState [01:08:15]wFMCommunicate request_size=4 [01:08:15]MH_SAM_APDU [01:08:15]CAPDU: 80 13 01 00 [01:08:15]Write to MH i2c: E2 08 00 D2 13 80 13 01 00 00 00 00 00 62 [01:08:15]Write i2c OK [01:08:15]MH_I2C_Read... [01:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:15]Read from MH i2c: E2 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 0E 00 [01:08:15]MH_I2C_Read... [01:08:15]Read from MH i2c: E2 0E 00 D2 13 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 99 [01:08:15]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [01:08:15]wFMCommunicate OK [01:08:15]SAM_PROTO_GetShiftState done [01:08:15]FM_GetShiftState done [01:08:15]req_shift_opened done [01:08:15]requested_item shift.open_date is exist - process it [01:08:15]req_shift_open_date [01:08:15]req_shift_open_date done [01:08:15]produce_requested_data done [01:08:15]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18835,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [01:08:15]process_action_free close_receipt [01:08:15]json_value_free [01:08:15]json_value_free done [01:08:15]process_json_proto returns [01:08:15]Send response to host [01:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18835,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [01:08:15]free response buf [01:08:15]execute_script done [01:08:15]execute_script returns [01:08:15]free content buf [01:08:15]Sock 9.Close socket [01:08:15]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]ConnectInit Can't connect to host [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:47]accept exits with 7 [01:35:47]New connection [01:35:47]New thread 3066752356 created [01:35:47]Thread 3066608996 joined [01:35:47]Waiting for new connection... [01:35:47] Sock 7.Parse request [01:35:47]Sock 7.Check first char [01:35:47]Sock 7.First char is OK [01:35:47]request: POST /json_proto HTTP/1.0 [01:35:47]Method: POST [01:35:47]URL: /json_proto [01:35:47]Method is POST - this is cgi request [01:35:47]url: /json_proto [01:35:47]query_string will be loaded in cgi processing [01:35:47]execute_cgi json_proto POST (null) [01:35:47]execute_cgi path=json_proto method=POST [01:35:47]POST find Content-Length [01:35:47]Host: 172.17.62.196:8080 [01:35:47]Content-Length: 885 [01:35:47]Content-Type: application/json [01:35:47] [01:35:47]POST finish read [01:35:47]Found Content-Length = 885 [01:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16751", "tax_sys" : 0, "items" : [ { "code": "4870003982421", "name": "\u041F\u0438\u0432\u043E \u0411\u0435\u043B\u044B\u0439 \u041C\u0435\u0434\u0432\u0435\u0434\u044C \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,5\u043B", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:47]execute_script... [01:35:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16751", "tax_sys" : 0, "items" : [ { "code": "4870003982421", "name": "\u041F\u0438\u0432\u043E \u0411\u0435\u043B\u044B\u0439 \u041C\u0435\u0434\u0432\u0435\u0434\u044C \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,5\u043B", "price" : 125.00, "quantity" : 3.000, "sum" : 375.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:47]POST & json_proto [01:35:47]process_json_proto [01:35:47]json parsed OK: [01:35:47]protocol is kg_v1.0 [01:35:47]action value=close_receipt [01:35:47]process_action close_receipt [01:35:47]cmd_close_receipt [01:35:47]MH_GetDate [01:35:47]Write to MH i2c: F0 00 00 D3 13 D5 [01:35:47]Write i2c OK [01:35:47]MH_I2C_Read... [01:35:47]Read from MH i2c: F0 [01:35:47]MH_I2C_Read... [01:35:47]Read from MH i2c: F0 09 00 [01:35:47]MH_I2C_Read... [01:35:47]Read from MH i2c: F0 09 00 D3 13 00 77 17 F2 66 CE CC 0E 66 D2 [01:35:47]GetLastDocTimeStamp 1727140095 [01:35:47]current date 1727141751 [01:35:47]FM_GetShiftState [01:35:47]SAM_PROTO_GetShiftState [01:35:47]wFMCommunicate request_size=4 [01:35:47]MH_SAM_APDU [01:35:47]CAPDU: 80 13 01 00 [01:35:47]Write to MH i2c: E2 08 00 D4 13 80 13 01 00 00 00 00 00 64 [01:35:47]Write i2c OK [01:35:47]MH_I2C_Read... [01:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:47]Read from MH i2c: E2 [01:35:47]MH_I2C_Read... [01:35:47]Read from MH i2c: E2 0E 00 [01:35:47]MH_I2C_Read... [01:35:47]Read from MH i2c: E2 0E 00 D4 13 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 9B [01:35:47]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [01:35:47]wFMCommunicate OK [01:35:47]SAM_PROTO_GetShiftState done [01:35:47]FM_GetShiftState done [01:35:47]opened in 1727136720 [01:35:47]opened+sec_in_day 1727223120 [01:35:47]quantity*price = 37500 [01:35:47]sum+1 = 37501 [01:35:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.32 НДС 12% : 39.82 Наличными: 0.00 Безнал.: 375.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 6 24.09.2024 01:35 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000000959456 ФД: 18836 ФПД: 111133837674926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013551&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18836&fm=111133837674926&tin=02508201610067®Number=0000000000152968&sum=37500 0 [01:35:48]StoreToDocumentArchive [01:35:48]shift 182 fd 18836 [01:35:48]save to /storage/0182/doc_00018836 [01:35:48]save last doc name /storage/0182/doc_00018836 to /storage/kkm_last_doc_name [01:35:48]save OK [01:35:48]Clear old archive folders... [01:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=297 [01:35:48]tlvbuf is 00C28600 [01:35:48]SAM_PROTO_ClearQueue [01:35:48]wFMCommunicate request_size=4 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 09 00 00 [01:35:48]Write to MH i2c: E2 08 00 E1 13 80 09 00 00 00 00 00 00 66 [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:48]Read from MH i2c: E2 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 [01:35:48]MH_I2C_Read... [01:35:48]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [01:35:48]RAPDU: 90 00 [01:35:48]wFMCommunicate OK [01:35:48]SAM_PROTO_ClearQueue done [01:35:48]KKMCreateOFDPacket [01:35:48]OFDProtocolAddRootSTLVToBuf [01:35:48]FM_MakeSignedData [01:35:48]FM_MakeSignedData [01:35:48]SAM_PROTO_SignData [01:35:48]wFMCommunicate request_size=4 [01:35:48]MH_SAM_APDU [01:35:48]CAPDU: 80 0D 01 02 [01:35:48]Write to MH i2c: E2 08 00 E2 13 80 0D 01 02 00 00 00 00 6E [01:35:48]Write i2c OK [01:35:48]MH_I2C_Read... [01:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:49]Read from MH i2c: E2 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 E2 13 00 90 00 69 [01:35:49]RAPDU: 90 00 [01:35:49]wFMCommunicate OK [01:35:49]wFMCommunicate request_size=255 [01:35:49]MH_SAM_APDU [01:35:49]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 77 17 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [01:35:49]Write to MH i2c: E2 02 01 E3 13 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 77 17 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 2D [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:49]Read from MH i2c: E2 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 E3 13 00 90 00 6A [01:35:49]RAPDU: 90 00 [01:35:49]wFMCommunicate OK [01:35:49]wFMCommunicate request_size=56 [01:35:49]MH_SAM_APDU [01:35:49]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 94 49 00 00 35 04 06 00 65 13 5C EA C9 AE [01:35:49]Write to MH i2c: E2 3B 00 E4 13 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 94 49 00 00 35 04 06 00 65 13 5C EA C9 AE 00 00 1A [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:49]Read from MH i2c: E2 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 03 00 E4 13 00 90 00 6B [01:35:49]RAPDU: 90 00 [01:35:49]wFMCommunicate OK [01:35:49]wFMCommunicate request_size=4 [01:35:49]MH_SAM_APDU [01:35:49]CAPDU: 80 0D 03 02 [01:35:49]Write to MH i2c: E2 08 00 E5 13 80 0D 03 02 00 00 00 00 73 [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:49]Read from MH i2c: E2 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 0B 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 0B 00 E5 13 00 9F 20 55 D5 DE 7E 98 6E 90 00 BF [01:35:49]RAPDU: 9F 20 55 D5 DE 7E 98 6E 90 00 [01:35:49]wFMCommunicate OK [01:35:49]SAM_PROTO_SignData done [01:35:49]FM_MakeSignedData done [01:35:49]CreateOFDProtocolMessage [01:35:49]wFMCommunicate request_size=4 [01:35:49]MH_SAM_APDU [01:35:49]CAPDU: 80 11 00 00 [01:35:49]Write to MH i2c: E2 08 00 E6 13 80 11 00 00 00 00 00 00 73 [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:49]Read from MH i2c: E2 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 17 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: E2 17 00 E6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 CC [01:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [01:35:49]wFMCommunicate OK [01:35:49]CreateOFDProtocolMessage done [01:35:49]OFDSenderStorePacket 18836 [01:35:49]StoreOFDPacket docnum=18836 [01:35:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3D 01 00 00 4A AB 35 01 2E FC 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 77 17 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 94 49 00 00 35 04 06 00 65 13 5C EA C9 AE 9F 20 55 D5 DE 7E 98 6E [01:35:49]CheckFolder [01:35:49]dirname=/storage/ofd_packets [01:35:49]CheckFolder done [01:35:49]ProducePacketName [01:35:49]name=ofd_packets/00018836 [01:35:49]NVStorageSaveData ofd_packets/00018836 [01:35:49]File name is /storage/ofd_packets/00018836 [01:35:49]Write 347 bytes [01:35:49]NVStorageSaveData done [01:35:49]OFDSenderStorePacket done [01:35:49]KKMCreateOFDPacket done [01:35:49]NVStorageSaveData kkm_last_timestamp [01:35:49]File name is /storage/kkm_last_timestamp [01:35:49]Write 4 bytes [01:35:49]NVStorageSaveData done [01:35:49]ExternCall_PrintAddStr [01:35:49]wPrintStart [01:35:49]Write to MH i2c: 01 00 00 E7 13 FA [01:35:49]Write i2c OK [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 07 00 [01:35:49]MH_I2C_Read... [01:35:49]Read from MH i2c: 01 07 00 E7 13 00 00 00 00 00 FF 0F 0F [01:35:49]RasterBufferAndPrint [01:35:49]line Счет N : (3)16751 [01:35:49]line ИНН: 02508201610067 [01:35:49]line Контрольно-Кассовый Чек [01:35:49]line ПРОДАЖА [01:35:49]line Товар: 4870003982421 [01:35:49]line Пиво Белый Медведь светлое 0,5л [01:35:49]line 3.000 * 125.00 [01:35:49]line = 375.00 [01:35:49]line НДС 12% НСП 1% [01:35:49]line > о реализуемом товаре [01:35:49]line ИТОГО: 375.00 [01:35:49]line НСП 1% : 3.32 [01:35:49]line НДС 12% : 39.82 [01:35:49]line Наличными: 0.00 [01:35:49]line Безнал.: 375.00 [01:35:49]line Место: АЗС № 176 "Партнер Нефть" [01:35:49]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [01:35:49]line СНО: Общий режим [01:35:49]line Чек 6 24.09.2024 01:35 [01:35:49]line Смена: 182 ФФД: 1.0 [01:35:49]line ЗНМ: 0300000010 [01:35:49]line РНМ: 0000000000152968 [01:35:49]line Версия ККМ: v1.0 [01:35:49]line Платежная система: Бакай Банк [01:35:49]line ФМ: 0000000000959456 [01:35:49]line ФД: 18836 [01:35:49]line ФПД: 111133837674926 [01:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T013551&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18836&fm=111133837674926&tin=02508201610067®Number=0000000000152968&sum=37500 [01:35:49]line 0 [01:35:49]OFD Sender: Processing packet 18836 [packets to send 7, broken 6] [01:35:49]ProducePacketName [01:35:49]name=ofd_packets/00018836 [01:35:49]OFD Sender: To server: pG, [01:35:49]CommunicateWithHost lk.salyk.kg:30040 [01:35:49]ConnectInit lk.salyk.kg [01:35:49]written 0, free lines is 4095 [01:35:50]Connected sock=9 [01:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 3D 01 00 00 4A AB 35 01 2E FC 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 7C 92 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 77 17 F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 94 49 00 00 35 04 06 00 65 13 5C EA C9 AE 9F 20 55 D5 DE 7E 98 6E [01:35:50]Write to MH i2c: 01 00 00 12 14 26 [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: 01 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: 01 07 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 F7 0C 30 [01:35:50]RasterBufferAndPrint [01:35:50]line [01:35:50]line [01:35:50]line [01:35:50]line [01:35:50]line [01:35:50]written 0, free lines is 3326 [01:35:50]MH_Cut [01:35:50]Write to MH i2c: D1 01 00 19 14 01 FF [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: D1 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: D1 01 00 [01:35:50]MH_I2C_Read... [01:35:50]Read from MH i2c: D1 01 00 19 14 00 FE [01:35:50]Write to MH i2c: 01 00 00 1A 14 2E [01:35:50]Write i2c OK [01:35:50]MH_I2C_Read... [01:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 F3 7A 47 00 BE 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 94 49 00 00 F4 03 04 00 D9 C0 F1 66 B6 04 01 00 00 EB 85 5B 8D 8D A7 0E 0E [01:35:50]CommunicateWithHost err = 0 [01:35:50]CheckOFDResponse [01:35:50]1017 (14) - 77093643461234 [01:35:50]1041 (16) - 0000000000959456 [01:35:50]1040 (4) - 18836 [01:35:50]1012 (4) - 23.09.2024 19:26 [01:35:50]1206 (1) - 0 [01:35:50]OFD Sender: Remove packet 18836 [01:35:50]ProducePacketName [01:35:50]name=ofd_packets/00018836 [01:35:50]NVStorageDeleteData [01:35:50]OFD Sender: No OFD packet to send [01:35:50]*** Cut start [01:35:50]*** Partial cut [01:35:50]*** CUTSNS_PIN = 1 [01:35:51]*** CUTSNS_PIN = 0 [01:35:51]*** Brake cut motor [01:35:51]Read from MH i2c: 01 [01:35:51]MH_I2C_Read... [01:35:51]*** Stop cut motor [01:35:51]*** Cut end [01:35:51]Read from MH i2c: 01 07 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: 01 07 00 1A 14 00 00 00 00 00 FF 0F 43 [01:35:51]process_action close_receipt done [01:35:51]requested_data is exist [01:35:51]produce_requested_data [01:35:51]requested_item fm.sn is exist - process it [01:35:51]wFMCommunicate request_size=4 [01:35:51]MH_SAM_APDU [01:35:51]CAPDU: 80 11 00 00 [01:35:51]Write to MH i2c: E2 08 00 1B 14 80 11 00 00 00 00 00 00 A9 [01:35:51]Write i2c OK [01:35:51]MH_I2C_Read... [01:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:51]Read from MH i2c: E2 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 17 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 17 00 1B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 02 [01:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [01:35:51]wFMCommunicate OK [01:35:51]requested_item fd.num is exist - process it [01:35:51]SAM_PROTO_GetFieldsCounters [01:35:51]wFMCommunicate request_size=4 [01:35:51]MH_SAM_APDU [01:35:51]CAPDU: 80 13 00 00 [01:35:51]Write to MH i2c: E2 08 00 1C 14 80 13 00 00 00 00 00 00 AC [01:35:51]Write i2c OK [01:35:51]MH_I2C_Read... [01:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:51]Read from MH i2c: E2 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 62 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 62 00 1C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 94 49 00 00 0E 04 04 00 B6 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 [01:35:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 94 49 00 00 0E 04 04 00 B6 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 [01:35:51]wFMCommunicate OK [01:35:51]SAM_PROTO_GetFieldsCounters done [01:35:51]requested_item shift.num is exist - process it [01:35:51]requested_item shift.opened is exist - process it [01:35:51]req_shift_opened [01:35:51]FM_GetShiftState [01:35:51]SAM_PROTO_GetShiftState [01:35:51]wFMCommunicate request_size=4 [01:35:51]MH_SAM_APDU [01:35:51]CAPDU: 80 13 01 00 [01:35:51]Write to MH i2c: E2 08 00 1D 14 80 13 01 00 00 00 00 00 AE [01:35:51]Write i2c OK [01:35:51]MH_I2C_Read... [01:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:51]Read from MH i2c: E2 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 0E 00 [01:35:51]MH_I2C_Read... [01:35:51]Read from MH i2c: E2 0E 00 1D 14 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 E5 [01:35:51]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [01:35:51]wFMCommunicate OK [01:35:51]SAM_PROTO_GetShiftState done [01:35:51]FM_GetShiftState done [01:35:51]req_shift_opened done [01:35:51]requested_item shift.open_date is exist - process it [01:35:51]req_shift_open_date [01:35:51]req_shift_open_date done [01:35:51]produce_requested_data done [01:35:51]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18836,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [01:35:51]process_action_free close_receipt [01:35:51]json_value_free [01:35:51]json_value_free done [01:35:51]process_json_proto returns [01:35:51]Send response to host [01:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18836,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [01:35:51]free response buf [01:35:51]execute_script done [01:35:51]execute_script returns [01:35:51]free content buf [01:35:51]Sock 7.Close socket [01:35:51]Sock 7.Thread stoped [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:06]accept exits with 10 [02:11:06]New connection [02:11:06]New thread 3066608996 created [02:11:06]Thread 3066752356 joined [02:11:06]Waiting for new connection... [02:11:06] Sock 10.Parse request [02:11:06]Sock 10.Check first char [02:11:06]Sock 10.First char is OK [02:11:06]request: POST /json_proto HTTP/1.0 [02:11:06]Method: POST [02:11:06]URL: /json_proto [02:11:06]Method is POST - this is cgi request [02:11:06]url: /json_proto [02:11:06]query_string will be loaded in cgi processing [02:11:06]execute_cgi json_proto POST (null) [02:11:06]execute_cgi path=json_proto method=POST [02:11:06]POST find Content-Length [02:11:06]Host: 172.17.62.196:8080 [02:11:06]Content-Length: 683 [02:11:06]Content-Type: application/json [02:11:06] [02:11:06]POST finish read [02:11:06]Found Content-Length = 683 [02:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16752", "tax_sys" : 0, "items" : [ { "code": "4607015235760", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:11:06]execute_script... [02:11:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16752", "tax_sys" : 0, "items" : [ { "code": "4607015235760", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:11:06]POST & json_proto [02:11:06]process_json_proto [02:11:06]json parsed OK: [02:11:06]protocol is kg_v1.0 [02:11:06]action value=close_receipt [02:11:06]process_action close_receipt [02:11:06]cmd_close_receipt [02:11:06]MH_GetDate [02:11:06]Write to MH i2c: F0 00 00 1E 14 21 [02:11:06]Write i2c OK [02:11:06]MH_I2C_Read... [02:11:06]Read from MH i2c: F0 [02:11:06]MH_I2C_Read... [02:11:06]Read from MH i2c: F0 09 00 [02:11:06]MH_I2C_Read... [02:11:06]Read from MH i2c: F0 09 00 1E 14 00 BE 1F F2 66 CE CC 0E 66 6D [02:11:06]GetLastDocTimeStamp 1727141751 [02:11:06]current date 1727143870 [02:11:06]FM_GetShiftState [02:11:06]SAM_PROTO_GetShiftState [02:11:06]wFMCommunicate request_size=4 [02:11:06]MH_SAM_APDU [02:11:06]CAPDU: 80 13 01 00 [02:11:06]Write to MH i2c: E2 08 00 1F 14 80 13 01 00 00 00 00 00 B0 [02:11:06]Write i2c OK [02:11:06]MH_I2C_Read... [02:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:11:06]Read from MH i2c: E2 [02:11:06]MH_I2C_Read... [02:11:06]Read from MH i2c: E2 0E 00 [02:11:06]MH_I2C_Read... [02:11:06]Read from MH i2c: E2 0E 00 1F 14 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 E7 [02:11:06]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [02:11:06]wFMCommunicate OK [02:11:06]SAM_PROTO_GetShiftState done [02:11:06]FM_GetShiftState done [02:11:06]opened in 1727136720 [02:11:06]opened+sec_in_day 1727223120 [02:11:06]quantity*price = 9000 [02:11:06]sum+1 = 9001 [02:11:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 7 24.09.2024 02:11 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18837 ФПД: 250356523965983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T021110&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18837&fm=250356523965983&tin=02508201610067®Number=0000000000152968&sum=9000 0 [02:11:07]StoreToDocumentArchive [02:11:07]shift 182 fd 18837 [02:11:07]save to /storage/0182/doc_00018837 [02:11:07]save last doc name /storage/0182/doc_00018837 to /storage/kkm_last_doc_name [02:11:07]save OK [02:11:07]Clear old archive folders... [02:11:07]ProcessDocumentItem done err = 0, tmpTLVsize=291 [02:11:07]tlvbuf is 00C49970 [02:11:07]SAM_PROTO_ClearQueue [02:11:07]wFMCommunicate request_size=4 [02:11:07]MH_SAM_APDU [02:11:07]CAPDU: 80 09 00 00 [02:11:07]Write to MH i2c: E2 08 00 2C 14 80 09 00 00 00 00 00 00 B2 [02:11:07]Write i2c OK [02:11:07]MH_I2C_Read... [02:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:11:08]Read from MH i2c: E2 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [02:11:08]RAPDU: 90 00 [02:11:08]wFMCommunicate OK [02:11:08]SAM_PROTO_ClearQueue done [02:11:08]KKMCreateOFDPacket [02:11:08]OFDProtocolAddRootSTLVToBuf [02:11:08]FM_MakeSignedData [02:11:08]FM_MakeSignedData [02:11:08]SAM_PROTO_SignData [02:11:08]wFMCommunicate request_size=4 [02:11:08]MH_SAM_APDU [02:11:08]CAPDU: 80 0D 01 02 [02:11:08]Write to MH i2c: E2 08 00 2D 14 80 0D 01 02 00 00 00 00 BA [02:11:08]Write i2c OK [02:11:08]MH_I2C_Read... [02:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:11:08]Read from MH i2c: E2 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [02:11:08]RAPDU: 90 00 [02:11:08]wFMCommunicate OK [02:11:08]wFMCommunicate request_size=255 [02:11:08]MH_SAM_APDU [02:11:08]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BE 1F F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [02:11:08]Write to MH i2c: E2 02 01 2E 14 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BE 1F F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 84 [02:11:08]Write i2c OK [02:11:08]MH_I2C_Read... [02:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:11:08]Read from MH i2c: E2 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 2E 14 00 90 00 B6 [02:11:08]RAPDU: 90 00 [02:11:08]wFMCommunicate OK [02:11:08]wFMCommunicate request_size=50 [02:11:08]MH_SAM_APDU [02:11:08]CAPDU: 80 0D 02 02 2D 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 95 49 00 00 35 04 06 00 E3 B2 AB AD 9E 1F [02:11:08]Write to MH i2c: E2 35 00 2F 14 80 0D 02 02 2D 00 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 95 49 00 00 35 04 06 00 E3 B2 AB AD 9E 1F 00 00 B0 [02:11:08]Write i2c OK [02:11:08]MH_I2C_Read... [02:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:11:08]Read from MH i2c: E2 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [02:11:08]RAPDU: 90 00 [02:11:08]wFMCommunicate OK [02:11:08]wFMCommunicate request_size=4 [02:11:08]MH_SAM_APDU [02:11:08]CAPDU: 80 0D 03 02 [02:11:08]Write to MH i2c: E2 08 00 30 14 80 0D 03 02 00 00 00 00 BF [02:11:08]Write i2c OK [02:11:08]MH_I2C_Read... [02:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:11:08]Read from MH i2c: E2 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 0B 00 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 0B 00 30 14 00 05 E3 F3 27 1A 19 FE 4B 90 00 3E [02:11:08]RAPDU: 05 E3 F3 27 1A 19 FE 4B 90 00 [02:11:08]wFMCommunicate OK [02:11:08]SAM_PROTO_SignData done [02:11:08]FM_MakeSignedData done [02:11:08]CreateOFDProtocolMessage [02:11:08]wFMCommunicate request_size=4 [02:11:08]MH_SAM_APDU [02:11:08]CAPDU: 80 11 00 00 [02:11:08]Write to MH i2c: E2 08 00 31 14 80 11 00 00 00 00 00 00 BF [02:11:08]Write i2c OK [02:11:08]MH_I2C_Read... [02:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:11:08]Read from MH i2c: E2 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 17 00 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: E2 17 00 31 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 18 [02:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [02:11:08]wFMCommunicate OK [02:11:08]CreateOFDProtocolMessage done [02:11:08]OFDSenderStorePacket 18837 [02:11:08]StoreOFDPacket docnum=18837 [02:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 37 01 00 00 36 81 2F 01 9A 15 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BE 1F F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 95 49 00 00 35 04 06 00 E3 B2 AB AD 9E 1F 05 E3 F3 27 1A 19 FE 4B [02:11:08]CheckFolder [02:11:08]dirname=/storage/ofd_packets [02:11:08]CheckFolder done [02:11:08]ProducePacketName [02:11:08]name=ofd_packets/00018837 [02:11:08]NVStorageSaveData ofd_packets/00018837 [02:11:08]File name is /storage/ofd_packets/00018837 [02:11:08]Write 341 bytes [02:11:08]NVStorageSaveData done [02:11:08]OFDSenderStorePacket done [02:11:08]KKMCreateOFDPacket done [02:11:08]NVStorageSaveData kkm_last_timestamp [02:11:08]File name is /storage/kkm_last_timestamp [02:11:08]Write 4 bytes [02:11:08]NVStorageSaveData done [02:11:08]ExternCall_PrintAddStr [02:11:08]wPrintStart [02:11:08]Write to MH i2c: 01 00 00 32 14 46 [02:11:08]Write i2c OK [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: 01 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: 01 07 00 [02:11:08]MH_I2C_Read... [02:11:08]Read from MH i2c: 01 07 00 32 14 00 00 00 00 00 FF 0F 5B [02:11:08]RasterBufferAndPrint [02:11:08]line Счет N : (3)16752 [02:11:08]line ИНН: 02508201610067 [02:11:08]line Контрольно-Кассовый Чек [02:11:08]line ПРОДАЖА [02:11:08]line Товар: 4607015235760 [02:11:08]line Печ. сд. Яшкино апельсин 137г [02:11:08]line 1.000 * 90.00 [02:11:08]line = 90.00 [02:11:08]line НДС 12% НСП 1% [02:11:08]line > о реализуемом товаре [02:11:08]line ИТОГО: 90.00 [02:11:08]line НСП 1% : 0.80 [02:11:08]line НДС 12% : 9.56 [02:11:08]line Наличными: 90.00 [02:11:08]line Безнал.: 0.00 [02:11:08]line Место: АЗС № 176 "Партнер Нефть" [02:11:08]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [02:11:08]line СНО: Общий режим [02:11:08]line Чек 7 24.09.2024 02:11 [02:11:08]line Смена: 182 ФФД: 1.0 [02:11:08]line ЗНМ: 0300000010 [02:11:08]line РНМ: 0000000000152968 [02:11:08]line Версия ККМ: v1.0 [02:11:08]line ФМ: 0000000000959456 [02:11:08]line ФД: 18837 [02:11:08]line ФПД: 250356523965983 [02:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T021110&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18837&fm=250356523965983&tin=02508201610067®Number=0000000000152968&sum=9000 [02:11:08]line 0 [02:11:08]OFD Sender: Processing packet 18837 [packets to send 7, broken 6] [02:11:08]ProducePacketName [02:11:08]name=ofd_packets/00018837 [02:11:08]OFD Sender: To server: pG, [02:11:08]CommunicateWithHost lk.salyk.kg:30040 [02:11:08]ConnectInit lk.salyk.kg [02:11:08]written 0, free lines is 4095 [02:11:09]Connected sock=7 [02:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 37 01 00 00 36 81 2F 01 9A 15 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 36 30 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BE 1F F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 95 49 00 00 35 04 06 00 E3 B2 AB AD 9E 1F 05 E3 F3 27 1A 19 FE 4B [02:11:09]Write to MH i2c: 01 00 00 5A 14 6E [02:11:09]Write i2c OK [02:11:09]MH_I2C_Read... [02:11:09]Read from MH i2c: 01 [02:11:09]MH_I2C_Read... [02:11:09]Read from MH i2c: 01 07 00 [02:11:09]MH_I2C_Read... [02:11:09]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 23 0D A5 [02:11:09]RasterBufferAndPrint [02:11:09]line [02:11:09]line [02:11:09]line [02:11:09]line [02:11:09]line [02:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 B7 D9 47 00 9A 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 35 39 34 35 36 10 04 04 00 95 49 00 00 F4 03 04 00 20 C9 F1 66 B6 04 01 00 00 73 38 4F 2A 96 8B D4 50 [02:11:09]CommunicateWithHost err = 0 [02:11:09]CheckOFDResponse [02:11:09]1017 (14) - 77093643461234 [02:11:09]1041 (16) - 0000000000959456 [02:11:09]1040 (4) - 18837 [02:11:09]1012 (4) - 23.09.2024 20:01 [02:11:09]1206 (1) - 0 [02:11:09]OFD Sender: Remove packet 18837 [02:11:09]ProducePacketName [02:11:09]name=ofd_packets/00018837 [02:11:09]NVStorageDeleteData [02:11:09]written 0, free lines is 3372 [02:11:09]MH_Cut [02:11:09]Write to MH i2c: D1 01 00 61 14 01 47 [02:11:09]Write i2c OK [02:11:09]MH_I2C_Read... [02:11:09]Read from MH i2c: D1 [02:11:09]MH_I2C_Read... [02:11:09]Read from MH i2c: D1 01 00 [02:11:09]MH_I2C_Read... [02:11:09]Read from MH i2c: D1 01 00 61 14 00 46 [02:11:09]Write to MH i2c: 01 00 00 62 14 76 [02:11:09]Write i2c OK [02:11:09]MH_I2C_Read... [02:11:09]OFD Sender: No OFD packet to send [02:11:09]*** Cut start [02:11:09]*** Partial cut [02:11:09]*** CUTSNS_PIN = 1 [02:11:10]*** CUTSNS_PIN = 0 [02:11:10]*** Brake cut motor [02:11:10]Read from MH i2c: 01 [02:11:10]MH_I2C_Read... [02:11:10]*** Stop cut motor [02:11:10]*** Cut end [02:11:10]Read from MH i2c: 01 07 00 [02:11:10]MH_I2C_Read... [02:11:10]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 FF 0F 8B [02:11:10]process_action close_receipt done [02:11:10]requested_data is exist [02:11:10]produce_requested_data [02:11:10]requested_item fm.sn is exist - process it [02:11:10]wFMCommunicate request_size=4 [02:11:10]MH_SAM_APDU [02:11:10]CAPDU: 80 11 00 00 [02:11:10]Write to MH i2c: E2 08 00 63 14 80 11 00 00 00 00 00 00 F1 [02:11:10]Write i2c OK [02:11:10]MH_I2C_Read... [02:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:11:10]Read from MH i2c: E2 [02:11:10]MH_I2C_Read... [02:11:10]Read from MH i2c: E2 17 00 [02:11:10]MH_I2C_Read... [02:11:10]Read from MH i2c: E2 17 00 63 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 4A [02:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [02:11:10]wFMCommunicate OK [02:11:10]requested_item fd.num is exist - process it [02:11:10]SAM_PROTO_GetFieldsCounters [02:11:10]wFMCommunicate request_size=4 [02:11:10]MH_SAM_APDU [02:11:10]CAPDU: 80 13 00 00 [02:11:10]Write to MH i2c: E2 08 00 64 14 80 13 00 00 00 00 00 00 F4 [02:11:10]Write i2c OK [02:11:10]MH_I2C_Read... [02:11:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:11:10]Read from MH i2c: E2 [02:11:10]MH_I2C_Read... [02:11:10]Read from MH i2c: E2 62 00 [02:11:10]MH_I2C_Read... [02:11:10]Read from MH i2c: E2 62 00 64 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 95 49 00 00 0E 04 04 00 B6 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 CA [02:11:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 95 49 00 00 0E 04 04 00 B6 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 [02:11:10]wFMCommunicate OK [02:11:10]SAM_PROTO_GetFieldsCounters done [02:11:10]requested_item shift.num is exist - process it [02:11:10]requested_item shift.opened is exist - process it [02:11:10]req_shift_opened [02:11:10]FM_GetShiftState [02:11:10]SAM_PROTO_GetShiftState [02:11:10]wFMCommunicate request_size=4 [02:11:10]MH_SAM_APDU [02:11:10]CAPDU: 80 13 01 00 [02:11:10]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [02:11:10]Write i2c OK [02:11:10]MH_I2C_Read... [02:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:11:10]Read from MH i2c: E2 [02:11:10]MH_I2C_Read... [02:11:10]Read from MH i2c: E2 0E 00 [02:11:10]MH_I2C_Read... [02:11:10]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 2D [02:11:10]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [02:11:10]wFMCommunicate OK [02:11:10]SAM_PROTO_GetShiftState done [02:11:10]FM_GetShiftState done [02:11:10]req_shift_opened done [02:11:10]requested_item shift.open_date is exist - process it [02:11:10]req_shift_open_date [02:11:10]req_shift_open_date done [02:11:10]produce_requested_data done [02:11:10]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18837,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [02:11:10]process_action_free close_receipt [02:11:10]json_value_free [02:11:10]json_value_free done [02:11:10]process_json_proto returns [02:11:10]Send response to host [02:11:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18837,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [02:11:10]free response buf [02:11:10]execute_script done [02:11:10]execute_script returns [02:11:10]free content buf [02:11:10]Sock 10.Close socket [02:11:10]Sock 10.Thread stoped [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]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:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:56]accept exits with 9 [02:58:56]New connection [02:58:56]New thread 3066752356 created [02:58:56]Thread 3066608996 joined [02:58:56]Waiting for new connection... [02:58:56] Sock 9.Parse request [02:58:56]Sock 9.Check first char [02:58:56]Sock 9.First char is OK [02:58:56]request: POST /json_proto HTTP/1.0 [02:58:56]Method: POST [02:58:56]URL: /json_proto [02:58:56]Method is POST - this is cgi request [02:58:56]url: /json_proto [02:58:56]query_string will be loaded in cgi processing [02:58:56]execute_cgi json_proto POST (null) [02:58:56]execute_cgi path=json_proto method=POST [02:58:56]POST find Content-Length [02:58:56]Host: 172.17.62.196:8080 [02:58:56]Content-Length: 994 [02:58:56]Content-Type: application/json [02:58:56] [02:58:56]POST finish read [02:58:56]Found Content-Length = 994 [02:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16753", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:56]execute_script... [02:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)16753", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:56]POST & json_proto [02:58:56]process_json_proto [02:58:56]json parsed OK: [02:58:56]protocol is kg_v1.0 [02:58:56]action value=close_receipt [02:58:56]process_action close_receipt [02:58:56]cmd_close_receipt [02:58:56]MH_GetDate [02:58:56]Write to MH i2c: F0 00 00 66 14 69 [02:58:56]Write i2c OK [02:58:56]MH_I2C_Read... [02:58:56]Read from MH i2c: F0 [02:58:56]MH_I2C_Read... [02:58:56]Read from MH i2c: F0 09 00 [02:58:56]MH_I2C_Read... [02:58:56]Read from MH i2c: F0 09 00 66 14 00 F4 2A F2 66 CE CC 0E 66 F6 [02:58:56]GetLastDocTimeStamp 1727143870 [02:58:56]current date 1727146740 [02:58:56]FM_GetShiftState [02:58:56]SAM_PROTO_GetShiftState [02:58:56]wFMCommunicate request_size=4 [02:58:56]MH_SAM_APDU [02:58:56]CAPDU: 80 13 01 00 [02:58:56]Write to MH i2c: E2 08 00 67 14 80 13 01 00 00 00 00 00 F8 [02:58:56]Write i2c OK [02:58:56]MH_I2C_Read... [02:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:57]Read from MH i2c: E2 [02:58:57]MH_I2C_Read... [02:58:57]Read from MH i2c: E2 0E 00 [02:58:57]MH_I2C_Read... [02:58:57]Read from MH i2c: E2 0E 00 67 14 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 2F [02:58:57]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [02:58:57]wFMCommunicate OK [02:58:57]SAM_PROTO_GetShiftState done [02:58:57]FM_GetShiftState done [02:58:57]opened in 1727136720 [02:58:57]opened+sec_in_day 1727223120 [02:58:57]quantity*price = 7000 [02:58:57]sum+1 = 7001 [02:58:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 176 "Партнер Нефть" Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 СНО: Общий режим Чек 8 24.09.2024 02:59 Смена: 182 ФФД: 1.0 ЗНМ: 0300000010 РНМ: 0000000000152968 Версия ККМ: v1.0 ФМ: 0000000000959456 ФД: 18838 ФПД: 219232167944521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T025900&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18838&fm=219232167944521&tin=02508201610067®Number=0000000000152968&sum=11000 0 [02:58:58]StoreToDocumentArchive [02:58:58]shift 182 fd 18838 [02:58:58]save to /storage/0182/doc_00018838 [02:58:58]save last doc name /storage/0182/doc_00018838 to /storage/kkm_last_doc_name [02:58:58]save OK [02:58:58]Clear old archive folders... [02:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=413 [02:58:58]tlvbuf is 00C04930 [02:58:58]SAM_PROTO_ClearQueue [02:58:58]wFMCommunicate request_size=4 [02:58:58]MH_SAM_APDU [02:58:58]CAPDU: 80 09 00 00 [02:58:58]Write to MH i2c: E2 08 00 74 14 80 09 00 00 00 00 00 00 FA [02:58:58]Write i2c OK [02:58:58]MH_I2C_Read... [02:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:58:58]Read from MH i2c: E2 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [02:58:58]RAPDU: 90 00 [02:58:58]wFMCommunicate OK [02:58:58]SAM_PROTO_ClearQueue done [02:58:58]KKMCreateOFDPacket [02:58:58]OFDProtocolAddRootSTLVToBuf [02:58:58]FM_MakeSignedData [02:58:58]FM_MakeSignedData [02:58:58]SAM_PROTO_SignData [02:58:58]wFMCommunicate request_size=4 [02:58:58]MH_SAM_APDU [02:58:58]CAPDU: 80 0D 01 02 [02:58:58]Write to MH i2c: E2 08 00 75 14 80 0D 01 02 00 00 00 00 02 [02:58:58]Write i2c OK [02:58:58]MH_I2C_Read... [02:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:58:58]Read from MH i2c: E2 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 75 14 00 90 00 FD [02:58:58]RAPDU: 90 00 [02:58:58]wFMCommunicate OK [02:58:58]wFMCommunicate request_size=255 [02:58:58]MH_SAM_APDU [02:58:58]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [02:58:58]Write to MH i2c: E2 02 01 76 14 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 1D [02:58:58]Write i2c OK [02:58:58]MH_I2C_Read... [02:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:58]Read from MH i2c: E2 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 76 14 00 90 00 FE [02:58:58]RAPDU: 90 00 [02:58:58]wFMCommunicate OK [02:58:58]wFMCommunicate request_size=172 [02:58:58]MH_SAM_APDU [02:58:58]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 2A F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 96 49 00 00 35 04 06 00 C7 63 F7 7E 61 49 [02:58:58]Write to MH i2c: E2 AF 00 77 14 80 0D 02 02 A7 00 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 2A F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 96 49 00 00 35 04 06 00 C7 63 F7 7E 61 49 00 00 37 [02:58:58]Write i2c OK [02:58:58]MH_I2C_Read... [02:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:58]Read from MH i2c: E2 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [02:58:58]RAPDU: 90 00 [02:58:58]wFMCommunicate OK [02:58:58]wFMCommunicate request_size=4 [02:58:58]MH_SAM_APDU [02:58:58]CAPDU: 80 0D 03 02 [02:58:58]Write to MH i2c: E2 08 00 78 14 80 0D 03 02 00 00 00 00 07 [02:58:58]Write i2c OK [02:58:58]MH_I2C_Read... [02:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:58:58]Read from MH i2c: E2 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 0B 00 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 0B 00 78 14 00 13 E7 C0 A4 C5 9B D3 A1 90 00 3A [02:58:58]RAPDU: 13 E7 C0 A4 C5 9B D3 A1 90 00 [02:58:58]wFMCommunicate OK [02:58:58]SAM_PROTO_SignData done [02:58:58]FM_MakeSignedData done [02:58:58]CreateOFDProtocolMessage [02:58:58]wFMCommunicate request_size=4 [02:58:58]MH_SAM_APDU [02:58:58]CAPDU: 80 11 00 00 [02:58:58]Write to MH i2c: E2 08 00 79 14 80 11 00 00 00 00 00 00 07 [02:58:58]Write i2c OK [02:58:58]MH_I2C_Read... [02:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:58]Read from MH i2c: E2 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 17 00 [02:58:58]MH_I2C_Read... [02:58:58]Read from MH i2c: E2 17 00 79 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 60 [02:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [02:58:58]wFMCommunicate OK [02:58:58]CreateOFDProtocolMessage done [02:58:58]OFDSenderStorePacket 18838 [02:58:58]StoreOFDPacket docnum=18838 [02:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B1 01 00 00 32 8E A9 01 BA 69 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 2A F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 96 49 00 00 35 04 06 00 C7 63 F7 7E 61 49 13 E7 C0 A4 C5 9B D3 A1 [02:58:58]CheckFolder [02:58:58]dirname=/storage/ofd_packets [02:58:58]CheckFolder done [02:58:58]ProducePacketName [02:58:58]name=ofd_packets/00018838 [02:58:58]NVStorageSaveData ofd_packets/00018838 [02:58:58]File name is /storage/ofd_packets/00018838 [02:58:58]Write 463 bytes [02:58:58]NVStorageSaveData done [02:58:58]OFDSenderStorePacket done [02:58:58]KKMCreateOFDPacket done [02:58:58]NVStorageSaveData kkm_last_timestamp [02:58:58]File name is /storage/kkm_last_timestamp [02:58:59]Write 4 bytes [02:58:59]NVStorageSaveData done [02:58:59]ExternCall_PrintAddStr [02:58:59]wPrintStart [02:58:59]Write to MH i2c: 01 00 00 7A 14 8E [02:58:59]OFD Sender: Processing packet 18838 [packets to send 7, broken 6] [02:58:59]ProducePacketName [02:58:59]name=ofd_packets/00018838 [02:58:59]Write i2c OK [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: 01 [02:58:59]MH_I2C_Read... [02:58:59]OFD Sender: To server: pG, [02:58:59]CommunicateWithHost lk.salyk.kg:30040 [02:58:59]ConnectInit lk.salyk.kg [02:58:59]Read from MH i2c: 01 07 00 [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 FF 0F A3 [02:58:59]RasterBufferAndPrint [02:58:59]line Счет N : (3)16753 [02:58:59]line ИНН: 02508201610067 [02:58:59]line Контрольно-Кассовый Чек [02:58:59]line ПРОДАЖА [02:58:59]line Товар: 4870202521186 [02:58:59]line Чай холодный MAXI черный со вкусом клубн [02:58:59]line 1.000 * 70.00 [02:58:59]line = 70.00 [02:58:59]line НДС 12% НСП 1% [02:58:59]line > о реализуемом товаре [02:58:59]line Товар: 4700000160211 [02:58:59]line Вода Легенда 0,5л [02:58:59]line 1.000 * 40.00 [02:58:59]line = 40.00 [02:58:59]line НДС 12% НСП 1% [02:58:59]line > о реализуемом товаре [02:58:59]line ИТОГО: 110.00 [02:58:59]line НСП 1% : 0.97 [02:58:59]line НДС 12% : 11.68 [02:58:59]line Наличными: 110.00 [02:58:59]line Безнал.: 0.00 [02:58:59]line Место: АЗС № 176 "Партнер Нефть" [02:58:59]line Адрес: 720000, г. Ош, Памирский тракт 1 км, д. 102, 40.534963, 72.816790 [02:58:59]line СНО: Общий режим [02:58:59]line Чек 8 24.09.2024 02:59 [02:58:59]line Смена: 182 ФФД: 1.0 [02:58:59]line ЗНМ: 0300000010 [02:58:59]line РНМ: 0000000000152968 [02:58:59]line Версия ККМ: v1.0 [02:58:59]line ФМ: 0000000000959456 [02:58:59]line ФД: 18838 [02:58:59]line ФПД: 219232167944521 [02:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240924T025900&type=1&operation_type=1&fn_number=0000000000959456&fd_number=18838&fm=219232167944521&tin=02508201610067®Number=0000000000152968&sum=11000 [02:58:59]line 0 [02:58:59]written 0, free lines is 4095 [02:58:59]Connected sock=10 [02:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 B1 01 00 00 32 8E A9 01 BA 69 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 2A F2 66 0E 04 04 00 B6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 10 04 04 00 96 49 00 00 35 04 06 00 C7 63 F7 7E 61 49 13 E7 C0 A4 C5 9B D3 A1 [02:58:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 4F 00 00 00 44 19 47 00 CE 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 35 39 34 35 36 10 04 04 00 96 49 00 00 F4 03 04 00 57 D4 F1 66 B6 04 01 00 00 FB 3E 2A 30 3A 12 CC 08 [02:58:59]CommunicateWithHost err = 0 [02:58:59]CheckOFDResponse [02:58:59]1017 (14) - 77093643461234 [02:58:59]1041 (16) - 0000000000959456 [02:58:59]1040 (4) - 18838 [02:58:59]1012 (4) - 23.09.2024 20:49 [02:58:59]1206 (1) - 0 [02:58:59]OFD Sender: Remove packet 18838 [02:58:59]ProducePacketName [02:58:59]name=ofd_packets/00018838 [02:58:59]NVStorageDeleteData [02:58:59]Write to MH i2c: 01 00 00 A9 14 BD [02:58:59]Write i2c OK [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: 01 [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: 01 07 00 [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 D3 0C A3 [02:58:59]RasterBufferAndPrint [02:58:59]line [02:58:59]line [02:58:59]line [02:58:59]line [02:58:59]line [02:58:59]written 0, free lines is 3293 [02:58:59]MH_Cut [02:58:59]Write to MH i2c: D1 01 00 B0 14 01 96 [02:58:59]Write i2c OK [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: D1 [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: D1 01 00 [02:58:59]MH_I2C_Read... [02:58:59]Read from MH i2c: D1 01 00 B0 14 00 95 [02:58:59]Write to MH i2c: 01 00 00 B1 14 C5 [02:58:59]Write i2c OK [02:58:59]MH_I2C_Read... [02:59:00]OFD Sender: No OFD packet to send [02:59:00]*** Cut start [02:59:00]*** Partial cut [02:59:00]*** CUTSNS_PIN = 1 [02:59:00]*** CUTSNS_PIN = 0 [02:59:00]*** Brake cut motor [02:59:00]Read from MH i2c: 01 [02:59:00]MH_I2C_Read... [02:59:00]*** Stop cut motor [02:59:00]*** Cut end [02:59:00]Read from MH i2c: 01 07 00 [02:59:00]MH_I2C_Read... [02:59:00]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 FF 0F DA [02:59:00]process_action close_receipt done [02:59:00]requested_data is exist [02:59:00]produce_requested_data [02:59:00]requested_item fm.sn is exist - process it [02:59:00]wFMCommunicate request_size=4 [02:59:00]MH_SAM_APDU [02:59:00]CAPDU: 80 11 00 00 [02:59:00]Write to MH i2c: E2 08 00 B2 14 80 11 00 00 00 00 00 00 40 [02:59:00]Write i2c OK [02:59:00]MH_I2C_Read... [02:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:01]Read from MH i2c: E2 [02:59:01]MH_I2C_Read... [02:59:01]Read from MH i2c: E2 17 00 [02:59:01]MH_I2C_Read... [02:59:01]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 35 39 34 35 36 90 00 99 [02:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 90 00 [02:59:01]wFMCommunicate OK [02:59:01]requested_item fd.num is exist - process it [02:59:01]SAM_PROTO_GetFieldsCounters [02:59:01]wFMCommunicate request_size=4 [02:59:01]MH_SAM_APDU [02:59:01]CAPDU: 80 13 00 00 [02:59:01]Write to MH i2c: E2 08 00 B3 14 80 13 00 00 00 00 00 00 43 [02:59:01]Write i2c OK [02:59:01]MH_I2C_Read... [02:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:59:01]Read from MH i2c: E2 [02:59:01]MH_I2C_Read... [02:59:01]Read from MH i2c: E2 62 00 [02:59:01]MH_I2C_Read... [02:59:01]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 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 96 49 00 00 0E 04 04 00 B6 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 1D [02:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 34 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 32 39 36 38 10 04 04 00 96 49 00 00 0E 04 04 00 B6 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 [02:59:01]wFMCommunicate OK [02:59:01]SAM_PROTO_GetFieldsCounters done [02:59:01]requested_item shift.num is exist - process it [02:59:01]requested_item shift.opened is exist - process it [02:59:01]req_shift_opened [02:59:01]FM_GetShiftState [02:59:01]SAM_PROTO_GetShiftState [02:59:01]wFMCommunicate request_size=4 [02:59:01]MH_SAM_APDU [02:59:01]CAPDU: 80 13 01 00 [02:59:01]Write to MH i2c: E2 08 00 B4 14 80 13 01 00 00 00 00 00 45 [02:59:01]Write i2c OK [02:59:01]MH_I2C_Read... [02:59:01]Read from MH i2c: E2 [02:59:01]MH_I2C_Read... [02:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:01]Read from MH i2c: E2 0E 00 [02:59:01]MH_I2C_Read... [02:59:01]Read from MH i2c: E2 0E 00 B4 14 00 09 00 01 D0 03 F2 66 00 00 00 00 90 00 7C [02:59:01]RAPDU: 09 00 01 D0 03 F2 66 00 00 00 00 90 00 [02:59:01]wFMCommunicate OK [02:59:01]SAM_PROTO_GetShiftState done [02:59:01]FM_GetShiftState done [02:59:01]req_shift_opened done [02:59:01]requested_item shift.open_date is exist - process it [02:59:01]req_shift_open_date [02:59:01]req_shift_open_date done [02:59:01]produce_requested_data done [02:59:01]produce_requested_data return {"fm.sn":"0000000000959456","fd.num":18838,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720} [02:59:01]process_action_free close_receipt [02:59:01]json_value_free [02:59:01]json_value_free done [02:59:01]process_json_proto returns [02:59:01]Send response to host [02:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959456","fd.num":18838,"shift.num":182,"shift.opened":1,"shift.open_date":1727136720}}} [02:59:01]free response buf [02:59:01]execute_script done [02:59:01]execute_script returns [02:59:01]free content buf [02:59:01]Sock 9.Close socket [02:59:01]Sock 9.Thread stoped [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send