[03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]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:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]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:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00: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: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:18]ConnectInit Can't connect to host [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:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:47]ConnectInit Can't connect to host [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18: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:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]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:50]accept exits with 10 [04:48:50]New connection [04:48:50]New thread 3067014500 created [04:48:50]Thread 3066871140 joined [04:48:50]Waiting for new connection... [04:48:50] Sock 10.Parse request [04:48:50]Sock 10.Check first char [04:48:50]Sock 10.First char is OK [04:48:50]request: POST /json_proto HTTP/1.0 [04:48:50]Method: POST [04:48:50]URL: /json_proto [04:48:50]Method is POST - this is cgi request [04:48:50]url: /json_proto [04:48:50]query_string will be loaded in cgi processing [04:48:50]execute_cgi json_proto POST (null) [04:48:50]execute_cgi path=json_proto method=POST [04:48:50]POST find Content-Length [04:48:50]Host: 172.17.35.3:8080 [04:48:50]Content-Length: 682 [04:48:50]Content-Type: application/json [04:48:50] [04:48:50]POST finish read [04:48:50]Found Content-Length = 682 [04:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "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" ] } } [04:48:50]execute_script... [04:48:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "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" ] } } [04:48:50]POST & json_proto [04:48:50]process_json_proto [04:48:50]json parsed OK: [04:48:50]protocol is kg_v1.0 [04:48:50]action value=close_receipt [04:48:50]process_action close_receipt [04:48:50]cmd_close_receipt [04:48:50]MH_GetDate [04:48:50]Write to MH i2c: F0 00 00 DB 4C 16 [04:48:50]Write i2c OK [04:48:50]MH_I2C_Read... [04:48:50]Read from MH i2c: F0 [04:48:50]MH_I2C_Read... [04:48:50]Read from MH i2c: F0 09 00 [04:48:50]MH_I2C_Read... [04:48:50]Read from MH i2c: F0 09 00 DB 4C 00 C5 C8 14 66 2B 11 66 64 2C [04:48:50]GetLastDocTimeStamp 1712624766 [04:48:50]current date 1712638149 [04:48:50]FM_GetShiftState [04:48:50]SAM_PROTO_GetShiftState [04:48:50]wFMCommunicate request_size=4 [04:48:50]MH_SAM_APDU [04:48:50]CAPDU: 80 13 01 00 [04:48:50]Write to MH i2c: E2 08 00 DC 4C 80 13 01 00 00 00 00 00 A5 [04:48:50]Write i2c OK [04:48:50]MH_I2C_Read... [04:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:50]Read from MH i2c: E2 [04:48:50]MH_I2C_Read... [04:48:50]Read from MH i2c: E2 0E 00 [04:48:50]MH_I2C_Read... [04:48:50]Read from MH i2c: E2 0E 00 DC 4C 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 10 [04:48:50]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [04:48:50]wFMCommunicate OK [04:48:50]SAM_PROTO_GetShiftState done [04:48:50]FM_GetShiftState done [04:48:50]opened in 1712622936 [04:48:50]opened+sec_in_day 1712709336 [04:48:50]quantity*price = 100045 [04:48:50]sum+1 = 100046 [04:48:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 2 09.04.2024 04:49 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26870 ФПД: 217704307107072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T044909&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26870&fm=217704307107072&tin=02508201610067®Number=0000000000091578&sum=100000 [04:48:51]StoreToDocumentArchive [04:48:51]shift 315 fd 26870 [04:48:51]save to /storage/0315/doc_00026870 [04:48:51]save last doc name /storage/0315/doc_00026870 to /storage/kkm_last_doc_name [04:48:51]save OK [04:48:51]Clear old archive folders... [04:48:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:48:51]tlvbuf is B6F64150 [04:48:51]SAM_PROTO_ClearQueue [04:48:51]wFMCommunicate request_size=4 [04:48:51]MH_SAM_APDU [04:48:51]CAPDU: 80 09 00 00 [04:48:51]Write to MH i2c: E2 08 00 E9 4C 80 09 00 00 00 00 00 00 A7 [04:48:51]Write i2c OK [04:48:51]MH_I2C_Read... [04:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:48:51]Read from MH i2c: E2 [04:48:51]MH_I2C_Read... [04:48:51]Read from MH i2c: E2 03 00 [04:48:51]MH_I2C_Read... [04:48:51]Read from MH i2c: E2 03 00 E9 4C 00 90 00 A9 [04:48:51]RAPDU: 90 00 [04:48:51]wFMCommunicate OK [04:48:51]SAM_PROTO_ClearQueue done [04:48:51]KKMCreateOFDPacket [04:48:51]OFDProtocolAddRootSTLVToBuf [04:48:51]FM_MakeSignedData [04:48:51]FM_MakeSignedData [04:48:51]SAM_PROTO_SignData [04:48:51]wFMCommunicate request_size=4 [04:48:51]MH_SAM_APDU [04:48:51]CAPDU: 80 0D 01 02 [04:48:51]Write to MH i2c: E2 08 00 EA 4C 80 0D 01 02 00 00 00 00 AF [04:48:51]Write i2c OK [04:48:51]MH_I2C_Read... [04:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:48:52]Read from MH i2c: E2 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 03 00 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 03 00 EA 4C 00 90 00 AA [04:48:52]RAPDU: 90 00 [04:48:52]wFMCommunicate OK [04:48:52]wFMCommunicate request_size=255 [04:48:52]MH_SAM_APDU [04:48:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 C8 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 68 00 00 35 04 06 00 C6 [04:48:52]Write to MH i2c: E2 02 01 EB 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 C8 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 68 00 00 35 04 06 00 C6 00 00 AC [04:48:52]Write i2c OK [04:48:52]MH_I2C_Read... [04:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:48:52]Read from MH i2c: E2 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 03 00 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 03 00 EB 4C 00 90 00 AB [04:48:52]RAPDU: 90 00 [04:48:52]wFMCommunicate OK [04:48:52]wFMCommunicate request_size=10 [04:48:52]MH_SAM_APDU [04:48:52]CAPDU: 80 0D 02 02 05 00 3B E4 25 00 [04:48:52]Write to MH i2c: E2 0D 00 EC 4C 80 0D 02 02 05 00 00 3B E4 25 00 00 00 00 [04:48:52]Write i2c OK [04:48:52]MH_I2C_Read... [04:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:48:52]Read from MH i2c: E2 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 03 00 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 03 00 EC 4C 00 90 00 AC [04:48:52]RAPDU: 90 00 [04:48:52]wFMCommunicate OK [04:48:52]wFMCommunicate request_size=4 [04:48:52]MH_SAM_APDU [04:48:52]CAPDU: 80 0D 03 02 [04:48:52]Write to MH i2c: E2 08 00 ED 4C 80 0D 03 02 00 00 00 00 B4 [04:48:52]Write i2c OK [04:48:52]MH_I2C_Read... [04:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:48:52]Read from MH i2c: E2 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 0B 00 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 0B 00 ED 4C 00 EB 80 0B EB FD 02 5F 01 90 00 75 [04:48:52]RAPDU: EB 80 0B EB FD 02 5F 01 90 00 [04:48:52]wFMCommunicate OK [04:48:52]SAM_PROTO_SignData done [04:48:52]FM_MakeSignedData done [04:48:52]CreateOFDProtocolMessage [04:48:52]wFMCommunicate request_size=4 [04:48:52]MH_SAM_APDU [04:48:52]CAPDU: 80 11 00 00 [04:48:52]Write to MH i2c: E2 08 00 EE 4C 80 11 00 00 00 00 00 00 B4 [04:48:52]Write i2c OK [04:48:52]MH_I2C_Read... [04:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:48:52]Read from MH i2c: E2 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 17 00 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: E2 17 00 EE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0C [04:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [04:48:52]wFMCommunicate OK [04:48:52]CreateOFDProtocolMessage done [04:48:52]OFDSenderStorePacket 26870 [04:48:52]StoreOFDPacket docnum=26870 [04:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 0E 70 07 01 A7 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 C8 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 68 00 00 35 04 06 00 C6 00 3B E4 25 00 EB 80 0B EB FD 02 5F 01 [04:48:52]CheckFolder [04:48:52]dirname=/storage/ofd_packets [04:48:52]CheckFolder done [04:48:52]ProducePacketName [04:48:52]name=ofd_packets/00026870 [04:48:52]NVStorageSaveData ofd_packets/00026870 [04:48:52]File name is /storage/ofd_packets/00026870 [04:48:52]Write 301 bytes [04:48:52]NVStorageSaveData done [04:48:52]OFDSenderStorePacket done [04:48:52]KKMCreateOFDPacket done [04:48:52]NVStorageSaveData kkm_last_timestamp [04:48:52]File name is /storage/kkm_last_timestamp [04:48:52]Write 4 bytes [04:48:52]NVStorageSaveData done [04:48:52]ExternCall_PrintAddStr [04:48:52]wPrintStart [04:48:52]Write to MH i2c: 01 00 00 EF 4C 3B [04:48:52]Write i2c OK [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: 01 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: 01 07 00 [04:48:52]MH_I2C_Read... [04:48:52]Read from MH i2c: 01 07 00 EF 4C 00 00 00 00 00 FF 0F 50 [04:48:52]RasterBufferAndPrint [04:48:52]line Счет N : (1)359614 [04:48:52]line ИНН: 02508201610067 [04:48:52]line Контрольно-Кассовый Чек [04:48:52]line ПРОДАЖА [04:48:52]line ТРК (МРК, ГНК) : 51 [04:48:52]line Товар: 2710124130 [04:48:52]line Аи-92-К-5 [04:48:52]line 15.780 * 63.40 [04:48:52]line = 1000.45 [04:48:52]line НДС 12% НСП 1% [04:48:52]line > о реализуемом товаре [04:48:52]line ОКРУГЛЕНИЕ: -0.45 [04:48:52]line ИТОГО: 1000.00 [04:48:52]line Внесено: 1000.00 [04:48:52]line СДАЧА: 0.00 [04:48:52]line НСП 1% : 8.85 [04:48:52]line НДС 12% : 106.24 [04:48:52]line Наличными: 1000.00 [04:48:52]line Безнал.: 0.00 [04:48:52]line Место: АЗС № 122 "Партнер Нефть" [04:48:52]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [04:48:52]line СНО: Общий режим [04:48:52]line Чек 2 09.04.2024 04:49 [04:48:52]line Смена: 315 ФФД: 1.0 [04:48:52]line ЗНМ: 0300000147 [04:48:52]line РНМ: 0000000000091578 [04:48:52]line Версия ККМ: 001 [04:48:52]line ФМ: 0000000000874657 [04:48:52]line ФД: 26870 [04:48:52]line ФПД: 217704307107072 [04:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T044909&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26870&fm=217704307107072&tin=02508201610067®Number=0000000000091578&sum=100000 [04:48:52]OFD Sender: Processing packet 26870 [packets to send 44, broken 43] [04:48:52]ProducePacketName [04:48:52]name=ofd_packets/00026870 [04:48:52]OFD Sender: To server: pG, [04:48:52]CommunicateWithHost lk.salyk.kg:30040 [04:48:52]ConnectInit lk.salyk.kg [04:48:52]written 0, free lines is 4095 [04:48:52]Connected sock=9 [04:48:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 0E 70 07 01 A7 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 C8 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 68 00 00 35 04 06 00 C6 00 3B E4 25 00 EB 80 0B EB FD 02 5F 01 [04:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 B1 2E 47 00 D5 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F6 68 00 00 F4 03 04 00 2D 70 14 66 B6 04 01 00 00 87 00 2F 2C 35 E4 88 53 [04:48:53]CommunicateWithHost err = 0 [04:48:53]CheckOFDResponse [04:48:53]1017 (14) - 77093643461234 [04:48:53]1041 (16) - 0000000000874657 [04:48:53]1040 (4) - 26870 [04:48:53]1012 (4) - 08.04.2024 22:31 [04:48:53]1206 (1) - 0 [04:48:53]OFD Sender: Remove packet 26870 [04:48:53]ProducePacketName [04:48:53]name=ofd_packets/00026870 [04:48:53]NVStorageDeleteData [04:48:53]Write to MH i2c: 01 00 00 1A 4D 67 [04:48:53]Write i2c OK [04:48:53]MH_I2C_Read... [04:48:53]Read from MH i2c: 01 [04:48:53]MH_I2C_Read... [04:48:53]Read from MH i2c: 01 07 00 [04:48:53]MH_I2C_Read... [04:48:53]Read from MH i2c: 01 07 00 1A 4D 00 00 00 00 00 6C 0C E6 [04:48:53]RasterBufferAndPrint [04:48:53]line [04:48:53]line [04:48:53]line [04:48:53]line [04:48:53]line [04:48:53]written 0, free lines is 3184 [04:48:53]MH_Cut [04:48:53]Write to MH i2c: D1 01 00 21 4D 01 40 [04:48:53]Write i2c OK [04:48:53]MH_I2C_Read... [04:48:53]Read from MH i2c: D1 [04:48:53]MH_I2C_Read... [04:48:53]Read from MH i2c: D1 01 00 [04:48:53]MH_I2C_Read... [04:48:53]Read from MH i2c: D1 01 00 21 4D 00 3F [04:48:53]Write to MH i2c: 01 00 00 22 4D 6F [04:48:53]Write i2c OK [04:48:53]MH_I2C_Read... [04:48:53]OFD Sender: No OFD packet to send [04:48:54]*** Cut start [04:48:54]*** Partial cut [04:48:54]*** CUTSNS_PIN = 1 [04:48:54]*** CUTSNS_PIN = 0 [04:48:54]*** Brake cut motor [04:48:55]Read from MH i2c: 01 [04:48:55]MH_I2C_Read... [04:48:55]*** Stop cut motor [04:48:55]*** Cut end [04:48:55]Read from MH i2c: 01 07 00 [04:48:55]MH_I2C_Read... [04:48:55]Read from MH i2c: 01 07 00 22 4D 00 00 00 00 00 FF 0F 84 [04:48:55]process_action close_receipt done [04:48:55]requested_data is exist [04:48:55]produce_requested_data [04:48:55]requested_item fm.sn is exist - process it [04:48:55]wFMCommunicate request_size=4 [04:48:55]MH_SAM_APDU [04:48:55]CAPDU: 80 11 00 00 [04:48:55]Write to MH i2c: E2 08 00 23 4D 80 11 00 00 00 00 00 00 EA [04:48:55]Write i2c OK [04:48:55]MH_I2C_Read... [04:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:48:55]Read from MH i2c: E2 [04:48:55]MH_I2C_Read... [04:48:55]Read from MH i2c: E2 17 00 [04:48:55]MH_I2C_Read... [04:48:55]Read from MH i2c: E2 17 00 23 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 42 [04:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [04:48:55]wFMCommunicate OK [04:48:55]requested_item fd.num is exist - process it [04:48:55]SAM_PROTO_GetFieldsCounters [04:48:55]wFMCommunicate request_size=4 [04:48:55]MH_SAM_APDU [04:48:55]CAPDU: 80 13 00 00 [04:48:55]Write to MH i2c: E2 08 00 24 4D 80 13 00 00 00 00 00 00 ED [04:48:55]Write i2c OK [04:48:55]MH_I2C_Read... [04:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:48:55]Read from MH i2c: E2 [04:48:55]MH_I2C_Read... [04:48:55]Read from MH i2c: E2 62 00 [04:48:55]MH_I2C_Read... [04:48:55]Read from MH i2c: E2 62 00 24 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 68 00 00 0E 04 04 00 3B 01 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 B8 [04:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 68 00 00 0E 04 04 00 3B 01 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 [04:48:55]wFMCommunicate OK [04:48:55]SAM_PROTO_GetFieldsCounters done [04:48:55]requested_item shift.num is exist - process it [04:48:55]requested_item shift.opened is exist - process it [04:48:55]req_shift_opened [04:48:55]FM_GetShiftState [04:48:55]SAM_PROTO_GetShiftState [04:48:55]wFMCommunicate request_size=4 [04:48:55]MH_SAM_APDU [04:48:55]CAPDU: 80 13 01 00 [04:48:55]Write to MH i2c: E2 08 00 25 4D 80 13 01 00 00 00 00 00 EF [04:48:55]Write i2c OK [04:48:55]MH_I2C_Read... [04:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:55]Read from MH i2c: E2 [04:48:55]MH_I2C_Read... [04:48:55]Read from MH i2c: E2 0E 00 [04:48:55]MH_I2C_Read... [04:48:55]Read from MH i2c: E2 0E 00 25 4D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 5A [04:48:55]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [04:48:55]wFMCommunicate OK [04:48:55]SAM_PROTO_GetShiftState done [04:48:55]FM_GetShiftState done [04:48:55]req_shift_opened done [04:48:55]requested_item shift.open_date is exist - process it [04:48:55]req_shift_open_date [04:48:55]req_shift_open_date done [04:48:55]produce_requested_data done [04:48:55]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26870,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [04:48:55]process_action_free close_receipt [04:48:55]json_value_free [04:48:55]json_value_free done [04:48:55]process_json_proto returns [04:48:55]Send response to host [04:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26870,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [04:48:55]free response buf [04:48:55]execute_script done [04:48:55]execute_script returns [04:48:55]free content buf [04:48:55]Sock 10.Close socket [04:48:55]Sock 10.Thread stoped [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:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]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:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]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:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:34:01]ConnectInit Can't connect to host [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:14]accept exits with 8 [06:34:14]New connection [06:34:14]New thread 3066871140 created [06:34:14]Thread 3067014500 joined [06:34:14]Waiting for new connection... [06:34:14] Sock 8.Parse request [06:34:14]Sock 8.Check first char [06:34:14]Sock 8.First char is OK [06:34:14]request: POST /json_proto HTTP/1.0 [06:34:14]Method: POST [06:34:14]URL: /json_proto [06:34:14]Method is POST - this is cgi request [06:34:14]url: /json_proto [06:34:14]query_string will be loaded in cgi processing [06:34:14]execute_cgi json_proto POST (null) [06:34:14]execute_cgi path=json_proto method=POST [06:34:14]POST find Content-Length [06:34:14]Host: 172.17.35.3:8080 [06:34:14]Content-Length: 215 [06:34:14]Content-Type: application/json [06:34:14] [06:34:14]POST finish read [06:34:14]Found Content-Length = 215 [06:34: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" ] } } [06:34:14]execute_script... [06:34: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" ] } } [06:34:14]POST & json_proto [06:34:14]process_json_proto [06:34:14]json parsed OK: [06:34:14]protocol is kg_v1.0 [06:34:14]action value=get_value [06:34:14]process_action get_value [06:34:14]cmd_get_value [06:34:14]process_action get_value done [06:34:14]requested_data is exist [06:34:14]produce_requested_data [06:34:14]requested_item kkm.sn is exist - process it [06:34:14]requested_item kkm.ver is exist - process it [06:34:14]requested_item fm.sn is exist - process it [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 11 00 00 [06:34:14]Write to MH i2c: E2 08 00 26 4D 80 11 00 00 00 00 00 00 ED [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 17 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 17 00 26 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 45 [06:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [06:34:14]wFMCommunicate OK [06:34:14]requested_item fd.num is exist - process it [06:34:14]SAM_PROTO_GetFieldsCounters [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 13 00 00 [06:34:14]Write to MH i2c: E2 08 00 27 4D 80 13 00 00 00 00 00 00 F0 [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 62 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 62 00 27 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 68 00 00 0E 04 04 00 3B 01 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 BB [06:34:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F6 68 00 00 0E 04 04 00 3B 01 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 [06:34:14]wFMCommunicate OK [06:34:14]SAM_PROTO_GetFieldsCounters done [06:34:14]requested_item shift.num is exist - process it [06:34:14]requested_item shift.opened is exist - process it [06:34:14]req_shift_opened [06:34:14]FM_GetShiftState [06:34:14]SAM_PROTO_GetShiftState [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 13 01 00 [06:34:14]Write to MH i2c: E2 08 00 28 4D 80 13 01 00 00 00 00 00 F2 [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 0E 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 0E 00 28 4D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 5D [06:34:14]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [06:34:14]wFMCommunicate OK [06:34:14]SAM_PROTO_GetShiftState done [06:34:14]FM_GetShiftState done [06:34:14]req_shift_opened done [06:34:14]requested_item shift.open_date is exist - process it [06:34:14]req_shift_open_date [06:34:14]req_shift_open_date done [06:34:14]produce_requested_data done [06:34:14]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26870,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [06:34:14]process_action_free get_value [06:34:14]json_value_free [06:34:14]json_value_free done [06:34:14]process_json_proto returns [06:34:14]Send response to host [06:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26870,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [06:34:14]free response buf [06:34:14]execute_script done [06:34:14]execute_script returns [06:34:14]free content buf [06:34:14]Sock 8.Close socket [06:34:14]Sock 8.Thread stoped [06:34:14]accept exits with 9 [06:34:14]New connection [06:34:14]New thread 3067014500 created [06:34:14]Thread 3066871140 joined [06:34:14]Waiting for new connection... [06:34:14] Sock 9.Parse request [06:34:14]Sock 9.Check first char [06:34:14]Sock 9.First char is OK [06:34:14]request: POST /json_proto HTTP/1.0 [06:34:14]Method: POST [06:34:14]URL: /json_proto [06:34:14]Method is POST - this is cgi request [06:34:14]url: /json_proto [06:34:14]query_string will be loaded in cgi processing [06:34:14]execute_cgi json_proto POST (null) [06:34:14]execute_cgi path=json_proto method=POST [06:34:14]POST find Content-Length [06:34:14]Host: 172.17.35.3:8080 [06:34:14]Content-Length: 331 [06:34:14]Content-Type: application/json [06:34:14] [06:34:14]POST finish read [06:34:14]Found Content-Length = 331 [06:34: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" ] } } [06:34:14]execute_script... [06:34: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" ] } } [06:34:14]POST & json_proto [06:34:14]process_json_proto [06:34:14]json parsed OK: [06:34:14]protocol is kg_v1.0 [06:34:14]action value=get_value [06:34:14]process_action get_value [06:34:14]cmd_get_value [06:34:14]process_action get_value done [06:34:14]requested_data is exist [06:34:14]produce_requested_data [06:34:14]requested_item fm.sale.total is exist - process it [06:34:14]SAM_PROTO_GetFMData [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 13 03 00 [06:34:14]Write to MH i2c: E2 08 00 29 4D 80 13 03 00 00 00 00 00 F5 [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:34:15]Read from MH i2c: E2 [06:34:15]MH_I2C_Read... [06:34:15]Read from MH i2c: E2 FD 00 [06:34:15]MH_I2C_Read... [06:34:15]Read from MH i2c: E2 FD 00 29 4D 00 C0 04 85 04 BC 04 6E 04 04 00 80 66 00 00 69 04 A1 00 6F 04 04 00 3D 66 00 00 B1 04 04 00 6B 50 CC 9B 70 04 04 00 74 E2 D3 7F 72 04 04 00 F7 6D F8 1B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F8 83 8C 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 88 04 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 A4 [06:34:15]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 80 66 00 00 69 04 A1 00 6F 04 04 00 3D 66 00 00 B1 04 04 00 6B 50 CC 9B 70 04 04 00 74 E2 D3 7F 72 04 04 00 F7 6D F8 1B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F8 83 8C 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 88 04 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 [06:34:15]wFMCommunicate OK [06:34:15]wFMCommunicate request_size=4 [06:34:15]MH_SAM_APDU [06:34:15]CAPDU: 80 17 00 00 [06:34:15]Write to MH i2c: E2 08 00 2A 4D 80 17 00 00 00 00 00 00 F7 [06:34:15]Write i2c OK [06:34:15]MH_I2C_Read... [06:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:34:15]Read from MH i2c: E2 [06:34:15]MH_I2C_Read... [06:34:15]Read from MH i2c: E2 FD 00 [06:34:15]MH_I2C_Read... [06:34:15]Read from MH i2c: E2 FD 00 2A 4D 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 F0 [06:34:15]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [06:34:15]wFMCommunicate OK [06:34:15]wFMCommunicate request_size=4 [06:34:15]MH_SAM_APDU [06:34:15]CAPDU: 80 17 00 00 [06:34:15]Write to MH i2c: E2 08 00 2B 4D 80 17 00 00 00 00 00 00 F8 [06:34:15]Write i2c OK [06:34:15]MH_I2C_Read... [06:34:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:34:15]Read from MH i2c: E2 [06:34:15]MH_I2C_Read... [06:34:15]Read from MH i2c: E2 FD 00 [06:34:15]MH_I2C_Read... [06:34:15]Read from MH i2c: E2 FD 00 2B 4D 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9B [06:34:15]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [06:34:15]wFMCommunicate OK [06:34:15]wFMCommunicate request_size=4 [06:34:15]MH_SAM_APDU [06:34:15]CAPDU: 80 17 00 00 [06:34:15]Write to MH i2c: E2 08 00 2C 4D 80 17 00 00 00 00 00 00 F9 [06:34:15]Write i2c OK [06:34:15]MH_I2C_Read... [06:34:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:34:16]Read from MH i2c: E2 [06:34:16]MH_I2C_Read... [06:34:16]Read from MH i2c: E2 FD 00 [06:34:16]MH_I2C_Read... [06:34:16]Read from MH i2c: E2 FD 00 2C 4D 00 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [06:34:16]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:34:16]wFMCommunicate OK [06:34:16]wFMCommunicate request_size=4 [06:34:16]MH_SAM_APDU [06:34:16]CAPDU: 80 17 00 00 [06:34:16]Write to MH i2c: E2 08 00 2D 4D 80 17 00 00 00 00 00 00 FA [06:34:16]Write i2c OK [06:34:16]MH_I2C_Read... [06:34:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [06:34:16]Read from MH i2c: E2 [06:34:16]MH_I2C_Read... [06:34:16]Read from MH i2c: E2 DD 00 [06:34:16]MH_I2C_Read... [06:34:16]Read from MH i2c: E2 DD 00 2D 4D 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 [06:34:16]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [06:34:16]wFMCommunicate OK [06:34:16]SAM_PROTO_GetFMData done [06:34:16]requested_item fm.sale_refund.total is exist - process it [06:34:16]requested_item fm.buy.total is exist - process it [06:34:16]requested_item shift.sale.total is exist - process it [06:34:16]SAM_PROTO_GetShiftData [06:34:16]wFMCommunicate request_size=4 [06:34:16]MH_SAM_APDU [06:34:16]CAPDU: 80 13 02 00 [06:34:16]Write to MH i2c: E2 08 00 2E 4D 80 13 02 00 00 00 00 00 F9 [06:34:16]Write i2c OK [06:34:16]MH_I2C_Read... [06:34:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:34:16]Read from MH i2c: E2 [06:34:16]MH_I2C_Read... [06:34:16]Read from MH i2c: E2 FD 00 [06:34:16]MH_I2C_Read... [06:34:16]Read from MH i2c: E2 FD 00 2E 4D 00 AA 04 AA 04 A6 04 6E 04 04 00 02 00 00 00 69 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 F0 49 02 70 04 03 00 F0 49 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 40 3E 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 30 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [06:34:16]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 02 00 00 00 69 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 F0 49 02 70 04 03 00 F0 49 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 40 3E 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 30 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:34:16]wFMCommunicate OK [06:34:16]wFMCommunicate request_size=4 [06:34:16]MH_SAM_APDU [06:34:16]CAPDU: 80 17 00 00 [06:34:16]Write to MH i2c: E2 08 00 2F 4D 80 17 00 00 00 00 00 00 FC [06:34:16]Write i2c OK [06:34:16]MH_I2C_Read... [06:34:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:34:17]Read from MH i2c: E2 [06:34:17]MH_I2C_Read... [06:34:17]Read from MH i2c: E2 FD 00 [06:34:17]MH_I2C_Read... [06:34:17]Read from MH i2c: E2 FD 00 2F 4D 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [06:34:17]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:34:17]wFMCommunicate OK [06:34:17]wFMCommunicate request_size=4 [06:34:17]MH_SAM_APDU [06:34:17]CAPDU: 80 17 00 00 [06:34:17]Write to MH i2c: E2 08 00 30 4D 80 17 00 00 00 00 00 00 FD [06:34:17]Write i2c OK [06:34:17]MH_I2C_Read... [06:34:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:34:17]Read from MH i2c: E2 [06:34:17]MH_I2C_Read... [06:34:17]Read from MH i2c: E2 FD 00 [06:34:17]MH_I2C_Read... [06:34:17]Read from MH i2c: E2 FD 00 30 4D 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [06:34:17]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:34:17]wFMCommunicate OK [06:34:17]wFMCommunicate request_size=4 [06:34:17]MH_SAM_APDU [06:34:17]CAPDU: 80 17 00 00 [06:34:17]Write to MH i2c: E2 08 00 31 4D 80 17 00 00 00 00 00 00 FE [06:34:17]Write i2c OK [06:34:17]MH_I2C_Read... [06:34:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:34:17]Read from MH i2c: E2 [06:34:17]MH_I2C_Read... [06:34:17]Read from MH i2c: E2 FD 00 [06:34:17]MH_I2C_Read... [06:34:17]Read from MH i2c: E2 FD 00 31 4D 00 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 90 00 70 [06:34:17]RAPDU: 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 90 00 [06:34:17]wFMCommunicate OK [06:34:17]wFMCommunicate request_size=4 [06:34:17]MH_SAM_APDU [06:34:17]CAPDU: 80 17 00 00 [06:34:17]Write to MH i2c: E2 08 00 32 4D 80 17 00 00 00 00 00 00 FF [06:34:17]Write i2c OK [06:34:17]MH_I2C_Read... [06:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [06:34:18]Read from MH i2c: E2 [06:34:18]MH_I2C_Read... [06:34:18]Read from MH i2c: E2 C7 00 [06:34:18]MH_I2C_Read... [06:34:18]Read from MH i2c: E2 C7 00 32 4D 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [06:34:18]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [06:34:18]wFMCommunicate OK [06:34:18]SAM_PROTO_GetShiftData done [06:34:18]requested_item shift.sale.total_cash is exist - process it [06:34:18]requested_item shift.sale_refund.total is exist - process it [06:34:18]requested_item shift.sale_refund.total_cash is exist - process it [06:34:18]requested_item shift.buy.total is exist - process it [06:34:18]requested_item shift.buy.total_cash is exist - process it [06:34:18]produce_requested_data done [06:34:18]produce_requested_data return {"fm.sale.total":26138584.11,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":1500.00,"shift.sale.total_cash":1500.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} [06:34:18]process_action_free get_value [06:34:18]json_value_free [06:34:18]json_value_free done [06:34:18]process_json_proto returns [06:34:18]Send response to host [06:34:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26138584.11,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":1500.00,"shift.sale.total_cash":1500.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}}} [06:34:18]free response buf [06:34:18]execute_script done [06:34:18]execute_script returns [06:34:18]free content buf [06:34:18]Sock 9.Close socket [06:34:18]Sock 9.Thread stoped [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:47]accept exits with 8 [07:15:47]New connection [07:15:47]New thread 3066871140 created [07:15:47]Thread 3067014500 joined [07:15:47]Waiting for new connection... [07:15:47] Sock 8.Parse request [07:15:47]Sock 8.Check first char [07:15:47]Sock 8.First char is OK [07:15:47]request: POST /json_proto HTTP/1.0 [07:15:47]Method: POST [07:15:47]URL: /json_proto [07:15:47]Method is POST - this is cgi request [07:15:47]url: /json_proto [07:15:47]query_string will be loaded in cgi processing [07:15:47]execute_cgi json_proto POST (null) [07:15:47]execute_cgi path=json_proto method=POST [07:15:47]POST find Content-Length [07:15:47]Host: 172.17.35.3:8080 [07:15:47]Content-Length: 808 [07:15:47]Content-Type: application/json [07:15:47] [07:15:47]POST finish read [07:15:47]Found Content-Length = 808 [07:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359615", "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" : 71.80, "quantity" : 20.900, "sum" : 1500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:47]execute_script... [07:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359615", "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" : 71.80, "quantity" : 20.900, "sum" : 1500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:47]POST & json_proto [07:15:47]process_json_proto [07:15:47]json parsed OK: [07:15:47]protocol is kg_v1.0 [07:15:47]action value=close_receipt [07:15:47]process_action close_receipt [07:15:47]cmd_close_receipt [07:15:47]MH_GetDate [07:15:47]Write to MH i2c: F0 00 00 33 4D 6F [07:15:47]Write i2c OK [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: F0 [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: F0 09 00 [07:15:47]MH_I2C_Read... [07:15:47]Read from MH i2c: F0 09 00 33 4D 00 37 EB 14 66 2B 11 66 64 1A [07:15:47]GetLastDocTimeStamp 1712638149 [07:15:47]current date 1712646967 [07:15:47]FM_GetShiftState [07:15:47]SAM_PROTO_GetShiftState [07:15:47]wFMCommunicate request_size=4 [07:15:47]MH_SAM_APDU [07:15:47]CAPDU: 80 13 01 00 [07:15:47]Write to MH i2c: E2 08 00 34 4D 80 13 01 00 00 00 00 00 FE [07:15:47]Write i2c OK [07:15:47]MH_I2C_Read... [07:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:48]Read from MH i2c: E2 [07:15:48]MH_I2C_Read... [07:15:48]Read from MH i2c: E2 0E 00 [07:15:48]MH_I2C_Read... [07:15:48]Read from MH i2c: E2 0E 00 34 4D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 69 [07:15:48]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [07:15:48]wFMCommunicate OK [07:15:48]SAM_PROTO_GetShiftState done [07:15:48]FM_GetShiftState done [07:15:48]opened in 1712622936 [07:15:48]opened+sec_in_day 1712709336 [07:15:48]quantity*price = 150062 [07:15:48]sum+1 = 150063 [07:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.62 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.62 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 3 09.04.2024 07:16 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26871 ФПД: 117090191870925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T071607&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26871&fm=117090191870925&tin=02508201610067®Number=0000000000091578&sum=150062 [07:15:49]StoreToDocumentArchive [07:15:49]shift 315 fd 26871 [07:15:49]save to /storage/0315/doc_00026871 [07:15:49]save last doc name /storage/0315/doc_00026871 to /storage/kkm_last_doc_name [07:15:49]save OK [07:15:49]Clear old archive folders... [07:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:15:49]tlvbuf is B6F64010 [07:15:49]SAM_PROTO_ClearQueue [07:15:49]wFMCommunicate request_size=4 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 09 00 00 [07:15:49]Write to MH i2c: E2 08 00 41 4D 80 09 00 00 00 00 00 00 00 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 41 4D 00 90 00 02 [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]SAM_PROTO_ClearQueue done [07:15:49]KKMCreateOFDPacket [07:15:49]OFDProtocolAddRootSTLVToBuf [07:15:49]FM_MakeSignedData [07:15:49]FM_MakeSignedData [07:15:49]SAM_PROTO_SignData [07:15:49]wFMCommunicate request_size=4 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 0D 01 02 [07:15:49]Write to MH i2c: E2 08 00 42 4D 80 0D 01 02 00 00 00 00 08 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 42 4D 00 90 00 03 [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]wFMCommunicate request_size=255 [07:15:49]MH_SAM_APDU [07:15:49]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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 37 EB 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 68 00 00 35 04 06 00 [07:15:49]Write to MH i2c: E2 02 01 43 4D 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 37 EB 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 68 00 00 35 04 06 00 00 00 CF [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 43 4D 00 90 00 04 [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]wFMCommunicate request_size=11 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 0D 02 02 06 6A 7E 2F 4B 0B CD [07:15:49]Write to MH i2c: E2 0E 00 44 4D 80 0D 02 02 06 00 6A 7E 2F 4B 0B CD 00 00 51 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 03 00 44 4D 00 90 00 05 [07:15:49]RAPDU: 90 00 [07:15:49]wFMCommunicate OK [07:15:49]wFMCommunicate request_size=4 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 0D 03 02 [07:15:49]Write to MH i2c: E2 08 00 45 4D 80 0D 03 02 00 00 00 00 0D [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 0B 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 0B 00 45 4D 00 BC C4 9E 81 FA A7 E9 BA 90 00 F1 [07:15:49]RAPDU: BC C4 9E 81 FA A7 E9 BA 90 00 [07:15:49]wFMCommunicate OK [07:15:49]SAM_PROTO_SignData done [07:15:49]FM_MakeSignedData done [07:15:49]CreateOFDProtocolMessage [07:15:49]wFMCommunicate request_size=4 [07:15:49]MH_SAM_APDU [07:15:49]CAPDU: 80 11 00 00 [07:15:49]Write to MH i2c: E2 08 00 46 4D 80 11 00 00 00 00 00 00 0D [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:49]Read from MH i2c: E2 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 17 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: E2 17 00 46 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 65 [07:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:15:49]wFMCommunicate OK [07:15:49]CreateOFDProtocolMessage done [07:15:49]OFDSenderStorePacket 26871 [07:15:49]StoreOFDPacket docnum=26871 [07:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 AB 0F 08 01 CC C7 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 37 EB 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 68 00 00 35 04 06 00 6A 7E 2F 4B 0B CD BC C4 9E 81 FA A7 E9 BA [07:15:49]CheckFolder [07:15:49]dirname=/storage/ofd_packets [07:15:49]CheckFolder done [07:15:49]ProducePacketName [07:15:49]name=ofd_packets/00026871 [07:15:49]NVStorageSaveData ofd_packets/00026871 [07:15:49]File name is /storage/ofd_packets/00026871 [07:15:49]Write 302 bytes [07:15:49]NVStorageSaveData done [07:15:49]OFDSenderStorePacket done [07:15:49]KKMCreateOFDPacket done [07:15:49]NVStorageSaveData kkm_last_timestamp [07:15:49]File name is /storage/kkm_last_timestamp [07:15:49]Write 4 bytes [07:15:49]NVStorageSaveData done [07:15:49]ExternCall_PrintAddStr [07:15:49]wPrintStart [07:15:49]Write to MH i2c: 01 00 00 47 4D 94 [07:15:49]Write i2c OK [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: 01 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: 01 07 00 [07:15:49]MH_I2C_Read... [07:15:49]Read from MH i2c: 01 07 00 47 4D 00 00 00 00 00 FF 0F A9 [07:15:49]RasterBufferAndPrint [07:15:49]line Счет N : (1)359615 [07:15:49]line ИНН: 02508201610067 [07:15:49]line Контрольно-Кассовый Чек [07:15:49]line ПРОДАЖА [07:15:49]line ТРК (МРК, ГНК) : 11 [07:15:49]line Товар: 2710194210 [07:15:49]line ДТ(л)-К-5 [07:15:49]line 20.900 * 71.80 [07:15:49]line = 1500.62 [07:15:49]line НДС 12% НСП 1% [07:15:49]line > о реализуемом товаре [07:15:49]line ИТОГО: 1500.62 [07:15:49]line НСП 1% : 13.28 [07:15:49]line НДС 12% : 159.36 [07:15:49]line Наличными: 0.00 [07:15:49]line Безнал.: 1500.62 [07:15:49]line Место: АЗС № 122 "Партнер Нефть" [07:15:49]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [07:15:49]line СНО: Общий режим [07:15:49]line Чек 3 09.04.2024 07:16 [07:15:49]line Смена: 315 ФФД: 1.0 [07:15:49]line ЗНМ: 0300000147 [07:15:49]line РНМ: 0000000000091578 [07:15:49]line Версия ККМ: 001 [07:15:49]line Платежная система: O! деньги [07:15:49]line ФМ: 0000000000874657 [07:15:49]line ФД: 26871 [07:15:49]line ФПД: 117090191870925 [07:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T071607&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26871&fm=117090191870925&tin=02508201610067®Number=0000000000091578&sum=150062 [07:15:49]OFD Sender: Processing packet 26871 [packets to send 44, broken 43] [07:15:50]ProducePacketName [07:15:50]name=ofd_packets/00026871 [07:15:50]OFD Sender: To server: pG, [07:15:50]CommunicateWithHost lk.salyk.kg:30040 [07:15:50]ConnectInit lk.salyk.kg [07:15:50]written 0, free lines is 4095 [07:15:50]Connected sock=11 [07:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 AB 0F 08 01 CC C7 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 37 EB 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 68 00 00 35 04 06 00 6A 7E 2F 4B 0B CD BC C4 9E 81 FA A7 E9 BA [07:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 5F B8 47 00 9E D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F7 68 00 00 F4 03 04 00 9E 92 14 66 B6 04 01 00 00 B0 D8 55 4F 0E 6E 49 1E [07:15:50]CommunicateWithHost err = 0 [07:15:50]CheckOFDResponse [07:15:50]1017 (14) - 77093643461234 [07:15:50]1041 (16) - 0000000000874657 [07:15:50]1040 (4) - 26871 [07:15:50]1012 (4) - 09.04.2024 00:58 [07:15:50]1206 (1) - 0 [07:15:50]OFD Sender: Remove packet 26871 [07:15:50]ProducePacketName [07:15:50]name=ofd_packets/00026871 [07:15:50]NVStorageDeleteData [07:15:50]Write to MH i2c: 01 00 00 71 4D BE [07:15:50]Write i2c OK [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: 01 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: 01 07 00 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: 01 07 00 71 4D 00 00 00 00 00 7D 0C 4E [07:15:50]RasterBufferAndPrint [07:15:50]line [07:15:50]line [07:15:50]line [07:15:50]line [07:15:50]line [07:15:50]written 0, free lines is 3201 [07:15:50]MH_Cut [07:15:50]Write to MH i2c: D1 01 00 78 4D 01 97 [07:15:50]Write i2c OK [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: D1 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: D1 01 00 [07:15:50]MH_I2C_Read... [07:15:50]Read from MH i2c: D1 01 00 78 4D 00 96 [07:15:50]Write to MH i2c: 01 00 00 79 4D C6 [07:15:50]Write i2c OK [07:15:50]MH_I2C_Read... [07:15:50]OFD Sender: No OFD packet to send [07:15:51]*** Cut start [07:15:51]*** Partial cut [07:15:51]*** CUTSNS_PIN = 1 [07:15:51]*** CUTSNS_PIN = 0 [07:15:51]*** Brake cut motor [07:15:52]Read from MH i2c: 01 [07:15:52]MH_I2C_Read... [07:15:52]*** Stop cut motor [07:15:52]*** Cut end [07:15:52]Read from MH i2c: 01 07 00 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: 01 07 00 79 4D 00 00 00 00 00 FF 0F DB [07:15:52]process_action close_receipt done [07:15:52]requested_data is exist [07:15:52]produce_requested_data [07:15:52]requested_item fm.sn is exist - process it [07:15:52]wFMCommunicate request_size=4 [07:15:52]MH_SAM_APDU [07:15:52]CAPDU: 80 11 00 00 [07:15:52]Write to MH i2c: E2 08 00 7A 4D 80 11 00 00 00 00 00 00 41 [07:15:52]Write i2c OK [07:15:52]MH_I2C_Read... [07:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:52]Read from MH i2c: E2 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 17 00 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 17 00 7A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 99 [07:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:15:52]wFMCommunicate OK [07:15:52]requested_item fd.num is exist - process it [07:15:52]SAM_PROTO_GetFieldsCounters [07:15:52]wFMCommunicate request_size=4 [07:15:52]MH_SAM_APDU [07:15:52]CAPDU: 80 13 00 00 [07:15:52]Write to MH i2c: E2 08 00 7B 4D 80 13 00 00 00 00 00 00 44 [07:15:52]Write i2c OK [07:15:52]MH_I2C_Read... [07:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:52]Read from MH i2c: E2 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 62 00 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 62 00 7B 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F7 68 00 00 0E 04 04 00 3B 01 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 13 [07:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F7 68 00 00 0E 04 04 00 3B 01 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 [07:15:52]wFMCommunicate OK [07:15:52]SAM_PROTO_GetFieldsCounters done [07:15:52]requested_item shift.num is exist - process it [07:15:52]requested_item shift.opened is exist - process it [07:15:52]req_shift_opened [07:15:52]FM_GetShiftState [07:15:52]SAM_PROTO_GetShiftState [07:15:52]wFMCommunicate request_size=4 [07:15:52]MH_SAM_APDU [07:15:52]CAPDU: 80 13 01 00 [07:15:52]Write to MH i2c: E2 08 00 7C 4D 80 13 01 00 00 00 00 00 46 [07:15:52]Write i2c OK [07:15:52]MH_I2C_Read... [07:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:52]Read from MH i2c: E2 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 0E 00 [07:15:52]MH_I2C_Read... [07:15:52]Read from MH i2c: E2 0E 00 7C 4D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 B1 [07:15:52]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [07:15:52]wFMCommunicate OK [07:15:52]SAM_PROTO_GetShiftState done [07:15:52]FM_GetShiftState done [07:15:52]req_shift_opened done [07:15:52]requested_item shift.open_date is exist - process it [07:15:52]req_shift_open_date [07:15:52]req_shift_open_date done [07:15:52]produce_requested_data done [07:15:52]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26871,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [07:15:52]process_action_free close_receipt [07:15:52]json_value_free [07:15:52]json_value_free done [07:15:52]process_json_proto returns [07:15:52]Send response to host [07:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26871,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [07:15:52]free response buf [07:15:52]execute_script done [07:15:52]execute_script returns [07:15:52]free content buf [07:15:52]Sock 8.Close socket [07:15:52]Sock 8.Thread stoped [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:25]accept exits with 9 [07:45:25]New connection [07:45:25]New thread 3067014500 created [07:45:25]Thread 3066871140 joined [07:45:25]Waiting for new connection... [07:45:25] Sock 9.Parse request [07:45:25]Sock 9.Check first char [07:45:25]Sock 9.First char is OK [07:45:25]request: POST /json_proto HTTP/1.0 [07:45:25]Method: POST [07:45:25]URL: /json_proto [07:45:25]Method is POST - this is cgi request [07:45:25]url: /json_proto [07:45:25]query_string will be loaded in cgi processing [07:45:25]execute_cgi json_proto POST (null) [07:45:25]execute_cgi path=json_proto method=POST [07:45:25]POST find Content-Length [07:45:25]Host: 172.17.35.3:8080 [07:45:25]Content-Length: 687 [07:45:25]Content-Type: application/json [07:45:25] [07:45:25]POST finish read [07:45:25]Found Content-Length = 687 [07:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359616", "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" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "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" ] } } [07:45:25]execute_script... [07:45:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359616", "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" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "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" ] } } [07:45:25]POST & json_proto [07:45:25]process_json_proto [07:45:25]json parsed OK: [07:45:25]protocol is kg_v1.0 [07:45:25]action value=close_receipt [07:45:25]process_action close_receipt [07:45:25]cmd_close_receipt [07:45:25]MH_GetDate [07:45:25]Write to MH i2c: F0 00 00 7D 4D B9 [07:45:25]Write i2c OK [07:45:25]MH_I2C_Read... [07:45:25]Read from MH i2c: F0 [07:45:25]MH_I2C_Read... [07:45:25]Read from MH i2c: F0 09 00 [07:45:25]MH_I2C_Read... [07:45:25]Read from MH i2c: F0 09 00 7D 4D 00 28 F2 14 66 2B 11 66 64 5C [07:45:25]GetLastDocTimeStamp 1712646967 [07:45:25]current date 1712648744 [07:45:25]FM_GetShiftState [07:45:25]SAM_PROTO_GetShiftState [07:45:25]wFMCommunicate request_size=4 [07:45:25]MH_SAM_APDU [07:45:25]CAPDU: 80 13 01 00 [07:45:25]Write to MH i2c: E2 08 00 7E 4D 80 13 01 00 00 00 00 00 48 [07:45:25]Write i2c OK [07:45:25]MH_I2C_Read... [07:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:25]Read from MH i2c: E2 [07:45:25]MH_I2C_Read... [07:45:25]Read from MH i2c: E2 0E 00 [07:45:25]MH_I2C_Read... [07:45:25]Read from MH i2c: E2 0E 00 7E 4D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 B3 [07:45:25]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [07:45:25]wFMCommunicate OK [07:45:25]SAM_PROTO_GetShiftState done [07:45:25]FM_GetShiftState done [07:45:25]opened in 1712622936 [07:45:25]opened+sec_in_day 1712709336 [07:45:25]quantity*price = 100017 [07:45:25]sum+1 = 100018 [07:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 4 09.04.2024 07:45 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26872 ФПД: 162953253344781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T074544&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26872&fm=162953253344781&tin=02508201610067®Number=0000000000091578&sum=100000 [07:45:26]StoreToDocumentArchive [07:45:26]shift 315 fd 26872 [07:45:26]save to /storage/0315/doc_00026872 [07:45:26]save last doc name /storage/0315/doc_00026872 to /storage/kkm_last_doc_name [07:45:26]save OK [07:45:26]Clear old archive folders... [07:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:45:26]tlvbuf is 00EC88E0 [07:45:26]SAM_PROTO_ClearQueue [07:45:26]wFMCommunicate request_size=4 [07:45:26]MH_SAM_APDU [07:45:26]CAPDU: 80 09 00 00 [07:45:26]Write to MH i2c: E2 08 00 8B 4D 80 09 00 00 00 00 00 00 4A [07:45:26]Write i2c OK [07:45:26]MH_I2C_Read... [07:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:26]Read from MH i2c: E2 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 8B 4D 00 90 00 4C [07:45:26]RAPDU: 90 00 [07:45:26]wFMCommunicate OK [07:45:26]SAM_PROTO_ClearQueue done [07:45:26]KKMCreateOFDPacket [07:45:26]OFDProtocolAddRootSTLVToBuf [07:45:26]FM_MakeSignedData [07:45:26]FM_MakeSignedData [07:45:26]SAM_PROTO_SignData [07:45:26]wFMCommunicate request_size=4 [07:45:26]MH_SAM_APDU [07:45:26]CAPDU: 80 0D 01 02 [07:45:26]Write to MH i2c: E2 08 00 8C 4D 80 0D 01 02 00 00 00 00 52 [07:45:26]Write i2c OK [07:45:26]MH_I2C_Read... [07:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:26]Read from MH i2c: E2 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 8C 4D 00 90 00 4D [07:45:26]RAPDU: 90 00 [07:45:26]wFMCommunicate OK [07:45:26]wFMCommunicate request_size=255 [07:45:26]MH_SAM_APDU [07:45:26]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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 28 F2 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 68 00 00 35 04 06 00 [07:45:26]Write to MH i2c: E2 02 01 8D 4D 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 28 F2 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 68 00 00 35 04 06 00 00 00 41 [07:45:26]Write i2c OK [07:45:26]MH_I2C_Read... [07:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:26]Read from MH i2c: E2 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 8D 4D 00 90 00 4E [07:45:26]RAPDU: 90 00 [07:45:26]wFMCommunicate OK [07:45:26]wFMCommunicate request_size=11 [07:45:26]MH_SAM_APDU [07:45:26]CAPDU: 80 0D 02 02 06 94 34 82 C7 D6 0D [07:45:26]Write to MH i2c: E2 0E 00 8E 4D 80 0D 02 02 06 00 94 34 82 C7 D6 0D 00 00 55 [07:45:26]Write i2c OK [07:45:26]MH_I2C_Read... [07:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:26]Read from MH i2c: E2 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 [07:45:26]MH_I2C_Read... [07:45:26]Read from MH i2c: E2 03 00 8E 4D 00 90 00 4F [07:45:26]RAPDU: 90 00 [07:45:26]wFMCommunicate OK [07:45:26]wFMCommunicate request_size=4 [07:45:26]MH_SAM_APDU [07:45:26]CAPDU: 80 0D 03 02 [07:45:26]Write to MH i2c: E2 08 00 8F 4D 80 0D 03 02 00 00 00 00 57 [07:45:26]Write i2c OK [07:45:26]MH_I2C_Read... [07:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:27]Read from MH i2c: E2 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: E2 0B 00 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: E2 0B 00 8F 4D 00 79 B1 CA CA 08 1F E3 6C 90 00 8C [07:45:27]RAPDU: 79 B1 CA CA 08 1F E3 6C 90 00 [07:45:27]wFMCommunicate OK [07:45:27]SAM_PROTO_SignData done [07:45:27]FM_MakeSignedData done [07:45:27]CreateOFDProtocolMessage [07:45:27]wFMCommunicate request_size=4 [07:45:27]MH_SAM_APDU [07:45:27]CAPDU: 80 11 00 00 [07:45:27]Write to MH i2c: E2 08 00 90 4D 80 11 00 00 00 00 00 00 57 [07:45:27]Write i2c OK [07:45:27]MH_I2C_Read... [07:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:27]Read from MH i2c: E2 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: E2 17 00 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: E2 17 00 90 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AF [07:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:45:27]wFMCommunicate OK [07:45:27]CreateOFDProtocolMessage done [07:45:27]OFDSenderStorePacket 26872 [07:45:27]StoreOFDPacket docnum=26872 [07:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 80 EB 08 01 6F 77 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 28 F2 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 68 00 00 35 04 06 00 94 34 82 C7 D6 0D 79 B1 CA CA 08 1F E3 6C [07:45:27]CheckFolder [07:45:27]dirname=/storage/ofd_packets [07:45:27]CheckFolder done [07:45:27]ProducePacketName [07:45:27]name=ofd_packets/00026872 [07:45:27]NVStorageSaveData ofd_packets/00026872 [07:45:27]File name is /storage/ofd_packets/00026872 [07:45:27]Write 302 bytes [07:45:27]NVStorageSaveData done [07:45:27]OFDSenderStorePacket done [07:45:27]KKMCreateOFDPacket done [07:45:27]NVStorageSaveData kkm_last_timestamp [07:45:27]File name is /storage/kkm_last_timestamp [07:45:27]Write 4 bytes [07:45:27]NVStorageSaveData done [07:45:27]ExternCall_PrintAddStr [07:45:27]wPrintStart [07:45:27]Write to MH i2c: 01 00 00 91 4D DE [07:45:27]Write i2c OK [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: 01 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: 01 07 00 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: 01 07 00 91 4D 00 00 00 00 00 FF 0F F3 [07:45:27]RasterBufferAndPrint [07:45:27]line Счет N : (1)359616 [07:45:27]line ИНН: 02508201610067 [07:45:27]line Контрольно-Кассовый Чек [07:45:27]line ПРОДАЖА [07:45:27]line ТРК (МРК, ГНК) : 11 [07:45:27]line Товар: 2710194210 [07:45:27]line ДТ(л)-К-5 [07:45:27]line 13.930 * 71.80 [07:45:27]line = 1000.17 [07:45:27]line НДС 12% НСП 1% [07:45:27]line > о реализуемом товаре [07:45:27]line ОКРУГЛЕНИЕ: -0.17 [07:45:27]line ИТОГО: 1000.00 [07:45:27]line Внесено: 1000.00 [07:45:27]line СДАЧА: 0.00 [07:45:27]line НСП 1% : 8.85 [07:45:27]line НДС 12% : 106.21 [07:45:27]line Наличными: 1000.00 [07:45:27]line Безнал.: 0.00 [07:45:27]line Место: АЗС № 122 "Партнер Нефть" [07:45:27]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [07:45:27]line СНО: Общий режим [07:45:27]line Чек 4 09.04.2024 07:45 [07:45:27]line Смена: 315 ФФД: 1.0 [07:45:27]line ЗНМ: 0300000147 [07:45:27]line РНМ: 0000000000091578 [07:45:27]line Версия ККМ: 001 [07:45:27]line ФМ: 0000000000874657 [07:45:27]line ФД: 26872 [07:45:27]line ФПД: 162953253344781 [07:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T074544&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26872&fm=162953253344781&tin=02508201610067®Number=0000000000091578&sum=100000 [07:45:27]OFD Sender: Processing packet 26872 [packets to send 44, broken 43] [07:45:27]ProducePacketName [07:45:27]name=ofd_packets/00026872 [07:45:27]OFD Sender: To server: pG, [07:45:27]CommunicateWithHost lk.salyk.kg:30040 [07:45:27]ConnectInit lk.salyk.kg [07:45:27]written 0, free lines is 4095 [07:45:27]Connected sock=10 [07:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 80 EB 08 01 6F 77 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 28 F2 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 68 00 00 35 04 06 00 94 34 82 C7 D6 0D 79 B1 CA CA 08 1F E3 6C [07:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F9 36 47 00 8C 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F8 68 00 00 F4 03 04 00 90 99 14 66 B6 04 01 00 00 CD 37 F3 BB E1 1F 15 CF [07:45:27]CommunicateWithHost err = 0 [07:45:27]CheckOFDResponse [07:45:27]1017 (14) - 77093643461234 [07:45:27]1041 (16) - 0000000000874657 [07:45:27]1040 (4) - 26872 [07:45:27]1012 (4) - 09.04.2024 01:27 [07:45:27]1206 (1) - 0 [07:45:27]OFD Sender: Remove packet 26872 [07:45:27]ProducePacketName [07:45:27]name=ofd_packets/00026872 [07:45:27]NVStorageDeleteData [07:45:27]Write to MH i2c: 01 00 00 BC 4D 09 [07:45:27]Write i2c OK [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: 01 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: 01 07 00 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: 01 07 00 BC 4D 00 00 00 00 00 72 0C 8E [07:45:27]RasterBufferAndPrint [07:45:27]line [07:45:27]line [07:45:27]line [07:45:27]line [07:45:27]line [07:45:27]written 0, free lines is 3190 [07:45:27]MH_Cut [07:45:27]Write to MH i2c: D1 01 00 C3 4D 01 E2 [07:45:27]Write i2c OK [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: D1 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: D1 01 00 [07:45:27]MH_I2C_Read... [07:45:27]Read from MH i2c: D1 01 00 C3 4D 00 E1 [07:45:27]Write to MH i2c: 01 00 00 C4 4D 11 [07:45:27]Write i2c OK [07:45:27]MH_I2C_Read... [07:45:28]OFD Sender: No OFD packet to send [07:45:29]*** Cut start [07:45:29]*** Partial cut [07:45:29]*** CUTSNS_PIN = 1 [07:45:29]*** CUTSNS_PIN = 0 [07:45:29]*** Brake cut motor [07:45:29]Read from MH i2c: 01 [07:45:29]MH_I2C_Read... [07:45:29]*** Stop cut motor [07:45:29]*** Cut end [07:45:29]Read from MH i2c: 01 07 00 [07:45:29]MH_I2C_Read... [07:45:29]Read from MH i2c: 01 07 00 C4 4D 00 00 00 00 00 FF 0F 26 [07:45:29]process_action close_receipt done [07:45:29]requested_data is exist [07:45:29]produce_requested_data [07:45:29]requested_item fm.sn is exist - process it [07:45:29]wFMCommunicate request_size=4 [07:45:29]MH_SAM_APDU [07:45:29]CAPDU: 80 11 00 00 [07:45:29]Write to MH i2c: E2 08 00 C5 4D 80 11 00 00 00 00 00 00 8C [07:45:29]Write i2c OK [07:45:29]MH_I2C_Read... [07:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:29]Read from MH i2c: E2 [07:45:29]MH_I2C_Read... [07:45:29]Read from MH i2c: E2 17 00 [07:45:29]MH_I2C_Read... [07:45:29]Read from MH i2c: E2 17 00 C5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E4 [07:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:45:29]wFMCommunicate OK [07:45:29]requested_item fd.num is exist - process it [07:45:29]SAM_PROTO_GetFieldsCounters [07:45:29]wFMCommunicate request_size=4 [07:45:29]MH_SAM_APDU [07:45:29]CAPDU: 80 13 00 00 [07:45:29]Write to MH i2c: E2 08 00 C6 4D 80 13 00 00 00 00 00 00 8F [07:45:29]Write i2c OK [07:45:29]MH_I2C_Read... [07:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:29]Read from MH i2c: E2 [07:45:29]MH_I2C_Read... [07:45:29]Read from MH i2c: E2 62 00 [07:45:29]MH_I2C_Read... [07:45:29]Read from MH i2c: E2 62 00 C6 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F8 68 00 00 0E 04 04 00 3B 01 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 62 [07:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F8 68 00 00 0E 04 04 00 3B 01 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 [07:45:29]wFMCommunicate OK [07:45:29]SAM_PROTO_GetFieldsCounters done [07:45:29]requested_item shift.num is exist - process it [07:45:29]requested_item shift.opened is exist - process it [07:45:29]req_shift_opened [07:45:29]FM_GetShiftState [07:45:29]SAM_PROTO_GetShiftState [07:45:29]wFMCommunicate request_size=4 [07:45:29]MH_SAM_APDU [07:45:29]CAPDU: 80 13 01 00 [07:45:29]Write to MH i2c: E2 08 00 C7 4D 80 13 01 00 00 00 00 00 91 [07:45:29]Write i2c OK [07:45:29]MH_I2C_Read... [07:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:29]Read from MH i2c: E2 [07:45:29]MH_I2C_Read... [07:45:29]Read from MH i2c: E2 0E 00 [07:45:29]MH_I2C_Read... [07:45:29]Read from MH i2c: E2 0E 00 C7 4D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 FC [07:45:29]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [07:45:29]wFMCommunicate OK [07:45:29]SAM_PROTO_GetShiftState done [07:45:29]FM_GetShiftState done [07:45:29]req_shift_opened done [07:45:29]requested_item shift.open_date is exist - process it [07:45:29]req_shift_open_date [07:45:29]req_shift_open_date done [07:45:29]produce_requested_data done [07:45:29]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26872,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [07:45:29]process_action_free close_receipt [07:45:29]json_value_free [07:45:29]json_value_free done [07:45:29]process_json_proto returns [07:45:29]Send response to host [07:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26872,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [07:45:29]free response buf [07:45:29]execute_script done [07:45:29]execute_script returns [07:45:29]free content buf [07:45:29]Sock 9.Close socket [07:45:29]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:20]accept exits with 8 [07:59:20]New connection [07:59:20]New thread 3066871140 created [07:59:20]Thread 3067014500 joined [07:59:20]Waiting for new connection... [07:59:20] Sock 8.Parse request [07:59:20]Sock 8.Check first char [07:59:20]Sock 8.First char is OK [07:59:20]request: POST /json_proto HTTP/1.0 [07:59:20]Method: POST [07:59:20]URL: /json_proto [07:59:20]Method is POST - this is cgi request [07:59:20]url: /json_proto [07:59:20]query_string will be loaded in cgi processing [07:59:20]execute_cgi json_proto POST (null) [07:59:20]execute_cgi path=json_proto method=POST [07:59:20]POST find Content-Length [07:59:20]Host: 172.17.35.3:8080 [07:59:20]Content-Length: 677 [07:59:20]Content-Type: application/json [07:59:20] [07:59:20]POST finish read [07:59:20]Found Content-Length = 677 [07:59:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:20]execute_script... [07:59:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:20]POST & json_proto [07:59:20]process_json_proto [07:59:20]json parsed OK: [07:59:20]protocol is kg_v1.0 [07:59:20]action value=close_receipt [07:59:20]process_action close_receipt [07:59:20]cmd_close_receipt [07:59:20]MH_GetDate [07:59:20]Write to MH i2c: F0 00 00 C8 4D 04 [07:59:20]Write i2c OK [07:59:20]MH_I2C_Read... [07:59:20]Read from MH i2c: F0 [07:59:20]MH_I2C_Read... [07:59:20]Read from MH i2c: F0 09 00 [07:59:20]MH_I2C_Read... [07:59:20]Read from MH i2c: F0 09 00 C8 4D 00 6B F5 14 66 2B 11 66 64 ED [07:59:20]GetLastDocTimeStamp 1712648744 [07:59:20]current date 1712649579 [07:59:20]FM_GetShiftState [07:59:20]SAM_PROTO_GetShiftState [07:59:20]wFMCommunicate request_size=4 [07:59:20]MH_SAM_APDU [07:59:20]CAPDU: 80 13 01 00 [07:59:20]Write to MH i2c: E2 08 00 C9 4D 80 13 01 00 00 00 00 00 93 [07:59:20]Write i2c OK [07:59:20]MH_I2C_Read... [07:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:20]Read from MH i2c: E2 [07:59:20]MH_I2C_Read... [07:59:20]Read from MH i2c: E2 0E 00 [07:59:20]MH_I2C_Read... [07:59:20]Read from MH i2c: E2 0E 00 C9 4D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 FE [07:59:20]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [07:59:20]wFMCommunicate OK [07:59:20]SAM_PROTO_GetShiftState done [07:59:20]FM_GetShiftState done [07:59:20]opened in 1712622936 [07:59:20]opened+sec_in_day 1712709336 [07:59:20]quantity*price = 50022 [07:59:20]sum+1 = 50024 [07:59:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 5 09.04.2024 07:59 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26873 ФПД: 227599917818542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T075939&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26873&fm=227599917818542&tin=02508201610067®Number=0000000000091578&sum=50000 [07:59:21]StoreToDocumentArchive [07:59:21]shift 315 fd 26873 [07:59:21]save to /storage/0315/doc_00026873 [07:59:21]save last doc name /storage/0315/doc_00026873 to /storage/kkm_last_doc_name [07:59:21]save OK [07:59:21]Clear old archive folders... [07:59:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:21]tlvbuf is 00EE3E10 [07:59:21]SAM_PROTO_ClearQueue [07:59:21]wFMCommunicate request_size=4 [07:59:21]MH_SAM_APDU [07:59:21]CAPDU: 80 09 00 00 [07:59:21]Write to MH i2c: E2 08 00 D6 4D 80 09 00 00 00 00 00 00 95 [07:59:21]Write i2c OK [07:59:21]MH_I2C_Read... [07:59:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:21]Read from MH i2c: E2 [07:59:21]MH_I2C_Read... [07:59:21]Read from MH i2c: E2 03 00 [07:59:21]MH_I2C_Read... [07:59:21]Read from MH i2c: E2 03 00 D6 4D 00 90 00 97 [07:59:21]RAPDU: 90 00 [07:59:21]wFMCommunicate OK [07:59:21]SAM_PROTO_ClearQueue done [07:59:21]KKMCreateOFDPacket [07:59:21]OFDProtocolAddRootSTLVToBuf [07:59:21]FM_MakeSignedData [07:59:21]FM_MakeSignedData [07:59:21]SAM_PROTO_SignData [07:59:21]wFMCommunicate request_size=4 [07:59:21]MH_SAM_APDU [07:59:21]CAPDU: 80 0D 01 02 [07:59:21]Write to MH i2c: E2 08 00 D7 4D 80 0D 01 02 00 00 00 00 9D [07:59:21]Write i2c OK [07:59:21]MH_I2C_Read... [07:59:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:21]Read from MH i2c: E2 [07:59:21]MH_I2C_Read... [07:59:21]Read from MH i2c: E2 03 00 [07:59:21]MH_I2C_Read... [07:59:21]Read from MH i2c: E2 03 00 D7 4D 00 90 00 98 [07:59:21]RAPDU: 90 00 [07:59:21]wFMCommunicate OK [07:59:21]wFMCommunicate request_size=255 [07:59:21]MH_SAM_APDU [07:59:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6B F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 68 00 00 35 04 06 00 CF [07:59:21]Write to MH i2c: E2 02 01 D8 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6B F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 68 00 00 35 04 06 00 CF 00 00 A8 [07:59:21]Write i2c OK [07:59:21]MH_I2C_Read... [07:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:22]Read from MH i2c: E2 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 03 00 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 03 00 D8 4D 00 90 00 99 [07:59:22]RAPDU: 90 00 [07:59:22]wFMCommunicate OK [07:59:22]wFMCommunicate request_size=10 [07:59:22]MH_SAM_APDU [07:59:22]CAPDU: 80 0D 02 02 05 00 3C 40 A2 AE [07:59:22]Write to MH i2c: E2 0D 00 D9 4D 80 0D 02 02 05 00 00 3C 40 A2 AE 00 00 76 [07:59:22]Write i2c OK [07:59:22]MH_I2C_Read... [07:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:22]Read from MH i2c: E2 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 03 00 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 03 00 D9 4D 00 90 00 9A [07:59:22]RAPDU: 90 00 [07:59:22]wFMCommunicate OK [07:59:22]wFMCommunicate request_size=4 [07:59:22]MH_SAM_APDU [07:59:22]CAPDU: 80 0D 03 02 [07:59:22]Write to MH i2c: E2 08 00 DA 4D 80 0D 03 02 00 00 00 00 A2 [07:59:22]Write i2c OK [07:59:22]MH_I2C_Read... [07:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:22]Read from MH i2c: E2 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 0B 00 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 0B 00 DA 4D 00 2C FA 40 61 C8 AA 05 29 90 00 0A [07:59:22]RAPDU: 2C FA 40 61 C8 AA 05 29 90 00 [07:59:22]wFMCommunicate OK [07:59:22]SAM_PROTO_SignData done [07:59:22]FM_MakeSignedData done [07:59:22]CreateOFDProtocolMessage [07:59:22]wFMCommunicate request_size=4 [07:59:22]MH_SAM_APDU [07:59:22]CAPDU: 80 11 00 00 [07:59:22]Write to MH i2c: E2 08 00 DB 4D 80 11 00 00 00 00 00 00 A2 [07:59:22]Write i2c OK [07:59:22]MH_I2C_Read... [07:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:22]Read from MH i2c: E2 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 17 00 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: E2 17 00 DB 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 FA [07:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:59:22]wFMCommunicate OK [07:59:22]CreateOFDProtocolMessage done [07:59:22]OFDSenderStorePacket 26873 [07:59:22]StoreOFDPacket docnum=26873 [07:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B3 DF 07 01 9A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6B F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 68 00 00 35 04 06 00 CF 00 3C 40 A2 AE 2C FA 40 61 C8 AA 05 29 [07:59:22]CheckFolder [07:59:22]dirname=/storage/ofd_packets [07:59:22]CheckFolder done [07:59:22]ProducePacketName [07:59:22]name=ofd_packets/00026873 [07:59:22]NVStorageSaveData ofd_packets/00026873 [07:59:22]File name is /storage/ofd_packets/00026873 [07:59:22]Write 301 bytes [07:59:22]NVStorageSaveData done [07:59:22]OFDSenderStorePacket done [07:59:22]KKMCreateOFDPacket done [07:59:22]NVStorageSaveData kkm_last_timestamp [07:59:22]File name is /storage/kkm_last_timestamp [07:59:22]Write 4 bytes [07:59:22]NVStorageSaveData done [07:59:22]ExternCall_PrintAddStr [07:59:22]wPrintStart [07:59:22]Write to MH i2c: 01 00 00 DC 4D 29 [07:59:22]Write i2c OK [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: 01 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: 01 07 00 [07:59:22]MH_I2C_Read... [07:59:22]Read from MH i2c: 01 07 00 DC 4D 00 00 00 00 00 FF 0F 3E [07:59:22]RasterBufferAndPrint [07:59:22]line Счет N : (1)359617 [07:59:22]line ИНН: 02508201610067 [07:59:22]line Контрольно-Кассовый Чек [07:59:22]line ПРОДАЖА [07:59:22]line ТРК (МРК, ГНК) : 61 [07:59:22]line Товар: 2710124130 [07:59:22]line Аи-92-К-5 [07:59:22]line 7.890 * 63.40 [07:59:22]line = 500.23 [07:59:22]line НДС 12% НСП 1% [07:59:22]line > о реализуемом товаре [07:59:22]line ОКРУГЛЕНИЕ: -0.23 [07:59:22]line ИТОГО: 500.00 [07:59:22]line Внесено: 500.00 [07:59:22]line СДАЧА: 0.00 [07:59:22]line НСП 1% : 4.43 [07:59:22]line НДС 12% : 53.12 [07:59:22]line Наличными: 500.00 [07:59:22]line Безнал.: 0.00 [07:59:22]line Место: АЗС № 122 "Партнер Нефть" [07:59:22]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [07:59:22]line СНО: Общий режим [07:59:22]line Чек 5 09.04.2024 07:59 [07:59:22]line Смена: 315 ФФД: 1.0 [07:59:22]line ЗНМ: 0300000147 [07:59:22]line РНМ: 0000000000091578 [07:59:22]line Версия ККМ: 001 [07:59:22]line ФМ: 0000000000874657 [07:59:22]line ФД: 26873 [07:59:22]line ФПД: 227599917818542 [07:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T075939&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26873&fm=227599917818542&tin=02508201610067®Number=0000000000091578&sum=50000 [07:59:22]OFD Sender: Processing packet 26873 [packets to send 44, broken 43] [07:59:22]ProducePacketName [07:59:22]name=ofd_packets/00026873 [07:59:22]OFD Sender: To server: pG, [07:59:22]CommunicateWithHost lk.salyk.kg:30040 [07:59:22]ConnectInit lk.salyk.kg [07:59:22]written 0, free lines is 4095 [07:59:22]Connected sock=10 [07:59:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B3 DF 07 01 9A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6B F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 68 00 00 35 04 06 00 CF 00 3C 40 A2 AE 2C FA 40 61 C8 AA 05 29 [07:59:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 D1 28 47 00 C6 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 F9 68 00 00 F4 03 04 00 D3 9C 14 66 B6 04 01 00 00 35 6C 84 B5 37 0D 8E F4 [07:59:22]CommunicateWithHost err = 0 [07:59:22]CheckOFDResponse [07:59:22]1017 (14) - 77093643461234 [07:59:22]1041 (16) - 0000000000874657 [07:59:22]1040 (4) - 26873 [07:59:22]1012 (4) - 09.04.2024 01:41 [07:59:22]1206 (1) - 0 [07:59:22]OFD Sender: Remove packet 26873 [07:59:22]ProducePacketName [07:59:22]name=ofd_packets/00026873 [07:59:22]NVStorageDeleteData [07:59:23]Write to MH i2c: 01 00 00 07 4E 55 [07:59:23]Write i2c OK [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: 01 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: 01 07 00 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: 01 07 00 07 4E 00 00 00 00 00 72 0C DA [07:59:23]RasterBufferAndPrint [07:59:23]line [07:59:23]line [07:59:23]line [07:59:23]line [07:59:23]line [07:59:23]written 0, free lines is 3189 [07:59:23]MH_Cut [07:59:23]Write to MH i2c: D1 01 00 0E 4E 01 2E [07:59:23]Write i2c OK [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: D1 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: D1 01 00 [07:59:23]MH_I2C_Read... [07:59:23]Read from MH i2c: D1 01 00 0E 4E 00 2D [07:59:23]Write to MH i2c: 01 00 00 0F 4E 5D [07:59:23]Write i2c OK [07:59:23]MH_I2C_Read... [07:59:23]OFD Sender: No OFD packet to send [07:59:24]*** Cut start [07:59:24]*** Partial cut [07:59:24]*** CUTSNS_PIN = 1 [07:59:24]*** CUTSNS_PIN = 0 [07:59:24]*** Brake cut motor [07:59:24]Read from MH i2c: 01 [07:59:24]MH_I2C_Read... [07:59:24]*** Stop cut motor [07:59:24]*** Cut end [07:59:24]Read from MH i2c: 01 07 00 [07:59:24]MH_I2C_Read... [07:59:24]Read from MH i2c: 01 07 00 0F 4E 00 00 00 00 00 FF 0F 72 [07:59:24]process_action close_receipt done [07:59:24]requested_data is exist [07:59:24]produce_requested_data [07:59:24]requested_item fm.sn is exist - process it [07:59:24]wFMCommunicate request_size=4 [07:59:24]MH_SAM_APDU [07:59:24]CAPDU: 80 11 00 00 [07:59:24]Write to MH i2c: E2 08 00 10 4E 80 11 00 00 00 00 00 00 D8 [07:59:24]Write i2c OK [07:59:24]MH_I2C_Read... [07:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:25]Read from MH i2c: E2 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 17 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 17 00 10 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 30 [07:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [07:59:25]wFMCommunicate OK [07:59:25]requested_item fd.num is exist - process it [07:59:25]SAM_PROTO_GetFieldsCounters [07:59:25]wFMCommunicate request_size=4 [07:59:25]MH_SAM_APDU [07:59:25]CAPDU: 80 13 00 00 [07:59:25]Write to MH i2c: E2 08 00 11 4E 80 13 00 00 00 00 00 00 DB [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:25]Read from MH i2c: E2 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 62 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 62 00 11 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F9 68 00 00 0E 04 04 00 3B 01 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 B2 [07:59:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 F9 68 00 00 0E 04 04 00 3B 01 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 [07:59:25]wFMCommunicate OK [07:59:25]SAM_PROTO_GetFieldsCounters done [07:59:25]requested_item shift.num is exist - process it [07:59:25]requested_item shift.opened is exist - process it [07:59:25]req_shift_opened [07:59:25]FM_GetShiftState [07:59:25]SAM_PROTO_GetShiftState [07:59:25]wFMCommunicate request_size=4 [07:59:25]MH_SAM_APDU [07:59:25]CAPDU: 80 13 01 00 [07:59:25]Write to MH i2c: E2 08 00 12 4E 80 13 01 00 00 00 00 00 DD [07:59:25]Write i2c OK [07:59:25]MH_I2C_Read... [07:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:25]Read from MH i2c: E2 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 0E 00 [07:59:25]MH_I2C_Read... [07:59:25]Read from MH i2c: E2 0E 00 12 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 48 [07:59:25]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [07:59:25]wFMCommunicate OK [07:59:25]SAM_PROTO_GetShiftState done [07:59:25]FM_GetShiftState done [07:59:25]req_shift_opened done [07:59:25]requested_item shift.open_date is exist - process it [07:59:25]req_shift_open_date [07:59:25]req_shift_open_date done [07:59:25]produce_requested_data done [07:59:25]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26873,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [07:59:25]process_action_free close_receipt [07:59:25]json_value_free [07:59:25]json_value_free done [07:59:25]process_json_proto returns [07:59:25]Send response to host [07:59:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26873,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [07:59:25]free response buf [07:59:25]execute_script done [07:59:25]execute_script returns [07:59:25]free content buf [07:59:25]Sock 8.Close socket [07:59:25]Sock 8.Thread stoped [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:24]accept exits with 9 [08:01:24]New connection [08:01:24]New thread 3067014500 created [08:01:24]Thread 3066871140 joined [08:01:24]Waiting for new connection... [08:01:24] Sock 9.Parse request [08:01:24]Sock 9.Check first char [08:01:24]Sock 9.First char is OK [08:01:24]request: POST /json_proto HTTP/1.0 [08:01:24]Method: POST [08:01:24]URL: /json_proto [08:01:24]Method is POST - this is cgi request [08:01:24]url: /json_proto [08:01:24]query_string will be loaded in cgi processing [08:01:24]execute_cgi json_proto POST (null) [08:01:24]execute_cgi path=json_proto method=POST [08:01:24]POST find Content-Length [08:01:24]Host: 172.17.35.3:8080 [08:01:24]Content-Length: 687 [08:01:24]Content-Type: application/json [08:01:24] [08:01:24]POST finish read [08:01:24]Found Content-Length = 687 [08:01:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 39.000, "sum" : 2800.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:24]execute_script... [08:01:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 39.000, "sum" : 2800.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:24]POST & json_proto [08:01:24]process_json_proto [08:01:24]json parsed OK: [08:01:24]protocol is kg_v1.0 [08:01:24]action value=close_receipt [08:01:24]process_action close_receipt [08:01:24]cmd_close_receipt [08:01:24]MH_GetDate [08:01:24]Write to MH i2c: F0 00 00 13 4E 50 [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: F0 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: F0 09 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: F0 09 00 13 4E 00 E7 F5 14 66 2B 11 66 64 B5 [08:01:24]GetLastDocTimeStamp 1712649579 [08:01:24]current date 1712649703 [08:01:24]FM_GetShiftState [08:01:24]SAM_PROTO_GetShiftState [08:01:24]wFMCommunicate request_size=4 [08:01:24]MH_SAM_APDU [08:01:24]CAPDU: 80 13 01 00 [08:01:24]Write to MH i2c: E2 08 00 14 4E 80 13 01 00 00 00 00 00 DF [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:24]Read from MH i2c: E2 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 0E 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 0E 00 14 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 4A [08:01:24]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:01:24]wFMCommunicate OK [08:01:24]SAM_PROTO_GetShiftState done [08:01:24]FM_GetShiftState done [08:01:24]opened in 1712622936 [08:01:24]opened+sec_in_day 1712709336 [08:01:24]quantity*price = 280020 [08:01:24]sum+1 = 280021 [08:01:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.37 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 6 09.04.2024 08:01 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26874 ФПД: 281152687400268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T080143&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26874&fm=281152687400268&tin=02508201610067®Number=0000000000091578&sum=280000 [08:01:25]StoreToDocumentArchive [08:01:25]shift 315 fd 26874 [08:01:25]save to /storage/0315/doc_00026874 [08:01:25]save last doc name /storage/0315/doc_00026874 to /storage/kkm_last_doc_name [08:01:25]save OK [08:01:25]Clear old archive folders... [08:01:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:01:25]tlvbuf is 00E83E90 [08:01:25]SAM_PROTO_ClearQueue [08:01:25]wFMCommunicate request_size=4 [08:01:25]MH_SAM_APDU [08:01:25]CAPDU: 80 09 00 00 [08:01:25]Write to MH i2c: E2 08 00 21 4E 80 09 00 00 00 00 00 00 E1 [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 21 4E 00 90 00 E3 [08:01:25]RAPDU: 90 00 [08:01:25]wFMCommunicate OK [08:01:25]SAM_PROTO_ClearQueue done [08:01:25]KKMCreateOFDPacket [08:01:25]OFDProtocolAddRootSTLVToBuf [08:01:25]FM_MakeSignedData [08:01:25]FM_MakeSignedData [08:01:25]SAM_PROTO_SignData [08:01:25]wFMCommunicate request_size=4 [08:01:25]MH_SAM_APDU [08:01:25]CAPDU: 80 0D 01 02 [08:01:25]Write to MH i2c: E2 08 00 22 4E 80 0D 01 02 00 00 00 00 E9 [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 22 4E 00 90 00 E4 [08:01:25]RAPDU: 90 00 [08:01:25]wFMCommunicate OK [08:01:25]wFMCommunicate request_size=255 [08:01:25]MH_SAM_APDU [08:01:25]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 58 98 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 D4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E7 F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 68 00 00 35 04 06 00 [08:01:25]Write to MH i2c: E2 02 01 23 4E 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 58 98 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 D4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E7 F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 68 00 00 35 04 06 00 00 00 CD [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 23 4E 00 90 00 E5 [08:01:25]RAPDU: 90 00 [08:01:25]wFMCommunicate OK [08:01:25]wFMCommunicate request_size=11 [08:01:25]MH_SAM_APDU [08:01:25]CAPDU: 80 0D 02 02 06 FF B4 F6 0F 65 4C [08:01:25]Write to MH i2c: E2 0E 00 24 4E 80 0D 02 02 06 00 FF B4 F6 0F 65 4C 00 00 61 [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 03 00 24 4E 00 90 00 E6 [08:01:25]RAPDU: 90 00 [08:01:25]wFMCommunicate OK [08:01:25]wFMCommunicate request_size=4 [08:01:25]MH_SAM_APDU [08:01:25]CAPDU: 80 0D 03 02 [08:01:25]Write to MH i2c: E2 08 00 25 4E 80 0D 03 02 00 00 00 00 EE [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 0B 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 0B 00 25 4E 00 23 3B A7 66 4B 0E EF 0F 90 00 B1 [08:01:25]RAPDU: 23 3B A7 66 4B 0E EF 0F 90 00 [08:01:25]wFMCommunicate OK [08:01:25]SAM_PROTO_SignData done [08:01:25]FM_MakeSignedData done [08:01:25]CreateOFDProtocolMessage [08:01:25]wFMCommunicate request_size=4 [08:01:25]MH_SAM_APDU [08:01:25]CAPDU: 80 11 00 00 [08:01:25]Write to MH i2c: E2 08 00 26 4E 80 11 00 00 00 00 00 00 EE [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:25]Read from MH i2c: E2 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 17 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: E2 17 00 26 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 46 [08:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:01:25]wFMCommunicate OK [08:01:25]CreateOFDProtocolMessage done [08:01:25]OFDSenderStorePacket 26874 [08:01:25]StoreOFDPacket docnum=26874 [08:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 EA 6C 08 01 2F D9 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 58 98 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 D4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E7 F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 68 00 00 35 04 06 00 FF B4 F6 0F 65 4C 23 3B A7 66 4B 0E EF 0F [08:01:25]CheckFolder [08:01:25]dirname=/storage/ofd_packets [08:01:25]CheckFolder done [08:01:25]ProducePacketName [08:01:25]name=ofd_packets/00026874 [08:01:25]NVStorageSaveData ofd_packets/00026874 [08:01:25]File name is /storage/ofd_packets/00026874 [08:01:25]Write 302 bytes [08:01:25]NVStorageSaveData done [08:01:25]OFDSenderStorePacket done [08:01:25]KKMCreateOFDPacket done [08:01:25]NVStorageSaveData kkm_last_timestamp [08:01:25]File name is /storage/kkm_last_timestamp [08:01:25]Write 4 bytes [08:01:25]NVStorageSaveData done [08:01:25]ExternCall_PrintAddStr [08:01:25]wPrintStart [08:01:25]Write to MH i2c: 01 00 00 27 4E 75 [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: 01 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: 01 07 00 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: 01 07 00 27 4E 00 00 00 00 00 FF 0F 8A [08:01:26]RasterBufferAndPrint [08:01:26]line Счет N : (1)359618 [08:01:26]line ИНН: 02508201610067 [08:01:26]line Контрольно-Кассовый Чек [08:01:26]line ПРОДАЖА [08:01:26]line ТРК (МРК, ГНК) : 21 [08:01:26]line Товар: 2710194210 [08:01:26]line ДТ(л)-К-5 [08:01:26]line 39.000 * 71.80 [08:01:26]line = 2800.20 [08:01:26]line НДС 12% НСП 1% [08:01:26]line > о реализуемом товаре [08:01:26]line ОКРУГЛЕНИЕ: -0.20 [08:01:26]line ИТОГО: 2800.00 [08:01:26]line Внесено: 2800.00 [08:01:26]line СДАЧА: 0.00 [08:01:26]line НСП 1% : 24.78 [08:01:26]line НДС 12% : 297.37 [08:01:26]line Наличными: 2800.00 [08:01:26]line Безнал.: 0.00 [08:01:26]line Место: АЗС № 122 "Партнер Нефть" [08:01:26]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [08:01:26]line СНО: Общий режим [08:01:26]line Чек 6 09.04.2024 08:01 [08:01:26]line Смена: 315 ФФД: 1.0 [08:01:26]line ЗНМ: 0300000147 [08:01:26]line РНМ: 0000000000091578 [08:01:26]line Версия ККМ: 001 [08:01:26]line ФМ: 0000000000874657 [08:01:26]line ФД: 26874 [08:01:26]line ФПД: 281152687400268 [08:01:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T080143&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26874&fm=281152687400268&tin=02508201610067®Number=0000000000091578&sum=280000 [08:01:26]OFD Sender: Processing packet 26874 [packets to send 44, broken 43] [08:01:26]ProducePacketName [08:01:26]name=ofd_packets/00026874 [08:01:26]OFD Sender: To server: pG, [08:01:26]CommunicateWithHost lk.salyk.kg:30040 [08:01:26]ConnectInit lk.salyk.kg [08:01:26]written 0, free lines is 4095 [08:01:26]Connected sock=10 [08:01:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 EA 6C 08 01 2F D9 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 58 98 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 D4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E7 F5 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 68 00 00 35 04 06 00 FF B4 F6 0F 65 4C 23 3B A7 66 4B 0E EF 0F [08:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 DA A8 47 00 7F 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FA 68 00 00 F4 03 04 00 4F 9D 14 66 B6 04 01 00 00 56 49 76 55 D0 50 AC 92 [08:01:26]CommunicateWithHost err = 0 [08:01:26]CheckOFDResponse [08:01:26]1017 (14) - 77093643461234 [08:01:26]1041 (16) - 0000000000874657 [08:01:26]1040 (4) - 26874 [08:01:26]1012 (4) - 09.04.2024 01:43 [08:01:26]1206 (1) - 0 [08:01:26]OFD Sender: Remove packet 26874 [08:01:26]ProducePacketName [08:01:26]name=ofd_packets/00026874 [08:01:26]NVStorageDeleteData [08:01:26]Write to MH i2c: 01 00 00 52 4E A0 [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: 01 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: 01 07 00 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: 01 07 00 52 4E 00 00 00 00 00 74 0C 27 [08:01:26]RasterBufferAndPrint [08:01:26]line [08:01:26]line [08:01:26]line [08:01:26]line [08:01:26]line [08:01:26]written 0, free lines is 3192 [08:01:26]MH_Cut [08:01:26]Write to MH i2c: D1 01 00 59 4E 01 79 [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: D1 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: D1 01 00 [08:01:26]MH_I2C_Read... [08:01:26]Read from MH i2c: D1 01 00 59 4E 00 78 [08:01:26]Write to MH i2c: 01 00 00 5A 4E A8 [08:01:26]Write i2c OK [08:01:26]MH_I2C_Read... [08:01:27]OFD Sender: No OFD packet to send [08:01:27]*** Cut start [08:01:27]*** Partial cut [08:01:27]*** CUTSNS_PIN = 1 [08:01:27]*** CUTSNS_PIN = 0 [08:01:28]*** Brake cut motor [08:01:28]Read from MH i2c: 01 [08:01:28]MH_I2C_Read... [08:01:28]*** Stop cut motor [08:01:28]*** Cut end [08:01:28]Read from MH i2c: 01 07 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: 01 07 00 5A 4E 00 00 00 00 00 FF 0F BD [08:01:28]process_action close_receipt done [08:01:28]requested_data is exist [08:01:28]produce_requested_data [08:01:28]requested_item fm.sn is exist - process it [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 11 00 00 [08:01:28]Write to MH i2c: E2 08 00 5B 4E 80 11 00 00 00 00 00 00 23 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 17 00 5B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 7B [08:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:01:28]wFMCommunicate OK [08:01:28]requested_item fd.num is exist - process it [08:01:28]SAM_PROTO_GetFieldsCounters [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 13 00 00 [08:01:28]Write to MH i2c: E2 08 00 5C 4E 80 13 00 00 00 00 00 00 26 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 62 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 62 00 5C 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FA 68 00 00 0E 04 04 00 3B 01 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 [08:01:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FA 68 00 00 0E 04 04 00 3B 01 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 [08:01:28]wFMCommunicate OK [08:01:28]SAM_PROTO_GetFieldsCounters done [08:01:28]requested_item shift.num is exist - process it [08:01:28]requested_item shift.opened is exist - process it [08:01:28]req_shift_opened [08:01:28]FM_GetShiftState [08:01:28]SAM_PROTO_GetShiftState [08:01:28]wFMCommunicate request_size=4 [08:01:28]MH_SAM_APDU [08:01:28]CAPDU: 80 13 01 00 [08:01:28]Write to MH i2c: E2 08 00 5D 4E 80 13 01 00 00 00 00 00 28 [08:01:28]Write i2c OK [08:01:28]MH_I2C_Read... [08:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:28]Read from MH i2c: E2 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0E 00 [08:01:28]MH_I2C_Read... [08:01:28]Read from MH i2c: E2 0E 00 5D 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 93 [08:01:28]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:01:28]wFMCommunicate OK [08:01:28]SAM_PROTO_GetShiftState done [08:01:28]FM_GetShiftState done [08:01:28]req_shift_opened done [08:01:28]requested_item shift.open_date is exist - process it [08:01:28]req_shift_open_date [08:01:28]req_shift_open_date done [08:01:28]produce_requested_data done [08:01:28]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26874,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [08:01:28]process_action_free close_receipt [08:01:28]json_value_free [08:01:28]json_value_free done [08:01:28]process_json_proto returns [08:01:28]Send response to host [08:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26874,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [08:01:28]free response buf [08:01:28]execute_script done [08:01:28]execute_script returns [08:01:28]free content buf [08:01:28]Sock 9.Close socket [08:01:28]Sock 9.Thread stoped [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 5E 4E AC [08:05:18]*** FLAG_PRN_KEY set [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 5E 4E 00 08 00 00 00 FF 0F C9 [08:05:18]state=0 [08:05:18]Key pressed [08:05:18]Feed [08:05:18]Write to MH i2c: D8 00 00 5F 4E 84 [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 01 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 01 00 5F 4E 00 85 [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 60 4E AE [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 60 4E 00 48 00 00 00 3C 00 39 [08:05:18]state=2 [08:05:18]Key pressed [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 61 4E AF [08:05:18]*** FLAG_PRN_KEY reset [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 61 4E 00 00 00 00 00 F5 0F BA [08:05:18]state=2 [08:05:18]Stop feed [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 62 4E B0 [08:05:18]*** FLAG_PRN_KEY set [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 62 4E 00 08 00 00 00 FF 0F CD [08:05:18]state=0 [08:05:18]Key pressed [08:05:18]Feed [08:05:18]Write to MH i2c: D8 00 00 63 4E 88 [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 01 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 01 00 63 4E 00 89 [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 64 4E B2 [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 64 4E 00 48 00 00 00 3C 00 3D [08:05:18]state=2 [08:05:18]Key pressed [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 65 4E B3 [08:05:18]*** FLAG_PRN_KEY reset [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 65 4E 00 00 00 00 00 F6 0F BF [08:05:18]state=2 [08:05:18]Stop feed [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 66 4E B4 [08:05:18]*** FLAG_PRN_KEY set [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 66 4E 00 08 00 00 00 FF 0F D1 [08:05:18]state=0 [08:05:18]Key pressed [08:05:18]Feed [08:05:18]Write to MH i2c: D8 00 00 67 4E 8C [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 01 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: D8 01 00 67 4E 00 8D [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 68 4E B6 [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 68 4E 00 48 00 00 00 3C 00 41 [08:05:18]state=2 [08:05:18]Key pressed [08:05:18]int [08:05:18]Write to MH i2c: 01 00 00 69 4E B7 [08:05:18]*** FLAG_PRN_KEY reset [08:05:18]Write i2c OK [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 [08:05:18]MH_I2C_Read... [08:05:18]Read from MH i2c: 01 07 00 69 4E 00 00 00 00 00 F5 0F C2 [08:05:18]state=2 [08:05:18]Stop feed [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:34]accept exits with 8 [08:30:34]New connection [08:30:34]New thread 3066871140 created [08:30:34]Thread 3067014500 joined [08:30:34]Waiting for new connection... [08:30:34] Sock 8.Parse request [08:30:34]Sock 8.Check first char [08:30:34]Sock 8.First char is OK [08:30:34]request: POST /json_proto HTTP/1.0 [08:30:34]Method: POST [08:30:34]URL: /json_proto [08:30:34]Method is POST - this is cgi request [08:30:34]url: /json_proto [08:30:34]query_string will be loaded in cgi processing [08:30:34]execute_cgi json_proto POST (null) [08:30:34]execute_cgi path=json_proto method=POST [08:30:34]POST find Content-Length [08:30:34]Host: 172.17.35.3:8080 [08:30:34]Content-Length: 682 [08:30:34]Content-Type: application/json [08:30:34] [08:30:34]POST finish read [08:30:34]Found Content-Length = 682 [08:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 4.180, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:34]execute_script... [08:30: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)359619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 4.180, "sum" : 300.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:34]POST & json_proto [08:30:34]process_json_proto [08:30:34]json parsed OK: [08:30:34]protocol is kg_v1.0 [08:30:34]action value=close_receipt [08:30:34]process_action close_receipt [08:30:34]cmd_close_receipt [08:30:34]MH_GetDate [08:30:34]Write to MH i2c: F0 00 00 6A 4E A7 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: F0 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: F0 09 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: F0 09 00 6A 4E 00 BD FC 14 66 2B 11 66 64 E9 [08:30:34]GetLastDocTimeStamp 1712649703 [08:30:34]current date 1712651453 [08:30:34]FM_GetShiftState [08:30:34]SAM_PROTO_GetShiftState [08:30:34]wFMCommunicate request_size=4 [08:30:34]MH_SAM_APDU [08:30:34]CAPDU: 80 13 01 00 [08:30:34]Write to MH i2c: E2 08 00 6B 4E 80 13 01 00 00 00 00 00 36 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:34]Read from MH i2c: E2 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 0E 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: E2 0E 00 6B 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 A1 [08:30:34]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:30:34]wFMCommunicate OK [08:30:34]SAM_PROTO_GetShiftState done [08:30:34]FM_GetShiftState done [08:30:34]opened in 1712622936 [08:30:34]opened+sec_in_day 1712709336 [08:30:34]quantity*price = 30012 [08:30:34]sum+1 = 30013 [08:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 7 09.04.2024 08:30 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26875 ФПД: 67808947556567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T083053&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26875&fm=67808947556567&tin=02508201610067®Number=0000000000091578&sum=30000 [08:30:35]StoreToDocumentArchive [08:30:35]shift 315 fd 26875 [08:30:35]save to /storage/0315/doc_00026875 [08:30:35]save last doc name /storage/0315/doc_00026875 to /storage/kkm_last_doc_name [08:30:35]save OK [08:30:35]Clear old archive folders... [08:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:30:35]tlvbuf is 00E3C170 [08:30:35]SAM_PROTO_ClearQueue [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 09 00 00 [08:30:35]Write to MH i2c: E2 08 00 78 4E 80 09 00 00 00 00 00 00 38 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 78 4E 00 90 00 3A [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_ClearQueue done [08:30:35]KKMCreateOFDPacket [08:30:35]OFDProtocolAddRootSTLVToBuf [08:30:35]FM_MakeSignedData [08:30:35]FM_MakeSignedData [08:30:35]SAM_PROTO_SignData [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 01 02 [08:30:35]Write to MH i2c: E2 08 00 79 4E 80 0D 01 02 00 00 00 00 40 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 79 4E 00 90 00 3B [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=255 [08:30:35]MH_SAM_APDU [08:30:35]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 54 10 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD FC 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 68 00 00 35 04 06 00 [08:30:35]Write to MH i2c: E2 02 01 7A 4E 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 54 10 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD FC 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 68 00 00 35 04 06 00 00 00 79 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 7A 4E 00 90 00 3C [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=11 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 02 02 06 3D AC 00 3B 50 D7 [08:30:35]Write to MH i2c: E2 0E 00 7B 4E 80 0D 02 02 06 00 3D AC 00 3B 50 D7 00 00 9A [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 03 00 7B 4E 00 90 00 3D [08:30:35]RAPDU: 90 00 [08:30:35]wFMCommunicate OK [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 0D 03 02 [08:30:35]Write to MH i2c: E2 08 00 7C 4E 80 0D 03 02 00 00 00 00 45 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0B 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0B 00 7C 4E 00 8E 21 A0 8E 63 32 71 5D 90 00 86 [08:30:35]RAPDU: 8E 21 A0 8E 63 32 71 5D 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_SignData done [08:30:35]FM_MakeSignedData done [08:30:35]CreateOFDProtocolMessage [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 11 00 00 [08:30:35]Write to MH i2c: E2 08 00 7D 4E 80 11 00 00 00 00 00 00 45 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 7D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 9D [08:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:30:35]wFMCommunicate OK [08:30:35]CreateOFDProtocolMessage done [08:30:35]OFDSenderStorePacket 26875 [08:30:35]StoreOFDPacket docnum=26875 [08:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 9A F1 08 01 85 8B 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 54 10 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD FC 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 68 00 00 35 04 06 00 3D AC 00 3B 50 D7 8E 21 A0 8E 63 32 71 5D [08:30:35]CheckFolder [08:30:35]dirname=/storage/ofd_packets [08:30:35]CheckFolder done [08:30:35]ProducePacketName [08:30:35]name=ofd_packets/00026875 [08:30:35]NVStorageSaveData ofd_packets/00026875 [08:30:35]File name is /storage/ofd_packets/00026875 [08:30:35]Write 302 bytes [08:30:35]NVStorageSaveData done [08:30:35]OFDSenderStorePacket done [08:30:35]KKMCreateOFDPacket done [08:30:35]NVStorageSaveData kkm_last_timestamp [08:30:35]File name is /storage/kkm_last_timestamp [08:30:35]Write 4 bytes [08:30:35]NVStorageSaveData done [08:30:35]ExternCall_PrintAddStr [08:30:35]wPrintStart [08:30:35]Write to MH i2c: 01 00 00 7E 4E CC [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 7E 4E 00 00 00 00 00 FF 0F E1 [08:30:35]RasterBufferAndPrint [08:30:35]line Счет N : (1)359619 [08:30:35]line ИНН: 02508201610067 [08:30:35]line Контрольно-Кассовый Чек [08:30:35]line ПРОДАЖА [08:30:35]line ТРК (МРК, ГНК) : 21 [08:30:35]line Товар: 2710194210 [08:30:35]line ДТ(л)-К-5 [08:30:35]line 4.180 * 71.80 [08:30:35]line = 300.12 [08:30:35]line НДС 12% НСП 1% [08:30:35]line > о реализуемом товаре [08:30:35]line ОКРУГЛЕНИЕ: -0.12 [08:30:35]line ИТОГО: 300.00 [08:30:35]line Внесено: 300.00 [08:30:35]line СДАЧА: 0.00 [08:30:35]line НСП 1% : 2.66 [08:30:35]line НДС 12% : 31.87 [08:30:35]line Наличными: 300.00 [08:30:35]line Безнал.: 0.00 [08:30:35]line Место: АЗС № 122 "Партнер Нефть" [08:30:35]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [08:30:35]line СНО: Общий режим [08:30:35]line Чек 7 09.04.2024 08:30 [08:30:35]line Смена: 315 ФФД: 1.0 [08:30:35]line ЗНМ: 0300000147 [08:30:35]line РНМ: 0000000000091578 [08:30:35]line Версия ККМ: 001 [08:30:35]line ФМ: 0000000000874657 [08:30:35]line ФД: 26875 [08:30:35]line ФПД: 67808947556567 [08:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T083053&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26875&fm=67808947556567&tin=02508201610067®Number=0000000000091578&sum=30000 [08:30:36]OFD Sender: Processing packet 26875 [packets to send 44, broken 43] [08:30:36]ProducePacketName [08:30:36]name=ofd_packets/00026875 [08:30:36]OFD Sender: To server: pG, [08:30:36]CommunicateWithHost lk.salyk.kg:30040 [08:30:36]ConnectInit lk.salyk.kg [08:30:36]written 0, free lines is 4095 [08:30:36]Connected sock=10 [08:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 9A F1 08 01 85 8B 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 54 10 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 3C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 BD FC 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 68 00 00 35 04 06 00 3D AC 00 3B 50 D7 8E 21 A0 8E 63 32 71 5D [08:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 58 98 47 00 BB 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FB 68 00 00 F4 03 04 00 24 A4 14 66 B6 04 01 00 00 A6 6A 78 D3 67 68 0C 2F [08:30:36]CommunicateWithHost err = 0 [08:30:36]CheckOFDResponse [08:30:36]1017 (14) - 77093643461234 [08:30:36]1041 (16) - 0000000000874657 [08:30:36]1040 (4) - 26875 [08:30:36]1012 (4) - 09.04.2024 02:12 [08:30:36]1206 (1) - 0 [08:30:36]OFD Sender: Remove packet 26875 [08:30:36]ProducePacketName [08:30:36]name=ofd_packets/00026875 [08:30:36]NVStorageDeleteData [08:30:36]Write to MH i2c: 01 00 00 A9 4E F7 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: 01 07 00 A9 4E 00 00 00 00 00 68 0C 72 [08:30:36]RasterBufferAndPrint [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]line [08:30:36]written 0, free lines is 3180 [08:30:36]MH_Cut [08:30:36]Write to MH i2c: D1 01 00 B0 4E 01 D0 [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 01 00 [08:30:36]MH_I2C_Read... [08:30:36]Read from MH i2c: D1 01 00 B0 4E 00 CF [08:30:36]Write to MH i2c: 01 00 00 B1 4E FF [08:30:36]Write i2c OK [08:30:36]MH_I2C_Read... [08:30:37]OFD Sender: No OFD packet to send [08:30:37]*** Cut start [08:30:37]*** Partial cut [08:30:37]*** CUTSNS_PIN = 1 [08:30:37]*** CUTSNS_PIN = 0 [08:30:38]*** Brake cut motor [08:30:38]Read from MH i2c: 01 [08:30:38]MH_I2C_Read... [08:30:38]*** Stop cut motor [08:30:38]*** Cut end [08:30:38]Read from MH i2c: 01 07 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: 01 07 00 B1 4E 00 00 00 00 00 FF 0F 14 [08:30:38]process_action close_receipt done [08:30:38]requested_data is exist [08:30:38]produce_requested_data [08:30:38]requested_item fm.sn is exist - process it [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 11 00 00 [08:30:38]Write to MH i2c: E2 08 00 B2 4E 80 11 00 00 00 00 00 00 7A [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 17 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 17 00 B2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D2 [08:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:30:38]wFMCommunicate OK [08:30:38]requested_item fd.num is exist - process it [08:30:38]SAM_PROTO_GetFieldsCounters [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 13 00 00 [08:30:38]Write to MH i2c: E2 08 00 B3 4E 80 13 00 00 00 00 00 00 7D [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 62 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 62 00 B3 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FB 68 00 00 0E 04 04 00 3B 01 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 5C [08:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FB 68 00 00 0E 04 04 00 3B 01 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 [08:30:38]wFMCommunicate OK [08:30:38]SAM_PROTO_GetFieldsCounters done [08:30:38]requested_item shift.num is exist - process it [08:30:38]requested_item shift.opened is exist - process it [08:30:38]req_shift_opened [08:30:38]FM_GetShiftState [08:30:38]SAM_PROTO_GetShiftState [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 13 01 00 [08:30:38]Write to MH i2c: E2 08 00 B4 4E 80 13 01 00 00 00 00 00 7F [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 0E 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 0E 00 B4 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 EA [08:30:38]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:30:38]wFMCommunicate OK [08:30:38]SAM_PROTO_GetShiftState done [08:30:38]FM_GetShiftState done [08:30:38]req_shift_opened done [08:30:38]requested_item shift.open_date is exist - process it [08:30:38]req_shift_open_date [08:30:38]req_shift_open_date done [08:30:38]produce_requested_data done [08:30:38]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26875,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [08:30:38]process_action_free close_receipt [08:30:38]json_value_free [08:30:38]json_value_free done [08:30:38]process_json_proto returns [08:30:38]Send response to host [08:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26875,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [08:30:38]free response buf [08:30:38]execute_script done [08:30:38]execute_script returns [08:30:38]free content buf [08:30:38]Sock 8.Close socket [08:30:38]Sock 8.Thread stoped [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:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:31]accept exits with 9 [08:43:31]New connection [08:43:31]New thread 3067014500 created [08:43:31]Thread 3066871140 joined [08:43:31]Waiting for new connection... [08:43:31] Sock 9.Parse request [08:43:31]Sock 9.Check first char [08:43:31]Sock 9.First char is OK [08:43:31]request: POST /json_proto HTTP/1.0 [08:43:31]Method: POST [08:43:31]URL: /json_proto [08:43:31]Method is POST - this is cgi request [08:43:31]url: /json_proto [08:43:31]query_string will be loaded in cgi processing [08:43:31]execute_cgi json_proto POST (null) [08:43:31]execute_cgi path=json_proto method=POST [08:43:31]POST find Content-Length [08:43:31]Host: 172.17.35.3:8080 [08:43:31]Content-Length: 640 [08:43:31]Content-Type: application/json [08:43:31] [08:43:31]POST finish read [08:43:31]Found Content-Length = 640 [08:43:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 10.000, "sum" : 634.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 634.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:31]execute_script... [08:43:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 10.000, "sum" : 634.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 634.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:31]POST & json_proto [08:43:31]process_json_proto [08:43:31]json parsed OK: [08:43:31]protocol is kg_v1.0 [08:43:31]action value=close_receipt [08:43:31]process_action close_receipt [08:43:31]cmd_close_receipt [08:43:31]MH_GetDate [08:43:31]Write to MH i2c: F0 00 00 B5 4E F2 [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: F0 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: F0 09 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: F0 09 00 B5 4E 00 C7 FF 14 66 2B 11 66 64 41 [08:43:31]GetLastDocTimeStamp 1712651453 [08:43:31]current date 1712652231 [08:43:31]FM_GetShiftState [08:43:31]SAM_PROTO_GetShiftState [08:43:31]wFMCommunicate request_size=4 [08:43:31]MH_SAM_APDU [08:43:31]CAPDU: 80 13 01 00 [08:43:31]Write to MH i2c: E2 08 00 B6 4E 80 13 01 00 00 00 00 00 81 [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:31]Read from MH i2c: E2 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: E2 0E 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: E2 0E 00 B6 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 EC [08:43:31]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:43:31]wFMCommunicate OK [08:43:31]SAM_PROTO_GetShiftState done [08:43:31]FM_GetShiftState done [08:43:31]opened in 1712622936 [08:43:31]opened+sec_in_day 1712709336 [08:43:31]quantity*price = 63400 [08:43:31]sum+1 = 63401 [08:43:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 634.00 НСП 1% : 5.61 НДС 12% : 67.33 Наличными: 634.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 8 09.04.2024 08:43 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26876 ФПД: 173550343490547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T084351&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26876&fm=173550343490547&tin=02508201610067®Number=0000000000091578&sum=63400 [08:43:32]StoreToDocumentArchive [08:43:32]shift 315 fd 26876 [08:43:32]save to /storage/0315/doc_00026876 [08:43:32]save last doc name /storage/0315/doc_00026876 to /storage/kkm_last_doc_name [08:43:32]save OK [08:43:32]Clear old archive folders... [08:43:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:32]tlvbuf is 00EC8D70 [08:43:32]SAM_PROTO_ClearQueue [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 09 00 00 [08:43:32]Write to MH i2c: E2 08 00 C3 4E 80 09 00 00 00 00 00 00 83 [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 03 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 03 00 C3 4E 00 90 00 85 [08:43:32]RAPDU: 90 00 [08:43:32]wFMCommunicate OK [08:43:32]SAM_PROTO_ClearQueue done [08:43:32]KKMCreateOFDPacket [08:43:32]OFDProtocolAddRootSTLVToBuf [08:43:32]FM_MakeSignedData [08:43:32]FM_MakeSignedData [08:43:32]SAM_PROTO_SignData [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 0D 01 02 [08:43:32]Write to MH i2c: E2 08 00 C4 4E 80 0D 01 02 00 00 00 00 8B [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 03 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 03 00 C4 4E 00 90 00 86 [08:43:32]RAPDU: 90 00 [08:43:32]wFMCommunicate OK [08:43:32]wFMCommunicate request_size=255 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A8 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1A 00 00 00 00 07 04 06 00 A8 F7 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 C7 FF 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 68 00 00 35 04 06 00 9D [08:43:33]Write to MH i2c: E2 02 01 C5 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A8 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1A 00 00 00 00 07 04 06 00 A8 F7 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 C7 FF 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 68 00 00 35 04 06 00 9D 00 00 AE [08:43:33]Write i2c OK [08:43:33]MH_I2C_Read... [08:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:33]Read from MH i2c: E2 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 03 00 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 03 00 C5 4E 00 90 00 87 [08:43:33]RAPDU: 90 00 [08:43:33]wFMCommunicate OK [08:43:33]wFMCommunicate request_size=10 [08:43:33]MH_SAM_APDU [08:43:33]CAPDU: 80 0D 02 02 05 D7 D6 93 0B F3 [08:43:33]Write to MH i2c: E2 0D 00 C6 4E 80 0D 02 02 05 00 D7 D6 93 0B F3 00 00 D6 [08:43:33]Write i2c OK [08:43:33]MH_I2C_Read... [08:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:33]Read from MH i2c: E2 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 03 00 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 03 00 C6 4E 00 90 00 88 [08:43:33]RAPDU: 90 00 [08:43:33]wFMCommunicate OK [08:43:33]wFMCommunicate request_size=4 [08:43:33]MH_SAM_APDU [08:43:33]CAPDU: 80 0D 03 02 [08:43:33]Write to MH i2c: E2 08 00 C7 4E 80 0D 03 02 00 00 00 00 90 [08:43:33]Write i2c OK [08:43:33]MH_I2C_Read... [08:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:33]Read from MH i2c: E2 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 0B 00 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 0B 00 C7 4E 00 26 93 EB 6C 9D 2D 32 8B 90 00 28 [08:43:33]RAPDU: 26 93 EB 6C 9D 2D 32 8B 90 00 [08:43:33]wFMCommunicate OK [08:43:33]SAM_PROTO_SignData done [08:43:33]FM_MakeSignedData done [08:43:33]CreateOFDProtocolMessage [08:43:33]wFMCommunicate request_size=4 [08:43:33]MH_SAM_APDU [08:43:33]CAPDU: 80 11 00 00 [08:43:33]Write to MH i2c: E2 08 00 C8 4E 80 11 00 00 00 00 00 00 90 [08:43:33]Write i2c OK [08:43:33]MH_I2C_Read... [08:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:33]Read from MH i2c: E2 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 17 00 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 17 00 C8 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E8 [08:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:43:33]wFMCommunicate OK [08:43:33]CreateOFDProtocolMessage done [08:43:33]OFDSenderStorePacket 26876 [08:43:33]StoreOFDPacket docnum=26876 [08:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 20 2F 07 01 1C 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A8 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1A 00 00 00 00 07 04 06 00 A8 F7 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 C7 FF 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 68 00 00 35 04 06 00 9D D7 D6 93 0B F3 26 93 EB 6C 9D 2D 32 8B [08:43:33]CheckFolder [08:43:33]dirname=/storage/ofd_packets [08:43:33]CheckFolder done [08:43:33]ProducePacketName [08:43:33]name=ofd_packets/00026876 [08:43:33]NVStorageSaveData ofd_packets/00026876 [08:43:33]File name is /storage/ofd_packets/00026876 [08:43:33]Write 301 bytes [08:43:33]NVStorageSaveData done [08:43:33]OFDSenderStorePacket done [08:43:33]KKMCreateOFDPacket done [08:43:33]NVStorageSaveData kkm_last_timestamp [08:43:33]File name is /storage/kkm_last_timestamp [08:43:33]Write 4 bytes [08:43:33]NVStorageSaveData done [08:43:33]ExternCall_PrintAddStr [08:43:33]wPrintStart [08:43:33]Write to MH i2c: 01 00 00 C9 4E 17 [08:43:33]Write i2c OK [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: 01 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: 01 07 00 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: 01 07 00 C9 4E 00 00 00 00 00 FF 0F 2C [08:43:33]RasterBufferAndPrint [08:43:33]line Счет N : (1)359620 [08:43:33]line ИНН: 02508201610067 [08:43:33]line Контрольно-Кассовый Чек [08:43:33]line ПРОДАЖА [08:43:33]line ТРК (МРК, ГНК) : 51 [08:43:33]line Товар: 2710124130 [08:43:33]line Аи-92-К-5 [08:43:33]line 10.000 * 63.40 [08:43:33]line = 634.00 [08:43:33]line НДС 12% НСП 1% [08:43:33]line > о реализуемом товаре [08:43:33]line ИТОГО: 634.00 [08:43:33]line НСП 1% : 5.61 [08:43:33]line НДС 12% : 67.33 [08:43:33]line Наличными: 634.00 [08:43:33]line Безнал.: 0.00 [08:43:33]line Место: АЗС № 122 "Партнер Нефть" [08:43:33]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [08:43:33]line СНО: Общий режим [08:43:33]line Чек 8 09.04.2024 08:43 [08:43:33]line Смена: 315 ФФД: 1.0 [08:43:33]line ЗНМ: 0300000147 [08:43:33]line РНМ: 0000000000091578 [08:43:33]line Версия ККМ: 001 [08:43:33]line ФМ: 0000000000874657 [08:43:33]line ФД: 26876 [08:43:33]line ФПД: 173550343490547 [08:43:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T084351&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26876&fm=173550343490547&tin=02508201610067®Number=0000000000091578&sum=63400 [08:43:33]OFD Sender: Processing packet 26876 [packets to send 44, broken 43] [08:43:33]ProducePacketName [08:43:33]name=ofd_packets/00026876 [08:43:33]OFD Sender: To server: pG, [08:43:33]CommunicateWithHost lk.salyk.kg:30040 [08:43:33]ConnectInit lk.salyk.kg [08:43:33]written 0, free lines is 4095 [08:43:33]Connected sock=10 [08:43:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 20 2F 07 01 1C 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A8 F7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1A 00 00 00 00 07 04 06 00 A8 F7 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 C7 FF 14 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 68 00 00 35 04 06 00 9D D7 D6 93 0B F3 26 93 EB 6C 9D 2D 32 8B [08:43:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 FF 18 47 00 76 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FC 68 00 00 F4 03 04 00 2E A7 14 66 B6 04 01 00 00 AB E3 47 FB 59 73 E1 F3 [08:43:34]CommunicateWithHost err = 0 [08:43:34]CheckOFDResponse [08:43:34]1017 (14) - 77093643461234 [08:43:34]1041 (16) - 0000000000874657 [08:43:34]1040 (4) - 26876 [08:43:34]1012 (4) - 09.04.2024 02:25 [08:43:34]1206 (1) - 0 [08:43:34]OFD Sender: Remove packet 26876 [08:43:34]ProducePacketName [08:43:34]name=ofd_packets/00026876 [08:43:34]NVStorageDeleteData [08:43:34]Write to MH i2c: 01 00 00 F1 4E 3F [08:43:34]Write i2c OK [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: 01 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: 01 07 00 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: 01 07 00 F1 4E 00 00 00 00 00 A2 0C F4 [08:43:34]RasterBufferAndPrint [08:43:34]line [08:43:34]line [08:43:34]line [08:43:34]line [08:43:34]line [08:43:34]written 0, free lines is 3239 [08:43:34]MH_Cut [08:43:34]Write to MH i2c: D1 01 00 F8 4E 01 18 [08:43:34]Write i2c OK [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: D1 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: D1 01 00 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: D1 01 00 F8 4E 00 17 [08:43:34]Write to MH i2c: 01 00 00 F9 4E 47 [08:43:34]Write i2c OK [08:43:34]MH_I2C_Read... [08:43:34]OFD Sender: No OFD packet to send [08:43:35]*** Cut start [08:43:35]*** Partial cut [08:43:35]*** CUTSNS_PIN = 1 [08:43:35]*** CUTSNS_PIN = 0 [08:43:35]*** Brake cut motor [08:43:35]Read from MH i2c: 01 [08:43:35]MH_I2C_Read... [08:43:36]*** Stop cut motor [08:43:36]*** Cut end [08:43:36]Read from MH i2c: 01 07 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: 01 07 00 F9 4E 00 00 00 00 00 FF 0F 5C [08:43:36]process_action close_receipt done [08:43:36]requested_data is exist [08:43:36]produce_requested_data [08:43:36]requested_item fm.sn is exist - process it [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 11 00 00 [08:43:36]Write to MH i2c: E2 08 00 FA 4E 80 11 00 00 00 00 00 00 C2 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 17 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 17 00 FA 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 1A [08:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:43:36]wFMCommunicate OK [08:43:36]requested_item fd.num is exist - process it [08:43:36]SAM_PROTO_GetFieldsCounters [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 13 00 00 [08:43:36]Write to MH i2c: E2 08 00 FB 4E 80 13 00 00 00 00 00 00 C5 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 62 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 62 00 FB 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FC 68 00 00 0E 04 04 00 3B 01 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 A8 [08:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FC 68 00 00 0E 04 04 00 3B 01 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 [08:43:36]wFMCommunicate OK [08:43:36]SAM_PROTO_GetFieldsCounters done [08:43:36]requested_item shift.num is exist - process it [08:43:36]requested_item shift.opened is exist - process it [08:43:36]req_shift_opened [08:43:36]FM_GetShiftState [08:43:36]SAM_PROTO_GetShiftState [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 13 01 00 [08:43:36]Write to MH i2c: E2 08 00 FC 4E 80 13 01 00 00 00 00 00 C7 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0E 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0E 00 FC 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 32 [08:43:36]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:43:36]wFMCommunicate OK [08:43:36]SAM_PROTO_GetShiftState done [08:43:36]FM_GetShiftState done [08:43:36]req_shift_opened done [08:43:36]requested_item shift.open_date is exist - process it [08:43:36]req_shift_open_date [08:43:36]req_shift_open_date done [08:43:36]produce_requested_data done [08:43:36]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26876,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [08:43:36]process_action_free close_receipt [08:43:36]json_value_free [08:43:36]json_value_free done [08:43:36]process_json_proto returns [08:43:36]Send response to host [08:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26876,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [08:43:36]free response buf [08:43:36]execute_script done [08:43:36]execute_script returns [08:43:36]free content buf [08:43:36]Sock 9.Close socket [08:43:36]Sock 9.Thread stoped [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:12]accept exits with 8 [08:48:12]New connection [08:48:12]New thread 3066871140 created [08:48:12]Thread 3067014500 joined [08:48:12]Waiting for new connection... [08:48:12] Sock 8.Parse request [08:48:12]Sock 8.Check first char [08:48:12]Sock 8.First char is OK [08:48:12]request: POST /json_proto HTTP/1.0 [08:48:12]Method: POST [08:48:12]URL: /json_proto [08:48:12]Method is POST - this is cgi request [08:48:12]url: /json_proto [08:48:12]query_string will be loaded in cgi processing [08:48:12]execute_cgi json_proto POST (null) [08:48:12]execute_cgi path=json_proto method=POST [08:48:12]POST find Content-Length [08:48:12]Host: 172.17.35.3:8080 [08:48:12]Content-Length: 682 [08:48:12]Content-Type: application/json [08:48:12] [08:48:12]POST finish read [08:48:12]Found Content-Length = 682 [08:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:12]execute_script... [08:48: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)359621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:12]POST & json_proto [08:48:12]process_json_proto [08:48:12]json parsed OK: [08:48:12]protocol is kg_v1.0 [08:48:12]action value=close_receipt [08:48:12]process_action close_receipt [08:48:12]cmd_close_receipt [08:48:12]MH_GetDate [08:48:12]Write to MH i2c: F0 00 00 FD 4E 3A [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: F0 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: F0 09 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: F0 09 00 FD 4E 00 DF 00 15 66 2B 11 66 64 A3 [08:48:12]GetLastDocTimeStamp 1712652231 [08:48:12]current date 1712652511 [08:48:12]FM_GetShiftState [08:48:12]SAM_PROTO_GetShiftState [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 13 01 00 [08:48:12]Write to MH i2c: E2 08 00 FE 4E 80 13 01 00 00 00 00 00 C9 [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 0E 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 0E 00 FE 4E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 34 [08:48:12]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:48:12]wFMCommunicate OK [08:48:12]SAM_PROTO_GetShiftState done [08:48:12]FM_GetShiftState done [08:48:12]opened in 1712622936 [08:48:12]opened+sec_in_day 1712709336 [08:48:12]quantity*price = 100012 [08:48:12]sum+1 = 100014 [08:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 9 09.04.2024 08:48 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26877 ФПД: 39555076477950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T084831&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26877&fm=39555076477950&tin=02508201610067®Number=0000000000091578&sum=100000 [08:48:13]StoreToDocumentArchive [08:48:13]shift 315 fd 26877 [08:48:13]save to /storage/0315/doc_00026877 [08:48:13]save last doc name /storage/0315/doc_00026877 to /storage/kkm_last_doc_name [08:48:13]save OK [08:48:13]Clear old archive folders... [08:48:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:13]tlvbuf is 00EE3CA0 [08:48:13]SAM_PROTO_ClearQueue [08:48:13]wFMCommunicate request_size=4 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 09 00 00 [08:48:13]Write to MH i2c: E2 08 00 0B 4F 80 09 00 00 00 00 00 00 CC [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 0B 4F 00 90 00 CE [08:48:13]RAPDU: 90 00 [08:48:13]wFMCommunicate OK [08:48:13]SAM_PROTO_ClearQueue done [08:48:13]KKMCreateOFDPacket [08:48:13]OFDProtocolAddRootSTLVToBuf [08:48:13]FM_MakeSignedData [08:48:13]FM_MakeSignedData [08:48:13]SAM_PROTO_SignData [08:48:13]wFMCommunicate request_size=4 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 0D 01 02 [08:48:13]Write to MH i2c: E2 08 00 0C 4F 80 0D 01 02 00 00 00 00 D4 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 0C 4F 00 90 00 CF [08:48:13]RAPDU: 90 00 [08:48:13]wFMCommunicate OK [08:48:13]wFMCommunicate request_size=255 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 DF 00 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 68 00 00 35 04 06 00 23 [08:48:13]Write to MH i2c: E2 02 01 0D 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 DF 00 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 68 00 00 35 04 06 00 23 00 00 71 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 0D 4F 00 90 00 D0 [08:48:13]RAPDU: 90 00 [08:48:13]wFMCommunicate OK [08:48:13]wFMCommunicate request_size=10 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 0D 02 02 05 F9 A2 48 53 FE [08:48:13]Write to MH i2c: E2 0D 00 0E 4F 80 0D 02 02 05 00 F9 A2 48 53 FE 00 00 15 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 03 00 0E 4F 00 90 00 D1 [08:48:13]RAPDU: 90 00 [08:48:13]wFMCommunicate OK [08:48:13]wFMCommunicate request_size=4 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 0D 03 02 [08:48:13]Write to MH i2c: E2 08 00 0F 4F 80 0D 03 02 00 00 00 00 D9 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 0B 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 0B 00 0F 4F 00 2E DC 7B 1B 25 97 61 E9 90 00 80 [08:48:13]RAPDU: 2E DC 7B 1B 25 97 61 E9 90 00 [08:48:13]wFMCommunicate OK [08:48:13]SAM_PROTO_SignData done [08:48:13]FM_MakeSignedData done [08:48:13]CreateOFDProtocolMessage [08:48:13]wFMCommunicate request_size=4 [08:48:13]MH_SAM_APDU [08:48:13]CAPDU: 80 11 00 00 [08:48:13]Write to MH i2c: E2 08 00 10 4F 80 11 00 00 00 00 00 00 D9 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:13]Read from MH i2c: E2 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 17 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: E2 17 00 10 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 31 [08:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:48:13]wFMCommunicate OK [08:48:13]CreateOFDProtocolMessage done [08:48:13]OFDSenderStorePacket 26877 [08:48:13]StoreOFDPacket docnum=26877 [08:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 F6 1B 07 01 D3 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 DF 00 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 68 00 00 35 04 06 00 23 F9 A2 48 53 FE 2E DC 7B 1B 25 97 61 E9 [08:48:13]CheckFolder [08:48:13]dirname=/storage/ofd_packets [08:48:13]CheckFolder done [08:48:13]ProducePacketName [08:48:13]name=ofd_packets/00026877 [08:48:13]NVStorageSaveData ofd_packets/00026877 [08:48:13]File name is /storage/ofd_packets/00026877 [08:48:13]Write 301 bytes [08:48:13]NVStorageSaveData done [08:48:13]OFDSenderStorePacket done [08:48:13]KKMCreateOFDPacket done [08:48:13]NVStorageSaveData kkm_last_timestamp [08:48:13]File name is /storage/kkm_last_timestamp [08:48:13]Write 4 bytes [08:48:13]NVStorageSaveData done [08:48:13]ExternCall_PrintAddStr [08:48:13]wPrintStart [08:48:13]Write to MH i2c: 01 00 00 11 4F 60 [08:48:13]Write i2c OK [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: 01 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: 01 07 00 [08:48:13]MH_I2C_Read... [08:48:13]Read from MH i2c: 01 07 00 11 4F 00 00 00 00 00 FF 0F 75 [08:48:13]RasterBufferAndPrint [08:48:13]line Счет N : (1)359621 [08:48:13]line ИНН: 02508201610067 [08:48:13]line Контрольно-Кассовый Чек [08:48:13]line ПРОДАЖА [08:48:13]line ТРК (МРК, ГНК) : 63 [08:48:13]line Товар: 2710124500 [08:48:13]line Аи-95-К-5 [08:48:13]line 13.910 * 71.90 [08:48:13]line = 1000.13 [08:48:13]line НДС 12% НСП 1% [08:48:13]line > о реализуемом товаре [08:48:13]line ОКРУГЛЕНИЕ: -0.13 [08:48:13]line ИТОГО: 1000.00 [08:48:13]line Внесено: 1000.00 [08:48:13]line СДАЧА: 0.00 [08:48:13]line НСП 1% : 8.85 [08:48:13]line НДС 12% : 106.21 [08:48:13]line Наличными: 1000.00 [08:48:13]line Безнал.: 0.00 [08:48:13]line Место: АЗС № 122 "Партнер Нефть" [08:48:13]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [08:48:13]line СНО: Общий режим [08:48:13]line Чек 9 09.04.2024 08:48 [08:48:13]line Смена: 315 ФФД: 1.0 [08:48:13]line ЗНМ: 0300000147 [08:48:13]line РНМ: 0000000000091578 [08:48:13]line Версия ККМ: 001 [08:48:13]line ФМ: 0000000000874657 [08:48:13]line ФД: 26877 [08:48:13]line ФПД: 39555076477950 [08:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T084831&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26877&fm=39555076477950&tin=02508201610067®Number=0000000000091578&sum=100000 [08:48:14]written 0, free lines is 4095 [08:48:14]OFD Sender: Processing packet 26877 [packets to send 44, broken 43] [08:48:14]ProducePacketName [08:48:14]name=ofd_packets/00026877 [08:48:14]OFD Sender: To server: pG, [08:48:14]CommunicateWithHost lk.salyk.kg:30040 [08:48:14]ConnectInit lk.salyk.kg [08:48:14]Connected sock=10 [08:48:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 F6 1B 07 01 D3 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 DF 00 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FD 68 00 00 35 04 06 00 23 F9 A2 48 53 FE 2E DC 7B 1B 25 97 61 E9 [08:48:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F0 C0 47 00 E6 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 38 37 34 36 35 37 10 04 04 00 FD 68 00 00 F4 03 04 00 47 A8 14 66 B6 04 01 00 00 DC 9F 60 CE 9F 3B 45 B8 [08:48:14]CommunicateWithHost err = 0 [08:48:14]CheckOFDResponse [08:48:14]1017 (14) - 77093643461234 [08:48:14]1041 (16) - 0000000000874657 [08:48:14]1040 (4) - 26877 [08:48:14]1012 (4) - 09.04.2024 02:30 [08:48:14]1206 (1) - 0 [08:48:14]OFD Sender: Remove packet 26877 [08:48:14]ProducePacketName [08:48:14]name=ofd_packets/00026877 [08:48:14]NVStorageDeleteData [08:48:14]Write to MH i2c: 01 00 00 3C 4F 8B [08:48:14]Write i2c OK [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: 01 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: 01 07 00 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: 01 07 00 3C 4F 00 00 00 00 00 65 0C 03 [08:48:14]RasterBufferAndPrint [08:48:14]line [08:48:14]line [08:48:14]line [08:48:14]line [08:48:14]line [08:48:14]written 0, free lines is 3176 [08:48:14]MH_Cut [08:48:14]Write to MH i2c: D1 01 00 43 4F 01 64 [08:48:14]Write i2c OK [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: D1 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: D1 01 00 [08:48:14]MH_I2C_Read... [08:48:14]Read from MH i2c: D1 01 00 43 4F 00 63 [08:48:14]Write to MH i2c: 01 00 00 44 4F 93 [08:48:14]Write i2c OK [08:48:14]MH_I2C_Read... [08:48:15]OFD Sender: No OFD packet to send [08:48:15]*** Cut start [08:48:15]*** Partial cut [08:48:15]*** CUTSNS_PIN = 1 [08:48:15]*** CUTSNS_PIN = 0 [08:48:16]*** Brake cut motor [08:48:16]Read from MH i2c: 01 [08:48:16]MH_I2C_Read... [08:48:16]*** Stop cut motor [08:48:16]*** Cut end [08:48:16]Read from MH i2c: 01 07 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: 01 07 00 44 4F 00 00 00 00 00 FF 0F A8 [08:48:16]process_action close_receipt done [08:48:16]requested_data is exist [08:48:16]produce_requested_data [08:48:16]requested_item fm.sn is exist - process it [08:48:16]wFMCommunicate request_size=4 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 11 00 00 [08:48:16]Write to MH i2c: E2 08 00 45 4F 80 11 00 00 00 00 00 00 0E [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 17 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 17 00 45 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 66 [08:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [08:48:16]wFMCommunicate OK [08:48:16]requested_item fd.num is exist - process it [08:48:16]SAM_PROTO_GetFieldsCounters [08:48:16]wFMCommunicate request_size=4 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 13 00 00 [08:48:16]Write to MH i2c: E2 08 00 46 4F 80 13 00 00 00 00 00 00 11 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 62 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 62 00 46 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FD 68 00 00 0E 04 04 00 3B 01 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 F8 [08:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FD 68 00 00 0E 04 04 00 3B 01 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 [08:48:16]wFMCommunicate OK [08:48:16]SAM_PROTO_GetFieldsCounters done [08:48:16]requested_item shift.num is exist - process it [08:48:16]requested_item shift.opened is exist - process it [08:48:16]req_shift_opened [08:48:16]FM_GetShiftState [08:48:16]SAM_PROTO_GetShiftState [08:48:16]wFMCommunicate request_size=4 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 13 01 00 [08:48:16]Write to MH i2c: E2 08 00 47 4F 80 13 01 00 00 00 00 00 13 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0E 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0E 00 47 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 7E [08:48:16]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [08:48:16]wFMCommunicate OK [08:48:16]SAM_PROTO_GetShiftState done [08:48:16]FM_GetShiftState done [08:48:16]req_shift_opened done [08:48:16]requested_item shift.open_date is exist - process it [08:48:16]req_shift_open_date [08:48:16]req_shift_open_date done [08:48:16]produce_requested_data done [08:48:16]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26877,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [08:48:16]process_action_free close_receipt [08:48:16]json_value_free [08:48:16]json_value_free done [08:48:16]process_json_proto returns [08:48:16]Send response to host [08:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26877,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [08:48:16]free response buf [08:48:16]execute_script done [08:48:16]execute_script returns [08:48:16]free content buf [08:48:16]Sock 8.Close socket [08:48:16]Sock 8.Thread stoped [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04: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:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14: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:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]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:22]accept exits with 9 [09:29:22]New connection [09:29:22]New thread 3067014500 created [09:29:22]Thread 3066871140 joined [09:29:22]Waiting for new connection... [09:29:22] Sock 9.Parse request [09:29:22]Sock 9.Check first char [09:29:22]Sock 9.First char is OK [09:29:22]request: POST /json_proto HTTP/1.0 [09:29:22]Method: POST [09:29:22]URL: /json_proto [09:29:22]Method is POST - this is cgi request [09:29:22]url: /json_proto [09:29:22]query_string will be loaded in cgi processing [09:29:22]execute_cgi json_proto POST (null) [09:29:22]execute_cgi path=json_proto method=POST [09:29:22]POST find Content-Length [09:29:22]Host: 172.17.35.3:8080 [09:29:22]Content-Length: 808 [09:29:22]Content-Type: application/json [09:29:22] [09:29:22]POST finish read [09:29:22]Found Content-Length = 808 [09:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 41.790, "sum" : 3000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:22]execute_script... [09:29:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 41.790, "sum" : 3000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:22]POST & json_proto [09:29:22]process_json_proto [09:29:22]json parsed OK: [09:29:22]protocol is kg_v1.0 [09:29:22]action value=close_receipt [09:29:22]process_action close_receipt [09:29:22]cmd_close_receipt [09:29:22]MH_GetDate [09:29:22]Write to MH i2c: F0 00 00 48 4F 86 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: F0 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: F0 09 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: F0 09 00 48 4F 00 86 0A 15 66 2B 11 66 64 A0 [09:29:22]GetLastDocTimeStamp 1712652511 [09:29:22]current date 1712654982 [09:29:22]FM_GetShiftState [09:29:22]SAM_PROTO_GetShiftState [09:29:22]wFMCommunicate request_size=4 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 13 01 00 [09:29:22]Write to MH i2c: E2 08 00 49 4F 80 13 01 00 00 00 00 00 15 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 0E 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 0E 00 49 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 80 [09:29:22]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [09:29:22]wFMCommunicate OK [09:29:22]SAM_PROTO_GetShiftState done [09:29:22]FM_GetShiftState done [09:29:22]opened in 1712622936 [09:29:22]opened+sec_in_day 1712709336 [09:29:22]quantity*price = 300052 [09:29:22]sum+1 = 300053 [09:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.52 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.52 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 10 09.04.2024 09:29 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26878 ФПД: 214186052466160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T092942&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26878&fm=214186052466160&tin=02508201610067®Number=0000000000091578&sum=300052 [09:29:23]StoreToDocumentArchive [09:29:23]shift 315 fd 26878 [09:29:23]save to /storage/0315/doc_00026878 [09:29:23]save last doc name /storage/0315/doc_00026878 to /storage/kkm_last_doc_name [09:29:23]save OK [09:29:23]Clear old archive folders... [09:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:29:23]tlvbuf is 00E3C210 [09:29:23]SAM_PROTO_ClearQueue [09:29:23]wFMCommunicate request_size=4 [09:29:23]MH_SAM_APDU [09:29:23]CAPDU: 80 09 00 00 [09:29:23]Write to MH i2c: E2 08 00 56 4F 80 09 00 00 00 00 00 00 17 [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:23]Read from MH i2c: E2 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 03 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 03 00 56 4F 00 90 00 19 [09:29:23]RAPDU: 90 00 [09:29:23]wFMCommunicate OK [09:29:23]SAM_PROTO_ClearQueue done [09:29:23]KKMCreateOFDPacket [09:29:23]OFDProtocolAddRootSTLVToBuf [09:29:23]FM_MakeSignedData [09:29:23]FM_MakeSignedData [09:29:23]SAM_PROTO_SignData [09:29:23]wFMCommunicate request_size=4 [09:29:23]MH_SAM_APDU [09:29:23]CAPDU: 80 0D 01 02 [09:29:23]Write to MH i2c: E2 08 00 57 4F 80 0D 01 02 00 00 00 00 1F [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:23]Read from MH i2c: E2 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 03 00 [09:29:23]MH_I2C_Read... [09:29:23]Read from MH i2c: E2 03 00 57 4F 00 90 00 1A [09:29:23]RAPDU: 90 00 [09:29:23]wFMCommunicate OK [09:29:23]wFMCommunicate request_size=255 [09:29:23]MH_SAM_APDU [09:29:23]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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 86 0A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 68 00 00 35 04 06 00 [09:29:23]Write to MH i2c: E2 02 01 58 4F 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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 86 0A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 68 00 00 35 04 06 00 00 00 8F [09:29:23]Write i2c OK [09:29:23]MH_I2C_Read... [09:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:24]Read from MH i2c: E2 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 03 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 03 00 58 4F 00 90 00 1B [09:29:24]RAPDU: 90 00 [09:29:24]wFMCommunicate OK [09:29:24]wFMCommunicate request_size=11 [09:29:24]MH_SAM_APDU [09:29:24]CAPDU: 80 0D 02 02 06 C2 CD 13 92 B5 F0 [09:29:24]Write to MH i2c: E2 0E 00 59 4F 80 0D 02 02 06 00 C2 CD 13 92 B5 F0 00 00 07 [09:29:24]Write i2c OK [09:29:24]MH_I2C_Read... [09:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:24]Read from MH i2c: E2 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 03 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 03 00 59 4F 00 90 00 1C [09:29:24]RAPDU: 90 00 [09:29:24]wFMCommunicate OK [09:29:24]wFMCommunicate request_size=4 [09:29:24]MH_SAM_APDU [09:29:24]CAPDU: 80 0D 03 02 [09:29:24]Write to MH i2c: E2 08 00 5A 4F 80 0D 03 02 00 00 00 00 24 [09:29:24]Write i2c OK [09:29:24]MH_I2C_Read... [09:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:24]Read from MH i2c: E2 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 0B 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 0B 00 5A 4F 00 09 D5 B8 6E B8 BC 0C 4C 90 00 F5 [09:29:24]RAPDU: 09 D5 B8 6E B8 BC 0C 4C 90 00 [09:29:24]wFMCommunicate OK [09:29:24]SAM_PROTO_SignData done [09:29:24]FM_MakeSignedData done [09:29:24]CreateOFDProtocolMessage [09:29:24]wFMCommunicate request_size=4 [09:29:24]MH_SAM_APDU [09:29:24]CAPDU: 80 11 00 00 [09:29:24]Write to MH i2c: E2 08 00 5B 4F 80 11 00 00 00 00 00 00 24 [09:29:24]Write i2c OK [09:29:24]MH_I2C_Read... [09:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:24]Read from MH i2c: E2 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 17 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: E2 17 00 5B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 7C [09:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:29:24]wFMCommunicate OK [09:29:24]CreateOFDProtocolMessage done [09:29:24]OFDSenderStorePacket 26878 [09:29:24]StoreOFDPacket docnum=26878 [09:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 46 77 08 01 63 DE 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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 86 0A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 68 00 00 35 04 06 00 C2 CD 13 92 B5 F0 09 D5 B8 6E B8 BC 0C 4C [09:29:24]CheckFolder [09:29:24]dirname=/storage/ofd_packets [09:29:24]CheckFolder done [09:29:24]ProducePacketName [09:29:24]name=ofd_packets/00026878 [09:29:24]NVStorageSaveData ofd_packets/00026878 [09:29:24]File name is /storage/ofd_packets/00026878 [09:29:24]Write 302 bytes [09:29:24]NVStorageSaveData done [09:29:24]OFDSenderStorePacket done [09:29:24]KKMCreateOFDPacket done [09:29:24]NVStorageSaveData kkm_last_timestamp [09:29:24]File name is /storage/kkm_last_timestamp [09:29:24]Write 4 bytes [09:29:24]NVStorageSaveData done [09:29:24]ExternCall_PrintAddStr [09:29:24]wPrintStart [09:29:24]Write to MH i2c: 01 00 00 5C 4F AB [09:29:24]Write i2c OK [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: 01 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: 01 07 00 [09:29:24]MH_I2C_Read... [09:29:24]Read from MH i2c: 01 07 00 5C 4F 00 00 00 00 00 FF 0F C0 [09:29:24]RasterBufferAndPrint [09:29:24]line Счет N : (1)359622 [09:29:24]line ИНН: 02508201610067 [09:29:24]line Контрольно-Кассовый Чек [09:29:24]line ПРОДАЖА [09:29:24]line ТРК (МРК, ГНК) : 21 [09:29:24]line Товар: 2710194210 [09:29:24]line ДТ(л)-К-5 [09:29:24]line 41.790 * 71.80 [09:29:24]line = 3000.52 [09:29:24]line НДС 12% НСП 1% [09:29:24]line > о реализуемом товаре [09:29:24]line ИТОГО: 3000.52 [09:29:24]line НСП 1% : 26.55 [09:29:24]line НДС 12% : 318.64 [09:29:24]line Наличными: 0.00 [09:29:24]line Безнал.: 3000.52 [09:29:24]line Место: АЗС № 122 "Партнер Нефть" [09:29:24]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [09:29:24]line СНО: Общий режим [09:29:24]line Чек 10 09.04.2024 09:29 [09:29:24]line Смена: 315 ФФД: 1.0 [09:29:24]line ЗНМ: 0300000147 [09:29:24]line РНМ: 0000000000091578 [09:29:24]line Версия ККМ: 001 [09:29:24]line Платежная система: O! деньги [09:29:24]line ФМ: 0000000000874657 [09:29:24]line ФД: 26878 [09:29:24]line ФПД: 214186052466160 [09:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T092942&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26878&fm=214186052466160&tin=02508201610067®Number=0000000000091578&sum=300052 [09:29:24]OFD Sender: Processing packet 26878 [packets to send 44, broken 43] [09:29:24]ProducePacketName [09:29:24]name=ofd_packets/00026878 [09:29:24]OFD Sender: To server: pG, [09:29:24]CommunicateWithHost lk.salyk.kg:30040 [09:29:24]ConnectInit lk.salyk.kg [09:29:24]written 0, free lines is 4095 [09:29:24]Connected sock=10 [09:29:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 46 77 08 01 63 DE 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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 86 0A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 68 00 00 35 04 06 00 C2 CD 13 92 B5 F0 09 D5 B8 6E B8 BC 0C 4C [09:29:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 B5 8C 47 00 B6 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FE 68 00 00 F4 03 04 00 ED B1 14 66 B6 04 01 00 00 65 76 05 E9 CA F4 3B 06 [09:29:24]CommunicateWithHost err = 0 [09:29:24]CheckOFDResponse [09:29:24]1017 (14) - 77093643461234 [09:29:24]1041 (16) - 0000000000874657 [09:29:24]1040 (4) - 26878 [09:29:24]1012 (4) - 09.04.2024 03:11 [09:29:24]1206 (1) - 0 [09:29:24]OFD Sender: Remove packet 26878 [09:29:24]ProducePacketName [09:29:24]name=ofd_packets/00026878 [09:29:24]NVStorageDeleteData [09:29:25]Write to MH i2c: 01 00 00 86 4F D5 [09:29:25]Write i2c OK [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: 01 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: 01 07 00 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: 01 07 00 86 4F 00 00 00 00 00 8F 0C 77 [09:29:25]RasterBufferAndPrint [09:29:25]line [09:29:25]line [09:29:25]line [09:29:25]line [09:29:25]line [09:29:25]written 0, free lines is 3217 [09:29:25]MH_Cut [09:29:25]Write to MH i2c: D1 01 00 8D 4F 01 AE [09:29:25]Write i2c OK [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: D1 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: D1 01 00 [09:29:25]MH_I2C_Read... [09:29:25]Read from MH i2c: D1 01 00 8D 4F 00 AD [09:29:25]Write to MH i2c: 01 00 00 8E 4F DD [09:29:25]Write i2c OK [09:29:25]MH_I2C_Read... [09:29:25]OFD Sender: No OFD packet to send [09:29:26]*** Cut start [09:29:26]*** Partial cut [09:29:26]*** CUTSNS_PIN = 1 [09:29:26]*** CUTSNS_PIN = 0 [09:29:26]*** Brake cut motor [09:29:26]Read from MH i2c: 01 [09:29:26]MH_I2C_Read... [09:29:26]*** Stop cut motor [09:29:26]*** Cut end [09:29:26]Read from MH i2c: 01 07 00 [09:29:26]MH_I2C_Read... [09:29:26]Read from MH i2c: 01 07 00 8E 4F 00 00 00 00 00 FF 0F F2 [09:29:26]process_action close_receipt done [09:29:26]requested_data is exist [09:29:26]produce_requested_data [09:29:26]requested_item fm.sn is exist - process it [09:29:26]wFMCommunicate request_size=4 [09:29:26]MH_SAM_APDU [09:29:26]CAPDU: 80 11 00 00 [09:29:26]Write to MH i2c: E2 08 00 8F 4F 80 11 00 00 00 00 00 00 58 [09:29:26]Write i2c OK [09:29:26]MH_I2C_Read... [09:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:26]Read from MH i2c: E2 [09:29:26]MH_I2C_Read... [09:29:26]Read from MH i2c: E2 17 00 [09:29:26]MH_I2C_Read... [09:29:26]Read from MH i2c: E2 17 00 8F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B0 [09:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [09:29:26]wFMCommunicate OK [09:29:26]requested_item fd.num is exist - process it [09:29:26]SAM_PROTO_GetFieldsCounters [09:29:26]wFMCommunicate request_size=4 [09:29:26]MH_SAM_APDU [09:29:26]CAPDU: 80 13 00 00 [09:29:26]Write to MH i2c: E2 08 00 90 4F 80 13 00 00 00 00 00 00 5B [09:29:26]Write i2c OK [09:29:26]MH_I2C_Read... [09:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:27]Read from MH i2c: E2 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: E2 62 00 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: E2 62 00 90 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FE 68 00 00 0E 04 04 00 3B 01 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 46 [09:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FE 68 00 00 0E 04 04 00 3B 01 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 [09:29:27]wFMCommunicate OK [09:29:27]SAM_PROTO_GetFieldsCounters done [09:29:27]requested_item shift.num is exist - process it [09:29:27]requested_item shift.opened is exist - process it [09:29:27]req_shift_opened [09:29:27]FM_GetShiftState [09:29:27]SAM_PROTO_GetShiftState [09:29:27]wFMCommunicate request_size=4 [09:29:27]MH_SAM_APDU [09:29:27]CAPDU: 80 13 01 00 [09:29:27]Write to MH i2c: E2 08 00 91 4F 80 13 01 00 00 00 00 00 5D [09:29:27]Write i2c OK [09:29:27]MH_I2C_Read... [09:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:27]Read from MH i2c: E2 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: E2 0E 00 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: E2 0E 00 91 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C8 [09:29:27]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [09:29:27]wFMCommunicate OK [09:29:27]SAM_PROTO_GetShiftState done [09:29:27]FM_GetShiftState done [09:29:27]req_shift_opened done [09:29:27]requested_item shift.open_date is exist - process it [09:29:27]req_shift_open_date [09:29:27]req_shift_open_date done [09:29:27]produce_requested_data done [09:29:27]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26878,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [09:29:27]process_action_free close_receipt [09:29:27]json_value_free [09:29:27]json_value_free done [09:29:27]process_json_proto returns [09:29:27]Send response to host [09:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26878,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [09:29:27]free response buf [09:29:27]execute_script done [09:29:27]execute_script returns [09:29:27]free content buf [09:29:27]Sock 9.Close socket [09:29:27]Sock 9.Thread stoped [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40: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:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:34]accept exits with 8 [10:02:34]New connection [10:02:34]New thread 3066871140 created [10:02:34]Thread 3067014500 joined [10:02:34]Waiting for new connection... [10:02:34] Sock 8.Parse request [10:02:34]Sock 8.Check first char [10:02:34]Sock 8.First char is OK [10:02:34]request: POST /json_proto HTTP/1.0 [10:02:34]Method: POST [10:02:34]URL: /json_proto [10:02:34]Method is POST - this is cgi request [10:02:34]url: /json_proto [10:02:34]query_string will be loaded in cgi processing [10:02:34]execute_cgi json_proto POST (null) [10:02:34]execute_cgi path=json_proto method=POST [10:02:34]POST find Content-Length [10:02:34]Host: 172.17.35.3:8080 [10:02:34]Content-Length: 677 [10:02:34]Content-Type: application/json [10:02:34] [10:02:34]POST finish read [10:02:34]Found Content-Length = 677 [10:02:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "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:02:34]execute_script... [10:02: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)359623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "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:02:34]POST & json_proto [10:02:34]process_json_proto [10:02:34]json parsed OK: [10:02:34]protocol is kg_v1.0 [10:02:34]action value=close_receipt [10:02:34]process_action close_receipt [10:02:34]cmd_close_receipt [10:02:34]MH_GetDate [10:02:34]Write to MH i2c: F0 00 00 92 4F D0 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: F0 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: F0 09 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: F0 09 00 92 4F 00 4E 12 15 66 2B 11 66 64 BA [10:02:34]GetLastDocTimeStamp 1712654982 [10:02:34]current date 1712656974 [10:02:34]FM_GetShiftState [10:02:34]SAM_PROTO_GetShiftState [10:02:34]wFMCommunicate request_size=4 [10:02:34]MH_SAM_APDU [10:02:34]CAPDU: 80 13 01 00 [10:02:34]Write to MH i2c: E2 08 00 93 4F 80 13 01 00 00 00 00 00 5F [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 0E 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 0E 00 93 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 CA [10:02:34]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:02:34]wFMCommunicate OK [10:02:34]SAM_PROTO_GetShiftState done [10:02:34]FM_GetShiftState done [10:02:34]opened in 1712622936 [10:02:34]opened+sec_in_day 1712709336 [10:02:34]quantity*price = 50022 [10:02:34]sum+1 = 50024 [10:02:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 11 09.04.2024 10:02 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26879 ФПД: 71341335850924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T100254&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26879&fm=71341335850924&tin=02508201610067®Number=0000000000091578&sum=50000 [10:02:36]StoreToDocumentArchive [10:02:36]shift 315 fd 26879 [10:02:36]save to /storage/0315/doc_00026879 [10:02:36]save last doc name /storage/0315/doc_00026879 to /storage/kkm_last_doc_name [10:02:36]save OK [10:02:36]Clear old archive folders... [10:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:36]tlvbuf is 00EDB770 [10:02:36]SAM_PROTO_ClearQueue [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 09 00 00 [10:02:36]Write to MH i2c: E2 08 00 A0 4F 80 09 00 00 00 00 00 00 61 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 A0 4F 00 90 00 63 [10:02:36]RAPDU: 90 00 [10:02:36]wFMCommunicate OK [10:02:36]SAM_PROTO_ClearQueue done [10:02:36]KKMCreateOFDPacket [10:02:36]OFDProtocolAddRootSTLVToBuf [10:02:36]FM_MakeSignedData [10:02:36]FM_MakeSignedData [10:02:36]SAM_PROTO_SignData [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 0D 01 02 [10:02:36]Write to MH i2c: E2 08 00 A1 4F 80 0D 01 02 00 00 00 00 69 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 A1 4F 00 90 00 64 [10:02:36]RAPDU: 90 00 [10:02:36]wFMCommunicate OK [10:02:36]wFMCommunicate request_size=255 [10:02:36]MH_SAM_APDU [10:02: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 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4E 12 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 68 00 00 35 04 06 00 40 [10:02:36]Write to MH i2c: E2 02 01 A2 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4E 12 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 68 00 00 35 04 06 00 40 00 00 F2 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 A2 4F 00 90 00 65 [10:02:36]RAPDU: 90 00 [10:02:36]wFMCommunicate OK [10:02:36]wFMCommunicate request_size=10 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 0D 02 02 05 E2 72 FB 2F AC [10:02:36]Write to MH i2c: E2 0D 00 A3 4F 80 0D 02 02 05 00 E2 72 FB 2F AC 00 00 A0 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 03 00 A3 4F 00 90 00 66 [10:02:36]RAPDU: 90 00 [10:02:36]wFMCommunicate OK [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 0D 03 02 [10:02:36]Write to MH i2c: E2 08 00 A4 4F 80 0D 03 02 00 00 00 00 6E [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 0B 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 0B 00 A4 4F 00 36 C9 2D 5D 41 12 51 D5 90 00 71 [10:02:36]RAPDU: 36 C9 2D 5D 41 12 51 D5 90 00 [10:02:36]wFMCommunicate OK [10:02:36]SAM_PROTO_SignData done [10:02:36]FM_MakeSignedData done [10:02:36]CreateOFDProtocolMessage [10:02:36]wFMCommunicate request_size=4 [10:02:36]MH_SAM_APDU [10:02:36]CAPDU: 80 11 00 00 [10:02:36]Write to MH i2c: E2 08 00 A5 4F 80 11 00 00 00 00 00 00 6E [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:36]Read from MH i2c: E2 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 17 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: E2 17 00 A5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C6 [10:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:02:36]wFMCommunicate OK [10:02:36]CreateOFDProtocolMessage done [10:02:36]OFDSenderStorePacket 26879 [10:02:36]StoreOFDPacket docnum=26879 [10:02:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 86 A7 07 01 B8 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4E 12 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 68 00 00 35 04 06 00 40 E2 72 FB 2F AC 36 C9 2D 5D 41 12 51 D5 [10:02:36]CheckFolder [10:02:36]dirname=/storage/ofd_packets [10:02:36]CheckFolder done [10:02:36]ProducePacketName [10:02:36]name=ofd_packets/00026879 [10:02:36]NVStorageSaveData ofd_packets/00026879 [10:02:36]File name is /storage/ofd_packets/00026879 [10:02:36]Write 301 bytes [10:02:36]NVStorageSaveData done [10:02:36]OFDSenderStorePacket done [10:02:36]KKMCreateOFDPacket done [10:02:36]NVStorageSaveData kkm_last_timestamp [10:02:36]File name is /storage/kkm_last_timestamp [10:02:36]Write 4 bytes [10:02:36]NVStorageSaveData done [10:02:36]ExternCall_PrintAddStr [10:02:36]wPrintStart [10:02:36]Write to MH i2c: 01 00 00 A6 4F F5 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 A6 4F 00 00 00 00 00 FF 0F 0A [10:02:36]RasterBufferAndPrint [10:02:36]line Счет N : (1)359623 [10:02:36]line ИНН: 02508201610067 [10:02:36]line Контрольно-Кассовый Чек [10:02:36]line ПРОДАЖА [10:02:36]line ТРК (МРК, ГНК) : 61 [10:02:36]line Товар: 2710124130 [10:02:36]line Аи-92-К-5 [10:02:36]line 7.890 * 63.40 [10:02:36]line = 500.23 [10:02:36]line НДС 12% НСП 1% [10:02:36]line > о реализуемом товаре [10:02:36]line ОКРУГЛЕНИЕ: -0.23 [10:02:36]line ИТОГО: 500.00 [10:02:36]line Внесено: 500.00 [10:02:36]line СДАЧА: 0.00 [10:02:36]line НСП 1% : 4.43 [10:02:36]line НДС 12% : 53.12 [10:02:36]line Наличными: 500.00 [10:02:36]line Безнал.: 0.00 [10:02:36]line Место: АЗС № 122 "Партнер Нефть" [10:02:36]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:02:36]line СНО: Общий режим [10:02:36]line Чек 11 09.04.2024 10:02 [10:02:36]line Смена: 315 ФФД: 1.0 [10:02:36]line ЗНМ: 0300000147 [10:02:36]line РНМ: 0000000000091578 [10:02:36]line Версия ККМ: 001 [10:02:36]line ФМ: 0000000000874657 [10:02:36]line ФД: 26879 [10:02:36]line ФПД: 71341335850924 [10:02:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T100254&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26879&fm=71341335850924&tin=02508201610067®Number=0000000000091578&sum=50000 [10:02:36]OFD Sender: Processing packet 26879 [packets to send 44, broken 43] [10:02:36]ProducePacketName [10:02:36]name=ofd_packets/00026879 [10:02:36]OFD Sender: To server: pG, [10:02:36]CommunicateWithHost lk.salyk.kg:30040 [10:02:36]ConnectInit lk.salyk.kg [10:02:36]written 0, free lines is 4095 [10:02:37]Connected sock=10 [10:02:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 86 A7 07 01 B8 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4E 12 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 68 00 00 35 04 06 00 40 E2 72 FB 2F AC 36 C9 2D 5D 41 12 51 D5 [10:02:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 A7 15 47 00 E0 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 FF 68 00 00 F4 03 04 00 B5 B9 14 66 B6 04 01 00 00 C4 A0 68 F6 AD 67 92 E3 [10:02:37]CommunicateWithHost err = 0 [10:02:37]CheckOFDResponse [10:02:37]1017 (14) - 77093643461234 [10:02:37]1041 (16) - 0000000000874657 [10:02:37]1040 (4) - 26879 [10:02:37]1012 (4) - 09.04.2024 03:44 [10:02:37]1206 (1) - 0 [10:02:37]OFD Sender: Remove packet 26879 [10:02:37]ProducePacketName [10:02:37]name=ofd_packets/00026879 [10:02:37]NVStorageDeleteData [10:02:37]Write to MH i2c: 01 00 00 D1 4F 20 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: 01 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: 01 07 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: 01 07 00 D1 4F 00 00 00 00 00 7E 0C B1 [10:02:37]RasterBufferAndPrint [10:02:37]line [10:02:37]line [10:02:37]line [10:02:37]line [10:02:37]line [10:02:37]written 0, free lines is 3202 [10:02:37]MH_Cut [10:02:37]Write to MH i2c: D1 01 00 D8 4F 01 F9 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: D1 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: D1 01 00 [10:02:37]MH_I2C_Read... [10:02:37]Read from MH i2c: D1 01 00 D8 4F 00 F8 [10:02:37]Write to MH i2c: 01 00 00 D9 4F 28 [10:02:37]Write i2c OK [10:02:37]MH_I2C_Read... [10:02:37]OFD Sender: No OFD packet to send [10:02:38]*** Cut start [10:02:38]*** Partial cut [10:02:38]*** CUTSNS_PIN = 1 [10:02:38]*** CUTSNS_PIN = 0 [10:02:38]*** Brake cut motor [10:02:39]Read from MH i2c: 01 [10:02:39]MH_I2C_Read... [10:02:39]*** Stop cut motor [10:02:39]*** Cut end [10:02:39]Read from MH i2c: 01 07 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: 01 07 00 D9 4F 00 00 00 00 00 FF 0F 3D [10:02:39]process_action close_receipt done [10:02:39]requested_data is exist [10:02:39]produce_requested_data [10:02:39]requested_item fm.sn is exist - process it [10:02:39]wFMCommunicate request_size=4 [10:02:39]MH_SAM_APDU [10:02:39]CAPDU: 80 11 00 00 [10:02:39]Write to MH i2c: E2 08 00 DA 4F 80 11 00 00 00 00 00 00 A3 [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:39]Read from MH i2c: E2 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 17 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 17 00 DA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 FB [10:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:02:39]wFMCommunicate OK [10:02:39]requested_item fd.num is exist - process it [10:02:39]SAM_PROTO_GetFieldsCounters [10:02:39]wFMCommunicate request_size=4 [10:02:39]MH_SAM_APDU [10:02:39]CAPDU: 80 13 00 00 [10:02:39]Write to MH i2c: E2 08 00 DB 4F 80 13 00 00 00 00 00 00 A6 [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:39]Read from MH i2c: E2 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 62 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 62 00 DB 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 68 00 00 0E 04 04 00 3B 01 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 95 [10:02:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 68 00 00 0E 04 04 00 3B 01 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 [10:02:39]wFMCommunicate OK [10:02:39]SAM_PROTO_GetFieldsCounters done [10:02:39]requested_item shift.num is exist - process it [10:02:39]requested_item shift.opened is exist - process it [10:02:39]req_shift_opened [10:02:39]FM_GetShiftState [10:02:39]SAM_PROTO_GetShiftState [10:02:39]wFMCommunicate request_size=4 [10:02:39]MH_SAM_APDU [10:02:39]CAPDU: 80 13 01 00 [10:02:39]Write to MH i2c: E2 08 00 DC 4F 80 13 01 00 00 00 00 00 A8 [10:02:39]Write i2c OK [10:02:39]MH_I2C_Read... [10:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:39]Read from MH i2c: E2 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 0E 00 [10:02:39]MH_I2C_Read... [10:02:39]Read from MH i2c: E2 0E 00 DC 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 13 [10:02:39]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:02:39]wFMCommunicate OK [10:02:39]SAM_PROTO_GetShiftState done [10:02:39]FM_GetShiftState done [10:02:39]req_shift_opened done [10:02:39]requested_item shift.open_date is exist - process it [10:02:39]req_shift_open_date [10:02:39]req_shift_open_date done [10:02:39]produce_requested_data done [10:02:39]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26879,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:02:39]process_action_free close_receipt [10:02:39]json_value_free [10:02:39]json_value_free done [10:02:39]process_json_proto returns [10:02:39]Send response to host [10:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26879,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:02:39]free response buf [10:02:39]execute_script done [10:02:39]execute_script returns [10:02:39]free content buf [10:02:39]Sock 8.Close socket [10:02:39]Sock 8.Thread stoped [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:08:53]ConnectInit Can't connect to host [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:14]accept exits with 9 [10:09:14]New connection [10:09:14]New thread 3067014500 created [10:09:14]Thread 3066871140 joined [10:09:14]Waiting for new connection... [10:09:14] Sock 9.Parse request [10:09:14]Sock 9.Check first char [10:09:14]Sock 9.First char is OK [10:09:14]request: POST /json_proto HTTP/1.0 [10:09:14]Method: POST [10:09:14]URL: /json_proto [10:09:14]Method is POST - this is cgi request [10:09:14]url: /json_proto [10:09:14]query_string will be loaded in cgi processing [10:09:14]execute_cgi json_proto POST (null) [10:09:14]execute_cgi path=json_proto method=POST [10:09:14]POST find Content-Length [10:09:14]Host: 172.17.35.3:8080 [10:09:14]Content-Length: 215 [10:09:14]Content-Type: application/json [10:09:14] [10:09:14]POST finish read [10:09:14]Found Content-Length = 215 [10:09: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" ] } } [10:09:14]execute_script... [10:09: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" ] } } [10:09:14]POST & json_proto [10:09:14]process_json_proto [10:09:14]json parsed OK: [10:09:14]protocol is kg_v1.0 [10:09:14]action value=get_value [10:09:14]process_action get_value [10:09:14]cmd_get_value [10:09:14]process_action get_value done [10:09:14]requested_data is exist [10:09:14]produce_requested_data [10:09:14]requested_item kkm.sn is exist - process it [10:09:14]requested_item kkm.ver is exist - process it [10:09:14]requested_item fm.sn is exist - process it [10:09:14]wFMCommunicate request_size=4 [10:09:14]MH_SAM_APDU [10:09:14]CAPDU: 80 11 00 00 [10:09:14]Write to MH i2c: E2 08 00 DD 4F 80 11 00 00 00 00 00 00 A6 [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:14]Read from MH i2c: E2 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 17 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 17 00 DD 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 FE [10:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:09:14]wFMCommunicate OK [10:09:14]requested_item fd.num is exist - process it [10:09:14]SAM_PROTO_GetFieldsCounters [10:09:14]wFMCommunicate request_size=4 [10:09:14]MH_SAM_APDU [10:09:14]CAPDU: 80 13 00 00 [10:09:14]Write to MH i2c: E2 08 00 DE 4F 80 13 00 00 00 00 00 00 A9 [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:14]Read from MH i2c: E2 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 62 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 62 00 DE 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 68 00 00 0E 04 04 00 3B 01 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 98 [10:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 68 00 00 0E 04 04 00 3B 01 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 [10:09:14]wFMCommunicate OK [10:09:14]SAM_PROTO_GetFieldsCounters done [10:09:14]requested_item shift.num is exist - process it [10:09:14]requested_item shift.opened is exist - process it [10:09:14]req_shift_opened [10:09:14]FM_GetShiftState [10:09:14]SAM_PROTO_GetShiftState [10:09:14]wFMCommunicate request_size=4 [10:09:14]MH_SAM_APDU [10:09:14]CAPDU: 80 13 01 00 [10:09:14]Write to MH i2c: E2 08 00 DF 4F 80 13 01 00 00 00 00 00 AB [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:14]Read from MH i2c: E2 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 0E 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 0E 00 DF 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 16 [10:09:14]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:09:14]wFMCommunicate OK [10:09:14]SAM_PROTO_GetShiftState done [10:09:14]FM_GetShiftState done [10:09:14]req_shift_opened done [10:09:14]requested_item shift.open_date is exist - process it [10:09:14]req_shift_open_date [10:09:14]req_shift_open_date done [10:09:14]produce_requested_data done [10:09:14]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26879,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:09:14]process_action_free get_value [10:09:14]json_value_free [10:09:14]json_value_free done [10:09:14]process_json_proto returns [10:09:14]Send response to host [10:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26879,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:09:14]free response buf [10:09:14]execute_script done [10:09:14]execute_script returns [10:09:14]free content buf [10:09:14]Sock 9.Close socket [10:09:14]Sock 9.Thread stoped [10:09:15]accept exits with 8 [10:09:15]New connection [10:09:15]New thread 3066871140 created [10:09:15]Thread 3067014500 joined [10:09:15]Waiting for new connection... [10:09:15] Sock 8.Parse request [10:09:15]Sock 8.Check first char [10:09:15]Sock 8.First char is OK [10:09:15]request: POST /json_proto HTTP/1.0 [10:09:15]Method: POST [10:09:15]URL: /json_proto [10:09:15]Method is POST - this is cgi request [10:09:15]url: /json_proto [10:09:15]query_string will be loaded in cgi processing [10:09:15]execute_cgi json_proto POST (null) [10:09:15]execute_cgi path=json_proto method=POST [10:09:15]POST find Content-Length [10:09:15]Host: 172.17.35.3:8080 [10:09:15]Content-Length: 331 [10:09:15]Content-Type: application/json [10:09:15] [10:09:15]POST finish read [10:09:15]Found Content-Length = 331 [10:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:09:15]execute_script... [10:09:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:09:15]POST & json_proto [10:09:15]process_json_proto [10:09:15]json parsed OK: [10:09:15]protocol is kg_v1.0 [10:09:15]action value=get_value [10:09:15]process_action get_value [10:09:15]cmd_get_value [10:09:15]process_action get_value done [10:09:15]requested_data is exist [10:09:15]produce_requested_data [10:09:15]requested_item fm.sale.total is exist - process it [10:09:15]SAM_PROTO_GetFMData [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 13 03 00 [10:09:15]Write to MH i2c: E2 08 00 E0 4F 80 13 03 00 00 00 00 00 AE [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 FD 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 FD 00 E0 4F 00 C0 04 85 04 BC 04 6E 04 04 00 89 66 00 00 69 04 A1 00 6F 04 04 00 46 66 00 00 B1 04 04 00 25 75 DD 9B 70 04 04 00 EC 28 DE 7F 72 04 04 00 39 4C FF 1B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 13 56 8E 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 2B 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 3F [10:09:15]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 89 66 00 00 69 04 A1 00 6F 04 04 00 46 66 00 00 B1 04 04 00 25 75 DD 9B 70 04 04 00 EC 28 DE 7F 72 04 04 00 39 4C FF 1B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 13 56 8E 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 2B 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 [10:09:15]wFMCommunicate OK [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 17 00 00 [10:09:15]Write to MH i2c: E2 08 00 E1 4F 80 17 00 00 00 00 00 00 B0 [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 FD 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 FD 00 E1 4F 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 A9 [10:09:15]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [10:09:15]wFMCommunicate OK [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 17 00 00 [10:09:15]Write to MH i2c: E2 08 00 E2 4F 80 17 00 00 00 00 00 00 B1 [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 FD 00 [10:09:15]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 FD 00 E2 4F 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 54 [10:09:16]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:09:16]wFMCommunicate OK [10:09:16]wFMCommunicate request_size=4 [10:09:16]MH_SAM_APDU [10:09:16]CAPDU: 80 17 00 00 [10:09:16]Write to MH i2c: E2 08 00 E3 4F 80 17 00 00 00 00 00 00 B2 [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:09:16]Read from MH i2c: E2 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 FD 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 FD 00 E3 4F 00 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [10:09:16]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:09:16]wFMCommunicate OK [10:09:16]wFMCommunicate request_size=4 [10:09:16]MH_SAM_APDU [10:09:16]CAPDU: 80 17 00 00 [10:09:16]Write to MH i2c: E2 08 00 E4 4F 80 17 00 00 00 00 00 00 B3 [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [10:09:16]Read from MH i2c: E2 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 DD 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 DD 00 E4 4F 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:09:16]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:09:16]wFMCommunicate OK [10:09:16]SAM_PROTO_GetFMData done [10:09:16]requested_item fm.sale_refund.total is exist - process it [10:09:16]requested_item fm.buy.total is exist - process it [10:09:16]requested_item shift.sale.total is exist - process it [10:09:16]SAM_PROTO_GetShiftData [10:09:16]wFMCommunicate request_size=4 [10:09:16]MH_SAM_APDU [10:09:16]CAPDU: 80 13 02 00 [10:09:16]Write to MH i2c: E2 08 00 E5 4F 80 13 02 00 00 00 00 00 B2 [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:09:16]Read from MH i2c: E2 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 FD 00 [10:09:16]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 FD 00 E5 4F 00 AE 04 AA 04 AA 04 6E 04 04 00 0B 00 00 00 69 04 9B 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 AA 6E 13 70 04 03 00 68 90 0C 72 04 03 00 42 DE 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 5B 10 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 08 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [10:09:17]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 0B 00 00 00 69 04 9B 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 AA 6E 13 70 04 03 00 68 90 0C 72 04 03 00 42 DE 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 5B 10 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 08 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 17 00 00 [10:09:17]Write to MH i2c: E2 08 00 E6 4F 80 17 00 00 00 00 00 00 B5 [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 FD 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 FD 00 E6 4F 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 D7 [10:09: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 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 17 00 00 [10:09:17]Write to MH i2c: E2 08 00 E7 4F 80 17 00 00 00 00 00 00 B6 [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 FD 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 FD 00 E7 4F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [10:09: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 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 17 00 00 [10:09:17]Write to MH i2c: E2 08 00 E8 4F 80 17 00 00 00 00 00 00 B7 [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 FD 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 FD 00 E8 4F 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 29 [10:09: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 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 17 00 00 [10:09:17]Write to MH i2c: E2 08 00 E9 4F 80 17 00 00 00 00 00 00 B8 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:09:18]Read from MH i2c: E2 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 CB 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 CB 00 E9 4F 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 A1 [10:09: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 [10:09:18]wFMCommunicate OK [10:09:18]SAM_PROTO_GetShiftData done [10:09:18]requested_item shift.sale.total_cash is exist - process it [10:09:18]requested_item shift.sale_refund.total is exist - process it [10:09:18]requested_item shift.sale_refund.total_cash is exist - process it [10:09:18]requested_item shift.buy.total is exist - process it [10:09:18]requested_item shift.buy.total_cash is exist - process it [10:09:18]produce_requested_data done [10:09:18]produce_requested_data return {"fm.sale.total":26149819.25,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":12735.14,"shift.sale.total_cash":8234.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} [10:09:18]process_action_free get_value [10:09:18]json_value_free [10:09:18]json_value_free done [10:09:18]process_json_proto returns [10:09:18]Send response to host [10:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26149819.25,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":12735.14,"shift.sale.total_cash":8234.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}}} [10:09:18]free response buf [10:09:18]execute_script done [10:09:18]execute_script returns [10:09:18]free content buf [10:09:18]Sock 8.Close socket [10:09:18]Sock 8.Thread stoped [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:28]accept exits with 9 [10:10:28]New connection [10:10:28]New thread 3067014500 created [10:10:28]Thread 3066871140 joined [10:10:28]Waiting for new connection... [10:10:28] Sock 9.Parse request [10:10:28]Sock 9.Check first char [10:10:28]Sock 9.First char is OK [10:10:28]request: POST /json_proto HTTP/1.0 [10:10:28]Method: POST [10:10:28]URL: /json_proto [10:10:28]Method is POST - this is cgi request [10:10:28]url: /json_proto [10:10:28]query_string will be loaded in cgi processing [10:10:28]execute_cgi json_proto POST (null) [10:10:28]execute_cgi path=json_proto method=POST [10:10:28]POST find Content-Length [10:10:28]Host: 172.17.35.3:8080 [10:10:28]Content-Length: 215 [10:10:28]Content-Type: application/json [10:10:28] [10:10:28]POST finish read [10:10:28]Found Content-Length = 215 [10:10:28]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" ] } } [10:10:28]execute_script... [10:10:28]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" ] } } [10:10:28]POST & json_proto [10:10:28]process_json_proto [10:10:28]json parsed OK: [10:10:28]protocol is kg_v1.0 [10:10:28]action value=get_value [10:10:28]process_action get_value [10:10:28]cmd_get_value [10:10:28]process_action get_value done [10:10:28]requested_data is exist [10:10:28]produce_requested_data [10:10:28]requested_item kkm.sn is exist - process it [10:10:28]requested_item kkm.ver is exist - process it [10:10:28]requested_item fm.sn is exist - process it [10:10:28]wFMCommunicate request_size=4 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 11 00 00 [10:10:28]Write to MH i2c: E2 08 00 EA 4F 80 11 00 00 00 00 00 00 B3 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 17 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 17 00 EA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0B [10:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:10:28]wFMCommunicate OK [10:10:28]requested_item fd.num is exist - process it [10:10:28]SAM_PROTO_GetFieldsCounters [10:10:28]wFMCommunicate request_size=4 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 13 00 00 [10:10:28]Write to MH i2c: E2 08 00 EB 4F 80 13 00 00 00 00 00 00 B6 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 62 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 62 00 EB 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 68 00 00 0E 04 04 00 3B 01 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 A5 [10:10:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 FF 68 00 00 0E 04 04 00 3B 01 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 [10:10:28]wFMCommunicate OK [10:10:28]SAM_PROTO_GetFieldsCounters done [10:10:28]requested_item shift.num is exist - process it [10:10:28]requested_item shift.opened is exist - process it [10:10:28]req_shift_opened [10:10:28]FM_GetShiftState [10:10:28]SAM_PROTO_GetShiftState [10:10:28]wFMCommunicate request_size=4 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 13 01 00 [10:10:28]Write to MH i2c: E2 08 00 EC 4F 80 13 01 00 00 00 00 00 B8 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 0E 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 0E 00 EC 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 23 [10:10:28]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:10:28]wFMCommunicate OK [10:10:28]SAM_PROTO_GetShiftState done [10:10:28]FM_GetShiftState done [10:10:28]req_shift_opened done [10:10:28]requested_item shift.open_date is exist - process it [10:10:28]req_shift_open_date [10:10:28]req_shift_open_date done [10:10:28]produce_requested_data done [10:10:28]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26879,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:10:28]process_action_free get_value [10:10:28]json_value_free [10:10:28]json_value_free done [10:10:28]process_json_proto returns [10:10:28]Send response to host [10:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26879,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:10:28]free response buf [10:10:28]execute_script done [10:10:28]execute_script returns [10:10:28]free content buf [10:10:28]Sock 9.Close socket [10:10:28]Sock 9.Thread stoped [10:10:28]accept exits with 8 [10:10:28]New connection [10:10:28]New thread 3066871140 created [10:10:28]Thread 3067014500 joined [10:10:28]Waiting for new connection... [10:10:28] Sock 8.Parse request [10:10:28]Sock 8.Check first char [10:10:28]Sock 8.First char is OK [10:10:28]request: POST /json_proto HTTP/1.0 [10:10:28]Method: POST [10:10:28]URL: /json_proto [10:10:28]Method is POST - this is cgi request [10:10:28]url: /json_proto [10:10:28]query_string will be loaded in cgi processing [10:10:28]execute_cgi json_proto POST (null) [10:10:28]execute_cgi path=json_proto method=POST [10:10:28]POST find Content-Length [10:10:28]Host: 172.17.35.3:8080 [10:10:28]Content-Length: 331 [10:10:28]Content-Type: application/json [10:10:28] [10:10:28]POST finish read [10:10:28]Found Content-Length = 331 [10:10:28]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" ] } } [10:10:28]execute_script... [10:10:29]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" ] } } [10:10:29]POST & json_proto [10:10:29]process_json_proto [10:10:29]json parsed OK: [10:10:29]protocol is kg_v1.0 [10:10:29]action value=get_value [10:10:29]process_action get_value [10:10:29]cmd_get_value [10:10:29]process_action get_value done [10:10:29]requested_data is exist [10:10:29]produce_requested_data [10:10:29]requested_item fm.sale.total is exist - process it [10:10:29]SAM_PROTO_GetFMData [10:10:29]wFMCommunicate request_size=4 [10:10:29]MH_SAM_APDU [10:10:29]CAPDU: 80 13 03 00 [10:10:29]Write to MH i2c: E2 08 00 ED 4F 80 13 03 00 00 00 00 00 BB [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:10:29]Read from MH i2c: E2 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 FD 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 FD 00 ED 4F 00 C0 04 85 04 BC 04 6E 04 04 00 89 66 00 00 69 04 A1 00 6F 04 04 00 46 66 00 00 B1 04 04 00 25 75 DD 9B 70 04 04 00 EC 28 DE 7F 72 04 04 00 39 4C FF 1B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 13 56 8E 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 2B 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 4C [10:10:29]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 89 66 00 00 69 04 A1 00 6F 04 04 00 46 66 00 00 B1 04 04 00 25 75 DD 9B 70 04 04 00 EC 28 DE 7F 72 04 04 00 39 4C FF 1B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 13 56 8E 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 2B 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 [10:10:29]wFMCommunicate OK [10:10:29]wFMCommunicate request_size=4 [10:10:29]MH_SAM_APDU [10:10:29]CAPDU: 80 17 00 00 [10:10:29]Write to MH i2c: E2 08 00 EE 4F 80 17 00 00 00 00 00 00 BD [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:29]Read from MH i2c: E2 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 FD 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 FD 00 EE 4F 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 B6 [10:10:29]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [10:10:29]wFMCommunicate OK [10:10:29]wFMCommunicate request_size=4 [10:10:29]MH_SAM_APDU [10:10:29]CAPDU: 80 17 00 00 [10:10:29]Write to MH i2c: E2 08 00 EF 4F 80 17 00 00 00 00 00 00 BE [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 FD 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 FD 00 EF 4F 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [10:10:30]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:10:30]wFMCommunicate OK [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 17 00 00 [10:10:30]Write to MH i2c: E2 08 00 F0 4F 80 17 00 00 00 00 00 00 BF [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 FD 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 FD 00 F0 4F 00 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [10:10:30]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:10:30]wFMCommunicate OK [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 17 00 00 [10:10:30]Write to MH i2c: E2 08 00 F1 4F 80 17 00 00 00 00 00 00 C0 [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 DD 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 DD 00 F1 4F 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A8 [10:10:30]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:10:30]wFMCommunicate OK [10:10:30]SAM_PROTO_GetFMData done [10:10:30]requested_item fm.sale_refund.total is exist - process it [10:10:30]requested_item fm.buy.total is exist - process it [10:10:30]requested_item shift.sale.total is exist - process it [10:10:30]SAM_PROTO_GetShiftData [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 13 02 00 [10:10:30]Write to MH i2c: E2 08 00 F2 4F 80 13 02 00 00 00 00 00 BF [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 F2 4F 00 AE 04 AA 04 AA 04 6E 04 04 00 0B 00 00 00 69 04 9B 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 AA 6E 13 70 04 03 00 68 90 0C 72 04 03 00 42 DE 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 5B 10 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 08 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8C [10:10:31]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 0B 00 00 00 69 04 9B 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 AA 6E 13 70 04 03 00 68 90 0C 72 04 03 00 42 DE 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 5B 10 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 08 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 17 00 00 [10:10:31]Write to MH i2c: E2 08 00 F3 4F 80 17 00 00 00 00 00 00 C2 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 F3 4F 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 E4 [10:10:31]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 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 17 00 00 [10:10:31]Write to MH i2c: E2 08 00 F4 4F 80 17 00 00 00 00 00 00 C3 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 F4 4F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [10:10:31]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 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 17 00 00 [10:10:31]Write to MH i2c: E2 08 00 F5 4F 80 17 00 00 00 00 00 00 C4 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 FD 00 F5 4F 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 36 [10:10:31]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 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 17 00 00 [10:10:32]Write to MH i2c: E2 08 00 F6 4F 80 17 00 00 00 00 00 00 C5 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 CB 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 CB 00 F6 4F 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 AE [10:10:32]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 [10:10:32]wFMCommunicate OK [10:10:32]SAM_PROTO_GetShiftData done [10:10:32]requested_item shift.sale.total_cash is exist - process it [10:10:32]requested_item shift.sale_refund.total is exist - process it [10:10:32]requested_item shift.sale_refund.total_cash is exist - process it [10:10:32]requested_item shift.buy.total is exist - process it [10:10:32]requested_item shift.buy.total_cash is exist - process it [10:10:32]produce_requested_data done [10:10:32]produce_requested_data return {"fm.sale.total":26149819.25,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":12735.14,"shift.sale.total_cash":8234.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} [10:10:32]process_action_free get_value [10:10:32]json_value_free [10:10:32]json_value_free done [10:10:32]process_json_proto returns [10:10:32]Send response to host [10:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26149819.25,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":12735.14,"shift.sale.total_cash":8234.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}}} [10:10:32]free response buf [10:10:32]execute_script done [10:10:32]execute_script returns [10:10:32]free content buf [10:10:32]Sock 8.Close socket [10:10:32]Sock 8.Thread stoped [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:10]accept exits with 9 [10:14:10]New connection [10:14:10]New thread 3067014500 created [10:14:10]Thread 3066871140 joined [10:14:10]Waiting for new connection... [10:14:10] Sock 9.Parse request [10:14:10]Sock 9.Check first char [10:14:10]Sock 9.First char is OK [10:14:10]request: POST /json_proto HTTP/1.0 [10:14:10]Method: POST [10:14:10]URL: /json_proto [10:14:10]Method is POST - this is cgi request [10:14:10]url: /json_proto [10:14:10]query_string will be loaded in cgi processing [10:14:10]execute_cgi json_proto POST (null) [10:14:10]execute_cgi path=json_proto method=POST [10:14:10]POST find Content-Length [10:14:10]Host: 172.17.35.3:8080 [10:14:10]Content-Length: 682 [10:14:10]Content-Type: application/json [10:14:10] [10:14:10]POST finish read [10:14:10]Found Content-Length = 682 [10:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:10]execute_script... [10:14:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:10]POST & json_proto [10:14:10]process_json_proto [10:14:10]json parsed OK: [10:14:10]protocol is kg_v1.0 [10:14:10]action value=close_receipt [10:14:10]process_action close_receipt [10:14:10]cmd_close_receipt [10:14:10]MH_GetDate [10:14:10]Write to MH i2c: F0 00 00 F7 4F 35 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: F0 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: F0 09 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: F0 09 00 F7 4F 00 06 15 15 66 2B 11 66 64 DA [10:14:10]GetLastDocTimeStamp 1712656974 [10:14:10]current date 1712657670 [10:14:10]FM_GetShiftState [10:14:10]SAM_PROTO_GetShiftState [10:14:10]wFMCommunicate request_size=4 [10:14:10]MH_SAM_APDU [10:14:10]CAPDU: 80 13 01 00 [10:14:10]Write to MH i2c: E2 08 00 F8 4F 80 13 01 00 00 00 00 00 C4 [10:14:10]Write i2c OK [10:14:10]MH_I2C_Read... [10:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:10]Read from MH i2c: E2 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 0E 00 [10:14:10]MH_I2C_Read... [10:14:10]Read from MH i2c: E2 0E 00 F8 4F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 2F [10:14:10]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:14:10]wFMCommunicate OK [10:14:10]SAM_PROTO_GetShiftState done [10:14:10]FM_GetShiftState done [10:14:10]opened in 1712622936 [10:14:10]opened+sec_in_day 1712709336 [10:14:10]quantity*price = 100045 [10:14:10]sum+1 = 100046 [10:14:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 12 09.04.2024 10:14 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26880 ФПД: 210250285491043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T101430&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26880&fm=210250285491043&tin=02508201610067®Number=0000000000091578&sum=100000 [10:14:11]StoreToDocumentArchive [10:14:11]shift 315 fd 26880 [10:14:11]save to /storage/0315/doc_00026880 [10:14:11]save last doc name /storage/0315/doc_00026880 to /storage/kkm_last_doc_name [10:14:11]save OK [10:14:11]Clear old archive folders... [10:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:11]tlvbuf is B6EE9AC0 [10:14:11]SAM_PROTO_ClearQueue [10:14:11]wFMCommunicate request_size=4 [10:14:11]MH_SAM_APDU [10:14:11]CAPDU: 80 09 00 00 [10:14:11]Write to MH i2c: E2 08 00 05 50 80 09 00 00 00 00 00 00 C7 [10:14:11]Write i2c OK [10:14:11]MH_I2C_Read... [10:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:11]Read from MH i2c: E2 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: E2 03 00 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: E2 03 00 05 50 00 90 00 C9 [10:14:11]RAPDU: 90 00 [10:14:11]wFMCommunicate OK [10:14:11]SAM_PROTO_ClearQueue done [10:14:11]KKMCreateOFDPacket [10:14:11]OFDProtocolAddRootSTLVToBuf [10:14:11]FM_MakeSignedData [10:14:11]FM_MakeSignedData [10:14:11]SAM_PROTO_SignData [10:14:11]wFMCommunicate request_size=4 [10:14:11]MH_SAM_APDU [10:14:11]CAPDU: 80 0D 01 02 [10:14:11]Write to MH i2c: E2 08 00 06 50 80 0D 01 02 00 00 00 00 CF [10:14:11]Write i2c OK [10:14:11]MH_I2C_Read... [10:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:11]Read from MH i2c: E2 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: E2 03 00 [10:14:11]MH_I2C_Read... [10:14:11]Read from MH i2c: E2 03 00 06 50 00 90 00 CA [10:14:11]RAPDU: 90 00 [10:14:11]wFMCommunicate OK [10:14:11]wFMCommunicate request_size=255 [10:14:11]MH_SAM_APDU [10:14:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 06 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 69 00 00 35 04 06 00 BF [10:14:11]Write to MH i2c: E2 02 01 07 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 06 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 69 00 00 35 04 06 00 BF 00 00 69 [10:14:11]Write i2c OK [10:14:11]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 03 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 03 00 07 50 00 90 00 CB [10:14:12]RAPDU: 90 00 [10:14:12]wFMCommunicate OK [10:14:12]wFMCommunicate request_size=10 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 0D 02 02 05 38 B5 94 A3 63 [10:14:12]Write to MH i2c: E2 0D 00 08 50 80 0D 02 02 05 00 38 B5 94 A3 63 00 00 63 [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 03 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 03 00 08 50 00 90 00 CC [10:14:12]RAPDU: 90 00 [10:14:12]wFMCommunicate OK [10:14:12]wFMCommunicate request_size=4 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 0D 03 02 [10:14:12]Write to MH i2c: E2 08 00 09 50 80 0D 03 02 00 00 00 00 D4 [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 0B 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 0B 00 09 50 00 40 33 0D 00 6E F0 6E 9C 90 00 BD [10:14:12]RAPDU: 40 33 0D 00 6E F0 6E 9C 90 00 [10:14:12]wFMCommunicate OK [10:14:12]SAM_PROTO_SignData done [10:14:12]FM_MakeSignedData done [10:14:12]CreateOFDProtocolMessage [10:14:12]wFMCommunicate request_size=4 [10:14:12]MH_SAM_APDU [10:14:12]CAPDU: 80 11 00 00 [10:14:12]Write to MH i2c: E2 08 00 0A 50 80 11 00 00 00 00 00 00 D4 [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:12]Read from MH i2c: E2 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 17 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: E2 17 00 0A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 2C [10:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:14:12]wFMCommunicate OK [10:14:12]CreateOFDProtocolMessage done [10:14:12]OFDSenderStorePacket 26880 [10:14:12]StoreOFDPacket docnum=26880 [10:14:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AE 1A 07 01 7C F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 06 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 69 00 00 35 04 06 00 BF 38 B5 94 A3 63 40 33 0D 00 6E F0 6E 9C [10:14:12]CheckFolder [10:14:12]dirname=/storage/ofd_packets [10:14:12]CheckFolder done [10:14:12]ProducePacketName [10:14:12]name=ofd_packets/00026880 [10:14:12]NVStorageSaveData ofd_packets/00026880 [10:14:12]File name is /storage/ofd_packets/00026880 [10:14:12]Write 301 bytes [10:14:12]NVStorageSaveData done [10:14:12]OFDSenderStorePacket done [10:14:12]KKMCreateOFDPacket done [10:14:12]NVStorageSaveData kkm_last_timestamp [10:14:12]File name is /storage/kkm_last_timestamp [10:14:12]Write 4 bytes [10:14:12]NVStorageSaveData done [10:14:12]ExternCall_PrintAddStr [10:14:12]wPrintStart [10:14:12]Write to MH i2c: 01 00 00 0B 50 5B [10:14:12]Write i2c OK [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: 01 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: 01 07 00 [10:14:12]MH_I2C_Read... [10:14:12]Read from MH i2c: 01 07 00 0B 50 00 00 00 00 00 FF 0F 70 [10:14:12]RasterBufferAndPrint [10:14:12]line Счет N : (1)359624 [10:14:12]line ИНН: 02508201610067 [10:14:12]line Контрольно-Кассовый Чек [10:14:12]line ПРОДАЖА [10:14:12]line ТРК (МРК, ГНК) : 61 [10:14:12]line Товар: 2710124130 [10:14:12]line Аи-92-К-5 [10:14:12]line 15.780 * 63.40 [10:14:12]line = 1000.45 [10:14:12]line НДС 12% НСП 1% [10:14:12]line > о реализуемом товаре [10:14:12]line ОКРУГЛЕНИЕ: -0.45 [10:14:12]line ИТОГО: 1000.00 [10:14:12]line Внесено: 1000.00 [10:14:12]line СДАЧА: 0.00 [10:14:12]line НСП 1% : 8.85 [10:14:12]line НДС 12% : 106.24 [10:14:12]line Наличными: 1000.00 [10:14:12]line Безнал.: 0.00 [10:14:12]line Место: АЗС № 122 "Партнер Нефть" [10:14:12]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:14:12]line СНО: Общий режим [10:14:12]line Чек 12 09.04.2024 10:14 [10:14:12]line Смена: 315 ФФД: 1.0 [10:14:12]line ЗНМ: 0300000147 [10:14:12]line РНМ: 0000000000091578 [10:14:12]line Версия ККМ: 001 [10:14:12]line ФМ: 0000000000874657 [10:14:12]line ФД: 26880 [10:14:12]line ФПД: 210250285491043 [10:14:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T101430&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26880&fm=210250285491043&tin=02508201610067®Number=0000000000091578&sum=100000 [10:14:12]OFD Sender: Processing packet 26880 [packets to send 44, broken 43] [10:14:12]ProducePacketName [10:14:12]name=ofd_packets/00026880 [10:14:12]OFD Sender: To server: pG, [10:14:12]CommunicateWithHost lk.salyk.kg:30040 [10:14:12]ConnectInit lk.salyk.kg [10:14:12]written 0, free lines is 4095 [10:14:12]Connected sock=10 [10:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AE 1A 07 01 7C F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 06 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 69 00 00 35 04 06 00 BF 38 B5 94 A3 63 40 33 0D 00 6E F0 6E 9C [10:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 8C DA 47 00 C9 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 00 69 00 00 F4 03 04 00 6D BC 14 66 B6 04 01 00 00 91 97 9B 0A C1 F5 A0 21 [10:14:12]CommunicateWithHost err = 0 [10:14:12]CheckOFDResponse [10:14:12]1017 (14) - 77093643461234 [10:14:12]1041 (16) - 0000000000874657 [10:14:12]1040 (4) - 26880 [10:14:12]1012 (4) - 09.04.2024 03:56 [10:14:12]1206 (1) - 0 [10:14:12]OFD Sender: Remove packet 26880 [10:14:12]ProducePacketName [10:14:12]name=ofd_packets/00026880 [10:14:12]NVStorageDeleteData [10:14:13]Write to MH i2c: 01 00 00 36 50 86 [10:14:13]Write i2c OK [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: 01 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: 01 07 00 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: 01 07 00 36 50 00 00 00 00 00 70 0C 09 [10:14:13]RasterBufferAndPrint [10:14:13]line [10:14:13]line [10:14:13]line [10:14:13]line [10:14:13]line [10:14:13]written 0, free lines is 3187 [10:14:13]MH_Cut [10:14:13]Write to MH i2c: D1 01 00 3D 50 01 5F [10:14:13]Write i2c OK [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: D1 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: D1 01 00 [10:14:13]MH_I2C_Read... [10:14:13]Read from MH i2c: D1 01 00 3D 50 00 5E [10:14:13]Write to MH i2c: 01 00 00 3E 50 8E [10:14:13]Write i2c OK [10:14:13]MH_I2C_Read... [10:14:13]OFD Sender: No OFD packet to send [10:14:14]*** Cut start [10:14:14]*** Partial cut [10:14:14]*** CUTSNS_PIN = 1 [10:14:14]*** CUTSNS_PIN = 0 [10:14:14]*** Brake cut motor [10:14:14]Read from MH i2c: 01 [10:14:14]MH_I2C_Read... [10:14:14]*** Stop cut motor [10:14:14]*** Cut end [10:14:14]Read from MH i2c: 01 07 00 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: 01 07 00 3E 50 00 00 00 00 00 FF 0F A3 [10:14:14]process_action close_receipt done [10:14:14]requested_data is exist [10:14:14]produce_requested_data [10:14:14]requested_item fm.sn is exist - process it [10:14:14]wFMCommunicate request_size=4 [10:14:14]MH_SAM_APDU [10:14:14]CAPDU: 80 11 00 00 [10:14:14]Write to MH i2c: E2 08 00 3F 50 80 11 00 00 00 00 00 00 09 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 17 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 17 00 3F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 61 [10:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:14:15]wFMCommunicate OK [10:14:15]requested_item fd.num is exist - process it [10:14:15]SAM_PROTO_GetFieldsCounters [10:14:15]wFMCommunicate request_size=4 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 13 00 00 [10:14:15]Write to MH i2c: E2 08 00 40 50 80 13 00 00 00 00 00 00 0C [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 62 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 62 00 40 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 00 69 00 00 0E 04 04 00 3B 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [10:14:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 00 69 00 00 0E 04 04 00 3B 01 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 [10:14:15]wFMCommunicate OK [10:14:15]SAM_PROTO_GetFieldsCounters done [10:14:15]requested_item shift.num is exist - process it [10:14:15]requested_item shift.opened is exist - process it [10:14:15]req_shift_opened [10:14:15]FM_GetShiftState [10:14:15]SAM_PROTO_GetShiftState [10:14:15]wFMCommunicate request_size=4 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 13 01 00 [10:14:15]Write to MH i2c: E2 08 00 41 50 80 13 01 00 00 00 00 00 0E [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 0E 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 0E 00 41 50 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 79 [10:14:15]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:14:15]wFMCommunicate OK [10:14:15]SAM_PROTO_GetShiftState done [10:14:15]FM_GetShiftState done [10:14:15]req_shift_opened done [10:14:15]requested_item shift.open_date is exist - process it [10:14:15]req_shift_open_date [10:14:15]req_shift_open_date done [10:14:15]produce_requested_data done [10:14:15]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26880,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:14:15]process_action_free close_receipt [10:14:15]json_value_free [10:14:15]json_value_free done [10:14:15]process_json_proto returns [10:14:15]Send response to host [10:14:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26880,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:14:15]free response buf [10:14:15]execute_script done [10:14:15]execute_script returns [10:14:15]free content buf [10:14:15]Sock 9.Close socket [10:14:15]Sock 9.Thread stoped [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]accept exits with 8 [10:18:18]New connection [10:18:18]New thread 3066871140 created [10:18:18]Thread 3067014500 joined [10:18:18]Waiting for new connection... [10:18:18] Sock 8.Parse request [10:18:18]Sock 8.Check first char [10:18:18]Sock 8.First char is OK [10:18:18]request: POST /json_proto HTTP/1.0 [10:18:18]Method: POST [10:18:18]URL: /json_proto [10:18:18]Method is POST - this is cgi request [10:18:18]url: /json_proto [10:18:18]query_string will be loaded in cgi processing [10:18:18]execute_cgi json_proto POST (null) [10:18:18]execute_cgi path=json_proto method=POST [10:18:18]POST find Content-Length [10:18:18]Host: 172.17.35.3:8080 [10:18:18]Content-Length: 682 [10:18:18]Content-Type: application/json [10:18:18] [10:18:18]POST finish read [10:18:18]Found Content-Length = 682 [10:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:18]execute_script... [10:18:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:18]POST & json_proto [10:18:18]process_json_proto [10:18:18]json parsed OK: [10:18:18]protocol is kg_v1.0 [10:18:18]action value=close_receipt [10:18:18]process_action close_receipt [10:18:18]cmd_close_receipt [10:18:18]MH_GetDate [10:18:18]Write to MH i2c: F0 00 00 42 50 81 [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: F0 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: F0 09 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: F0 09 00 42 50 00 FE 15 15 66 2B 11 66 64 1E [10:18:18]GetLastDocTimeStamp 1712657670 [10:18:18]current date 1712657918 [10:18:18]FM_GetShiftState [10:18:18]SAM_PROTO_GetShiftState [10:18:18]wFMCommunicate request_size=4 [10:18:18]MH_SAM_APDU [10:18:18]CAPDU: 80 13 01 00 [10:18:18]Write to MH i2c: E2 08 00 43 50 80 13 01 00 00 00 00 00 10 [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:18]Read from MH i2c: E2 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 0E 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 0E 00 43 50 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 7B [10:18:18]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:18:18]wFMCommunicate OK [10:18:18]SAM_PROTO_GetShiftState done [10:18:18]FM_GetShiftState done [10:18:18]opened in 1712622936 [10:18:18]opened+sec_in_day 1712709336 [10:18:18]quantity*price = 100012 [10:18:18]sum+1 = 100014 [10:18:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 13 09.04.2024 10:18 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26881 ФПД: 21191905667388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T101838&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26881&fm=21191905667388&tin=02508201610067®Number=0000000000091578&sum=100000 [10:18:19]StoreToDocumentArchive [10:18:19]shift 315 fd 26881 [10:18:19]save to /storage/0315/doc_00026881 [10:18:19]save last doc name /storage/0315/doc_00026881 to /storage/kkm_last_doc_name [10:18:19]save OK [10:18:19]Clear old archive folders... [10:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:19]tlvbuf is B6F64600 [10:18:19]SAM_PROTO_ClearQueue [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 09 00 00 [10:18:19]Write to MH i2c: E2 08 00 50 50 80 09 00 00 00 00 00 00 12 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 50 50 00 90 00 14 [10:18:19]RAPDU: 90 00 [10:18:19]wFMCommunicate OK [10:18:19]SAM_PROTO_ClearQueue done [10:18:19]KKMCreateOFDPacket [10:18:19]OFDProtocolAddRootSTLVToBuf [10:18:19]FM_MakeSignedData [10:18:19]FM_MakeSignedData [10:18:19]SAM_PROTO_SignData [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 0D 01 02 [10:18:19]Write to MH i2c: E2 08 00 51 50 80 0D 01 02 00 00 00 00 1A [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 51 50 00 90 00 15 [10:18:19]RAPDU: 90 00 [10:18:19]wFMCommunicate OK [10:18:19]wFMCommunicate request_size=255 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 69 00 00 35 04 06 00 13 [10:18:19]Write to MH i2c: E2 02 01 52 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 69 00 00 35 04 06 00 13 00 00 E4 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:20]Read from MH i2c: E2 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 03 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 03 00 52 50 00 90 00 16 [10:18:20]RAPDU: 90 00 [10:18:20]wFMCommunicate OK [10:18:20]wFMCommunicate request_size=10 [10:18:20]MH_SAM_APDU [10:18:20]CAPDU: 80 0D 02 02 05 46 20 02 69 3C [10:18:20]Write to MH i2c: E2 0D 00 53 50 80 0D 02 02 05 00 46 20 02 69 3C 00 00 34 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:20]Read from MH i2c: E2 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 03 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 03 00 53 50 00 90 00 17 [10:18:20]RAPDU: 90 00 [10:18:20]wFMCommunicate OK [10:18:20]wFMCommunicate request_size=4 [10:18:20]MH_SAM_APDU [10:18:20]CAPDU: 80 0D 03 02 [10:18:20]Write to MH i2c: E2 08 00 54 50 80 0D 03 02 00 00 00 00 1F [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:20]Read from MH i2c: E2 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 0B 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 0B 00 54 50 00 8F B1 7B D9 79 E2 96 27 90 00 CC [10:18:20]RAPDU: 8F B1 7B D9 79 E2 96 27 90 00 [10:18:20]wFMCommunicate OK [10:18:20]SAM_PROTO_SignData done [10:18:20]FM_MakeSignedData done [10:18:20]CreateOFDProtocolMessage [10:18:20]wFMCommunicate request_size=4 [10:18:20]MH_SAM_APDU [10:18:20]CAPDU: 80 11 00 00 [10:18:20]Write to MH i2c: E2 08 00 55 50 80 11 00 00 00 00 00 00 1F [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:20]Read from MH i2c: E2 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 17 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 17 00 55 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 77 [10:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:18:20]wFMCommunicate OK [10:18:20]CreateOFDProtocolMessage done [10:18:20]OFDSenderStorePacket 26881 [10:18:20]StoreOFDPacket docnum=26881 [10:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A1 9B 07 01 28 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 69 00 00 35 04 06 00 13 46 20 02 69 3C 8F B1 7B D9 79 E2 96 27 [10:18:20]CheckFolder [10:18:20]dirname=/storage/ofd_packets [10:18:20]CheckFolder done [10:18:20]ProducePacketName [10:18:20]name=ofd_packets/00026881 [10:18:20]NVStorageSaveData ofd_packets/00026881 [10:18:20]File name is /storage/ofd_packets/00026881 [10:18:20]Write 301 bytes [10:18:20]NVStorageSaveData done [10:18:20]OFDSenderStorePacket done [10:18:20]KKMCreateOFDPacket done [10:18:20]NVStorageSaveData kkm_last_timestamp [10:18:20]File name is /storage/kkm_last_timestamp [10:18:20]Write 4 bytes [10:18:20]NVStorageSaveData done [10:18:20]ExternCall_PrintAddStr [10:18:20]wPrintStart [10:18:20]Write to MH i2c: 01 00 00 56 50 A6 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: 01 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: 01 07 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: 01 07 00 56 50 00 00 00 00 00 FF 0F BB [10:18:20]RasterBufferAndPrint [10:18:20]line Счет N : (1)359625 [10:18:20]line ИНН: 02508201610067 [10:18:20]line Контрольно-Кассовый Чек [10:18:20]line ПРОДАЖА [10:18:20]line ТРК (МРК, ГНК) : 53 [10:18:20]line Товар: 2710124500 [10:18:20]line Аи-95-К-5 [10:18:20]line 13.910 * 71.90 [10:18:20]line = 1000.13 [10:18:20]line НДС 12% НСП 1% [10:18:20]line > о реализуемом товаре [10:18:20]line ОКРУГЛЕНИЕ: -0.13 [10:18:20]line ИТОГО: 1000.00 [10:18:20]line Внесено: 1000.00 [10:18:20]line СДАЧА: 0.00 [10:18:20]line НСП 1% : 8.85 [10:18:20]line НДС 12% : 106.21 [10:18:20]line Наличными: 1000.00 [10:18:20]line Безнал.: 0.00 [10:18:20]line Место: АЗС № 122 "Партнер Нефть" [10:18:20]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:18:20]line СНО: Общий режим [10:18:20]line Чек 13 09.04.2024 10:18 [10:18:20]line Смена: 315 ФФД: 1.0 [10:18:20]line ЗНМ: 0300000147 [10:18:20]line РНМ: 0000000000091578 [10:18:20]line Версия ККМ: 001 [10:18:20]line ФМ: 0000000000874657 [10:18:20]line ФД: 26881 [10:18:20]line ФПД: 21191905667388 [10:18:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T101838&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26881&fm=21191905667388&tin=02508201610067®Number=0000000000091578&sum=100000 [10:18:20]OFD Sender: Processing packet 26881 [packets to send 44, broken 43] [10:18:20]ProducePacketName [10:18:20]name=ofd_packets/00026881 [10:18:20]OFD Sender: To server: pG, [10:18:20]CommunicateWithHost lk.salyk.kg:30040 [10:18:20]ConnectInit lk.salyk.kg [10:18:20]written 0, free lines is 4095 [10:18:20]Connected sock=10 [10:18:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A1 9B 07 01 28 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 FE 15 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 69 00 00 35 04 06 00 13 46 20 02 69 3C 8F B1 7B D9 79 E2 96 27 [10:18:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 85 9D 47 00 9F 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 01 69 00 00 F4 03 04 00 65 BD 14 66 B6 04 01 00 00 CF F0 88 A0 4D D2 68 98 [10:18:20]CommunicateWithHost err = 0 [10:18:20]CheckOFDResponse [10:18:20]1017 (14) - 77093643461234 [10:18:20]1041 (16) - 0000000000874657 [10:18:20]1040 (4) - 26881 [10:18:20]1012 (4) - 09.04.2024 04:00 [10:18:20]1206 (1) - 0 [10:18:20]OFD Sender: Remove packet 26881 [10:18:20]ProducePacketName [10:18:20]name=ofd_packets/00026881 [10:18:20]NVStorageDeleteData [10:18:21]Write to MH i2c: 01 00 00 81 50 D1 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 07 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 07 00 81 50 00 00 00 00 00 78 0C 5C [10:18:21]RasterBufferAndPrint [10:18:21]line [10:18:21]line [10:18:21]line [10:18:21]line [10:18:21]line [10:18:21]written 0, free lines is 3194 [10:18:21]MH_Cut [10:18:21]Write to MH i2c: D1 01 00 88 50 01 AA [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: D1 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: D1 01 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: D1 01 00 88 50 00 A9 [10:18:21]Write to MH i2c: 01 00 00 89 50 D9 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]OFD Sender: No OFD packet to send [10:18:22]*** Cut start [10:18:22]*** Partial cut [10:18:22]*** CUTSNS_PIN = 1 [10:18:22]*** CUTSNS_PIN = 0 [10:18:22]*** Brake cut motor [10:18:22]Read from MH i2c: 01 [10:18:22]MH_I2C_Read... [10:18:22]*** Stop cut motor [10:18:22]*** Cut end [10:18:22]Read from MH i2c: 01 07 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 07 00 89 50 00 00 00 00 00 FF 0F EE [10:18:22]process_action close_receipt done [10:18:22]requested_data is exist [10:18:22]produce_requested_data [10:18:22]requested_item fm.sn is exist - process it [10:18:22]wFMCommunicate request_size=4 [10:18:22]MH_SAM_APDU [10:18:22]CAPDU: 80 11 00 00 [10:18:22]Write to MH i2c: E2 08 00 8A 50 80 11 00 00 00 00 00 00 54 [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:22]Read from MH i2c: E2 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 17 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: E2 17 00 8A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AC [10:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:18:22]wFMCommunicate OK [10:18:22]requested_item fd.num is exist - process it [10:18:22]SAM_PROTO_GetFieldsCounters [10:18:22]wFMCommunicate request_size=4 [10:18:22]MH_SAM_APDU [10:18:22]CAPDU: 80 13 00 00 [10:18:22]Write to MH i2c: E2 08 00 8B 50 80 13 00 00 00 00 00 00 57 [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:23]Read from MH i2c: E2 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: E2 62 00 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: E2 62 00 8B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 01 69 00 00 0E 04 04 00 3B 01 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 4F [10:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 01 69 00 00 0E 04 04 00 3B 01 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 [10:18:23]wFMCommunicate OK [10:18:23]SAM_PROTO_GetFieldsCounters done [10:18:23]requested_item shift.num is exist - process it [10:18:23]requested_item shift.opened is exist - process it [10:18:23]req_shift_opened [10:18:23]FM_GetShiftState [10:18:23]SAM_PROTO_GetShiftState [10:18:23]wFMCommunicate request_size=4 [10:18:23]MH_SAM_APDU [10:18:23]CAPDU: 80 13 01 00 [10:18:23]Write to MH i2c: E2 08 00 8C 50 80 13 01 00 00 00 00 00 59 [10:18:23]Write i2c OK [10:18:23]MH_I2C_Read... [10:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:23]Read from MH i2c: E2 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: E2 0E 00 [10:18:23]MH_I2C_Read... [10:18:23]Read from MH i2c: E2 0E 00 8C 50 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C4 [10:18:23]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:18:23]wFMCommunicate OK [10:18:23]SAM_PROTO_GetShiftState done [10:18:23]FM_GetShiftState done [10:18:23]req_shift_opened done [10:18:23]requested_item shift.open_date is exist - process it [10:18:23]req_shift_open_date [10:18:23]req_shift_open_date done [10:18:23]produce_requested_data done [10:18:23]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26881,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:18:23]process_action_free close_receipt [10:18:23]json_value_free [10:18:23]json_value_free done [10:18:23]process_json_proto returns [10:18:23]Send response to host [10:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26881,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:18:23]free response buf [10:18:23]execute_script done [10:18:23]execute_script returns [10:18:23]free content buf [10:18:23]Sock 8.Close socket [10:18:23]Sock 8.Thread stoped [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:39]accept exits with 9 [10:23:39]New connection [10:23:39]New thread 3067014500 created [10:23:39]Thread 3066871140 joined [10:23:39]Waiting for new connection... [10:23:39] Sock 9.Parse request [10:23:39]Sock 9.Check first char [10:23:39]Sock 9.First char is OK [10:23:39]request: POST /json_proto HTTP/1.0 [10:23:39]Method: POST [10:23:39]URL: /json_proto [10:23:39]Method is POST - this is cgi request [10:23:39]url: /json_proto [10:23:39]query_string will be loaded in cgi processing [10:23:39]execute_cgi json_proto POST (null) [10:23:39]execute_cgi path=json_proto method=POST [10:23:39]POST find Content-Length [10:23:39]Host: 172.17.35.3:8080 [10:23:39]Content-Length: 1088 [10:23:39]Content-Type: application/json [10:23:39] [10:23:39]POST finish read [10:23:39]Found Content-Length = 1088 [10:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043A\u0430\u0441\u043E\u0432 \u042D.\u000A\u0421\u0447\u0435\u0442 N : (1)359626\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 63.40\u000A\u0418\u0422\u041E\u0413: 634.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3484168/3484169\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:39]execute_script... [10:23:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 122\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043A\u0430\u0441\u043E\u0432 \u042D.\u000A\u0421\u0447\u0435\u0442 N : (1)359626\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 63.40\u000A\u0418\u0422\u041E\u0413: 634.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3484168/3484169\u000A" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:39]POST & json_proto [10:23:39]process_json_proto [10:23:39]json parsed OK: [10:23:39]protocol is kg_v1.0 [10:23:39]action value=print_text [10:23:39]process_action print_text [10:23:39]cmd_print_text [10:23:39]ExternCall_PrintAddStr [10:23:39]wPrintStart [10:23:39]Write to MH i2c: 01 00 00 8D 50 DD [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 8D 50 00 00 00 00 00 FF 0F F2 [10:23:39]RasterBufferAndPrint [10:23:39]line *****ТОВАРНЫЙ ЧЕК***** [10:23:39]line АЗС 122 [10:23:39]line Партнер нефть [10:23:39]line 02508201610067 [10:23:39]line Кассир : Бакасов Э. [10:23:39]line Счет N : (1)359626 [10:23:39]line ПРОДАЖА [10:23:39]line ТРК (МРК, ГНК) : 61 [10:23:39]line Вид ГСМ : 2710124130 [10:23:39]line Аи-92-К-5 [10:23:39]line 10.000 x 63.40 [10:23:39]line ИТОГ: 634.00 [10:23:39]line Тип оплаты: Талоны: Партнер нефть [10:23:39]line 3484168/3484169 [10:23:39]written 0, free lines is 4095 [10:23:39]Write to MH i2c: 01 00 00 9E 50 EE [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 9E 50 00 00 00 00 00 61 0E 64 [10:23:39]RasterBufferAndPrint [10:23:39]line [10:23:39]line [10:23:39]line [10:23:39]line [10:23:39]line [10:23:39]written 0, free lines is 3683 [10:23:39]MH_Cut [10:23:39]Write to MH i2c: D1 01 00 A5 50 01 C7 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: D1 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: D1 01 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: D1 01 00 A5 50 00 C6 [10:23:39]Write to MH i2c: 01 00 00 A6 50 F6 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:40]*** Cut start [10:23:40]*** Partial cut [10:23:40]*** CUTSNS_PIN = 1 [10:23:40]*** CUTSNS_PIN = 0 [10:23:40]*** Brake cut motor [10:23:41]Read from MH i2c: 01 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: 01 07 00 [10:23:41]MH_I2C_Read... [10:23:41]*** Stop cut motor [10:23:41]*** Cut end [10:23:41]Read from MH i2c: 01 07 00 A6 50 00 00 00 00 00 FF 0F 0B [10:23:41]process_action print_text done [10:23:41]requested_data is exist [10:23:41]produce_requested_data [10:23:41]requested_item fm.sn is exist - process it [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 11 00 00 [10:23:41]Write to MH i2c: E2 08 00 A7 50 80 11 00 00 00 00 00 00 71 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 17 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 17 00 A7 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C9 [10:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:23:41]wFMCommunicate OK [10:23:41]requested_item fd.num is exist - process it [10:23:41]SAM_PROTO_GetFieldsCounters [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 13 00 00 [10:23:41]Write to MH i2c: E2 08 00 A8 50 80 13 00 00 00 00 00 00 74 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 62 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 62 00 A8 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 01 69 00 00 0E 04 04 00 3B 01 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 6C [10:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 01 69 00 00 0E 04 04 00 3B 01 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 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_GetFieldsCounters done [10:23:41]requested_item shift.num is exist - process it [10:23:41]requested_item shift.opened is exist - process it [10:23:41]req_shift_opened [10:23:41]FM_GetShiftState [10:23:41]SAM_PROTO_GetShiftState [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 13 01 00 [10:23:41]Write to MH i2c: E2 08 00 A9 50 80 13 01 00 00 00 00 00 76 [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 A9 50 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 E1 [10:23:41]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_GetShiftState done [10:23:41]FM_GetShiftState done [10:23:41]req_shift_opened done [10:23:41]requested_item shift.open_date is exist - process it [10:23:41]req_shift_open_date [10:23:41]req_shift_open_date done [10:23:41]produce_requested_data done [10:23:41]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26881,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:23:41]process_action_free print_text [10:23:41]json_value_free [10:23:41]json_value_free done [10:23:41]process_json_proto returns [10:23:41]Send response to host [10:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26881,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:23:41]free response buf [10:23:41]execute_script done [10:23:41]execute_script returns [10:23:41]free content buf [10:23:41]Sock 9.Close socket [10:23:41]Sock 9.Thread stoped [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28: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:09]accept exits with 8 [10:32:09]New connection [10:32:09]New thread 3066871140 created [10:32:09]Thread 3067014500 joined [10:32:09]Waiting for new connection... [10:32:09] Sock 8.Parse request [10:32:09]Sock 8.Check first char [10:32:09]Sock 8.First char is OK [10:32:09]request: POST /json_proto HTTP/1.0 [10:32:09]Method: POST [10:32:09]URL: /json_proto [10:32:09]Method is POST - this is cgi request [10:32:09]url: /json_proto [10:32:09]query_string will be loaded in cgi processing [10:32:09]execute_cgi json_proto POST (null) [10:32:09]execute_cgi path=json_proto method=POST [10:32:09]POST find Content-Length [10:32:09]Host: 172.17.35.3:8080 [10:32:09]Content-Length: 808 [10:32:09]Content-Type: application/json [10:32:09] [10:32:09]POST finish read [10:32:09]Found Content-Length = 808 [10:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 27.860, "sum" : 2000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:09]execute_script... [10:32: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)359627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 27.860, "sum" : 2000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:09]POST & json_proto [10:32:09]process_json_proto [10:32:09]json parsed OK: [10:32:09]protocol is kg_v1.0 [10:32:09]action value=close_receipt [10:32:09]process_action close_receipt [10:32:09]cmd_close_receipt [10:32:09]MH_GetDate [10:32:09]Write to MH i2c: F0 00 00 AA 50 E9 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: F0 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: F0 09 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: F0 09 00 AA 50 00 3C 19 15 66 2B 11 66 64 C8 [10:32:09]GetLastDocTimeStamp 1712657918 [10:32:09]current date 1712658748 [10:32:09]FM_GetShiftState [10:32:09]SAM_PROTO_GetShiftState [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 13 01 00 [10:32:09]Write to MH i2c: E2 08 00 AB 50 80 13 01 00 00 00 00 00 78 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 AB 50 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 E3 [10:32:09]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_GetShiftState done [10:32:09]FM_GetShiftState done [10:32:09]opened in 1712622936 [10:32:09]opened+sec_in_day 1712709336 [10:32:09]quantity*price = 200034 [10:32:09]sum+1 = 200036 [10:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.35 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.35 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 14 09.04.2024 10:32 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26882 ФПД: 217422314089646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T103229&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26882&fm=217422314089646&tin=02508201610067®Number=0000000000091578&sum=200035 [10:32:10]StoreToDocumentArchive [10:32:10]shift 315 fd 26882 [10:32:10]save to /storage/0315/doc_00026882 [10:32:10]save last doc name /storage/0315/doc_00026882 to /storage/kkm_last_doc_name [10:32:10]save OK [10:32:10]Clear old archive folders... [10:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:32:10]tlvbuf is 00EC8DF0 [10:32:10]SAM_PROTO_ClearQueue [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 09 00 00 [10:32:10]Write to MH i2c: E2 08 00 B8 50 80 09 00 00 00 00 00 00 7A [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 B8 50 00 90 00 7C [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_ClearQueue done [10:32:10]KKMCreateOFDPacket [10:32:10]OFDProtocolAddRootSTLVToBuf [10:32:10]FM_MakeSignedData [10:32:10]FM_MakeSignedData [10:32:10]SAM_PROTO_SignData [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 01 02 [10:32:10]Write to MH i2c: E2 08 00 B9 50 80 0D 01 02 00 00 00 00 82 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 B9 50 00 90 00 7D [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=255 [10:32:10]MH_SAM_APDU [10:32:10]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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D 19 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 69 00 00 35 04 06 00 [10:32:10]Write to MH i2c: E2 02 01 BA 50 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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D 19 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 69 00 00 35 04 06 00 00 00 55 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 BA 50 00 90 00 7E [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=11 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 02 02 06 C5 BE 93 CC 2C AE [10:32:10]Write to MH i2c: E2 0E 00 BB 50 80 0D 02 02 06 00 C5 BE 93 CC 2C AE 00 00 4D [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 03 00 BB 50 00 90 00 7F [10:32:10]RAPDU: 90 00 [10:32:10]wFMCommunicate OK [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 0D 03 02 [10:32:10]Write to MH i2c: E2 08 00 BC 50 80 0D 03 02 00 00 00 00 87 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0B 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0B 00 BC 50 00 98 30 BD 1A 2B 04 81 E7 90 00 BE [10:32:10]RAPDU: 98 30 BD 1A 2B 04 81 E7 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_SignData done [10:32:10]FM_MakeSignedData done [10:32:10]CreateOFDProtocolMessage [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 11 00 00 [10:32:10]Write to MH i2c: E2 08 00 BD 50 80 11 00 00 00 00 00 00 87 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 BD 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 DF [10:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:32:10]wFMCommunicate OK [10:32:10]CreateOFDProtocolMessage done [10:32:10]OFDSenderStorePacket 26882 [10:32:10]StoreOFDPacket docnum=26882 [10:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 B0 9C 08 01 4F 42 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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D 19 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 69 00 00 35 04 06 00 C5 BE 93 CC 2C AE 98 30 BD 1A 2B 04 81 E7 [10:32:10]CheckFolder [10:32:10]dirname=/storage/ofd_packets [10:32:10]CheckFolder done [10:32:10]ProducePacketName [10:32:10]name=ofd_packets/00026882 [10:32:10]NVStorageSaveData ofd_packets/00026882 [10:32:10]File name is /storage/ofd_packets/00026882 [10:32:10]Write 302 bytes [10:32:10]NVStorageSaveData done [10:32:10]OFDSenderStorePacket done [10:32:10]KKMCreateOFDPacket done [10:32:10]NVStorageSaveData kkm_last_timestamp [10:32:10]File name is /storage/kkm_last_timestamp [10:32:10]Write 4 bytes [10:32:10]NVStorageSaveData done [10:32:10]ExternCall_PrintAddStr [10:32:10]wPrintStart [10:32:10]Write to MH i2c: 01 00 00 BE 50 0E [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 BE 50 00 00 00 00 00 FF 0F 23 [10:32:10]RasterBufferAndPrint [10:32:10]line Счет N : (1)359627 [10:32:10]line ИНН: 02508201610067 [10:32:10]line Контрольно-Кассовый Чек [10:32:10]line ПРОДАЖА [10:32:10]line ТРК (МРК, ГНК) : 21 [10:32:10]line Товар: 2710194210 [10:32:10]line ДТ(л)-К-5 [10:32:10]line 27.860 * 71.80 [10:32:10]line = 2000.35 [10:32:10]line НДС 12% НСП 1% [10:32:10]line > о реализуемом товаре [10:32:10]line ИТОГО: 2000.35 [10:32:10]line НСП 1% : 17.70 [10:32:10]line НДС 12% : 212.43 [10:32:10]line Наличными: 0.00 [10:32:10]line Безнал.: 2000.35 [10:32:10]line Место: АЗС № 122 "Партнер Нефть" [10:32:10]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:32:10]line СНО: Общий режим [10:32:10]line Чек 14 09.04.2024 10:32 [10:32:10]line Смена: 315 ФФД: 1.0 [10:32:10]line ЗНМ: 0300000147 [10:32:10]line РНМ: 0000000000091578 [10:32:10]line Версия ККМ: 001 [10:32:10]line Платежная система: O! деньги [10:32:10]line ФМ: 0000000000874657 [10:32:10]line ФД: 26882 [10:32:10]line ФПД: 217422314089646 [10:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T103229&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26882&fm=217422314089646&tin=02508201610067®Number=0000000000091578&sum=200035 [10:32:11]OFD Sender: Processing packet 26882 [packets to send 44, broken 43] [10:32:11]ProducePacketName [10:32:11]name=ofd_packets/00026882 [10:32:11]OFD Sender: To server: pG, [10:32:11]CommunicateWithHost lk.salyk.kg:30040 [10:32:11]ConnectInit lk.salyk.kg [10:32:11]written 0, free lines is 4095 [10:32:11]Connected sock=10 [10:32:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 B0 9C 08 01 4F 42 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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 3D 19 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 02 69 00 00 35 04 06 00 C5 BE 93 CC 2C AE 98 30 BD 1A 2B 04 81 E7 [10:32:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 08 7A 47 00 41 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 38 37 34 36 35 37 10 04 04 00 02 69 00 00 F4 03 04 00 A4 C0 14 66 B6 04 01 00 00 8A C9 82 D7 07 59 69 82 [10:32:11]CommunicateWithHost err = 0 [10:32:11]CheckOFDResponse [10:32:11]1017 (14) - 77093643461234 [10:32:11]1041 (16) - 0000000000874657 [10:32:11]1040 (4) - 26882 [10:32:11]1012 (4) - 09.04.2024 04:14 [10:32:11]1206 (1) - 0 [10:32:11]OFD Sender: Remove packet 26882 [10:32:11]ProducePacketName [10:32:11]name=ofd_packets/00026882 [10:32:11]NVStorageDeleteData [10:32:11]Write to MH i2c: 01 00 00 E8 50 38 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 07 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: 01 07 00 E8 50 00 00 00 00 00 8B 0C D6 [10:32:11]RasterBufferAndPrint [10:32:11]line [10:32:11]line [10:32:11]line [10:32:11]line [10:32:11]line [10:32:11]written 0, free lines is 3215 [10:32:11]MH_Cut [10:32:11]Write to MH i2c: D1 01 00 EF 50 01 11 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: D1 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: D1 01 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: D1 01 00 EF 50 00 10 [10:32:11]Write to MH i2c: 01 00 00 F0 50 40 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]OFD Sender: No OFD packet to send [10:32:12]*** Cut start [10:32:12]*** Partial cut [10:32:12]*** CUTSNS_PIN = 1 [10:32:12]*** CUTSNS_PIN = 0 [10:32:13]*** Brake cut motor [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]*** Stop cut motor [10:32:13]*** Cut end [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 F0 50 00 00 00 00 00 FF 0F 55 [10:32:13]process_action close_receipt done [10:32:13]requested_data is exist [10:32:13]produce_requested_data [10:32:13]requested_item fm.sn is exist - process it [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 11 00 00 [10:32:13]Write to MH i2c: E2 08 00 F1 50 80 11 00 00 00 00 00 00 BB [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 F1 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 13 [10:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:32:13]wFMCommunicate OK [10:32:13]requested_item fd.num is exist - process it [10:32:13]SAM_PROTO_GetFieldsCounters [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 00 00 [10:32:13]Write to MH i2c: E2 08 00 F2 50 80 13 00 00 00 00 00 00 BE [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 62 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 62 00 F2 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 02 69 00 00 0E 04 04 00 3B 01 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 BA [10:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 02 69 00 00 0E 04 04 00 3B 01 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 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetFieldsCounters done [10:32:13]requested_item shift.num is exist - process it [10:32:13]requested_item shift.opened is exist - process it [10:32:13]req_shift_opened [10:32:13]FM_GetShiftState [10:32:13]SAM_PROTO_GetShiftState [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 01 00 [10:32:13]Write to MH i2c: E2 08 00 F3 50 80 13 01 00 00 00 00 00 C0 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 F3 50 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 2B [10:32:13]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetShiftState done [10:32:13]FM_GetShiftState done [10:32:13]req_shift_opened done [10:32:13]requested_item shift.open_date is exist - process it [10:32:13]req_shift_open_date [10:32:13]req_shift_open_date done [10:32:13]produce_requested_data done [10:32:13]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26882,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:32:13]process_action_free close_receipt [10:32:13]json_value_free [10:32:13]json_value_free done [10:32:13]process_json_proto returns [10:32:13]Send response to host [10:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26882,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:32:13]free response buf [10:32:13]execute_script done [10:32:13]execute_script returns [10:32:13]free content buf [10:32:13]Sock 8.Close socket [10:32:13]Sock 8.Thread stoped [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:18]accept exits with 9 [10:49:18]New connection [10:49:18]New thread 3067014500 created [10:49:18]Thread 3066871140 joined [10:49:18]Waiting for new connection... [10:49:18] Sock 9.Parse request [10:49:18]Sock 9.Check first char [10:49:18]Sock 9.First char is OK [10:49:18]request: POST /json_proto HTTP/1.0 [10:49:18]Method: POST [10:49:18]URL: /json_proto [10:49:18]Method is POST - this is cgi request [10:49:18]url: /json_proto [10:49:18]query_string will be loaded in cgi processing [10:49:18]execute_cgi json_proto POST (null) [10:49:18]execute_cgi path=json_proto method=POST [10:49:18]POST find Content-Length [10:49:18]Host: 172.17.35.3:8080 [10:49:18]Content-Length: 677 [10:49:18]Content-Type: application/json [10:49:18] [10:49:18]POST finish read [10:49:18]Found Content-Length = 677 [10:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:18]execute_script... [10:49:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:18]POST & json_proto [10:49:18]process_json_proto [10:49:18]json parsed OK: [10:49:18]protocol is kg_v1.0 [10:49:18]action value=close_receipt [10:49:18]process_action close_receipt [10:49:18]cmd_close_receipt [10:49:18]MH_GetDate [10:49:18]Write to MH i2c: F0 00 00 F4 50 33 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: F0 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: F0 09 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: F0 09 00 F4 50 00 42 1D 15 66 2B 11 66 64 1C [10:49:18]GetLastDocTimeStamp 1712658749 [10:49:18]current date 1712659778 [10:49:18]FM_GetShiftState [10:49:18]SAM_PROTO_GetShiftState [10:49:18]wFMCommunicate request_size=4 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 13 01 00 [10:49:18]Write to MH i2c: E2 08 00 F5 50 80 13 01 00 00 00 00 00 C2 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 0E 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 0E 00 F5 50 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 2D [10:49:18]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:49:18]wFMCommunicate OK [10:49:18]SAM_PROTO_GetShiftState done [10:49:18]FM_GetShiftState done [10:49:18]opened in 1712622936 [10:49:18]opened+sec_in_day 1712709336 [10:49:18]quantity*price = 50022 [10:49:18]sum+1 = 50024 [10:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 15 09.04.2024 10:49 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26883 ФПД: 244032609658346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T104938&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26883&fm=244032609658346&tin=02508201610067®Number=0000000000091578&sum=50000 [10:49:19]StoreToDocumentArchive [10:49:19]shift 315 fd 26883 [10:49:19]save to /storage/0315/doc_00026883 [10:49:19]save last doc name /storage/0315/doc_00026883 to /storage/kkm_last_doc_name [10:49:19]save OK [10:49:19]Clear old archive folders... [10:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:19]tlvbuf is 00E9ECB0 [10:49:19]SAM_PROTO_ClearQueue [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 09 00 00 [10:49:19]Write to MH i2c: E2 08 00 02 51 80 09 00 00 00 00 00 00 C5 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 03 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 03 00 02 51 00 90 00 C7 [10:49:19]RAPDU: 90 00 [10:49:19]wFMCommunicate OK [10:49:19]SAM_PROTO_ClearQueue done [10:49:19]KKMCreateOFDPacket [10:49:19]OFDProtocolAddRootSTLVToBuf [10:49:19]FM_MakeSignedData [10:49:19]FM_MakeSignedData [10:49:19]SAM_PROTO_SignData [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 0D 01 02 [10:49:19]Write to MH i2c: E2 08 00 03 51 80 0D 01 02 00 00 00 00 CD [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 03 51 00 90 00 C8 [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=255 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 42 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 69 00 00 35 04 06 00 DD [10:49:20]Write to MH i2c: E2 02 01 04 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 42 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 69 00 00 35 04 06 00 DD 00 00 FB [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 04 51 00 90 00 C9 [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=10 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 02 02 05 F2 45 03 25 EA [10:49:20]Write to MH i2c: E2 0D 00 05 51 80 0D 02 02 05 00 F2 45 03 25 EA 00 00 23 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 03 00 05 51 00 90 00 CA [10:49:20]RAPDU: 90 00 [10:49:20]wFMCommunicate OK [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 0D 03 02 [10:49:20]Write to MH i2c: E2 08 00 06 51 80 0D 03 02 00 00 00 00 D2 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 0B 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 0B 00 06 51 00 AD 39 E3 1D 25 87 F2 E1 90 00 38 [10:49:20]RAPDU: AD 39 E3 1D 25 87 F2 E1 90 00 [10:49:20]wFMCommunicate OK [10:49:20]SAM_PROTO_SignData done [10:49:20]FM_MakeSignedData done [10:49:20]CreateOFDProtocolMessage [10:49:20]wFMCommunicate request_size=4 [10:49:20]MH_SAM_APDU [10:49:20]CAPDU: 80 11 00 00 [10:49:20]Write to MH i2c: E2 08 00 07 51 80 11 00 00 00 00 00 00 D2 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:20]Read from MH i2c: E2 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 17 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: E2 17 00 07 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 2A [10:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:49:20]wFMCommunicate OK [10:49:20]CreateOFDProtocolMessage done [10:49:20]OFDSenderStorePacket 26883 [10:49:20]StoreOFDPacket docnum=26883 [10:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 3F 1E 07 01 5E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 42 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 69 00 00 35 04 06 00 DD F2 45 03 25 EA AD 39 E3 1D 25 87 F2 E1 [10:49:20]CheckFolder [10:49:20]dirname=/storage/ofd_packets [10:49:20]CheckFolder done [10:49:20]ProducePacketName [10:49:20]name=ofd_packets/00026883 [10:49:20]NVStorageSaveData ofd_packets/00026883 [10:49:20]File name is /storage/ofd_packets/00026883 [10:49:20]Write 301 bytes [10:49:20]NVStorageSaveData done [10:49:20]OFDSenderStorePacket done [10:49:20]KKMCreateOFDPacket done [10:49:20]NVStorageSaveData kkm_last_timestamp [10:49:20]File name is /storage/kkm_last_timestamp [10:49:20]Write 4 bytes [10:49:20]NVStorageSaveData done [10:49:20]ExternCall_PrintAddStr [10:49:20]wPrintStart [10:49:20]Write to MH i2c: 01 00 00 08 51 59 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 08 51 00 00 00 00 00 FF 0F 6E [10:49:20]RasterBufferAndPrint [10:49:20]line Счет N : (1)359628 [10:49:20]line ИНН: 02508201610067 [10:49:20]line Контрольно-Кассовый Чек [10:49:20]line ПРОДАЖА [10:49:20]line ТРК (МРК, ГНК) : 51 [10:49:20]line Товар: 2710124130 [10:49:20]line Аи-92-К-5 [10:49:20]line 7.890 * 63.40 [10:49:20]line = 500.23 [10:49:20]line НДС 12% НСП 1% [10:49:20]line > о реализуемом товаре [10:49:20]line ОКРУГЛЕНИЕ: -0.23 [10:49:20]line ИТОГО: 500.00 [10:49:20]line Внесено: 500.00 [10:49:20]line СДАЧА: 0.00 [10:49:20]line НСП 1% : 4.43 [10:49:20]line НДС 12% : 53.12 [10:49:20]line Наличными: 500.00 [10:49:20]line Безнал.: 0.00 [10:49:20]line Место: АЗС № 122 "Партнер Нефть" [10:49:20]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:49:20]line СНО: Общий режим [10:49:20]line Чек 15 09.04.2024 10:49 [10:49:20]line Смена: 315 ФФД: 1.0 [10:49:20]line ЗНМ: 0300000147 [10:49:20]line РНМ: 0000000000091578 [10:49:20]line Версия ККМ: 001 [10:49:20]line ФМ: 0000000000874657 [10:49:20]line ФД: 26883 [10:49:20]line ФПД: 244032609658346 [10:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T104938&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26883&fm=244032609658346&tin=02508201610067®Number=0000000000091578&sum=50000 [10:49:20]OFD Sender: Processing packet 26883 [packets to send 44, broken 43] [10:49:20]ProducePacketName [10:49:20]name=ofd_packets/00026883 [10:49:20]OFD Sender: To server: pG, [10:49:20]CommunicateWithHost lk.salyk.kg:30040 [10:49:20]ConnectInit lk.salyk.kg [10:49:20]written 0, free lines is 4095 [10:49:20]Connected sock=10 [10:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 3F 1E 07 01 5E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 42 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 69 00 00 35 04 06 00 DD F2 45 03 25 EA AD 39 E3 1D 25 87 F2 E1 [10:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 8B 14 47 00 8B 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 03 69 00 00 F4 03 04 00 A9 C4 14 66 B6 04 01 00 00 4C 73 D1 67 15 B3 69 E7 [10:49:21]CommunicateWithHost err = 0 [10:49:21]CheckOFDResponse [10:49:21]1017 (14) - 77093643461234 [10:49:21]1041 (16) - 0000000000874657 [10:49:21]1040 (4) - 26883 [10:49:21]1012 (4) - 09.04.2024 04:31 [10:49:21]1206 (1) - 0 [10:49:21]OFD Sender: Remove packet 26883 [10:49:21]ProducePacketName [10:49:21]name=ofd_packets/00026883 [10:49:21]NVStorageDeleteData [10:49:21]Write to MH i2c: 01 00 00 33 51 84 [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 07 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: 01 07 00 33 51 00 00 00 00 00 7A 0C 11 [10:49:21]RasterBufferAndPrint [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]line [10:49:21]written 0, free lines is 3198 [10:49:21]MH_Cut [10:49:21]Write to MH i2c: D1 01 00 3A 51 01 5D [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 01 00 [10:49:21]MH_I2C_Read... [10:49:21]Read from MH i2c: D1 01 00 3A 51 00 5C [10:49:21]Write to MH i2c: 01 00 00 3B 51 8C [10:49:21]Write i2c OK [10:49:21]MH_I2C_Read... [10:49:21]OFD Sender: No OFD packet to send [10:49:22]*** Cut start [10:49:22]*** Partial cut [10:49:22]*** CUTSNS_PIN = 1 [10:49:22]*** CUTSNS_PIN = 0 [10:49:22]*** Brake cut motor [10:49:23]Read from MH i2c: 01 [10:49:23]MH_I2C_Read... [10:49:23]*** Stop cut motor [10:49:23]*** Cut end [10:49:23]Read from MH i2c: 01 07 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: 01 07 00 3B 51 00 00 00 00 00 FF 0F A1 [10:49:23]process_action close_receipt done [10:49:23]requested_data is exist [10:49:23]produce_requested_data [10:49:23]requested_item fm.sn is exist - process it [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 11 00 00 [10:49:23]Write to MH i2c: E2 08 00 3C 51 80 11 00 00 00 00 00 00 07 [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 17 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 17 00 3C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 5F [10:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:49:23]wFMCommunicate OK [10:49:23]requested_item fd.num is exist - process it [10:49:23]SAM_PROTO_GetFieldsCounters [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 13 00 00 [10:49:23]Write to MH i2c: E2 08 00 3D 51 80 13 00 00 00 00 00 00 0A [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 62 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 62 00 3D 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 03 69 00 00 0E 04 04 00 3B 01 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 0A [10:49:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 03 69 00 00 0E 04 04 00 3B 01 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 [10:49:23]wFMCommunicate OK [10:49:23]SAM_PROTO_GetFieldsCounters done [10:49:23]requested_item shift.num is exist - process it [10:49:23]requested_item shift.opened is exist - process it [10:49:23]req_shift_opened [10:49:23]FM_GetShiftState [10:49:23]SAM_PROTO_GetShiftState [10:49:23]wFMCommunicate request_size=4 [10:49:23]MH_SAM_APDU [10:49:23]CAPDU: 80 13 01 00 [10:49:23]Write to MH i2c: E2 08 00 3E 51 80 13 01 00 00 00 00 00 0C [10:49:23]Write i2c OK [10:49:23]MH_I2C_Read... [10:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:23]Read from MH i2c: E2 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 0E 00 [10:49:23]MH_I2C_Read... [10:49:23]Read from MH i2c: E2 0E 00 3E 51 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 77 [10:49:23]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:49:23]wFMCommunicate OK [10:49:23]SAM_PROTO_GetShiftState done [10:49:23]FM_GetShiftState done [10:49:23]req_shift_opened done [10:49:23]requested_item shift.open_date is exist - process it [10:49:23]req_shift_open_date [10:49:23]req_shift_open_date done [10:49:23]produce_requested_data done [10:49:23]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26883,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:49:23]process_action_free close_receipt [10:49:23]json_value_free [10:49:23]json_value_free done [10:49:23]process_json_proto returns [10:49:23]Send response to host [10:49:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26883,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:49:23]free response buf [10:49:23]execute_script done [10:49:23]execute_script returns [10:49:23]free content buf [10:49:23]Sock 9.Close socket [10:49:23]Sock 9.Thread stoped [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:30]accept exits with 8 [10:50:30]New connection [10:50:30]New thread 3066871140 created [10:50:30]Thread 3067014500 joined [10:50:30]Waiting for new connection... [10:50:30] Sock 8.Parse request [10:50:30]Sock 8.Check first char [10:50:30]Sock 8.First char is OK [10:50:30]request: POST /json_proto HTTP/1.0 [10:50:30]Method: POST [10:50:30]URL: /json_proto [10:50:30]Method is POST - this is cgi request [10:50:30]url: /json_proto [10:50:30]query_string will be loaded in cgi processing [10:50:30]execute_cgi json_proto POST (null) [10:50:30]execute_cgi path=json_proto method=POST [10:50:30]POST find Content-Length [10:50:30]Host: 172.17.35.3:8080 [10:50:30]Content-Length: 682 [10:50:30]Content-Type: application/json [10:50:30] [10:50:30]POST finish read [10:50:30]Found Content-Length = 682 [10:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:30]execute_script... [10:50:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:30]POST & json_proto [10:50:30]process_json_proto [10:50:30]json parsed OK: [10:50:30]protocol is kg_v1.0 [10:50:30]action value=close_receipt [10:50:30]process_action close_receipt [10:50:30]cmd_close_receipt [10:50:30]MH_GetDate [10:50:30]Write to MH i2c: F0 00 00 3F 51 7F [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: F0 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: F0 09 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: F0 09 00 3F 51 00 8A 1D 15 66 2B 11 66 64 B0 [10:50:30]GetLastDocTimeStamp 1712659778 [10:50:30]current date 1712659850 [10:50:30]FM_GetShiftState [10:50:30]SAM_PROTO_GetShiftState [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 13 01 00 [10:50:30]Write to MH i2c: E2 08 00 40 51 80 13 01 00 00 00 00 00 0E [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 0E 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 0E 00 40 51 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 79 [10:50:30]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:50:30]wFMCommunicate OK [10:50:30]SAM_PROTO_GetShiftState done [10:50:30]FM_GetShiftState done [10:50:30]opened in 1712622936 [10:50:30]opened+sec_in_day 1712709336 [10:50:30]quantity*price = 100012 [10:50:30]sum+1 = 100014 [10:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 16 09.04.2024 10:50 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26884 ФПД: 200658694946882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T105050&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26884&fm=200658694946882&tin=02508201610067®Number=0000000000091578&sum=100000 [10:50:31]StoreToDocumentArchive [10:50:31]shift 315 fd 26884 [10:50:31]save to /storage/0315/doc_00026884 [10:50:31]save last doc name /storage/0315/doc_00026884 to /storage/kkm_last_doc_name [10:50:31]save OK [10:50:31]Clear old archive folders... [10:50:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:31]tlvbuf is 00E551F0 [10:50:31]SAM_PROTO_ClearQueue [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 09 00 00 [10:50:31]Write to MH i2c: E2 08 00 4D 51 80 09 00 00 00 00 00 00 10 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 4D 51 00 90 00 12 [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_ClearQueue done [10:50:31]KKMCreateOFDPacket [10:50:31]OFDProtocolAddRootSTLVToBuf [10:50:31]FM_MakeSignedData [10:50:31]FM_MakeSignedData [10:50:31]SAM_PROTO_SignData [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 01 02 [10:50:31]Write to MH i2c: E2 08 00 4E 51 80 0D 01 02 00 00 00 00 18 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 4E 51 00 90 00 13 [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=255 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8A 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 69 00 00 35 04 06 00 B6 [10:50:31]Write to MH i2c: E2 02 01 4F 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8A 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 69 00 00 35 04 06 00 B6 00 00 1F [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 4F 51 00 90 00 14 [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=10 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 02 02 05 7F 7E 3B C0 42 [10:50:31]Write to MH i2c: E2 0D 00 50 51 80 0D 02 02 05 00 7F 7E 3B C0 42 00 00 5F [10:50:31]OFD Sender: No OFD packet to send [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 50 51 00 90 00 15 [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 03 02 [10:50:31]Write to MH i2c: E2 08 00 51 51 80 0D 03 02 00 00 00 00 1D [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0B 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0B 00 51 51 00 76 6F EE 68 C0 D6 9A 1C 90 00 A5 [10:50:31]RAPDU: 76 6F EE 68 C0 D6 9A 1C 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_SignData done [10:50:31]FM_MakeSignedData done [10:50:31]CreateOFDProtocolMessage [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 11 00 00 [10:50:31]Write to MH i2c: E2 08 00 52 51 80 11 00 00 00 00 00 00 1D [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 52 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 75 [10:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:50:31]wFMCommunicate OK [10:50:31]CreateOFDProtocolMessage done [10:50:31]OFDSenderStorePacket 26884 [10:50:31]StoreOFDPacket docnum=26884 [10:50:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D4 96 07 01 E4 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8A 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 69 00 00 35 04 06 00 B6 7F 7E 3B C0 42 76 6F EE 68 C0 D6 9A 1C [10:50:31]CheckFolder [10:50:31]dirname=/storage/ofd_packets [10:50:31]CheckFolder done [10:50:31]ProducePacketName [10:50:31]name=ofd_packets/00026884 [10:50:31]NVStorageSaveData ofd_packets/00026884 [10:50:31]File name is /storage/ofd_packets/00026884 [10:50:31]Write 301 bytes [10:50:31]NVStorageSaveData done [10:50:31]OFDSenderStorePacket done [10:50:31]KKMCreateOFDPacket done [10:50:31]NVStorageSaveData kkm_last_timestamp [10:50:31]File name is /storage/kkm_last_timestamp [10:50:31]Write 4 bytes [10:50:31]NVStorageSaveData done [10:50:31]ExternCall_PrintAddStr [10:50:31]wPrintStart [10:50:31]Write to MH i2c: 01 00 00 53 51 A4 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 53 51 00 00 00 00 00 FF 0F B9 [10:50:31]RasterBufferAndPrint [10:50:31]line Счет N : (1)359629 [10:50:31]line ИНН: 02508201610067 [10:50:31]line Контрольно-Кассовый Чек [10:50:31]line ПРОДАЖА [10:50:31]line ТРК (МРК, ГНК) : 63 [10:50:31]line Товар: 2710124500 [10:50:31]line Аи-95-К-5 [10:50:31]line 13.910 * 71.90 [10:50:31]line = 1000.13 [10:50:31]line НДС 12% НСП 1% [10:50:31]line > о реализуемом товаре [10:50:31]line ОКРУГЛЕНИЕ: -0.13 [10:50:31]line ИТОГО: 1000.00 [10:50:31]line Внесено: 1000.00 [10:50:31]line СДАЧА: 0.00 [10:50:31]line НСП 1% : 8.85 [10:50:31]line НДС 12% : 106.21 [10:50:31]line Наличными: 1000.00 [10:50:31]line Безнал.: 0.00 [10:50:31]line Место: АЗС № 122 "Партнер Нефть" [10:50:31]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [10:50:31]line СНО: Общий режим [10:50:31]line Чек 16 09.04.2024 10:50 [10:50:31]line Смена: 315 ФФД: 1.0 [10:50:31]line ЗНМ: 0300000147 [10:50:31]line РНМ: 0000000000091578 [10:50:31]line Версия ККМ: 001 [10:50:31]line ФМ: 0000000000874657 [10:50:31]line ФД: 26884 [10:50:31]line ФПД: 200658694946882 [10:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T105050&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26884&fm=200658694946882&tin=02508201610067®Number=0000000000091578&sum=100000 [10:50:32]OFD Sender: Processing packet 26884 [packets to send 44, broken 43] [10:50:32]ProducePacketName [10:50:32]name=ofd_packets/00026884 [10:50:32]OFD Sender: To server: pG, [10:50:32]CommunicateWithHost lk.salyk.kg:30040 [10:50:32]ConnectInit lk.salyk.kg [10:50:32]written 0, free lines is 4095 [10:50:32]Connected sock=10 [10:50:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D4 96 07 01 E4 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8A 1D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 69 00 00 35 04 06 00 B6 7F 7E 3B C0 42 76 6F EE 68 C0 D6 9A 1C [10:50:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 5D E6 47 00 34 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 04 69 00 00 F4 03 04 00 F1 C4 14 66 B6 04 01 00 00 87 3D 13 45 C6 E6 8E BC [10:50:32]CommunicateWithHost err = 0 [10:50:32]CheckOFDResponse [10:50:32]1017 (14) - 77093643461234 [10:50:32]1041 (16) - 0000000000874657 [10:50:32]1040 (4) - 26884 [10:50:32]1012 (4) - 09.04.2024 04:32 [10:50:32]1206 (1) - 0 [10:50:32]OFD Sender: Remove packet 26884 [10:50:32]ProducePacketName [10:50:32]name=ofd_packets/00026884 [10:50:32]NVStorageDeleteData [10:50:32]Write to MH i2c: 01 00 00 7E 51 CF [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: 01 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: 01 07 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: 01 07 00 7E 51 00 00 00 00 00 76 0C 58 [10:50:32]RasterBufferAndPrint [10:50:32]line [10:50:32]line [10:50:32]line [10:50:32]line [10:50:32]line [10:50:32]written 0, free lines is 3193 [10:50:32]MH_Cut [10:50:32]Write to MH i2c: D1 01 00 85 51 01 A8 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: D1 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: D1 01 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: D1 01 00 85 51 00 A7 [10:50:32]Write to MH i2c: 01 00 00 86 51 D7 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]OFD Sender: No OFD packet to send [10:50:33]*** Cut start [10:50:33]*** Partial cut [10:50:33]*** CUTSNS_PIN = 1 [10:50:33]*** CUTSNS_PIN = 0 [10:50:34]*** Brake cut motor [10:50:34]Read from MH i2c: 01 [10:50:34]MH_I2C_Read... [10:50:34]*** Stop cut motor [10:50:34]*** Cut end [10:50:34]Read from MH i2c: 01 07 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: 01 07 00 86 51 00 00 00 00 00 FF 0F EC [10:50:34]process_action close_receipt done [10:50:34]requested_data is exist [10:50:34]produce_requested_data [10:50:34]requested_item fm.sn is exist - process it [10:50:34]wFMCommunicate request_size=4 [10:50:34]MH_SAM_APDU [10:50:34]CAPDU: 80 11 00 00 [10:50:34]Write to MH i2c: E2 08 00 87 51 80 11 00 00 00 00 00 00 52 [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:34]Read from MH i2c: E2 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 17 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 17 00 87 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AA [10:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [10:50:34]wFMCommunicate OK [10:50:34]requested_item fd.num is exist - process it [10:50:34]SAM_PROTO_GetFieldsCounters [10:50:34]wFMCommunicate request_size=4 [10:50:34]MH_SAM_APDU [10:50:34]CAPDU: 80 13 00 00 [10:50:34]Write to MH i2c: E2 08 00 88 51 80 13 00 00 00 00 00 00 55 [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:34]Read from MH i2c: E2 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 62 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 62 00 88 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 04 69 00 00 0E 04 04 00 3B 01 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 59 [10:50:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 04 69 00 00 0E 04 04 00 3B 01 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 [10:50:34]wFMCommunicate OK [10:50:34]SAM_PROTO_GetFieldsCounters done [10:50:34]requested_item shift.num is exist - process it [10:50:34]requested_item shift.opened is exist - process it [10:50:34]req_shift_opened [10:50:34]FM_GetShiftState [10:50:34]SAM_PROTO_GetShiftState [10:50:34]wFMCommunicate request_size=4 [10:50:34]MH_SAM_APDU [10:50:34]CAPDU: 80 13 01 00 [10:50:34]Write to MH i2c: E2 08 00 89 51 80 13 01 00 00 00 00 00 57 [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:34]Read from MH i2c: E2 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 0E 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 0E 00 89 51 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C2 [10:50:34]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [10:50:34]wFMCommunicate OK [10:50:34]SAM_PROTO_GetShiftState done [10:50:34]FM_GetShiftState done [10:50:34]req_shift_opened done [10:50:34]requested_item shift.open_date is exist - process it [10:50:34]req_shift_open_date [10:50:34]req_shift_open_date done [10:50:34]produce_requested_data done [10:50:34]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26884,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [10:50:34]process_action_free close_receipt [10:50:34]json_value_free [10:50:34]json_value_free done [10:50:34]process_json_proto returns [10:50:34]Send response to host [10:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26884,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [10:50:34]free response buf [10:50:34]execute_script done [10:50:34]execute_script returns [10:50:34]free content buf [10:50:34]Sock 8.Close socket [10:50:34]Sock 8.Thread stoped [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:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]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:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]accept exits with 9 [11:16:29]New connection [11:16:29]New thread 3067014500 created [11:16:29]Thread 3066871140 joined [11:16:29]Waiting for new connection... [11:16:29] Sock 9.Parse request [11:16:29]Sock 9.Check first char [11:16:29]Sock 9.First char is OK [11:16:29]request: POST /json_proto HTTP/1.0 [11:16:29]Method: POST [11:16:29]URL: /json_proto [11:16:29]Method is POST - this is cgi request [11:16:29]url: /json_proto [11:16:29]query_string will be loaded in cgi processing [11:16:29]execute_cgi json_proto POST (null) [11:16:29]execute_cgi path=json_proto method=POST [11:16:29]POST find Content-Length [11:16:29]Host: 172.17.35.3:8080 [11:16:29]Content-Length: 683 [11:16:29]Content-Type: application/json [11:16:29] [11:16:29]POST finish read [11:16:29]Found Content-Length = 683 [11:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 11.150, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:29]execute_script... [11:16: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)359630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 11.150, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:29]POST & json_proto [11:16:29]process_json_proto [11:16:29]json parsed OK: [11:16:29]protocol is kg_v1.0 [11:16:29]action value=close_receipt [11:16:29]process_action close_receipt [11:16:29]cmd_close_receipt [11:16:29]MH_GetDate [11:16:29]Write to MH i2c: F0 00 00 8A 51 CA [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: F0 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: F0 09 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: F0 09 00 8A 51 00 A1 23 15 66 2B 11 66 64 18 [11:16:29]GetLastDocTimeStamp 1712659850 [11:16:29]current date 1712661409 [11:16:29]FM_GetShiftState [11:16:29]SAM_PROTO_GetShiftState [11:16:29]wFMCommunicate request_size=4 [11:16:29]MH_SAM_APDU [11:16:29]CAPDU: 80 13 01 00 [11:16:29]Write to MH i2c: E2 08 00 8B 51 80 13 01 00 00 00 00 00 59 [11:16:29]Write i2c OK [11:16:29]MH_I2C_Read... [11:16:29]OFD Sender: No OFD packet to send [11:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:29]Read from MH i2c: E2 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0E 00 [11:16:29]MH_I2C_Read... [11:16:29]Read from MH i2c: E2 0E 00 8B 51 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C4 [11:16:29]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:16:29]wFMCommunicate OK [11:16:29]SAM_PROTO_GetShiftState done [11:16:29]FM_GetShiftState done [11:16:29]opened in 1712622936 [11:16:29]opened+sec_in_day 1712709336 [11:16:29]quantity*price = 80057 [11:16:29]sum+1 = 80058 [11:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 17 09.04.2024 11:16 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26885 ФПД: 77879248982379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T111649&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26885&fm=77879248982379&tin=02508201610067®Number=0000000000091578&sum=80000 [11:16:30]StoreToDocumentArchive [11:16:30]shift 315 fd 26885 [11:16:30]save to /storage/0315/doc_00026885 [11:16:30]save last doc name /storage/0315/doc_00026885 to /storage/kkm_last_doc_name [11:16:30]save OK [11:16:30]Clear old archive folders... [11:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:16:30]tlvbuf is 00E84520 [11:16:30]SAM_PROTO_ClearQueue [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 09 00 00 [11:16:30]Write to MH i2c: E2 08 00 98 51 80 09 00 00 00 00 00 00 5B [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 98 51 00 90 00 5D [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]SAM_PROTO_ClearQueue done [11:16:30]KKMCreateOFDPacket [11:16:30]OFDProtocolAddRootSTLVToBuf [11:16:30]FM_MakeSignedData [11:16:30]FM_MakeSignedData [11:16:30]SAM_PROTO_SignData [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 0D 01 02 [11:16:30]Write to MH i2c: E2 08 00 99 51 80 0D 01 02 00 00 00 00 63 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 99 51 00 90 00 5E [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]wFMCommunicate request_size=255 [11:16:30]MH_SAM_APDU [11:16: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 8E 2B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A1 23 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 69 00 00 35 04 06 00 [11:16:30]Write to MH i2c: E2 02 01 9A 51 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 8E 2B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A1 23 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 69 00 00 35 04 06 00 00 00 0E [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 9A 51 00 90 00 5F [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]wFMCommunicate request_size=11 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 0D 02 02 06 46 D4 AC F8 91 6B [11:16:30]Write to MH i2c: E2 0E 00 9B 51 80 0D 02 02 06 00 46 D4 AC F8 91 6B 00 00 2C [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:30]Read from MH i2c: E2 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: E2 03 00 9B 51 00 90 00 60 [11:16:30]RAPDU: 90 00 [11:16:30]wFMCommunicate OK [11:16:30]wFMCommunicate request_size=4 [11:16:30]MH_SAM_APDU [11:16:30]CAPDU: 80 0D 03 02 [11:16:30]Write to MH i2c: E2 08 00 9C 51 80 0D 03 02 00 00 00 00 68 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:31]Read from MH i2c: E2 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 0B 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 0B 00 9C 51 00 56 98 8E C8 F6 46 0B 66 90 00 5A [11:16:31]RAPDU: 56 98 8E C8 F6 46 0B 66 90 00 [11:16:31]wFMCommunicate OK [11:16:31]SAM_PROTO_SignData done [11:16:31]FM_MakeSignedData done [11:16:31]CreateOFDProtocolMessage [11:16:31]wFMCommunicate request_size=4 [11:16:31]MH_SAM_APDU [11:16:31]CAPDU: 80 11 00 00 [11:16:31]Write to MH i2c: E2 08 00 9D 51 80 11 00 00 00 00 00 00 68 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:31]Read from MH i2c: E2 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 17 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: E2 17 00 9D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C0 [11:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:16:31]wFMCommunicate OK [11:16:31]CreateOFDProtocolMessage done [11:16:31]OFDSenderStorePacket 26885 [11:16:31]StoreOFDPacket docnum=26885 [11:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 BD F8 08 01 E2 64 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 8E 2B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A1 23 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 69 00 00 35 04 06 00 46 D4 AC F8 91 6B 56 98 8E C8 F6 46 0B 66 [11:16:31]CheckFolder [11:16:31]dirname=/storage/ofd_packets [11:16:31]CheckFolder done [11:16:31]ProducePacketName [11:16:31]name=ofd_packets/00026885 [11:16:31]NVStorageSaveData ofd_packets/00026885 [11:16:31]File name is /storage/ofd_packets/00026885 [11:16:31]Write 302 bytes [11:16:31]NVStorageSaveData done [11:16:31]OFDSenderStorePacket done [11:16:31]KKMCreateOFDPacket done [11:16:31]NVStorageSaveData kkm_last_timestamp [11:16:31]File name is /storage/kkm_last_timestamp [11:16:31]Write 4 bytes [11:16:31]NVStorageSaveData done [11:16:31]ExternCall_PrintAddStr [11:16:31]wPrintStart [11:16:31]Write to MH i2c: 01 00 00 9E 51 EF [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 9E 51 00 00 00 00 00 FF 0F 04 [11:16:31]RasterBufferAndPrint [11:16:31]line Счет N : (1)359630 [11:16:31]line ИНН: 02508201610067 [11:16:31]line Контрольно-Кассовый Чек [11:16:31]line ПРОДАЖА [11:16:31]line ТРК (МРК, ГНК) : 21 [11:16:31]line Товар: 2710194210 [11:16:31]line ДТ(л)-К-5 [11:16:31]line 11.150 * 71.80 [11:16:31]line = 800.57 [11:16:31]line НДС 12% НСП 1% [11:16:31]line > о реализуемом товаре [11:16:31]line ОКРУГЛЕНИЕ: -0.57 [11:16:31]line ИТОГО: 800.00 [11:16:31]line Внесено: 800.00 [11:16:31]line СДАЧА: 0.00 [11:16:31]line НСП 1% : 7.08 [11:16:31]line НДС 12% : 85.02 [11:16:31]line Наличными: 800.00 [11:16:31]line Безнал.: 0.00 [11:16:31]line Место: АЗС № 122 "Партнер Нефть" [11:16:31]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:16:31]line СНО: Общий режим [11:16:31]line Чек 17 09.04.2024 11:16 [11:16:31]line Смена: 315 ФФД: 1.0 [11:16:31]line ЗНМ: 0300000147 [11:16:31]line РНМ: 0000000000091578 [11:16:31]line Версия ККМ: 001 [11:16:31]line ФМ: 0000000000874657 [11:16:31]line ФД: 26885 [11:16:31]line ФПД: 77879248982379 [11:16:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T111649&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26885&fm=77879248982379&tin=02508201610067®Number=0000000000091578&sum=80000 [11:16:31]OFD Sender: Processing packet 26885 [packets to send 44, broken 43] [11:16:31]ProducePacketName [11:16:31]name=ofd_packets/00026885 [11:16:31]OFD Sender: To server: pG, [11:16:31]CommunicateWithHost lk.salyk.kg:30040 [11:16:31]ConnectInit lk.salyk.kg [11:16:31]written 0, free lines is 4095 [11:16:31]Connected sock=10 [11:16:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 BD F8 08 01 E2 64 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 8E 2B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A1 23 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 69 00 00 35 04 06 00 46 D4 AC F8 91 6B 56 98 8E C8 F6 46 0B 66 [11:16:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 48 3F 47 00 BC 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 05 69 00 00 F4 03 04 00 08 CB 14 66 B6 04 01 00 00 A0 06 47 23 BF 10 2A 7F [11:16:31]CommunicateWithHost err = 0 [11:16:31]CheckOFDResponse [11:16:31]1017 (14) - 77093643461234 [11:16:31]1041 (16) - 0000000000874657 [11:16:31]1040 (4) - 26885 [11:16:31]1012 (4) - 09.04.2024 04:58 [11:16:31]1206 (1) - 0 [11:16:31]OFD Sender: Remove packet 26885 [11:16:31]ProducePacketName [11:16:31]name=ofd_packets/00026885 [11:16:31]NVStorageDeleteData [11:16:31]Write to MH i2c: 01 00 00 C9 51 1A [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: 01 07 00 C9 51 00 00 00 00 00 6D 0C 9A [11:16:31]RasterBufferAndPrint [11:16:31]line [11:16:31]line [11:16:31]line [11:16:31]line [11:16:31]line [11:16:31]written 0, free lines is 3184 [11:16:31]MH_Cut [11:16:31]Write to MH i2c: D1 01 00 D0 51 01 F3 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: D1 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: D1 01 00 [11:16:31]MH_I2C_Read... [11:16:31]Read from MH i2c: D1 01 00 D0 51 00 F2 [11:16:31]Write to MH i2c: 01 00 00 D1 51 22 [11:16:31]Write i2c OK [11:16:31]MH_I2C_Read... [11:16:32]OFD Sender: No OFD packet to send [11:16:33]*** Cut start [11:16:33]*** Partial cut [11:16:33]*** CUTSNS_PIN = 1 [11:16:33]*** CUTSNS_PIN = 0 [11:16:33]*** Brake cut motor [11:16:33]Read from MH i2c: 01 [11:16:33]MH_I2C_Read... [11:16:33]*** Stop cut motor [11:16:33]*** Cut end [11:16:33]Read from MH i2c: 01 07 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: 01 07 00 D1 51 00 00 00 00 00 FF 0F 37 [11:16:33]process_action close_receipt done [11:16:33]requested_data is exist [11:16:33]produce_requested_data [11:16:33]requested_item fm.sn is exist - process it [11:16:33]wFMCommunicate request_size=4 [11:16:33]MH_SAM_APDU [11:16:33]CAPDU: 80 11 00 00 [11:16:33]Write to MH i2c: E2 08 00 D2 51 80 11 00 00 00 00 00 00 9D [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:33]Read from MH i2c: E2 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 17 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 17 00 D2 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F5 [11:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:16:33]wFMCommunicate OK [11:16:33]requested_item fd.num is exist - process it [11:16:33]SAM_PROTO_GetFieldsCounters [11:16:33]wFMCommunicate request_size=4 [11:16:33]MH_SAM_APDU [11:16:33]CAPDU: 80 13 00 00 [11:16:33]Write to MH i2c: E2 08 00 D3 51 80 13 00 00 00 00 00 00 A0 [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:33]Read from MH i2c: E2 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 62 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 62 00 D3 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 05 69 00 00 0E 04 04 00 3B 01 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 A8 [11:16:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 05 69 00 00 0E 04 04 00 3B 01 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 [11:16:33]wFMCommunicate OK [11:16:33]SAM_PROTO_GetFieldsCounters done [11:16:33]requested_item shift.num is exist - process it [11:16:33]requested_item shift.opened is exist - process it [11:16:33]req_shift_opened [11:16:33]FM_GetShiftState [11:16:33]SAM_PROTO_GetShiftState [11:16:33]wFMCommunicate request_size=4 [11:16:33]MH_SAM_APDU [11:16:33]CAPDU: 80 13 01 00 [11:16:33]Write to MH i2c: E2 08 00 D4 51 80 13 01 00 00 00 00 00 A2 [11:16:33]Write i2c OK [11:16:33]MH_I2C_Read... [11:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:33]Read from MH i2c: E2 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 0E 00 [11:16:33]MH_I2C_Read... [11:16:33]Read from MH i2c: E2 0E 00 D4 51 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 0D [11:16:33]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:16:33]wFMCommunicate OK [11:16:33]SAM_PROTO_GetShiftState done [11:16:33]FM_GetShiftState done [11:16:33]req_shift_opened done [11:16:33]requested_item shift.open_date is exist - process it [11:16:33]req_shift_open_date [11:16:33]req_shift_open_date done [11:16:33]produce_requested_data done [11:16:33]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26885,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [11:16:33]process_action_free close_receipt [11:16:33]json_value_free [11:16:33]json_value_free done [11:16:33]process_json_proto returns [11:16:33]Send response to host [11:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26885,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [11:16:33]free response buf [11:16:33]execute_script done [11:16:33]execute_script returns [11:16:33]free content buf [11:16:33]Sock 9.Close socket [11:16:33]Sock 9.Thread stoped [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:04]accept exits with 8 [11:46:04]New connection [11:46:04]New thread 3066871140 created [11:46:04]Thread 3067014500 joined [11:46:04]Waiting for new connection... [11:46:04] Sock 8.Parse request [11:46:04]Sock 8.Check first char [11:46:04]Sock 8.First char is OK [11:46:04]request: POST /json_proto HTTP/1.0 [11:46:04]Method: POST [11:46:04]URL: /json_proto [11:46:04]Method is POST - this is cgi request [11:46:04]url: /json_proto [11:46:04]query_string will be loaded in cgi processing [11:46:04]execute_cgi json_proto POST (null) [11:46:04]execute_cgi path=json_proto method=POST [11:46:04]POST find Content-Length [11:46:04]Host: 172.17.35.3:8080 [11:46:04]Content-Length: 677 [11:46:04]Content-Type: application/json [11:46:04] [11:46:04]POST finish read [11:46:04]Found Content-Length = 677 [11:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:04]execute_script... [11:46:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:04]POST & json_proto [11:46:04]process_json_proto [11:46:04]json parsed OK: [11:46:04]protocol is kg_v1.0 [11:46:04]action value=close_receipt [11:46:04]process_action close_receipt [11:46:04]cmd_close_receipt [11:46:04]MH_GetDate [11:46:04]Write to MH i2c: F0 00 00 D5 51 15 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: F0 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: F0 09 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: F0 09 00 D5 51 00 90 2A 15 66 2B 11 66 64 59 [11:46:04]GetLastDocTimeStamp 1712661409 [11:46:04]current date 1712663184 [11:46:04]FM_GetShiftState [11:46:04]SAM_PROTO_GetShiftState [11:46:04]wFMCommunicate request_size=4 [11:46:04]MH_SAM_APDU [11:46:04]CAPDU: 80 13 01 00 [11:46:04]Write to MH i2c: E2 08 00 D6 51 80 13 01 00 00 00 00 00 A4 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:04]Read from MH i2c: E2 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0E 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: E2 0E 00 D6 51 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 0F [11:46:04]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:46:04]wFMCommunicate OK [11:46:04]SAM_PROTO_GetShiftState done [11:46:04]FM_GetShiftState done [11:46:04]opened in 1712622936 [11:46:04]opened+sec_in_day 1712709336 [11:46:04]quantity*price = 50022 [11:46:04]sum+1 = 50024 [11:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 18 09.04.2024 11:46 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26886 ФПД: 87755103056512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T114624&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26886&fm=87755103056512&tin=02508201610067®Number=0000000000091578&sum=50000 [11:46:05]StoreToDocumentArchive [11:46:05]shift 315 fd 26886 [11:46:05]save to /storage/0315/doc_00026886 [11:46:05]save last doc name /storage/0315/doc_00026886 to /storage/kkm_last_doc_name [11:46:05]save OK [11:46:05]Clear old archive folders... [11:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:05]tlvbuf is 00E551A0 [11:46:05]SAM_PROTO_ClearQueue [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 09 00 00 [11:46:05]Write to MH i2c: E2 08 00 E3 51 80 09 00 00 00 00 00 00 A6 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 E3 51 00 90 00 A8 [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]SAM_PROTO_ClearQueue done [11:46:05]KKMCreateOFDPacket [11:46:05]OFDProtocolAddRootSTLVToBuf [11:46:05]FM_MakeSignedData [11:46:05]FM_MakeSignedData [11:46:05]SAM_PROTO_SignData [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 01 02 [11:46:05]Write to MH i2c: E2 08 00 E4 51 80 0D 01 02 00 00 00 00 AE [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 03 00 E4 51 00 90 00 A9 [11:46:05]RAPDU: 90 00 [11:46:05]wFMCommunicate OK [11:46:05]wFMCommunicate request_size=255 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 90 2A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 69 00 00 35 04 06 00 4F [11:46:05]Write to MH i2c: E2 02 01 E5 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 90 2A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 69 00 00 35 04 06 00 4F 00 00 AF [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 03 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 03 00 E5 51 00 90 00 AA [11:46:06]RAPDU: 90 00 [11:46:06]wFMCommunicate OK [11:46:06]wFMCommunicate request_size=10 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 0D 02 02 05 D0 13 BE B2 80 [11:46:06]Write to MH i2c: E2 0D 00 E6 51 80 0D 02 02 05 00 D0 13 BE B2 80 00 00 8E [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 03 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 03 00 E6 51 00 90 00 AB [11:46:06]RAPDU: 90 00 [11:46:06]wFMCommunicate OK [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 0D 03 02 [11:46:06]Write to MH i2c: E2 08 00 E7 51 80 0D 03 02 00 00 00 00 B3 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 0B 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 0B 00 E7 51 00 BB 8B CA D6 0A C5 25 0B 90 00 99 [11:46:06]RAPDU: BB 8B CA D6 0A C5 25 0B 90 00 [11:46:06]wFMCommunicate OK [11:46:06]SAM_PROTO_SignData done [11:46:06]FM_MakeSignedData done [11:46:06]CreateOFDProtocolMessage [11:46:06]wFMCommunicate request_size=4 [11:46:06]MH_SAM_APDU [11:46:06]CAPDU: 80 11 00 00 [11:46:06]Write to MH i2c: E2 08 00 E8 51 80 11 00 00 00 00 00 00 B3 [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:06]Read from MH i2c: E2 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 17 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: E2 17 00 E8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0B [11:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:46:06]wFMCommunicate OK [11:46:06]CreateOFDProtocolMessage done [11:46:06]OFDSenderStorePacket 26886 [11:46:06]StoreOFDPacket docnum=26886 [11:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 F1 13 07 01 E0 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 90 2A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 69 00 00 35 04 06 00 4F D0 13 BE B2 80 BB 8B CA D6 0A C5 25 0B [11:46:06]CheckFolder [11:46:06]dirname=/storage/ofd_packets [11:46:06]CheckFolder done [11:46:06]ProducePacketName [11:46:06]name=ofd_packets/00026886 [11:46:06]NVStorageSaveData ofd_packets/00026886 [11:46:06]File name is /storage/ofd_packets/00026886 [11:46:06]Write 301 bytes [11:46:06]NVStorageSaveData done [11:46:06]OFDSenderStorePacket done [11:46:06]KKMCreateOFDPacket done [11:46:06]NVStorageSaveData kkm_last_timestamp [11:46:06]File name is /storage/kkm_last_timestamp [11:46:06]Write 4 bytes [11:46:06]NVStorageSaveData done [11:46:06]ExternCall_PrintAddStr [11:46:06]wPrintStart [11:46:06]Write to MH i2c: 01 00 00 E9 51 3A [11:46:06]Write i2c OK [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 [11:46:06]MH_I2C_Read... [11:46:06]Read from MH i2c: 01 07 00 E9 51 00 00 00 00 00 FF 0F 4F [11:46:06]RasterBufferAndPrint [11:46:06]line Счет N : (1)359631 [11:46:06]line ИНН: 02508201610067 [11:46:06]line Контрольно-Кассовый Чек [11:46:06]line ПРОДАЖА [11:46:06]line ТРК (МРК, ГНК) : 51 [11:46:06]line Товар: 2710124130 [11:46:06]line Аи-92-К-5 [11:46:06]line 7.890 * 63.40 [11:46:06]line = 500.23 [11:46:06]line НДС 12% НСП 1% [11:46:06]line > о реализуемом товаре [11:46:06]line ОКРУГЛЕНИЕ: -0.23 [11:46:06]line ИТОГО: 500.00 [11:46:06]line Внесено: 500.00 [11:46:06]line СДАЧА: 0.00 [11:46:06]line НСП 1% : 4.43 [11:46:06]line НДС 12% : 53.12 [11:46:06]line Наличными: 500.00 [11:46:06]line Безнал.: 0.00 [11:46:06]line Место: АЗС № 122 "Партнер Нефть" [11:46:06]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:46:06]line СНО: Общий режим [11:46:06]line Чек 18 09.04.2024 11:46 [11:46:06]line Смена: 315 ФФД: 1.0 [11:46:06]line ЗНМ: 0300000147 [11:46:06]line РНМ: 0000000000091578 [11:46:06]line Версия ККМ: 001 [11:46:06]line ФМ: 0000000000874657 [11:46:06]line ФД: 26886 [11:46:06]line ФПД: 87755103056512 [11:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T114624&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26886&fm=87755103056512&tin=02508201610067®Number=0000000000091578&sum=50000 [11:46:06]OFD Sender: Processing packet 26886 [packets to send 44, broken 43] [11:46:06]ProducePacketName [11:46:06]name=ofd_packets/00026886 [11:46:06]OFD Sender: To server: pG, [11:46:06]CommunicateWithHost lk.salyk.kg:30040 [11:46:06]ConnectInit lk.salyk.kg [11:46:06]written 0, free lines is 4095 [11:46:06]Connected sock=10 [11:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 F1 13 07 01 E0 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 90 2A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 69 00 00 35 04 06 00 4F D0 13 BE B2 80 BB 8B CA D6 0A C5 25 0B [11:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 44 DB 47 00 B9 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 06 69 00 00 F4 03 04 00 F7 D1 14 66 B6 04 01 00 00 C1 BC A9 E6 89 BB 71 E5 [11:46:06]CommunicateWithHost err = 0 [11:46:06]CheckOFDResponse [11:46:06]1017 (14) - 77093643461234 [11:46:06]1041 (16) - 0000000000874657 [11:46:06]1040 (4) - 26886 [11:46:06]1012 (4) - 09.04.2024 05:28 [11:46:06]1206 (1) - 0 [11:46:06]OFD Sender: Remove packet 26886 [11:46:06]ProducePacketName [11:46:06]name=ofd_packets/00026886 [11:46:06]NVStorageDeleteData [11:46:07]Write to MH i2c: 01 00 00 14 52 66 [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: 01 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: 01 07 00 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: 01 07 00 14 52 00 00 00 00 00 71 0C EA [11:46:07]RasterBufferAndPrint [11:46:07]line [11:46:07]line [11:46:07]line [11:46:07]line [11:46:07]line [11:46:07]written 0, free lines is 3188 [11:46:07]MH_Cut [11:46:07]Write to MH i2c: D1 01 00 1B 52 01 3F [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: D1 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: D1 01 00 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: D1 01 00 1B 52 00 3E [11:46:07]Write to MH i2c: 01 00 00 1C 52 6E [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:07]OFD Sender: No OFD packet to send [11:46:08]*** Cut start [11:46:08]*** Partial cut [11:46:08]*** CUTSNS_PIN = 1 [11:46:08]*** CUTSNS_PIN = 0 [11:46:08]*** Brake cut motor [11:46:08]Read from MH i2c: 01 [11:46:08]MH_I2C_Read... [11:46:08]*** Stop cut motor [11:46:08]*** Cut end [11:46:08]Read from MH i2c: 01 07 00 [11:46:08]MH_I2C_Read... [11:46:08]Read from MH i2c: 01 07 00 1C 52 00 00 00 00 00 FF 0F 83 [11:46:08]process_action close_receipt done [11:46:08]requested_data is exist [11:46:08]produce_requested_data [11:46:08]requested_item fm.sn is exist - process it [11:46:08]wFMCommunicate request_size=4 [11:46:08]MH_SAM_APDU [11:46:08]CAPDU: 80 11 00 00 [11:46:08]Write to MH i2c: E2 08 00 1D 52 80 11 00 00 00 00 00 00 E9 [11:46:08]Write i2c OK [11:46:08]MH_I2C_Read... [11:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:09]Read from MH i2c: E2 [11:46:09]MH_I2C_Read... [11:46:09]Read from MH i2c: E2 17 00 [11:46:09]MH_I2C_Read... [11:46:09]Read from MH i2c: E2 17 00 1D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 41 [11:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:46:09]wFMCommunicate OK [11:46:09]requested_item fd.num is exist - process it [11:46:09]SAM_PROTO_GetFieldsCounters [11:46:09]wFMCommunicate request_size=4 [11:46:09]MH_SAM_APDU [11:46:09]CAPDU: 80 13 00 00 [11:46:09]Write to MH i2c: E2 08 00 1E 52 80 13 00 00 00 00 00 00 EC [11:46:09]Write i2c OK [11:46:09]MH_I2C_Read... [11:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:09]Read from MH i2c: E2 [11:46:09]MH_I2C_Read... [11:46:09]Read from MH i2c: E2 62 00 [11:46:09]MH_I2C_Read... [11:46:09]Read from MH i2c: E2 62 00 1E 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 69 00 00 0E 04 04 00 3B 01 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 F8 [11:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 69 00 00 0E 04 04 00 3B 01 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 [11:46:09]wFMCommunicate OK [11:46:09]SAM_PROTO_GetFieldsCounters done [11:46:09]requested_item shift.num is exist - process it [11:46:09]requested_item shift.opened is exist - process it [11:46:09]req_shift_opened [11:46:09]FM_GetShiftState [11:46:09]SAM_PROTO_GetShiftState [11:46:09]wFMCommunicate request_size=4 [11:46:09]MH_SAM_APDU [11:46:09]CAPDU: 80 13 01 00 [11:46:09]Write to MH i2c: E2 08 00 1F 52 80 13 01 00 00 00 00 00 EE [11:46:09]Write i2c OK [11:46:09]MH_I2C_Read... [11:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:09]Read from MH i2c: E2 [11:46:09]MH_I2C_Read... [11:46:09]Read from MH i2c: E2 0E 00 [11:46:09]MH_I2C_Read... [11:46:09]Read from MH i2c: E2 0E 00 1F 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 59 [11:46:09]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:46:09]wFMCommunicate OK [11:46:09]SAM_PROTO_GetShiftState done [11:46:09]FM_GetShiftState done [11:46:09]req_shift_opened done [11:46:09]requested_item shift.open_date is exist - process it [11:46:09]req_shift_open_date [11:46:09]req_shift_open_date done [11:46:09]produce_requested_data done [11:46:09]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26886,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [11:46:09]process_action_free close_receipt [11:46:09]json_value_free [11:46:09]json_value_free done [11:46:09]process_json_proto returns [11:46:09]Send response to host [11:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26886,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [11:46:09]free response buf [11:46:09]execute_script done [11:46:09]execute_script returns [11:46:09]free content buf [11:46:09]Sock 8.Close socket [11:46:09]Sock 8.Thread stoped [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:47:51]ConnectInit Can't connect to host [11:47:52]OFD Sender: No OFD packet to send [11:47:55]accept exits with 9 [11:47:55]New connection [11:47:55]New thread 3067014500 created [11:47:55]Thread 3066871140 joined [11:47:55]Waiting for new connection... [11:47:55] Sock 9.Parse request [11:47:55]Sock 9.Check first char [11:47:55]Sock 9.First char is OK [11:47:55]request: POST /json_proto HTTP/1.0 [11:47:55]Method: POST [11:47:55]URL: /json_proto [11:47:55]Method is POST - this is cgi request [11:47:55]url: /json_proto [11:47:55]query_string will be loaded in cgi processing [11:47:55]execute_cgi json_proto POST (null) [11:47:55]execute_cgi path=json_proto method=POST [11:47:55]POST find Content-Length [11:47:55]Host: 172.17.35.3:8080 [11:47:55]Content-Length: 215 [11:47:55]Content-Type: application/json [11:47:55] [11:47:55]POST finish read [11:47:55]Found Content-Length = 215 [11:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:55]execute_script... [11:47:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:55]POST & json_proto [11:47:55]process_json_proto [11:47:55]json parsed OK: [11:47:55]protocol is kg_v1.0 [11:47:55]action value=get_value [11:47:55]process_action get_value [11:47:55]cmd_get_value [11:47:55]process_action get_value done [11:47:55]requested_data is exist [11:47:55]produce_requested_data [11:47:55]requested_item kkm.sn is exist - process it [11:47:55]requested_item kkm.ver is exist - process it [11:47:55]requested_item fm.sn is exist - process it [11:47:55]wFMCommunicate request_size=4 [11:47:55]MH_SAM_APDU [11:47:55]CAPDU: 80 11 00 00 [11:47:55]Write to MH i2c: E2 08 00 20 52 80 11 00 00 00 00 00 00 EC [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:55]Read from MH i2c: E2 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 17 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 17 00 20 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 44 [11:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:47:55]wFMCommunicate OK [11:47:55]requested_item fd.num is exist - process it [11:47:55]SAM_PROTO_GetFieldsCounters [11:47:55]wFMCommunicate request_size=4 [11:47:55]MH_SAM_APDU [11:47:55]CAPDU: 80 13 00 00 [11:47:55]Write to MH i2c: E2 08 00 21 52 80 13 00 00 00 00 00 00 EF [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:55]Read from MH i2c: E2 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 62 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 62 00 21 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 69 00 00 0E 04 04 00 3B 01 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 FB [11:47:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 69 00 00 0E 04 04 00 3B 01 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 [11:47:55]wFMCommunicate OK [11:47:55]SAM_PROTO_GetFieldsCounters done [11:47:55]requested_item shift.num is exist - process it [11:47:55]requested_item shift.opened is exist - process it [11:47:55]req_shift_opened [11:47:55]FM_GetShiftState [11:47:55]SAM_PROTO_GetShiftState [11:47:55]wFMCommunicate request_size=4 [11:47:55]MH_SAM_APDU [11:47:55]CAPDU: 80 13 01 00 [11:47:55]Write to MH i2c: E2 08 00 22 52 80 13 01 00 00 00 00 00 F1 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:55]Read from MH i2c: E2 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 0E 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 0E 00 22 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 5C [11:47:55]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:47:55]wFMCommunicate OK [11:47:55]SAM_PROTO_GetShiftState done [11:47:55]FM_GetShiftState done [11:47:55]req_shift_opened done [11:47:55]requested_item shift.open_date is exist - process it [11:47:55]req_shift_open_date [11:47:55]req_shift_open_date done [11:47:55]produce_requested_data done [11:47:55]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26886,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [11:47:55]process_action_free get_value [11:47:55]json_value_free [11:47:55]json_value_free done [11:47:55]process_json_proto returns [11:47:55]Send response to host [11:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26886,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [11:47:55]free response buf [11:47:55]execute_script done [11:47:55]execute_script returns [11:47:55]free content buf [11:47:55]Sock 9.Close socket [11:47:55]Sock 9.Thread stoped [11:47:55]accept exits with 8 [11:47:55]New connection [11:47:55]New thread 3066871140 created [11:47:55]Thread 3067014500 joined [11:47:55]Waiting for new connection... [11:47:55] Sock 8.Parse request [11:47:55]Sock 8.Check first char [11:47:55]Sock 8.First char is OK [11:47:55]request: POST /json_proto HTTP/1.0 [11:47:55]Method: POST [11:47:55]URL: /json_proto [11:47:55]Method is POST - this is cgi request [11:47:55]url: /json_proto [11:47:55]query_string will be loaded in cgi processing [11:47:55]execute_cgi json_proto POST (null) [11:47:55]execute_cgi path=json_proto method=POST [11:47:55]POST find Content-Length [11:47:55]Host: 172.17.35.3:8080 [11:47:55]Content-Length: 331 [11:47:55]Content-Type: application/json [11:47:55] [11:47:55]POST finish read [11:47:55]Found Content-Length = 331 [11:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:47:55]execute_script... [11:47:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:47:55]POST & json_proto [11:47:55]process_json_proto [11:47:55]json parsed OK: [11:47:55]protocol is kg_v1.0 [11:47:55]action value=get_value [11:47:55]process_action get_value [11:47:55]cmd_get_value [11:47:55]process_action get_value done [11:47:55]requested_data is exist [11:47:55]produce_requested_data [11:47:55]requested_item fm.sale.total is exist - process it [11:47:55]SAM_PROTO_GetFMData [11:47:55]wFMCommunicate request_size=4 [11:47:55]MH_SAM_APDU [11:47:55]CAPDU: 80 13 03 00 [11:47:55]Write to MH i2c: E2 08 00 23 52 80 13 03 00 00 00 00 00 F4 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:47:55]Read from MH i2c: E2 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 FD 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 FD 00 23 52 00 C0 04 85 04 BC 04 6E 04 04 00 90 66 00 00 69 04 A1 00 6F 04 04 00 4D 66 00 00 B1 04 04 00 88 D5 E7 9B 70 04 04 00 EC 7B E5 7F 72 04 04 00 9C 59 02 1C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 70 8F 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E3 42 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 0E [11:47:55]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 90 66 00 00 69 04 A1 00 6F 04 04 00 4D 66 00 00 B1 04 04 00 88 D5 E7 9B 70 04 04 00 EC 7B E5 7F 72 04 04 00 9C 59 02 1C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 70 8F 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E3 42 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 [11:47:55]wFMCommunicate OK [11:47:55]wFMCommunicate request_size=4 [11:47:55]MH_SAM_APDU [11:47:55]CAPDU: 80 17 00 00 [11:47:55]Write to MH i2c: E2 08 00 24 52 80 17 00 00 00 00 00 00 F6 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 FD 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 FD 00 24 52 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 EF [11:47:56]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 17 00 00 [11:47:56]Write to MH i2c: E2 08 00 25 52 80 17 00 00 00 00 00 00 F7 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 FD 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 FD 00 25 52 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [11:47:56]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:47:56]wFMCommunicate OK [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 17 00 00 [11:47:56]Write to MH i2c: E2 08 00 26 52 80 17 00 00 00 00 00 00 F8 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 FD 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 FD 00 26 52 00 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [11:47:56]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:47:56]wFMCommunicate OK [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 17 00 00 [11:47:56]Write to MH i2c: E2 08 00 27 52 80 17 00 00 00 00 00 00 F9 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [11:47:56]Read from MH i2c: E2 DD 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 DD 00 27 52 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E1 [11:47:56]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]SAM_PROTO_GetFMData done [11:47:56]requested_item fm.sale_refund.total is exist - process it [11:47:56]requested_item fm.buy.total is exist - process it [11:47:56]requested_item shift.sale.total is exist - process it [11:47:56]SAM_PROTO_GetShiftData [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 13 02 00 [11:47:56]Write to MH i2c: E2 08 00 28 52 80 13 02 00 00 00 00 00 F8 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 FD 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 FD 00 28 52 00 AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 0D CF 1D 70 04 03 00 68 E3 13 72 04 03 00 A5 EB 09 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 86 2A 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 8B 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E [11:47:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 0D CF 1D 70 04 03 00 68 E3 13 72 04 03 00 A5 EB 09 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 86 2A 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 8B 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:47:57]wFMCommunicate OK [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 17 00 00 [11:47:57]Write to MH i2c: E2 08 00 29 52 80 17 00 00 00 00 00 00 FB [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]OFD Sender: No OFD packet to send [11:47:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 FD 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 FD 00 29 52 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 1D [11:47:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:47:57]wFMCommunicate OK [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 17 00 00 [11:47:57]Write to MH i2c: E2 08 00 2A 52 80 17 00 00 00 00 00 00 FC [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 FD 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 FD 00 2A 52 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B3 [11:47:58]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 17 00 00 [11:47:58]Write to MH i2c: E2 08 00 2B 52 80 17 00 00 00 00 00 00 FD [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 FD 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 FD 00 2B 52 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 6F [11:47:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 17 00 00 [11:47:58]Write to MH i2c: E2 08 00 2C 52 80 17 00 00 00 00 00 00 FE [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 CB 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 CB 00 2C 52 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 E7 [11:47:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:47:58]wFMCommunicate OK [11:47:58]SAM_PROTO_GetShiftData done [11:47:58]requested_item shift.sale.total_cash is exist - process it [11:47:58]requested_item shift.sale_refund.total is exist - process it [11:47:58]requested_item shift.sale_refund.total_cash is exist - process it [11:47:58]requested_item shift.buy.total is exist - process it [11:47:58]requested_item shift.buy.total_cash is exist - process it [11:47:58]produce_requested_data done [11:47:58]produce_requested_data return {"fm.sale.total":26156619.60,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":19535.49,"shift.sale.total_cash":13034.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:47:58]process_action_free get_value [11:47:58]json_value_free [11:47:58]json_value_free done [11:47:58]process_json_proto returns [11:47:58]Send response to host [11:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26156619.60,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":19535.49,"shift.sale.total_cash":13034.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:47:58]free response buf [11:47:58]execute_script done [11:47:58]execute_script returns [11:47:58]free content buf [11:47:58]Sock 8.Close socket [11:47:58]Sock 8.Thread stoped [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:20]accept exits with 9 [11:49:20]New connection [11:49:20]New thread 3067014500 created [11:49:20]Thread 3066871140 joined [11:49:20]Waiting for new connection... [11:49:20] Sock 9.Parse request [11:49:20]Sock 9.Check first char [11:49:20]Sock 9.First char is OK [11:49:20]request: POST /json_proto HTTP/1.0 [11:49:20]Method: POST [11:49:20]URL: /json_proto [11:49:20]Method is POST - this is cgi request [11:49:20]url: /json_proto [11:49:20]query_string will be loaded in cgi processing [11:49:20]execute_cgi json_proto POST (null) [11:49:20]execute_cgi path=json_proto method=POST [11:49:20]POST find Content-Length [11:49:20]Host: 172.17.35.3:8080 [11:49:20]Content-Length: 215 [11:49:20]Content-Type: application/json [11:49:20] [11:49:20]POST finish read [11:49:20]Found Content-Length = 215 [11:49:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:20]execute_script... [11:49:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:20]POST & json_proto [11:49:20]process_json_proto [11:49:20]json parsed OK: [11:49:20]protocol is kg_v1.0 [11:49:20]action value=get_value [11:49:20]process_action get_value [11:49:20]cmd_get_value [11:49:20]process_action get_value done [11:49:20]requested_data is exist [11:49:20]produce_requested_data [11:49:20]requested_item kkm.sn is exist - process it [11:49:20]requested_item kkm.ver is exist - process it [11:49:20]requested_item fm.sn is exist - process it [11:49:20]wFMCommunicate request_size=4 [11:49:20]MH_SAM_APDU [11:49:20]CAPDU: 80 11 00 00 [11:49:20]Write to MH i2c: E2 08 00 2D 52 80 11 00 00 00 00 00 00 F9 [11:49:20]Write i2c OK [11:49:20]MH_I2C_Read... [11:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:20]Read from MH i2c: E2 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 17 00 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 17 00 2D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 51 [11:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:49:20]wFMCommunicate OK [11:49:20]requested_item fd.num is exist - process it [11:49:20]SAM_PROTO_GetFieldsCounters [11:49:20]wFMCommunicate request_size=4 [11:49:20]MH_SAM_APDU [11:49:20]CAPDU: 80 13 00 00 [11:49:20]Write to MH i2c: E2 08 00 2E 52 80 13 00 00 00 00 00 00 FC [11:49:20]Write i2c OK [11:49:20]MH_I2C_Read... [11:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:20]Read from MH i2c: E2 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 62 00 [11:49:20]MH_I2C_Read... [11:49:20]Read from MH i2c: E2 62 00 2E 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 69 00 00 0E 04 04 00 3B 01 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 [11:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 06 69 00 00 0E 04 04 00 3B 01 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 [11:49:20]wFMCommunicate OK [11:49:20]SAM_PROTO_GetFieldsCounters done [11:49:20]requested_item shift.num is exist - process it [11:49:20]requested_item shift.opened is exist - process it [11:49:20]req_shift_opened [11:49:20]FM_GetShiftState [11:49:20]SAM_PROTO_GetShiftState [11:49:20]wFMCommunicate request_size=4 [11:49:20]MH_SAM_APDU [11:49:20]CAPDU: 80 13 01 00 [11:49:20]Write to MH i2c: E2 08 00 2F 52 80 13 01 00 00 00 00 00 FE [11:49:20]Write i2c OK [11:49:20]MH_I2C_Read... [11:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:21]Read from MH i2c: E2 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 0E 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 0E 00 2F 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 69 [11:49:21]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:49:21]wFMCommunicate OK [11:49:21]SAM_PROTO_GetShiftState done [11:49:21]FM_GetShiftState done [11:49:21]req_shift_opened done [11:49:21]requested_item shift.open_date is exist - process it [11:49:21]req_shift_open_date [11:49:21]req_shift_open_date done [11:49:21]produce_requested_data done [11:49:21]produce_requested_data return {"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26886,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [11:49:21]process_action_free get_value [11:49:21]json_value_free [11:49:21]json_value_free done [11:49:21]process_json_proto returns [11:49:21]Send response to host [11:49:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000147","kkm.ver":"001","fm.sn":"0000000000874657","fd.num":26886,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [11:49:21]free response buf [11:49:21]execute_script done [11:49:21]execute_script returns [11:49:21]free content buf [11:49:21]Sock 9.Close socket [11:49:21]Sock 9.Thread stoped [11:49:21]accept exits with 10 [11:49:21]New connection [11:49:21]New thread 3066871140 created [11:49:21]Thread 3067014500 joined [11:49:21]Waiting for new connection... [11:49:21] Sock 10.Parse request [11:49:21]Sock 10.Check first char [11:49:21]Sock 10.First char is OK [11:49:21]request: POST /json_proto HTTP/1.0 [11:49:21]Method: POST [11:49:21]URL: /json_proto [11:49:21]Method is POST - this is cgi request [11:49:21]url: /json_proto [11:49:21]query_string will be loaded in cgi processing [11:49:21]execute_cgi json_proto POST (null) [11:49:21]execute_cgi path=json_proto method=POST [11:49:21]POST find Content-Length [11:49:21]Host: 172.17.35.3:8080 [11:49:21]Content-Length: 331 [11:49:21]Content-Type: application/json [11:49:21] [11:49:21]POST finish read [11:49:21]Found Content-Length = 331 [11:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:49:21]execute_script... [11:49:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:49:21]POST & json_proto [11:49:21]process_json_proto [11:49:21]json parsed OK: [11:49:21]protocol is kg_v1.0 [11:49:21]action value=get_value [11:49:21]process_action get_value [11:49:21]cmd_get_value [11:49:21]process_action get_value done [11:49:21]requested_data is exist [11:49:21]produce_requested_data [11:49:21]requested_item fm.sale.total is exist - process it [11:49:21]SAM_PROTO_GetFMData [11:49:21]wFMCommunicate request_size=4 [11:49:21]MH_SAM_APDU [11:49:21]CAPDU: 80 13 03 00 [11:49:21]Write to MH i2c: E2 08 00 30 52 80 13 03 00 00 00 00 00 01 [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:49:21]Read from MH i2c: E2 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 FD 00 [11:49:21]MH_I2C_Read... [11:49:21]Read from MH i2c: E2 FD 00 30 52 00 C0 04 85 04 BC 04 6E 04 04 00 90 66 00 00 69 04 A1 00 6F 04 04 00 4D 66 00 00 B1 04 04 00 88 D5 E7 9B 70 04 04 00 EC 7B E5 7F 72 04 04 00 9C 59 02 1C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 70 8F 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E3 42 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 1B [11:49:21]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 90 66 00 00 69 04 A1 00 6F 04 04 00 4D 66 00 00 B1 04 04 00 88 D5 E7 9B 70 04 04 00 EC 7B E5 7F 72 04 04 00 9C 59 02 1C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 3E 70 8F 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E3 42 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 43 00 00 00 B1 04 03 00 44 F4 BC 70 04 03 00 44 F4 BC 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 11 14 EF 03 09 00 F6 03 01 00 90 00 [11:49:21]wFMCommunicate OK [11:49:21]wFMCommunicate request_size=4 [11:49:21]MH_SAM_APDU [11:49:21]CAPDU: 80 17 00 00 [11:49:21]Write to MH i2c: E2 08 00 31 52 80 17 00 00 00 00 00 00 03 [11:49:21]Write i2c OK [11:49:21]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 FD 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 FD 00 31 52 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 FC [11:49:22]RAPDU: 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [11:49:22]wFMCommunicate OK [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 17 00 00 [11:49:22]Write to MH i2c: E2 08 00 32 52 80 17 00 00 00 00 00 00 04 [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 FD 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 FD 00 32 52 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [11:49:22]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:49:22]wFMCommunicate OK [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 17 00 00 [11:49:22]Write to MH i2c: E2 08 00 33 52 80 17 00 00 00 00 00 00 05 [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 FD 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 FD 00 33 52 00 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [11:49:22]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:49:22]wFMCommunicate OK [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 17 00 00 [11:49:22]Write to MH i2c: E2 08 00 34 52 80 17 00 00 00 00 00 00 06 [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:22]OFD Sender: No OFD packet to send [11:49:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [11:49:22]Read from MH i2c: E2 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 DD 00 [11:49:22]MH_I2C_Read... [11:49:22]Read from MH i2c: E2 DD 00 34 52 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EE [11:49:22]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:49:22]wFMCommunicate OK [11:49:22]SAM_PROTO_GetFMData done [11:49:22]requested_item fm.sale_refund.total is exist - process it [11:49:22]requested_item fm.buy.total is exist - process it [11:49:22]requested_item shift.sale.total is exist - process it [11:49:22]SAM_PROTO_GetShiftData [11:49:22]wFMCommunicate request_size=4 [11:49:22]MH_SAM_APDU [11:49:22]CAPDU: 80 13 02 00 [11:49:22]Write to MH i2c: E2 08 00 35 52 80 13 02 00 00 00 00 00 05 [11:49:22]Write i2c OK [11:49:22]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 FD 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 FD 00 35 52 00 AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 0D CF 1D 70 04 03 00 68 E3 13 72 04 03 00 A5 EB 09 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 86 2A 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 8B 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5B [11:49:23]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 0D CF 1D 70 04 03 00 68 E3 13 72 04 03 00 A5 EB 09 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 86 2A 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 8B 43 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:23]wFMCommunicate OK [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 17 00 00 [11:49:23]Write to MH i2c: E2 08 00 36 52 80 17 00 00 00 00 00 00 08 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 FD 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 FD 00 36 52 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 2A [11:49:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:49:23]wFMCommunicate OK [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 17 00 00 [11:49:23]Write to MH i2c: E2 08 00 37 52 80 17 00 00 00 00 00 00 09 [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:49:23]Read from MH i2c: E2 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 FD 00 [11:49:23]MH_I2C_Read... [11:49:23]Read from MH i2c: E2 FD 00 37 52 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C0 [11:49:23]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [11:49:23]wFMCommunicate OK [11:49:23]wFMCommunicate request_size=4 [11:49:23]MH_SAM_APDU [11:49:23]CAPDU: 80 17 00 00 [11:49:23]Write to MH i2c: E2 08 00 38 52 80 17 00 00 00 00 00 00 0A [11:49:23]Write i2c OK [11:49:23]MH_I2C_Read... [11:49:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:49:24]Read from MH i2c: E2 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 FD 00 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 FD 00 38 52 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 7C [11:49:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:49:24]wFMCommunicate OK [11:49:24]wFMCommunicate request_size=4 [11:49:24]MH_SAM_APDU [11:49:24]CAPDU: 80 17 00 00 [11:49:24]Write to MH i2c: E2 08 00 39 52 80 17 00 00 00 00 00 00 0B [11:49:24]Write i2c OK [11:49:24]MH_I2C_Read... [11:49:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:49:24]Read from MH i2c: E2 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 CB 00 [11:49:24]MH_I2C_Read... [11:49:24]Read from MH i2c: E2 CB 00 39 52 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 F4 [11:49:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:49:24]wFMCommunicate OK [11:49:24]SAM_PROTO_GetShiftData done [11:49:24]requested_item shift.sale.total_cash is exist - process it [11:49:24]requested_item shift.sale_refund.total is exist - process it [11:49:24]requested_item shift.sale_refund.total_cash is exist - process it [11:49:24]requested_item shift.buy.total is exist - process it [11:49:24]requested_item shift.buy.total_cash is exist - process it [11:49:24]produce_requested_data done [11:49:24]produce_requested_data return {"fm.sale.total":26156619.60,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":19535.49,"shift.sale.total_cash":13034.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:49:24]process_action_free get_value [11:49:24]json_value_free [11:49:24]json_value_free done [11:49:24]process_json_proto returns [11:49:24]Send response to host [11:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":26156619.60,"fm.sale_refund.total":123833.00,"fm.buy.total":0.00,"shift.sale.total":19535.49,"shift.sale.total_cash":13034.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:49:24]free response buf [11:49:24]execute_script done [11:49:24]execute_script returns [11:49:24]free content buf [11:49:24]Sock 10.Close socket [11:49:24]Sock 10.Thread stoped [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:01]accept exits with 8 [11:52:01]New connection [11:52:01]New thread 3067014500 created [11:52:01]Thread 3066871140 joined [11:52:01]Waiting for new connection... [11:52:01] Sock 8.Parse request [11:52:01]Sock 8.Check first char [11:52:01]Sock 8.First char is OK [11:52:01]request: POST /json_proto HTTP/1.0 [11:52:01]Method: POST [11:52:01]URL: /json_proto [11:52:01]Method is POST - this is cgi request [11:52:01]url: /json_proto [11:52:01]query_string will be loaded in cgi processing [11:52:01]execute_cgi json_proto POST (null) [11:52:01]execute_cgi path=json_proto method=POST [11:52:01]POST find Content-Length [11:52:01]Host: 172.17.35.3:8080 [11:52:01]Content-Length: 682 [11:52:01]Content-Type: application/json [11:52:01] [11:52:01]POST finish read [11:52:01]Found Content-Length = 682 [11:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 9.750, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:01]execute_script... [11:52:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 9.750, "sum" : 700.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:01]POST & json_proto [11:52:01]process_json_proto [11:52:01]json parsed OK: [11:52:01]protocol is kg_v1.0 [11:52:01]action value=close_receipt [11:52:01]process_action close_receipt [11:52:01]cmd_close_receipt [11:52:01]MH_GetDate [11:52:01]Write to MH i2c: F0 00 00 3A 52 7B [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 09 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 09 00 3A 52 00 F5 2B 15 66 2B 11 66 64 25 [11:52:01]GetLastDocTimeStamp 1712663184 [11:52:01]current date 1712663541 [11:52:01]FM_GetShiftState [11:52:01]SAM_PROTO_GetShiftState [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 13 01 00 [11:52:01]Write to MH i2c: E2 08 00 3B 52 80 13 01 00 00 00 00 00 0A [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0E 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0E 00 3B 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 75 [11:52:01]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:52:01]wFMCommunicate OK [11:52:01]SAM_PROTO_GetShiftState done [11:52:01]FM_GetShiftState done [11:52:01]opened in 1712622936 [11:52:01]opened+sec_in_day 1712709336 [11:52:01]quantity*price = 70005 [11:52:01]sum+1 = 70006 [11:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 19 09.04.2024 11:52 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26887 ФПД: 150903539365413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T115221&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26887&fm=150903539365413&tin=02508201610067®Number=0000000000091578&sum=70000 [11:52:02]StoreToDocumentArchive [11:52:02]shift 315 fd 26887 [11:52:02]save to /storage/0315/doc_00026887 [11:52:02]save last doc name /storage/0315/doc_00026887 to /storage/kkm_last_doc_name [11:52:02]save OK [11:52:02]Clear old archive folders... [11:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:52:02]tlvbuf is 00E330C0 [11:52:02]SAM_PROTO_ClearQueue [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 09 00 00 [11:52:02]Write to MH i2c: E2 08 00 48 52 80 09 00 00 00 00 00 00 0C [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 48 52 00 90 00 0E [11:52:02]RAPDU: 90 00 [11:52:02]wFMCommunicate OK [11:52:02]SAM_PROTO_ClearQueue done [11:52:02]KKMCreateOFDPacket [11:52:02]OFDProtocolAddRootSTLVToBuf [11:52:02]FM_MakeSignedData [11:52:02]FM_MakeSignedData [11:52:02]SAM_PROTO_SignData [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 0D 01 02 [11:52:02]Write to MH i2c: E2 08 00 49 52 80 0D 01 02 00 00 00 00 14 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 49 52 00 90 00 0F [11:52:02]RAPDU: 90 00 [11:52:02]wFMCommunicate OK [11:52:02]wFMCommunicate request_size=255 [11:52:02]MH_SAM_APDU [11:52:02]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 16 26 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F5 2B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 69 00 00 35 04 06 00 [11:52:02]Write to MH i2c: E2 02 01 4A 52 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 16 26 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F5 2B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 69 00 00 35 04 06 00 00 00 40 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]OFD Sender: No OFD packet to send [11:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 4A 52 00 90 00 10 [11:52:03]RAPDU: 90 00 [11:52:03]wFMCommunicate OK [11:52:03]wFMCommunicate request_size=11 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 0D 02 02 06 89 3E F7 DB F6 25 [11:52:03]Write to MH i2c: E2 0E 00 4B 52 80 0D 02 02 06 00 89 3E F7 DB F6 25 00 00 D7 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 4B 52 00 90 00 11 [11:52:03]RAPDU: 90 00 [11:52:03]wFMCommunicate OK [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 0D 03 02 [11:52:03]Write to MH i2c: E2 08 00 4C 52 80 0D 03 02 00 00 00 00 19 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 0B 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 0B 00 4C 52 00 1D FC 6D 04 65 FB 66 8E 90 00 F8 [11:52:03]RAPDU: 1D FC 6D 04 65 FB 66 8E 90 00 [11:52:03]wFMCommunicate OK [11:52:03]SAM_PROTO_SignData done [11:52:03]FM_MakeSignedData done [11:52:03]CreateOFDProtocolMessage [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 11 00 00 [11:52:03]Write to MH i2c: E2 08 00 4D 52 80 11 00 00 00 00 00 00 19 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 4D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 71 [11:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:52:03]wFMCommunicate OK [11:52:03]CreateOFDProtocolMessage done [11:52:03]OFDSenderStorePacket 26887 [11:52:03]StoreOFDPacket docnum=26887 [11:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 DB 5D 08 01 04 ED 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 16 26 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F5 2B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 69 00 00 35 04 06 00 89 3E F7 DB F6 25 1D FC 6D 04 65 FB 66 8E [11:52:03]CheckFolder [11:52:03]dirname=/storage/ofd_packets [11:52:03]CheckFolder done [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00026887 [11:52:03]NVStorageSaveData ofd_packets/00026887 [11:52:03]File name is /storage/ofd_packets/00026887 [11:52:03]Write 302 bytes [11:52:03]NVStorageSaveData done [11:52:03]OFDSenderStorePacket done [11:52:03]KKMCreateOFDPacket done [11:52:03]NVStorageSaveData kkm_last_timestamp [11:52:03]File name is /storage/kkm_last_timestamp [11:52:03]Write 4 bytes [11:52:03]NVStorageSaveData done [11:52:03]ExternCall_PrintAddStr [11:52:03]wPrintStart [11:52:03]Write to MH i2c: 01 00 00 4E 52 A0 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 4E 52 00 00 00 00 00 FF 0F B5 [11:52:03]RasterBufferAndPrint [11:52:03]line Счет N : (1)359632 [11:52:03]line ИНН: 02508201610067 [11:52:03]line Контрольно-Кассовый Чек [11:52:03]line ПРОДАЖА [11:52:03]line ТРК (МРК, ГНК) : 21 [11:52:03]line Товар: 2710194210 [11:52:03]line ДТ(л)-К-5 [11:52:03]line 9.750 * 71.80 [11:52:03]line = 700.05 [11:52:03]line НДС 12% НСП 1% [11:52:03]line > о реализуемом товаре [11:52:03]line ОКРУГЛЕНИЕ: -0.05 [11:52:03]line ИТОГО: 700.00 [11:52:03]line Внесено: 700.00 [11:52:03]line СДАЧА: 0.00 [11:52:03]line НСП 1% : 6.19 [11:52:03]line НДС 12% : 74.34 [11:52:03]line Наличными: 700.00 [11:52:03]line Безнал.: 0.00 [11:52:03]line Место: АЗС № 122 "Партнер Нефть" [11:52:03]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [11:52:03]line СНО: Общий режим [11:52:03]line Чек 19 09.04.2024 11:52 [11:52:03]line Смена: 315 ФФД: 1.0 [11:52:03]line ЗНМ: 0300000147 [11:52:03]line РНМ: 0000000000091578 [11:52:03]line Версия ККМ: 001 [11:52:03]line ФМ: 0000000000874657 [11:52:03]line ФД: 26887 [11:52:03]line ФПД: 150903539365413 [11:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T115221&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26887&fm=150903539365413&tin=02508201610067®Number=0000000000091578&sum=70000 [11:52:03]OFD Sender: Processing packet 26887 [packets to send 44, broken 43] [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00026887 [11:52:03]OFD Sender: To server: pG, [11:52:03]CommunicateWithHost lk.salyk.kg:30040 [11:52:03]ConnectInit lk.salyk.kg [11:52:03]written 0, free lines is 4095 [11:52:03]Connected sock=10 [11:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 DB 5D 08 01 04 ED 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 16 26 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 75 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 F5 2B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 69 00 00 35 04 06 00 89 3E F7 DB F6 25 1D FC 6D 04 65 FB 66 8E [11:52:04]Write to MH i2c: 01 00 00 79 52 CB [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 79 52 00 00 00 00 00 74 0C 52 [11:52:04]RasterBufferAndPrint [11:52:04]line [11:52:04]line [11:52:04]line [11:52:04]line [11:52:04]line [11:52:04]written 0, free lines is 3191 [11:52:04]MH_Cut [11:52:04]Write to MH i2c: D1 01 00 80 52 01 A4 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: D1 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: D1 01 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: D1 01 00 80 52 00 A3 [11:52:04]Write to MH i2c: 01 00 00 81 52 D3 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 B0 13 47 00 92 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 07 69 00 00 F4 03 04 00 5C D3 14 66 B6 04 01 00 00 BF E4 F1 6B 32 A8 14 3B [11:52:04]CommunicateWithHost err = 0 [11:52:04]CheckOFDResponse [11:52:04]1017 (14) - 77093643461234 [11:52:04]1041 (16) - 0000000000874657 [11:52:04]1040 (4) - 26887 [11:52:04]1012 (4) - 09.04.2024 05:34 [11:52:04]1206 (1) - 0 [11:52:04]OFD Sender: Remove packet 26887 [11:52:04]ProducePacketName [11:52:04]name=ofd_packets/00026887 [11:52:04]NVStorageDeleteData [11:52:04]OFD Sender: No OFD packet to send [11:52:05]*** Cut start [11:52:05]*** Partial cut [11:52:05]*** CUTSNS_PIN = 1 [11:52:05]*** CUTSNS_PIN = 0 [11:52:05]*** Brake cut motor [11:52:05]Read from MH i2c: 01 [11:52:05]MH_I2C_Read... [11:52:05]*** Stop cut motor [11:52:05]*** Cut end [11:52:05]Read from MH i2c: 01 07 00 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: 01 07 00 81 52 00 00 00 00 00 FF 0F E8 [11:52:05]process_action close_receipt done [11:52:05]requested_data is exist [11:52:05]produce_requested_data [11:52:05]requested_item fm.sn is exist - process it [11:52:05]wFMCommunicate request_size=4 [11:52:05]MH_SAM_APDU [11:52:05]CAPDU: 80 11 00 00 [11:52:05]Write to MH i2c: E2 08 00 82 52 80 11 00 00 00 00 00 00 4E [11:52:05]Write i2c OK [11:52:05]MH_I2C_Read... [11:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:05]Read from MH i2c: E2 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: E2 17 00 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: E2 17 00 82 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 A6 [11:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [11:52:05]wFMCommunicate OK [11:52:05]requested_item fd.num is exist - process it [11:52:05]SAM_PROTO_GetFieldsCounters [11:52:05]wFMCommunicate request_size=4 [11:52:05]MH_SAM_APDU [11:52:05]CAPDU: 80 13 00 00 [11:52:05]Write to MH i2c: E2 08 00 83 52 80 13 00 00 00 00 00 00 51 [11:52:05]Write i2c OK [11:52:05]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 62 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 62 00 83 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 07 69 00 00 0E 04 04 00 3B 01 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 61 [11:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 07 69 00 00 0E 04 04 00 3B 01 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 [11:52:06]wFMCommunicate OK [11:52:06]SAM_PROTO_GetFieldsCounters done [11:52:06]requested_item shift.num is exist - process it [11:52:06]requested_item shift.opened is exist - process it [11:52:06]req_shift_opened [11:52:06]FM_GetShiftState [11:52:06]SAM_PROTO_GetShiftState [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 13 01 00 [11:52:06]Write to MH i2c: E2 08 00 84 52 80 13 01 00 00 00 00 00 53 [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 84 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 BE [11:52:06]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [11:52:06]wFMCommunicate OK [11:52:06]SAM_PROTO_GetShiftState done [11:52:06]FM_GetShiftState done [11:52:06]req_shift_opened done [11:52:06]requested_item shift.open_date is exist - process it [11:52:06]req_shift_open_date [11:52:06]req_shift_open_date done [11:52:06]produce_requested_data done [11:52:06]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26887,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [11:52:06]process_action_free close_receipt [11:52:06]json_value_free [11:52:06]json_value_free done [11:52:06]process_json_proto returns [11:52:06]Send response to host [11:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26887,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [11:52:06]free response buf [11:52:06]execute_script done [11:52:06]execute_script returns [11:52:06]free content buf [11:52:06]Sock 8.Close socket [11:52:06]Sock 8.Thread stoped [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:03:59]accept exits with 9 [12:03:59]New connection [12:03:59]New thread 3066871140 created [12:03:59]Thread 3067014500 joined [12:03:59]Waiting for new connection... [12:03:59] Sock 9.Parse request [12:03:59]Sock 9.Check first char [12:03:59]Sock 9.First char is OK [12:03:59]request: POST /json_proto HTTP/1.0 [12:03:59]Method: POST [12:03:59]URL: /json_proto [12:03:59]Method is POST - this is cgi request [12:03:59]url: /json_proto [12:03:59]query_string will be loaded in cgi processing [12:03:59]execute_cgi json_proto POST (null) [12:03:59]execute_cgi path=json_proto method=POST [12:03:59]POST find Content-Length [12:03:59]Host: 172.17.35.3:8080 [12:03:59]Content-Length: 808 [12:03:59]Content-Type: application/json [12:03:59] [12:03:59]POST finish read [12:03:59]Found Content-Length = 808 [12:03:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 41.790, "sum" : 3000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:59]execute_script... [12:03:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 41.790, "sum" : 3000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:59]POST & json_proto [12:03:59]process_json_proto [12:03:59]json parsed OK: [12:03:59]protocol is kg_v1.0 [12:03:59]action value=close_receipt [12:03:59]process_action close_receipt [12:03:59]cmd_close_receipt [12:03:59]MH_GetDate [12:03:59]Write to MH i2c: F0 00 00 85 52 C6 [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: F0 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: F0 09 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: F0 09 00 85 52 00 C3 2E 15 66 2B 11 66 64 41 [12:03:59]GetLastDocTimeStamp 1712663541 [12:03:59]current date 1712664259 [12:03:59]FM_GetShiftState [12:03:59]SAM_PROTO_GetShiftState [12:03:59]wFMCommunicate request_size=4 [12:03:59]MH_SAM_APDU [12:03:59]CAPDU: 80 13 01 00 [12:03:59]Write to MH i2c: E2 08 00 86 52 80 13 01 00 00 00 00 00 55 [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:59]Read from MH i2c: E2 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 0E 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: E2 0E 00 86 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C0 [12:03:59]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:03:59]wFMCommunicate OK [12:03:59]SAM_PROTO_GetShiftState done [12:03:59]FM_GetShiftState done [12:03:59]opened in 1712622936 [12:03:59]opened+sec_in_day 1712709336 [12:03:59]quantity*price = 300052 [12:03:59]sum+1 = 300053 [12:03:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.52 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.52 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 20 09.04.2024 12:04 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26888 ФПД: 87533531683873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T120419&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26888&fm=87533531683873&tin=02508201610067®Number=0000000000091578&sum=300052 [12:04:00]StoreToDocumentArchive [12:04:00]shift 315 fd 26888 [12:04:00]save to /storage/0315/doc_00026888 [12:04:00]save last doc name /storage/0315/doc_00026888 to /storage/kkm_last_doc_name [12:04:00]save OK [12:04:00]Clear old archive folders... [12:04:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:04:00]tlvbuf is 00F3EC90 [12:04:00]SAM_PROTO_ClearQueue [12:04:00]wFMCommunicate request_size=4 [12:04:00]MH_SAM_APDU [12:04:00]CAPDU: 80 09 00 00 [12:04:00]Write to MH i2c: E2 08 00 93 52 80 09 00 00 00 00 00 00 57 [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:00]Read from MH i2c: E2 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 03 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 03 00 93 52 00 90 00 59 [12:04:00]RAPDU: 90 00 [12:04:00]wFMCommunicate OK [12:04:00]SAM_PROTO_ClearQueue done [12:04:00]KKMCreateOFDPacket [12:04:00]OFDProtocolAddRootSTLVToBuf [12:04:00]FM_MakeSignedData [12:04:00]FM_MakeSignedData [12:04:00]SAM_PROTO_SignData [12:04:00]wFMCommunicate request_size=4 [12:04:00]MH_SAM_APDU [12:04:00]CAPDU: 80 0D 01 02 [12:04:00]Write to MH i2c: E2 08 00 94 52 80 0D 01 02 00 00 00 00 5F [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:00]Read from MH i2c: E2 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 03 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 03 00 94 52 00 90 00 5A [12:04:00]RAPDU: 90 00 [12:04:00]wFMCommunicate OK [12:04:00]wFMCommunicate request_size=255 [12:04:00]MH_SAM_APDU [12:04:00]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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C3 2E 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 69 00 00 35 04 06 00 [12:04:00]Write to MH i2c: E2 02 01 95 52 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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C3 2E 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 69 00 00 35 04 06 00 00 00 45 [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:01]Read from MH i2c: E2 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 95 52 00 90 00 5B [12:04:01]RAPDU: 90 00 [12:04:01]wFMCommunicate OK [12:04:01]wFMCommunicate request_size=11 [12:04:01]MH_SAM_APDU [12:04:01]CAPDU: 80 0D 02 02 06 4F 9C 7D 0F DC 21 [12:04:01]Write to MH i2c: E2 0E 00 96 52 80 0D 02 02 06 00 4F 9C 7D 0F DC 21 00 00 E2 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:01]Read from MH i2c: E2 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 03 00 96 52 00 90 00 5C [12:04:01]RAPDU: 90 00 [12:04:01]wFMCommunicate OK [12:04:01]wFMCommunicate request_size=4 [12:04:01]MH_SAM_APDU [12:04:01]CAPDU: 80 0D 03 02 [12:04:01]Write to MH i2c: E2 08 00 97 52 80 0D 03 02 00 00 00 00 64 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:01]Read from MH i2c: E2 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 0B 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 0B 00 97 52 00 1D 9E 3F 75 BA E2 27 64 90 00 FB [12:04:01]RAPDU: 1D 9E 3F 75 BA E2 27 64 90 00 [12:04:01]wFMCommunicate OK [12:04:01]SAM_PROTO_SignData done [12:04:01]FM_MakeSignedData done [12:04:01]CreateOFDProtocolMessage [12:04:01]wFMCommunicate request_size=4 [12:04:01]MH_SAM_APDU [12:04:01]CAPDU: 80 11 00 00 [12:04:01]Write to MH i2c: E2 08 00 98 52 80 11 00 00 00 00 00 00 64 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:01]Read from MH i2c: E2 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 17 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: E2 17 00 98 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 BC [12:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:04:01]wFMCommunicate OK [12:04:01]CreateOFDProtocolMessage done [12:04:01]OFDSenderStorePacket 26888 [12:04:01]StoreOFDPacket docnum=26888 [12:04:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 89 36 08 01 F4 AC 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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C3 2E 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 69 00 00 35 04 06 00 4F 9C 7D 0F DC 21 1D 9E 3F 75 BA E2 27 64 [12:04:01]CheckFolder [12:04:01]dirname=/storage/ofd_packets [12:04:01]CheckFolder done [12:04:01]ProducePacketName [12:04:01]name=ofd_packets/00026888 [12:04:01]NVStorageSaveData ofd_packets/00026888 [12:04:01]File name is /storage/ofd_packets/00026888 [12:04:01]Write 302 bytes [12:04:01]NVStorageSaveData done [12:04:01]OFDSenderStorePacket done [12:04:01]KKMCreateOFDPacket done [12:04:01]NVStorageSaveData kkm_last_timestamp [12:04:01]File name is /storage/kkm_last_timestamp [12:04:01]Write 4 bytes [12:04:01]NVStorageSaveData done [12:04:01]ExternCall_PrintAddStr [12:04:01]wPrintStart [12:04:01]Write to MH i2c: 01 00 00 99 52 EB [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 99 52 00 00 00 00 00 FF 0F 00 [12:04:01]RasterBufferAndPrint [12:04:01]line Счет N : (1)359633 [12:04:01]line ИНН: 02508201610067 [12:04:01]line Контрольно-Кассовый Чек [12:04:01]line ПРОДАЖА [12:04:01]line ТРК (МРК, ГНК) : 21 [12:04:01]line Товар: 2710194210 [12:04:01]line ДТ(л)-К-5 [12:04:01]line 41.790 * 71.80 [12:04:01]line = 3000.52 [12:04:01]line НДС 12% НСП 1% [12:04:01]line > о реализуемом товаре [12:04:01]line ИТОГО: 3000.52 [12:04:01]line НСП 1% : 26.55 [12:04:01]line НДС 12% : 318.64 [12:04:01]line Наличными: 0.00 [12:04:01]line Безнал.: 3000.52 [12:04:01]line Место: АЗС № 122 "Партнер Нефть" [12:04:01]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:04:01]line СНО: Общий режим [12:04:01]line Чек 20 09.04.2024 12:04 [12:04:01]line Смена: 315 ФФД: 1.0 [12:04:01]line ЗНМ: 0300000147 [12:04:01]line РНМ: 0000000000091578 [12:04:01]line Версия ККМ: 001 [12:04:01]line Платежная система: O! деньги [12:04:01]line ФМ: 0000000000874657 [12:04:01]line ФД: 26888 [12:04:01]line ФПД: 87533531683873 [12:04:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T120419&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26888&fm=87533531683873&tin=02508201610067®Number=0000000000091578&sum=300052 [12:04:01]OFD Sender: Processing packet 26888 [packets to send 44, broken 43] [12:04:01]ProducePacketName [12:04:01]name=ofd_packets/00026888 [12:04:01]OFD Sender: To server: pG, [12:04:01]CommunicateWithHost lk.salyk.kg:30040 [12:04:01]ConnectInit lk.salyk.kg [12:04:01]written 0, free lines is 4095 [12:04:01]Connected sock=10 [12:04:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 89 36 08 01 F4 AC 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 3E A3 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 14 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C3 2E 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 69 00 00 35 04 06 00 4F 9C 7D 0F DC 21 1D 9E 3F 75 BA E2 27 64 [12:04:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 71 1E 47 00 A7 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 08 69 00 00 F4 03 04 00 2A D6 14 66 B6 04 01 00 00 FB BD 65 A6 5D C3 33 A3 [12:04:01]CommunicateWithHost err = 0 [12:04:01]CheckOFDResponse [12:04:01]1017 (14) - 77093643461234 [12:04:01]1041 (16) - 0000000000874657 [12:04:01]1040 (4) - 26888 [12:04:01]1012 (4) - 09.04.2024 05:46 [12:04:01]1206 (1) - 0 [12:04:01]OFD Sender: Remove packet 26888 [12:04:01]ProducePacketName [12:04:01]name=ofd_packets/00026888 [12:04:01]NVStorageDeleteData [12:04:01]Write to MH i2c: 01 00 00 C3 52 15 [12:04:01]Write i2c OK [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 [12:04:01]MH_I2C_Read... [12:04:01]Read from MH i2c: 01 07 00 C3 52 00 00 00 00 00 88 0C B0 [12:04:01]RasterBufferAndPrint [12:04:01]line [12:04:01]line [12:04:01]line [12:04:01]line [12:04:01]line [12:04:02]written 0, free lines is 3212 [12:04:02]MH_Cut [12:04:02]Write to MH i2c: D1 01 00 CA 52 01 EE [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: D1 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: D1 01 00 [12:04:02]MH_I2C_Read... [12:04:02]Read from MH i2c: D1 01 00 CA 52 00 ED [12:04:02]Write to MH i2c: 01 00 00 CB 52 1D [12:04:02]Write i2c OK [12:04:02]MH_I2C_Read... [12:04:02]OFD Sender: No OFD packet to send [12:04:03]*** Cut start [12:04:03]*** Partial cut [12:04:03]*** CUTSNS_PIN = 1 [12:04:03]*** CUTSNS_PIN = 0 [12:04:03]*** Brake cut motor [12:04:03]Read from MH i2c: 01 [12:04:03]MH_I2C_Read... [12:04:03]*** Stop cut motor [12:04:03]*** Cut end [12:04:03]Read from MH i2c: 01 07 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: 01 07 00 CB 52 00 00 00 00 00 FF 0F 32 [12:04:03]process_action close_receipt done [12:04:03]requested_data is exist [12:04:03]produce_requested_data [12:04:03]requested_item fm.sn is exist - process it [12:04:03]wFMCommunicate request_size=4 [12:04:03]MH_SAM_APDU [12:04:03]CAPDU: 80 11 00 00 [12:04:03]Write to MH i2c: E2 08 00 CC 52 80 11 00 00 00 00 00 00 98 [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:03]Read from MH i2c: E2 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: E2 17 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: E2 17 00 CC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F0 [12:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:04:03]wFMCommunicate OK [12:04:03]requested_item fd.num is exist - process it [12:04:03]SAM_PROTO_GetFieldsCounters [12:04:03]wFMCommunicate request_size=4 [12:04:03]MH_SAM_APDU [12:04:03]CAPDU: 80 13 00 00 [12:04:03]Write to MH i2c: E2 08 00 CD 52 80 13 00 00 00 00 00 00 9B [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 62 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 62 00 CD 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 08 69 00 00 0E 04 04 00 3B 01 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 AF [12:04:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 08 69 00 00 0E 04 04 00 3B 01 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 [12:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_GetFieldsCounters done [12:04:04]requested_item shift.num is exist - process it [12:04:04]requested_item shift.opened is exist - process it [12:04:04]req_shift_opened [12:04:04]FM_GetShiftState [12:04:04]SAM_PROTO_GetShiftState [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 13 01 00 [12:04:04]Write to MH i2c: E2 08 00 CE 52 80 13 01 00 00 00 00 00 9D [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0E 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 0E 00 CE 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 08 [12:04:04]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_GetShiftState done [12:04:04]FM_GetShiftState done [12:04:04]req_shift_opened done [12:04:04]requested_item shift.open_date is exist - process it [12:04:04]req_shift_open_date [12:04:04]req_shift_open_date done [12:04:04]produce_requested_data done [12:04:04]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26888,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [12:04:04]process_action_free close_receipt [12:04:04]json_value_free [12:04:04]json_value_free done [12:04:04]process_json_proto returns [12:04:04]Send response to host [12:04:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26888,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [12:04:04]free response buf [12:04:04]execute_script done [12:04:04]execute_script returns [12:04:04]free content buf [12:04:04]Sock 9.Close socket [12:04:04]Sock 9.Thread stoped [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]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:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]accept exits with 8 [12:25:13]New connection [12:25:13]New thread 3067014500 created [12:25:13]Thread 3066871140 joined [12:25:13]Waiting for new connection... [12:25:13] Sock 8.Parse request [12:25:13]Sock 8.Check first char [12:25:13]Sock 8.First char is OK [12:25:13]request: POST /json_proto HTTP/1.0 [12:25:13]Method: POST [12:25:13]URL: /json_proto [12:25:13]Method is POST - this is cgi request [12:25:13]url: /json_proto [12:25:13]query_string will be loaded in cgi processing [12:25:13]execute_cgi json_proto POST (null) [12:25:13]execute_cgi path=json_proto method=POST [12:25:13]POST find Content-Length [12:25:13]Host: 172.17.35.3:8080 [12:25:13]Content-Length: 808 [12:25:13]Content-Type: application/json [12:25:13] [12:25:13]POST finish read [12:25:13]Found Content-Length = 808 [12:25:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359634", "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" : 71.80, "quantity" : 27.860, "sum" : 2000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:13]execute_script... [12:25:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359634", "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" : 71.80, "quantity" : 27.860, "sum" : 2000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:13]POST & json_proto [12:25:13]process_json_proto [12:25:13]json parsed OK: [12:25:13]protocol is kg_v1.0 [12:25:13]action value=close_receipt [12:25:13]process_action close_receipt [12:25:13]cmd_close_receipt [12:25:13]MH_GetDate [12:25:13]Write to MH i2c: F0 00 00 CF 52 10 [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: F0 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: F0 09 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: F0 09 00 CF 52 00 BD 33 15 66 2B 11 66 64 8A [12:25:13]GetLastDocTimeStamp 1712664259 [12:25:13]current date 1712665533 [12:25:13]FM_GetShiftState [12:25:13]SAM_PROTO_GetShiftState [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 13 01 00 [12:25:13]Write to MH i2c: E2 08 00 D0 52 80 13 01 00 00 00 00 00 9F [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 0E 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 0E 00 D0 52 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 0A [12:25:13]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:25:13]wFMCommunicate OK [12:25:13]SAM_PROTO_GetShiftState done [12:25:13]FM_GetShiftState done [12:25:13]opened in 1712622936 [12:25:13]opened+sec_in_day 1712709336 [12:25:13]quantity*price = 200034 [12:25:13]sum+1 = 200036 [12:25:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.35 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.35 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 21 09.04.2024 12:25 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26889 ФПД: 112766801253172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T122533&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26889&fm=112766801253172&tin=02508201610067®Number=0000000000091578&sum=200035 [12:25:14]StoreToDocumentArchive [12:25:14]shift 315 fd 26889 [12:25:14]save to /storage/0315/doc_00026889 [12:25:14]save last doc name /storage/0315/doc_00026889 to /storage/kkm_last_doc_name [12:25:14]save OK [12:25:14]Clear old archive folders... [12:25:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:25:14]tlvbuf is 00EDB9D0 [12:25:14]SAM_PROTO_ClearQueue [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 09 00 00 [12:25:14]Write to MH i2c: E2 08 00 DD 52 80 09 00 00 00 00 00 00 A1 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 DD 52 00 90 00 A3 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]SAM_PROTO_ClearQueue done [12:25:14]KKMCreateOFDPacket [12:25:14]OFDProtocolAddRootSTLVToBuf [12:25:14]FM_MakeSignedData [12:25:14]FM_MakeSignedData [12:25:14]SAM_PROTO_SignData [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 0D 01 02 [12:25:14]Write to MH i2c: E2 08 00 DE 52 80 0D 01 02 00 00 00 00 A9 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 DE 52 00 90 00 A4 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]wFMCommunicate request_size=255 [12:25:14]MH_SAM_APDU [12:25:14]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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 BD 33 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 69 00 00 35 04 06 00 [12:25:14]Write to MH i2c: E2 02 01 DF 52 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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 BD 33 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 69 00 00 35 04 06 00 00 00 24 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 DF 52 00 90 00 A5 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]wFMCommunicate request_size=11 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 0D 02 02 06 66 8F 91 21 93 34 [12:25:14]Write to MH i2c: E2 0E 00 E0 52 80 0D 02 02 06 00 66 8F 91 21 93 34 00 00 26 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 E0 52 00 90 00 A6 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 0D 03 02 [12:25:14]Write to MH i2c: E2 08 00 E1 52 80 0D 03 02 00 00 00 00 AE [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0B 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0B 00 E1 52 00 FB 01 A9 CE BC 38 74 C8 90 00 52 [12:25:14]RAPDU: FB 01 A9 CE BC 38 74 C8 90 00 [12:25:14]wFMCommunicate OK [12:25:14]SAM_PROTO_SignData done [12:25:14]FM_MakeSignedData done [12:25:14]CreateOFDProtocolMessage [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 11 00 00 [12:25:14]Write to MH i2c: E2 08 00 E2 52 80 11 00 00 00 00 00 00 AE [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 17 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 17 00 E2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 06 [12:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:25:14]wFMCommunicate OK [12:25:14]CreateOFDProtocolMessage done [12:25:14]OFDSenderStorePacket 26889 [12:25:14]StoreOFDPacket docnum=26889 [12:25:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 FA 1F 08 01 C5 E1 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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 BD 33 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 69 00 00 35 04 06 00 66 8F 91 21 93 34 FB 01 A9 CE BC 38 74 C8 [12:25:14]CheckFolder [12:25:14]dirname=/storage/ofd_packets [12:25:14]CheckFolder done [12:25:14]ProducePacketName [12:25:14]name=ofd_packets/00026889 [12:25:14]NVStorageSaveData ofd_packets/00026889 [12:25:14]File name is /storage/ofd_packets/00026889 [12:25:14]Write 302 bytes [12:25:14]NVStorageSaveData done [12:25:14]OFDSenderStorePacket done [12:25:14]KKMCreateOFDPacket done [12:25:14]NVStorageSaveData kkm_last_timestamp [12:25:14]File name is /storage/kkm_last_timestamp [12:25:14]Write 4 bytes [12:25:14]NVStorageSaveData done [12:25:14]ExternCall_PrintAddStr [12:25:14]wPrintStart [12:25:14]Write to MH i2c: 01 00 00 E3 52 35 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 07 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 07 00 E3 52 00 00 00 00 00 FF 0F 4A [12:25:14]RasterBufferAndPrint [12:25:14]line Счет N : (1)359634 [12:25:14]line ИНН: 02508201610067 [12:25:14]line Контрольно-Кассовый Чек [12:25:14]line ПРОДАЖА [12:25:14]line ТРК (МРК, ГНК) : 11 [12:25:14]line Товар: 2710194210 [12:25:14]line ДТ(л)-К-5 [12:25:14]line 27.860 * 71.80 [12:25:14]line = 2000.35 [12:25:14]line НДС 12% НСП 1% [12:25:14]line > о реализуемом товаре [12:25:14]line ИТОГО: 2000.35 [12:25:14]line НСП 1% : 17.70 [12:25:14]line НДС 12% : 212.43 [12:25:14]line Наличными: 0.00 [12:25:14]line Безнал.: 2000.35 [12:25:14]line Место: АЗС № 122 "Партнер Нефть" [12:25:14]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:25:14]line СНО: Общий режим [12:25:14]line Чек 21 09.04.2024 12:25 [12:25:14]line Смена: 315 ФФД: 1.0 [12:25:14]line ЗНМ: 0300000147 [12:25:14]line РНМ: 0000000000091578 [12:25:14]line Версия ККМ: 001 [12:25:14]line Платежная система: O! деньги [12:25:14]line ФМ: 0000000000874657 [12:25:14]line ФД: 26889 [12:25:14]line ФПД: 112766801253172 [12:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T122533&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26889&fm=112766801253172&tin=02508201610067®Number=0000000000091578&sum=200035 [12:25:15]OFD Sender: Processing packet 26889 [packets to send 44, broken 43] [12:25:15]ProducePacketName [12:25:15]name=ofd_packets/00026889 [12:25:15]OFD Sender: To server: pG, [12:25:15]CommunicateWithHost lk.salyk.kg:30040 [12:25:15]ConnectInit lk.salyk.kg [12:25:15]written 0, free lines is 4095 [12:25:15]Connected sock=10 [12:25:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 FA 1F 08 01 C5 E1 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 D4 6C 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 63 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 BD 33 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 69 00 00 35 04 06 00 66 8F 91 21 93 34 FB 01 A9 CE BC 38 74 C8 [12:25:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 58 E0 47 00 13 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 09 69 00 00 F4 03 04 00 24 DB 14 66 B6 04 01 00 00 6C 6B E7 32 4B 57 FC AB [12:25:15]CommunicateWithHost err = 0 [12:25:15]CheckOFDResponse [12:25:15]1017 (14) - 77093643461234 [12:25:15]1041 (16) - 0000000000874657 [12:25:15]1040 (4) - 26889 [12:25:15]1012 (4) - 09.04.2024 06:07 [12:25:15]1206 (1) - 0 [12:25:15]OFD Sender: Remove packet 26889 [12:25:15]ProducePacketName [12:25:15]name=ofd_packets/00026889 [12:25:15]NVStorageDeleteData [12:25:15]Write to MH i2c: 01 00 00 0D 53 60 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 07 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 07 00 0D 53 00 00 00 00 00 88 0C FB [12:25:15]RasterBufferAndPrint [12:25:15]line [12:25:15]line [12:25:15]line [12:25:15]line [12:25:15]line [12:25:15]written 0, free lines is 3211 [12:25:15]MH_Cut [12:25:15]Write to MH i2c: D1 01 00 14 53 01 39 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: D1 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: D1 01 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: D1 01 00 14 53 00 38 [12:25:15]Write to MH i2c: 01 00 00 15 53 68 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:16]OFD Sender: No OFD packet to send [12:25:16]*** Cut start [12:25:16]*** Partial cut [12:25:16]*** CUTSNS_PIN = 1 [12:25:16]*** CUTSNS_PIN = 0 [12:25:17]*** Brake cut motor [12:25:17]Read from MH i2c: 01 [12:25:17]MH_I2C_Read... [12:25:17]*** Stop cut motor [12:25:17]*** Cut end [12:25:17]Read from MH i2c: 01 07 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: 01 07 00 15 53 00 00 00 00 00 FF 0F 7D [12:25:17]process_action close_receipt done [12:25:17]requested_data is exist [12:25:17]produce_requested_data [12:25:17]requested_item fm.sn is exist - process it [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 11 00 00 [12:25:17]Write to MH i2c: E2 08 00 16 53 80 11 00 00 00 00 00 00 E3 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 17 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 17 00 16 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 3B [12:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:25:17]wFMCommunicate OK [12:25:17]requested_item fd.num is exist - process it [12:25:17]SAM_PROTO_GetFieldsCounters [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 13 00 00 [12:25:17]Write to MH i2c: E2 08 00 17 53 80 13 00 00 00 00 00 00 E6 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 62 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 62 00 17 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 09 69 00 00 0E 04 04 00 3B 01 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 FE [12:25:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 09 69 00 00 0E 04 04 00 3B 01 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 [12:25:17]wFMCommunicate OK [12:25:17]SAM_PROTO_GetFieldsCounters done [12:25:17]requested_item shift.num is exist - process it [12:25:17]requested_item shift.opened is exist - process it [12:25:17]req_shift_opened [12:25:17]FM_GetShiftState [12:25:17]SAM_PROTO_GetShiftState [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 13 01 00 [12:25:17]Write to MH i2c: E2 08 00 18 53 80 13 01 00 00 00 00 00 E8 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 0E 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 0E 00 18 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 53 [12:25:17]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:25:17]wFMCommunicate OK [12:25:17]SAM_PROTO_GetShiftState done [12:25:17]FM_GetShiftState done [12:25:17]req_shift_opened done [12:25:17]requested_item shift.open_date is exist - process it [12:25:17]req_shift_open_date [12:25:17]req_shift_open_date done [12:25:17]produce_requested_data done [12:25:17]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26889,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [12:25:17]process_action_free close_receipt [12:25:17]json_value_free [12:25:17]json_value_free done [12:25:17]process_json_proto returns [12:25:17]Send response to host [12:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26889,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [12:25:17]free response buf [12:25:17]execute_script done [12:25:17]execute_script returns [12:25:17]free content buf [12:25:17]Sock 8.Close socket [12:25:17]Sock 8.Thread stoped [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:18]accept exits with 9 [12:38:18]New connection [12:38:18]New thread 3066871140 created [12:38:18]Thread 3067014500 joined [12:38:18]Waiting for new connection... [12:38:18] Sock 9.Parse request [12:38:18]Sock 9.Check first char [12:38:18]Sock 9.First char is OK [12:38:18]request: POST /json_proto HTTP/1.0 [12:38:18]Method: POST [12:38:18]URL: /json_proto [12:38:18]Method is POST - this is cgi request [12:38:18]url: /json_proto [12:38:18]query_string will be loaded in cgi processing [12:38:18]execute_cgi json_proto POST (null) [12:38:18]execute_cgi path=json_proto method=POST [12:38:18]POST find Content-Length [12:38:18]Host: 172.17.35.3:8080 [12:38:18]Content-Length: 687 [12:38:18]Content-Type: application/json [12:38:18] [12:38:18]POST finish read [12:38:18]Found Content-Length = 687 [12:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:18]execute_script... [12:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:18]POST & json_proto [12:38:18]process_json_proto [12:38:18]json parsed OK: [12:38:18]protocol is kg_v1.0 [12:38:18]action value=close_receipt [12:38:18]process_action close_receipt [12:38:18]cmd_close_receipt [12:38:18]MH_GetDate [12:38:18]Write to MH i2c: F0 00 00 19 53 5B [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: F0 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: F0 09 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: F0 09 00 19 53 00 CE 36 15 66 2B 11 66 64 E9 [12:38:18]GetLastDocTimeStamp 1712665533 [12:38:18]current date 1712666318 [12:38:18]FM_GetShiftState [12:38:18]SAM_PROTO_GetShiftState [12:38:18]wFMCommunicate request_size=4 [12:38:18]MH_SAM_APDU [12:38:18]CAPDU: 80 13 01 00 [12:38:18]Write to MH i2c: E2 08 00 1A 53 80 13 01 00 00 00 00 00 EA [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:18]Read from MH i2c: E2 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 0E 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 0E 00 1A 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 55 [12:38:18]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:38:18]wFMCommunicate OK [12:38:18]SAM_PROTO_GetShiftState done [12:38:18]FM_GetShiftState done [12:38:18]opened in 1712622936 [12:38:18]opened+sec_in_day 1712709336 [12:38:18]quantity*price = 100017 [12:38:18]sum+1 = 100018 [12:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 22 09.04.2024 12:38 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26890 ФПД: 275832531041740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T123838&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26890&fm=275832531041740&tin=02508201610067®Number=0000000000091578&sum=100000 [12:38:19]StoreToDocumentArchive [12:38:19]shift 315 fd 26890 [12:38:19]save to /storage/0315/doc_00026890 [12:38:19]save last doc name /storage/0315/doc_00026890 to /storage/kkm_last_doc_name [12:38:19]save OK [12:38:19]Clear old archive folders... [12:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:38:19]tlvbuf is 00EB6DA0 [12:38:19]SAM_PROTO_ClearQueue [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 09 00 00 [12:38:19]Write to MH i2c: E2 08 00 27 53 80 09 00 00 00 00 00 00 EC [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 27 53 00 90 00 EE [12:38:19]RAPDU: 90 00 [12:38:19]wFMCommunicate OK [12:38:19]SAM_PROTO_ClearQueue done [12:38:19]KKMCreateOFDPacket [12:38:19]OFDProtocolAddRootSTLVToBuf [12:38:19]FM_MakeSignedData [12:38:19]FM_MakeSignedData [12:38:19]SAM_PROTO_SignData [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 0D 01 02 [12:38:19]Write to MH i2c: E2 08 00 28 53 80 0D 01 02 00 00 00 00 F4 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 28 53 00 90 00 EF [12:38:19]RAPDU: 90 00 [12:38:19]wFMCommunicate OK [12:38:19]wFMCommunicate request_size=255 [12:38:19]MH_SAM_APDU [12:38:19]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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 CE 36 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 69 00 00 35 04 06 00 [12:38:19]Write to MH i2c: E2 02 01 29 53 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 CE 36 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 69 00 00 35 04 06 00 00 00 F3 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 29 53 00 90 00 F0 [12:38:19]RAPDU: 90 00 [12:38:19]wFMCommunicate OK [12:38:19]wFMCommunicate request_size=11 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 0D 02 02 06 FA DE 44 07 BD CC [12:38:19]Write to MH i2c: E2 0E 00 2A 53 80 0D 02 02 06 00 FA DE 44 07 BD CC 00 00 AF [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 03 00 2A 53 00 90 00 F1 [12:38:19]RAPDU: 90 00 [12:38:19]wFMCommunicate OK [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 0D 03 02 [12:38:19]Write to MH i2c: E2 08 00 2B 53 80 0D 03 02 00 00 00 00 F9 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 0B 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 0B 00 2B 53 00 34 97 22 17 49 4D 33 EA 90 00 B1 [12:38:19]RAPDU: 34 97 22 17 49 4D 33 EA 90 00 [12:38:19]wFMCommunicate OK [12:38:19]SAM_PROTO_SignData done [12:38:19]FM_MakeSignedData done [12:38:19]CreateOFDProtocolMessage [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 11 00 00 [12:38:19]Write to MH i2c: E2 08 00 2C 53 80 11 00 00 00 00 00 00 F9 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 17 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 17 00 2C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 51 [12:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:38:19]wFMCommunicate OK [12:38:19]CreateOFDProtocolMessage done [12:38:19]OFDSenderStorePacket 26890 [12:38:19]StoreOFDPacket docnum=26890 [12:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 72 8A 08 01 BC 5F 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 CE 36 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 69 00 00 35 04 06 00 FA DE 44 07 BD CC 34 97 22 17 49 4D 33 EA [12:38:19]CheckFolder [12:38:19]dirname=/storage/ofd_packets [12:38:19]CheckFolder done [12:38:19]ProducePacketName [12:38:19]name=ofd_packets/00026890 [12:38:19]NVStorageSaveData ofd_packets/00026890 [12:38:19]File name is /storage/ofd_packets/00026890 [12:38:19]Write 302 bytes [12:38:19]NVStorageSaveData done [12:38:19]OFDSenderStorePacket done [12:38:19]KKMCreateOFDPacket done [12:38:19]NVStorageSaveData kkm_last_timestamp [12:38:19]File name is /storage/kkm_last_timestamp [12:38:19]Write 4 bytes [12:38:19]NVStorageSaveData done [12:38:19]ExternCall_PrintAddStr [12:38:19]wPrintStart [12:38:19]Write to MH i2c: 01 00 00 2D 53 80 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: 01 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: 01 07 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: 01 07 00 2D 53 00 00 00 00 00 FF 0F 95 [12:38:19]RasterBufferAndPrint [12:38:19]line Счет N : (1)359635 [12:38:19]line ИНН: 02508201610067 [12:38:19]line Контрольно-Кассовый Чек [12:38:19]line ПРОДАЖА [12:38:19]line ТРК (МРК, ГНК) : 21 [12:38:19]line Товар: 2710194210 [12:38:19]line ДТ(л)-К-5 [12:38:19]line 13.930 * 71.80 [12:38:19]line = 1000.17 [12:38:19]line НДС 12% НСП 1% [12:38:19]line > о реализуемом товаре [12:38:19]line ОКРУГЛЕНИЕ: -0.17 [12:38:19]line ИТОГО: 1000.00 [12:38:19]line Внесено: 1000.00 [12:38:19]line СДАЧА: 0.00 [12:38:19]line НСП 1% : 8.85 [12:38:19]line НДС 12% : 106.21 [12:38:19]line Наличными: 1000.00 [12:38:19]line Безнал.: 0.00 [12:38:19]line Место: АЗС № 122 "Партнер Нефть" [12:38:19]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:38:19]line СНО: Общий режим [12:38:19]line Чек 22 09.04.2024 12:38 [12:38:19]line Смена: 315 ФФД: 1.0 [12:38:19]line ЗНМ: 0300000147 [12:38:19]line РНМ: 0000000000091578 [12:38:19]line Версия ККМ: 001 [12:38:19]line ФМ: 0000000000874657 [12:38:19]line ФД: 26890 [12:38:19]line ФПД: 275832531041740 [12:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T123838&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26890&fm=275832531041740&tin=02508201610067®Number=0000000000091578&sum=100000 [12:38:20]OFD Sender: Processing packet 26890 [packets to send 44, broken 43] [12:38:20]ProducePacketName [12:38:20]name=ofd_packets/00026890 [12:38:20]OFD Sender: To server: pG, [12:38:20]CommunicateWithHost lk.salyk.kg:30040 [12:38:20]ConnectInit lk.salyk.kg [12:38:20]written 0, free lines is 4095 [12:38:20]Connected sock=8 [12:38:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 72 8A 08 01 BC 5F 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 CE 36 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 69 00 00 35 04 06 00 FA DE 44 07 BD CC 34 97 22 17 49 4D 33 EA [12:38:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 64 29 47 00 48 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0A 69 00 00 F4 03 04 00 35 DE 14 66 B6 04 01 00 00 62 0B 01 F4 3B CC 78 B6 [12:38:20]CommunicateWithHost err = 0 [12:38:20]CheckOFDResponse [12:38:20]1017 (14) - 77093643461234 [12:38:20]1041 (16) - 0000000000874657 [12:38:20]1040 (4) - 26890 [12:38:20]1012 (4) - 09.04.2024 06:20 [12:38:20]1206 (1) - 0 [12:38:20]OFD Sender: Remove packet 26890 [12:38:20]ProducePacketName [12:38:20]name=ofd_packets/00026890 [12:38:20]NVStorageDeleteData [12:38:20]Write to MH i2c: 01 00 00 58 53 AB [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 07 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: 01 07 00 58 53 00 00 00 00 00 76 0C 34 [12:38:20]RasterBufferAndPrint [12:38:20]line [12:38:20]line [12:38:20]line [12:38:20]line [12:38:20]line [12:38:20]written 0, free lines is 3193 [12:38:20]MH_Cut [12:38:20]Write to MH i2c: D1 01 00 5F 53 01 84 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: D1 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: D1 01 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: D1 01 00 5F 53 00 83 [12:38:20]Write to MH i2c: 01 00 00 60 53 B3 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]OFD Sender: No OFD packet to send [12:38:21]*** Cut start [12:38:21]*** Partial cut [12:38:21]*** CUTSNS_PIN = 1 [12:38:21]*** CUTSNS_PIN = 0 [12:38:22]*** Brake cut motor [12:38:22]Read from MH i2c: 01 [12:38:22]MH_I2C_Read... [12:38:22]*** Stop cut motor [12:38:22]*** Cut end [12:38:22]Read from MH i2c: 01 07 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: 01 07 00 60 53 00 00 00 00 00 FF 0F C8 [12:38:22]process_action close_receipt done [12:38:22]requested_data is exist [12:38:22]produce_requested_data [12:38:22]requested_item fm.sn is exist - process it [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 11 00 00 [12:38:22]Write to MH i2c: E2 08 00 61 53 80 11 00 00 00 00 00 00 2E [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:22]Read from MH i2c: E2 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 17 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 17 00 61 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 86 [12:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:38:22]wFMCommunicate OK [12:38:22]requested_item fd.num is exist - process it [12:38:22]SAM_PROTO_GetFieldsCounters [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 13 00 00 [12:38:22]Write to MH i2c: E2 08 00 62 53 80 13 00 00 00 00 00 00 31 [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:22]Read from MH i2c: E2 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 62 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 62 00 62 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0A 69 00 00 0E 04 04 00 3B 01 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 4D [12:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0A 69 00 00 0E 04 04 00 3B 01 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 [12:38:22]wFMCommunicate OK [12:38:22]SAM_PROTO_GetFieldsCounters done [12:38:22]requested_item shift.num is exist - process it [12:38:22]requested_item shift.opened is exist - process it [12:38:22]req_shift_opened [12:38:22]FM_GetShiftState [12:38:22]SAM_PROTO_GetShiftState [12:38:22]wFMCommunicate request_size=4 [12:38:22]MH_SAM_APDU [12:38:22]CAPDU: 80 13 01 00 [12:38:22]Write to MH i2c: E2 08 00 63 53 80 13 01 00 00 00 00 00 33 [12:38:22]Write i2c OK [12:38:22]MH_I2C_Read... [12:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:22]Read from MH i2c: E2 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 0E 00 [12:38:22]MH_I2C_Read... [12:38:22]Read from MH i2c: E2 0E 00 63 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 9E [12:38:22]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:38:22]wFMCommunicate OK [12:38:22]SAM_PROTO_GetShiftState done [12:38:22]FM_GetShiftState done [12:38:22]req_shift_opened done [12:38:22]requested_item shift.open_date is exist - process it [12:38:22]req_shift_open_date [12:38:22]req_shift_open_date done [12:38:22]produce_requested_data done [12:38:22]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26890,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [12:38:22]process_action_free close_receipt [12:38:22]json_value_free [12:38:22]json_value_free done [12:38:22]process_json_proto returns [12:38:22]Send response to host [12:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26890,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [12:38:22]free response buf [12:38:22]execute_script done [12:38:22]execute_script returns [12:38:22]free content buf [12:38:22]Sock 9.Close socket [12:38:22]Sock 9.Thread stoped [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:33]accept exits with 10 [12:47:33]New connection [12:47:33]New thread 3067014500 created [12:47:33]Thread 3066871140 joined [12:47:33]Waiting for new connection... [12:47:33] Sock 10.Parse request [12:47:33]Sock 10.Check first char [12:47:33]Sock 10.First char is OK [12:47:33]request: POST /json_proto HTTP/1.0 [12:47:33]Method: POST [12:47:33]URL: /json_proto [12:47:33]Method is POST - this is cgi request [12:47:33]url: /json_proto [12:47:33]query_string will be loaded in cgi processing [12:47:33]execute_cgi json_proto POST (null) [12:47:33]execute_cgi path=json_proto method=POST [12:47:33]POST find Content-Length [12:47:33]Host: 172.17.35.3:8080 [12:47:33]Content-Length: 647 [12:47:33]Content-Type: application/json [12:47:33] [12:47:33]POST finish read [12:47:33]Found Content-Length = 647 [12:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359636", "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" : 71.80, "quantity" : 20.000, "sum" : 1436.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1436.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:33]execute_script... [12:47:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359636", "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" : 71.80, "quantity" : 20.000, "sum" : 1436.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1436.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:33]POST & json_proto [12:47:33]process_json_proto [12:47:33]json parsed OK: [12:47:33]protocol is kg_v1.0 [12:47:33]action value=close_receipt [12:47:33]process_action close_receipt [12:47:33]cmd_close_receipt [12:47:33]MH_GetDate [12:47:33]Write to MH i2c: F0 00 00 64 53 A6 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: F0 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: F0 09 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: F0 09 00 64 53 00 F9 38 15 66 2B 11 66 64 61 [12:47:33]GetLastDocTimeStamp 1712666318 [12:47:33]current date 1712666873 [12:47:33]FM_GetShiftState [12:47:33]SAM_PROTO_GetShiftState [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 13 01 00 [12:47:33]Write to MH i2c: E2 08 00 65 53 80 13 01 00 00 00 00 00 35 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 65 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 A0 [12:47:33]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_GetShiftState done [12:47:33]FM_GetShiftState done [12:47:33]opened in 1712622936 [12:47:33]opened+sec_in_day 1712709336 [12:47:33]quantity*price = 143600 [12:47:33]sum+1 = 143601 [12:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1436.00 НСП 1% : 12.71 НДС 12% : 152.50 Наличными: 1436.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 23 09.04.2024 12:47 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26891 ФПД: 195591134596899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T124753&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26891&fm=195591134596899&tin=02508201610067®Number=0000000000091578&sum=143600 [12:47:34]StoreToDocumentArchive [12:47:34]shift 315 fd 26891 [12:47:34]save to /storage/0315/doc_00026891 [12:47:34]save last doc name /storage/0315/doc_00026891 to /storage/kkm_last_doc_name [12:47:34]save OK [12:47:34]Clear old archive folders... [12:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:47:34]tlvbuf is B6EE99D0 [12:47:34]SAM_PROTO_ClearQueue [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 09 00 00 [12:47:34]Write to MH i2c: E2 08 00 72 53 80 09 00 00 00 00 00 00 37 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 72 53 00 90 00 39 [12:47:34]RAPDU: 90 00 [12:47:34]wFMCommunicate OK [12:47:34]SAM_PROTO_ClearQueue done [12:47:34]KKMCreateOFDPacket [12:47:34]OFDProtocolAddRootSTLVToBuf [12:47:34]FM_MakeSignedData [12:47:34]FM_MakeSignedData [12:47:34]SAM_PROTO_SignData [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 0D 01 02 [12:47:34]Write to MH i2c: E2 08 00 73 53 80 0D 01 02 00 00 00 00 3F [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 73 53 00 90 00 3A [12:47:34]RAPDU: 90 00 [12:47:34]wFMCommunicate OK [12:47:34]wFMCommunicate request_size=255 [12:47:34]MH_SAM_APDU [12:47:34]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 20 4E 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 F0 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3B 00 00 00 00 07 04 06 00 F0 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 38 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 69 00 00 35 04 06 00 [12:47:34]Write to MH i2c: E2 02 01 74 53 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 20 4E 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 F0 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3B 00 00 00 00 07 04 06 00 F0 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 38 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 69 00 00 35 04 06 00 00 00 C5 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 74 53 00 90 00 3B [12:47:34]RAPDU: 90 00 [12:47:34]wFMCommunicate OK [12:47:34]wFMCommunicate request_size=11 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 0D 02 02 06 B1 E3 9C 19 4F 23 [12:47:34]Write to MH i2c: E2 0E 00 75 53 80 0D 02 02 06 00 B1 E3 9C 19 4F 23 00 00 09 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 75 53 00 90 00 3C [12:47:34]RAPDU: 90 00 [12:47:34]wFMCommunicate OK [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 0D 03 02 [12:47:34]Write to MH i2c: E2 08 00 76 53 80 0D 03 02 00 00 00 00 44 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 0B 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 0B 00 76 53 00 83 75 14 02 49 FA A3 16 90 00 4F [12:47:34]RAPDU: 83 75 14 02 49 FA A3 16 90 00 [12:47:34]wFMCommunicate OK [12:47:34]SAM_PROTO_SignData done [12:47:34]FM_MakeSignedData done [12:47:34]CreateOFDProtocolMessage [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 11 00 00 [12:47:34]Write to MH i2c: E2 08 00 77 53 80 11 00 00 00 00 00 00 44 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 17 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 17 00 77 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 9C [12:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:47:34]wFMCommunicate OK [12:47:34]CreateOFDProtocolMessage done [12:47:34]OFDSenderStorePacket 26891 [12:47:34]StoreOFDPacket docnum=26891 [12:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 31 66 08 01 2E C7 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 20 4E 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 F0 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3B 00 00 00 00 07 04 06 00 F0 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 38 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 69 00 00 35 04 06 00 B1 E3 9C 19 4F 23 83 75 14 02 49 FA A3 16 [12:47:34]CheckFolder [12:47:34]dirname=/storage/ofd_packets [12:47:34]CheckFolder done [12:47:34]ProducePacketName [12:47:34]name=ofd_packets/00026891 [12:47:34]NVStorageSaveData ofd_packets/00026891 [12:47:34]File name is /storage/ofd_packets/00026891 [12:47:34]Write 302 bytes [12:47:34]NVStorageSaveData done [12:47:34]OFDSenderStorePacket done [12:47:34]KKMCreateOFDPacket done [12:47:34]NVStorageSaveData kkm_last_timestamp [12:47:34]File name is /storage/kkm_last_timestamp [12:47:34]Write 4 bytes [12:47:34]NVStorageSaveData done [12:47:34]ExternCall_PrintAddStr [12:47:34]wPrintStart [12:47:34]Write to MH i2c: 01 00 00 78 53 CB [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: 01 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: 01 07 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: 01 07 00 78 53 00 00 00 00 00 FF 0F E0 [12:47:34]RasterBufferAndPrint [12:47:34]line Счет N : (1)359636 [12:47:34]line ИНН: 02508201610067 [12:47:34]line Контрольно-Кассовый Чек [12:47:34]line ПРОДАЖА [12:47:34]line ТРК (МРК, ГНК) : 11 [12:47:34]line Товар: 2710194210 [12:47:34]line ДТ(л)-К-5 [12:47:34]line 20.000 * 71.80 [12:47:34]line = 1436.00 [12:47:34]line НДС 12% НСП 1% [12:47:34]line > о реализуемом товаре [12:47:34]line ИТОГО: 1436.00 [12:47:34]line НСП 1% : 12.71 [12:47:34]line НДС 12% : 152.50 [12:47:34]line Наличными: 1436.00 [12:47:34]line Безнал.: 0.00 [12:47:34]line Место: АЗС № 122 "Партнер Нефть" [12:47:34]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:47:34]line СНО: Общий режим [12:47:34]line Чек 23 09.04.2024 12:47 [12:47:34]line Смена: 315 ФФД: 1.0 [12:47:34]line ЗНМ: 0300000147 [12:47:34]line РНМ: 0000000000091578 [12:47:34]line Версия ККМ: 001 [12:47:34]line ФМ: 0000000000874657 [12:47:34]line ФД: 26891 [12:47:34]line ФПД: 195591134596899 [12:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T124753&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26891&fm=195591134596899&tin=02508201610067®Number=0000000000091578&sum=143600 [12:47:34]written 0, free lines is 4095 [12:47:34]OFD Sender: Processing packet 26891 [packets to send 44, broken 43] [12:47:34]ProducePacketName [12:47:34]name=ofd_packets/00026891 [12:47:34]OFD Sender: To server: pG, [12:47:34]CommunicateWithHost lk.salyk.kg:30040 [12:47:34]ConnectInit lk.salyk.kg [12:47:34]Connected sock=9 [12:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 31 66 08 01 2E C7 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 20 4E 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 F0 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3B 00 00 00 00 07 04 06 00 F0 30 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 F9 38 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 69 00 00 35 04 06 00 B1 E3 9C 19 4F 23 83 75 14 02 49 FA A3 16 [12:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 0A 96 47 00 46 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0B 69 00 00 F4 03 04 00 5F E0 14 66 B6 04 01 00 00 1C FC D1 DD 66 38 17 B8 [12:47:35]CommunicateWithHost err = 0 [12:47:35]CheckOFDResponse [12:47:35]1017 (14) - 77093643461234 [12:47:35]1041 (16) - 0000000000874657 [12:47:35]1040 (4) - 26891 [12:47:35]1012 (4) - 09.04.2024 06:29 [12:47:35]1206 (1) - 0 [12:47:35]OFD Sender: Remove packet 26891 [12:47:35]ProducePacketName [12:47:35]name=ofd_packets/00026891 [12:47:35]NVStorageDeleteData [12:47:35]Write to MH i2c: 01 00 00 A0 53 F3 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 07 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 07 00 A0 53 00 00 00 00 00 BB 0C C1 [12:47:35]RasterBufferAndPrint [12:47:35]line [12:47:35]line [12:47:35]line [12:47:35]line [12:47:35]line [12:47:35]written 0, free lines is 3262 [12:47:35]MH_Cut [12:47:35]Write to MH i2c: D1 01 00 A7 53 01 CC [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: D1 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: D1 01 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: D1 01 00 A7 53 00 CB [12:47:35]Write to MH i2c: 01 00 00 A8 53 FB [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]OFD Sender: No OFD packet to send [12:47:36]*** Cut start [12:47:36]*** Partial cut [12:47:36]*** CUTSNS_PIN = 1 [12:47:36]*** CUTSNS_PIN = 0 [12:47:36]*** Brake cut motor [12:47:36]Read from MH i2c: 01 [12:47:36]MH_I2C_Read... [12:47:36]*** Stop cut motor [12:47:36]*** Cut end [12:47:36]Read from MH i2c: 01 07 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 07 00 A8 53 00 00 00 00 00 FF 0F 10 [12:47:36]process_action close_receipt done [12:47:36]requested_data is exist [12:47:36]produce_requested_data [12:47:36]requested_item fm.sn is exist - process it [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 11 00 00 [12:47:36]Write to MH i2c: E2 08 00 A9 53 80 11 00 00 00 00 00 00 76 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 A9 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 CE [12:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:47:37]wFMCommunicate OK [12:47:37]requested_item fd.num is exist - process it [12:47:37]SAM_PROTO_GetFieldsCounters [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 13 00 00 [12:47:37]Write to MH i2c: E2 08 00 AA 53 80 13 00 00 00 00 00 00 79 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 62 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 62 00 AA 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0B 69 00 00 0E 04 04 00 3B 01 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 99 [12:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0B 69 00 00 0E 04 04 00 3B 01 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 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_GetFieldsCounters done [12:47:37]requested_item shift.num is exist - process it [12:47:37]requested_item shift.opened is exist - process it [12:47:37]req_shift_opened [12:47:37]FM_GetShiftState [12:47:37]SAM_PROTO_GetShiftState [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 13 01 00 [12:47:37]Write to MH i2c: E2 08 00 AB 53 80 13 01 00 00 00 00 00 7B [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0E 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0E 00 AB 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 E6 [12:47:37]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_GetShiftState done [12:47:37]FM_GetShiftState done [12:47:37]req_shift_opened done [12:47:37]requested_item shift.open_date is exist - process it [12:47:37]req_shift_open_date [12:47:37]req_shift_open_date done [12:47:37]produce_requested_data done [12:47:37]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26891,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [12:47:37]process_action_free close_receipt [12:47:37]json_value_free [12:47:37]json_value_free done [12:47:37]process_json_proto returns [12:47:37]Send response to host [12:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26891,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [12:47:37]free response buf [12:47:37]execute_script done [12:47:37]execute_script returns [12:47:37]free content buf [12:47:37]Sock 10.Close socket [12:47:37]Sock 10.Thread stoped [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]accept exits with 8 [12:51:15]New connection [12:51:15]New thread 3066871140 created [12:51:15]Thread 3067014500 joined [12:51:15]Waiting for new connection... [12:51:15] Sock 8.Parse request [12:51:15]Sock 8.Check first char [12:51:15]Sock 8.First char is OK [12:51:15]request: POST /json_proto HTTP/1.0 [12:51:15]Method: POST [12:51:15]URL: /json_proto [12:51:15]Method is POST - this is cgi request [12:51:15]url: /json_proto [12:51:15]query_string will be loaded in cgi processing [12:51:15]execute_cgi json_proto POST (null) [12:51:15]execute_cgi path=json_proto method=POST [12:51:15]POST find Content-Length [12:51:15]Host: 172.17.35.3:8080 [12:51:15]Content-Length: 682 [12:51:15]Content-Type: application/json [12:51:15] [12:51:15]POST finish read [12:51:15]Found Content-Length = 682 [12:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:15]execute_script... [12:51:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:15]POST & json_proto [12:51:15]process_json_proto [12:51:15]json parsed OK: [12:51:15]protocol is kg_v1.0 [12:51:15]action value=close_receipt [12:51:15]process_action close_receipt [12:51:15]cmd_close_receipt [12:51:15]MH_GetDate [12:51:15]Write to MH i2c: F0 00 00 AC 53 EE [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: F0 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: F0 09 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: F0 09 00 AC 53 00 D7 39 15 66 2B 11 66 64 88 [12:51:15]GetLastDocTimeStamp 1712666873 [12:51:15]current date 1712667095 [12:51:15]FM_GetShiftState [12:51:15]SAM_PROTO_GetShiftState [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 13 01 00 [12:51:15]Write to MH i2c: E2 08 00 AD 53 80 13 01 00 00 00 00 00 7D [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0E 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0E 00 AD 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 E8 [12:51:15]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:51:15]wFMCommunicate OK [12:51:15]SAM_PROTO_GetShiftState done [12:51:15]FM_GetShiftState done [12:51:15]opened in 1712622936 [12:51:15]opened+sec_in_day 1712709336 [12:51:15]quantity*price = 50044 [12:51:15]sum+1 = 50046 [12:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 24 09.04.2024 12:51 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26892 ФПД: 111672581526181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T125135&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26892&fm=111672581526181&tin=02508201610067®Number=0000000000091578&sum=50000 [12:51:16]StoreToDocumentArchive [12:51:16]shift 315 fd 26892 [12:51:16]save to /storage/0315/doc_00026892 [12:51:16]save last doc name /storage/0315/doc_00026892 to /storage/kkm_last_doc_name [12:51:16]save OK [12:51:16]Clear old archive folders... [12:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:51:16]tlvbuf is B6F67670 [12:51:16]SAM_PROTO_ClearQueue [12:51:16]wFMCommunicate request_size=4 [12:51:16]MH_SAM_APDU [12:51:16]CAPDU: 80 09 00 00 [12:51:16]Write to MH i2c: E2 08 00 BA 53 80 09 00 00 00 00 00 00 7F [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:16]Read from MH i2c: E2 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 BA 53 00 90 00 81 [12:51:16]RAPDU: 90 00 [12:51:16]wFMCommunicate OK [12:51:16]SAM_PROTO_ClearQueue done [12:51:16]KKMCreateOFDPacket [12:51:16]OFDProtocolAddRootSTLVToBuf [12:51:16]FM_MakeSignedData [12:51:16]FM_MakeSignedData [12:51:16]SAM_PROTO_SignData [12:51:16]wFMCommunicate request_size=4 [12:51:16]MH_SAM_APDU [12:51:16]CAPDU: 80 0D 01 02 [12:51:16]Write to MH i2c: E2 08 00 BB 53 80 0D 01 02 00 00 00 00 87 [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:16]Read from MH i2c: E2 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 BB 53 00 90 00 82 [12:51:16]RAPDU: 90 00 [12:51:16]wFMCommunicate OK [12:51:16]wFMCommunicate request_size=255 [12:51:16]MH_SAM_APDU [12:51:16]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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 D7 39 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 69 00 00 35 04 06 00 [12:51:16]Write to MH i2c: E2 02 01 BC 53 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 D7 39 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 69 00 00 35 04 06 00 00 00 9F [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:16]Read from MH i2c: E2 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 BC 53 00 90 00 83 [12:51:16]RAPDU: 90 00 [12:51:16]wFMCommunicate OK [12:51:16]wFMCommunicate request_size=11 [12:51:16]MH_SAM_APDU [12:51:16]CAPDU: 80 0D 02 02 06 65 90 CC 8D 92 A5 [12:51:16]Write to MH i2c: E2 0E 00 BD 53 80 0D 02 02 06 00 65 90 CC 8D 92 A5 00 00 1B [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:16]Read from MH i2c: E2 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 03 00 BD 53 00 90 00 84 [12:51:16]RAPDU: 90 00 [12:51:16]wFMCommunicate OK [12:51:16]wFMCommunicate request_size=4 [12:51:16]MH_SAM_APDU [12:51:16]CAPDU: 80 0D 03 02 [12:51:16]Write to MH i2c: E2 08 00 BE 53 80 0D 03 02 00 00 00 00 8C [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:16]Read from MH i2c: E2 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 0B 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 0B 00 BE 53 00 28 72 F8 AD 30 85 46 A9 90 00 70 [12:51:16]RAPDU: 28 72 F8 AD 30 85 46 A9 90 00 [12:51:16]wFMCommunicate OK [12:51:16]SAM_PROTO_SignData done [12:51:16]FM_MakeSignedData done [12:51:16]CreateOFDProtocolMessage [12:51:16]wFMCommunicate request_size=4 [12:51:16]MH_SAM_APDU [12:51:16]CAPDU: 80 11 00 00 [12:51:16]Write to MH i2c: E2 08 00 BF 53 80 11 00 00 00 00 00 00 8C [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:16]Read from MH i2c: E2 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 17 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: E2 17 00 BF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E4 [12:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:51:16]wFMCommunicate OK [12:51:16]CreateOFDProtocolMessage done [12:51:16]OFDSenderStorePacket 26892 [12:51:16]StoreOFDPacket docnum=26892 [12:51:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 1A 0A 08 01 8B DF 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 D7 39 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 69 00 00 35 04 06 00 65 90 CC 8D 92 A5 28 72 F8 AD 30 85 46 A9 [12:51:16]CheckFolder [12:51:16]dirname=/storage/ofd_packets [12:51:16]CheckFolder done [12:51:16]ProducePacketName [12:51:16]name=ofd_packets/00026892 [12:51:16]NVStorageSaveData ofd_packets/00026892 [12:51:16]File name is /storage/ofd_packets/00026892 [12:51:16]Write 302 bytes [12:51:16]NVStorageSaveData done [12:51:16]OFDSenderStorePacket done [12:51:16]KKMCreateOFDPacket done [12:51:16]NVStorageSaveData kkm_last_timestamp [12:51:16]File name is /storage/kkm_last_timestamp [12:51:16]Write 4 bytes [12:51:16]NVStorageSaveData done [12:51:16]ExternCall_PrintAddStr [12:51:16]wPrintStart [12:51:16]Write to MH i2c: 01 00 00 C0 53 13 [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 07 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 07 00 C0 53 00 00 00 00 00 FF 0F 28 [12:51:16]RasterBufferAndPrint [12:51:16]line Счет N : (1)359637 [12:51:16]line ИНН: 02508201610067 [12:51:16]line Контрольно-Кассовый Чек [12:51:16]line ПРОДАЖА [12:51:16]line ТРК (МРК, ГНК) : 21 [12:51:16]line Товар: 2710194210 [12:51:16]line ДТ(л)-К-5 [12:51:16]line 6.970 * 71.80 [12:51:16]line = 500.45 [12:51:16]line НДС 12% НСП 1% [12:51:16]line > о реализуемом товаре [12:51:16]line ОКРУГЛЕНИЕ: -0.45 [12:51:16]line ИТОГО: 500.00 [12:51:16]line Внесено: 500.00 [12:51:16]line СДАЧА: 0.00 [12:51:16]line НСП 1% : 4.43 [12:51:16]line НДС 12% : 53.14 [12:51:16]line Наличными: 500.00 [12:51:16]line Безнал.: 0.00 [12:51:16]line Место: АЗС № 122 "Партнер Нефть" [12:51:16]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:51:16]line СНО: Общий режим [12:51:16]line Чек 24 09.04.2024 12:51 [12:51:16]line Смена: 315 ФФД: 1.0 [12:51:16]line ЗНМ: 0300000147 [12:51:16]line РНМ: 0000000000091578 [12:51:16]line Версия ККМ: 001 [12:51:16]line ФМ: 0000000000874657 [12:51:16]line ФД: 26892 [12:51:16]line ФПД: 111672581526181 [12:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T125135&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26892&fm=111672581526181&tin=02508201610067®Number=0000000000091578&sum=50000 [12:51:17]OFD Sender: Processing packet 26892 [packets to send 44, broken 43] [12:51:17]ProducePacketName [12:51:17]name=ofd_packets/00026892 [12:51:17]OFD Sender: To server: pG, [12:51:17]CommunicateWithHost lk.salyk.kg:30040 [12:51:17]ConnectInit lk.salyk.kg [12:51:17]written 0, free lines is 4095 [12:51:17]Connected sock=9 [12:51:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 1A 0A 08 01 8B DF 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 D7 39 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0C 69 00 00 35 04 06 00 65 90 CC 8D 92 A5 28 72 F8 AD 30 85 46 A9 [12:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 CC B8 47 00 81 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 38 37 34 36 35 37 10 04 04 00 0C 69 00 00 F4 03 04 00 3E E1 14 66 B6 04 01 00 00 D8 43 CC 9E 1D 95 35 CA [12:51:17]CommunicateWithHost err = 0 [12:51:17]CheckOFDResponse [12:51:17]1017 (14) - 77093643461234 [12:51:17]1041 (16) - 0000000000874657 [12:51:17]1040 (4) - 26892 [12:51:17]1012 (4) - 09.04.2024 06:33 [12:51:17]1206 (1) - 0 [12:51:17]OFD Sender: Remove packet 26892 [12:51:17]ProducePacketName [12:51:17]name=ofd_packets/00026892 [12:51:17]NVStorageDeleteData [12:51:17]Write to MH i2c: 01 00 00 EB 53 3E [12:51:17]Write i2c OK [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: 01 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: 01 07 00 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: 01 07 00 EB 53 00 00 00 00 00 72 0C C3 [12:51:17]RasterBufferAndPrint [12:51:17]line [12:51:17]line [12:51:17]line [12:51:17]line [12:51:17]line [12:51:17]written 0, free lines is 3189 [12:51:17]MH_Cut [12:51:17]Write to MH i2c: D1 01 00 F2 53 01 17 [12:51:17]Write i2c OK [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: D1 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: D1 01 00 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: D1 01 00 F2 53 00 16 [12:51:17]Write to MH i2c: 01 00 00 F3 53 46 [12:51:17]Write i2c OK [12:51:17]MH_I2C_Read... [12:51:17]OFD Sender: No OFD packet to send [12:51:18]*** Cut start [12:51:18]*** Partial cut [12:51:18]*** CUTSNS_PIN = 1 [12:51:18]*** CUTSNS_PIN = 0 [12:51:19]*** Brake cut motor [12:51:19]Read from MH i2c: 01 [12:51:19]MH_I2C_Read... [12:51:19]*** Stop cut motor [12:51:19]*** Cut end [12:51:19]Read from MH i2c: 01 07 00 [12:51:19]MH_I2C_Read... [12:51:19]Read from MH i2c: 01 07 00 F3 53 00 00 00 00 00 FF 0F 5B [12:51:19]process_action close_receipt done [12:51:19]requested_data is exist [12:51:19]produce_requested_data [12:51:19]requested_item fm.sn is exist - process it [12:51:19]wFMCommunicate request_size=4 [12:51:19]MH_SAM_APDU [12:51:19]CAPDU: 80 11 00 00 [12:51:19]Write to MH i2c: E2 08 00 F4 53 80 11 00 00 00 00 00 00 C1 [12:51:19]Write i2c OK [12:51:19]MH_I2C_Read... [12:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:19]Read from MH i2c: E2 [12:51:19]MH_I2C_Read... [12:51:19]Read from MH i2c: E2 17 00 [12:51:19]MH_I2C_Read... [12:51:19]Read from MH i2c: E2 17 00 F4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 19 [12:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:51:19]wFMCommunicate OK [12:51:19]requested_item fd.num is exist - process it [12:51:19]SAM_PROTO_GetFieldsCounters [12:51:19]wFMCommunicate request_size=4 [12:51:19]MH_SAM_APDU [12:51:19]CAPDU: 80 13 00 00 [12:51:19]Write to MH i2c: E2 08 00 F5 53 80 13 00 00 00 00 00 00 C4 [12:51:19]Write i2c OK [12:51:19]MH_I2C_Read... [12:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:19]Read from MH i2c: E2 [12:51:19]MH_I2C_Read... [12:51:19]Read from MH i2c: E2 62 00 [12:51:19]MH_I2C_Read... [12:51:19]Read from MH i2c: E2 62 00 F5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0C 69 00 00 0E 04 04 00 3B 01 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 E8 [12:51:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0C 69 00 00 0E 04 04 00 3B 01 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 [12:51:19]wFMCommunicate OK [12:51:19]SAM_PROTO_GetFieldsCounters done [12:51:19]requested_item shift.num is exist - process it [12:51:19]requested_item shift.opened is exist - process it [12:51:19]req_shift_opened [12:51:19]FM_GetShiftState [12:51:19]SAM_PROTO_GetShiftState [12:51:19]wFMCommunicate request_size=4 [12:51:19]MH_SAM_APDU [12:51:19]CAPDU: 80 13 01 00 [12:51:19]Write to MH i2c: E2 08 00 F6 53 80 13 01 00 00 00 00 00 C6 [12:51:19]Write i2c OK [12:51:19]MH_I2C_Read... [12:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:19]Read from MH i2c: E2 [12:51:19]MH_I2C_Read... [12:51:19]Read from MH i2c: E2 0E 00 [12:51:19]MH_I2C_Read... [12:51:19]Read from MH i2c: E2 0E 00 F6 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 31 [12:51:19]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:51:19]wFMCommunicate OK [12:51:19]SAM_PROTO_GetShiftState done [12:51:19]FM_GetShiftState done [12:51:19]req_shift_opened done [12:51:19]requested_item shift.open_date is exist - process it [12:51:19]req_shift_open_date [12:51:19]req_shift_open_date done [12:51:19]produce_requested_data done [12:51:19]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26892,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [12:51:19]process_action_free close_receipt [12:51:19]json_value_free [12:51:19]json_value_free done [12:51:19]process_json_proto returns [12:51:19]Send response to host [12:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26892,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [12:51:19]free response buf [12:51:19]execute_script done [12:51:19]execute_script returns [12:51:19]free content buf [12:51:19]Sock 8.Close socket [12:51:19]Sock 8.Thread stoped [12:51:22]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:25]accept exits with 10 [12:57:25]New connection [12:57:25]New thread 3067014500 created [12:57:25]Thread 3066871140 joined [12:57:25]Waiting for new connection... [12:57:25] Sock 10.Parse request [12:57:25]Sock 10.Check first char [12:57:25]Sock 10.First char is OK [12:57:25]request: POST /json_proto HTTP/1.0 [12:57:25]Method: POST [12:57:25]URL: /json_proto [12:57:25]Method is POST - this is cgi request [12:57:25]url: /json_proto [12:57:25]query_string will be loaded in cgi processing [12:57:25]execute_cgi json_proto POST (null) [12:57:25]execute_cgi path=json_proto method=POST [12:57:25]POST find Content-Length [12:57:25]Host: 172.17.35.3:8080 [12:57:25]Content-Length: 808 [12:57:25]Content-Type: application/json [12:57:25] [12:57:25]POST finish read [12:57:25]Found Content-Length = 808 [12:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 69.640, "sum" : 5000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:25]execute_script... [12:57:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 69.640, "sum" : 5000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:25]POST & json_proto [12:57:25]process_json_proto [12:57:25]json parsed OK: [12:57:25]protocol is kg_v1.0 [12:57:25]action value=close_receipt [12:57:25]process_action close_receipt [12:57:25]cmd_close_receipt [12:57:25]MH_GetDate [12:57:25]Write to MH i2c: F0 00 00 F7 53 39 [12:57:25]Write i2c OK [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: F0 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: F0 09 00 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: F0 09 00 F7 53 00 49 3B 15 66 2B 11 66 64 47 [12:57:25]GetLastDocTimeStamp 1712667095 [12:57:25]current date 1712667465 [12:57:25]FM_GetShiftState [12:57:25]SAM_PROTO_GetShiftState [12:57:25]wFMCommunicate request_size=4 [12:57:25]MH_SAM_APDU [12:57:25]CAPDU: 80 13 01 00 [12:57:25]Write to MH i2c: E2 08 00 F8 53 80 13 01 00 00 00 00 00 C8 [12:57:25]Write i2c OK [12:57:25]MH_I2C_Read... [12:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:25]Read from MH i2c: E2 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: E2 0E 00 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: E2 0E 00 F8 53 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 33 [12:57:25]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:57:25]wFMCommunicate OK [12:57:25]SAM_PROTO_GetShiftState done [12:57:25]FM_GetShiftState done [12:57:25]opened in 1712622936 [12:57:25]opened+sec_in_day 1712709336 [12:57:25]quantity*price = 500015 [12:57:25]sum+1 = 500016 [12:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.15 НСП 1% : 44.25 НДС 12% : 530.99 Наличными: 0.00 Безнал.: 5000.15 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 25 09.04.2024 12:57 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26893 ФПД: 7924283117409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T125745&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26893&fm=7924283117409&tin=02508201610067®Number=0000000000091578&sum=500015 [12:57:26]StoreToDocumentArchive [12:57:26]shift 315 fd 26893 [12:57:26]save to /storage/0315/doc_00026893 [12:57:26]save last doc name /storage/0315/doc_00026893 to /storage/kkm_last_doc_name [12:57:26]save OK [12:57:26]Clear old archive folders... [12:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:57:26]tlvbuf is 00F75500 [12:57:26]SAM_PROTO_ClearQueue [12:57:26]wFMCommunicate request_size=4 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 09 00 00 [12:57:26]Write to MH i2c: E2 08 00 05 54 80 09 00 00 00 00 00 00 CB [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 05 54 00 90 00 CD [12:57:26]RAPDU: 90 00 [12:57:26]wFMCommunicate OK [12:57:26]SAM_PROTO_ClearQueue done [12:57:26]KKMCreateOFDPacket [12:57:26]OFDProtocolAddRootSTLVToBuf [12:57:26]FM_MakeSignedData [12:57:26]FM_MakeSignedData [12:57:26]SAM_PROTO_SignData [12:57:26]wFMCommunicate request_size=4 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 0D 01 02 [12:57:26]Write to MH i2c: E2 08 00 06 54 80 0D 01 02 00 00 00 00 D3 [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 06 54 00 90 00 CE [12:57:26]RAPDU: 90 00 [12:57:26]wFMCommunicate OK [12:57:26]wFMCommunicate request_size=255 [12:57:26]MH_SAM_APDU [12:57:26]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 08 10 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 69 00 00 35 04 06 00 [12:57:26]Write to MH i2c: E2 02 01 07 54 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 08 10 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 69 00 00 35 04 06 00 00 00 46 [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 07 54 00 90 00 CF [12:57:26]RAPDU: 90 00 [12:57:26]wFMCommunicate OK [12:57:26]wFMCommunicate request_size=11 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 0D 02 02 06 07 35 04 14 8F 61 [12:57:26]Write to MH i2c: E2 0E 00 08 54 80 0D 02 02 06 00 07 35 04 14 8F 61 00 00 26 [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 03 00 08 54 00 90 00 D0 [12:57:26]RAPDU: 90 00 [12:57:26]wFMCommunicate OK [12:57:26]wFMCommunicate request_size=4 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 0D 03 02 [12:57:26]Write to MH i2c: E2 08 00 09 54 80 0D 03 02 00 00 00 00 D8 [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 0B 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 0B 00 09 54 00 60 AB 72 F3 47 C4 74 16 90 00 DE [12:57:26]RAPDU: 60 AB 72 F3 47 C4 74 16 90 00 [12:57:26]wFMCommunicate OK [12:57:26]SAM_PROTO_SignData done [12:57:26]FM_MakeSignedData done [12:57:26]CreateOFDProtocolMessage [12:57:26]wFMCommunicate request_size=4 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 11 00 00 [12:57:26]Write to MH i2c: E2 08 00 0A 54 80 11 00 00 00 00 00 00 D8 [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:27]Read from MH i2c: E2 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 17 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 17 00 0A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 30 [12:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:57:27]wFMCommunicate OK [12:57:27]CreateOFDProtocolMessage done [12:57:27]OFDSenderStorePacket 26893 [12:57:27]StoreOFDPacket docnum=26893 [12:57:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 23 F5 08 01 51 E4 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 08 10 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 69 00 00 35 04 06 00 07 35 04 14 8F 61 60 AB 72 F3 47 C4 74 16 [12:57:27]CheckFolder [12:57:27]dirname=/storage/ofd_packets [12:57:27]CheckFolder done [12:57:27]ProducePacketName [12:57:27]name=ofd_packets/00026893 [12:57:27]NVStorageSaveData ofd_packets/00026893 [12:57:27]File name is /storage/ofd_packets/00026893 [12:57:27]Write 302 bytes [12:57:27]NVStorageSaveData done [12:57:27]OFDSenderStorePacket done [12:57:27]KKMCreateOFDPacket done [12:57:27]NVStorageSaveData kkm_last_timestamp [12:57:27]File name is /storage/kkm_last_timestamp [12:57:27]Write 4 bytes [12:57:27]NVStorageSaveData done [12:57:27]ExternCall_PrintAddStr [12:57:27]wPrintStart [12:57:27]Write to MH i2c: 01 00 00 0B 54 5F [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: 01 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: 01 07 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: 01 07 00 0B 54 00 00 00 00 00 FF 0F 74 [12:57:27]RasterBufferAndPrint [12:57:27]line Счет N : (1)359638 [12:57:27]line ИНН: 02508201610067 [12:57:27]line Контрольно-Кассовый Чек [12:57:27]line ПРОДАЖА [12:57:27]line ТРК (МРК, ГНК) : 21 [12:57:27]line Товар: 2710194210 [12:57:27]line ДТ(л)-К-5 [12:57:27]line 69.640 * 71.80 [12:57:27]line = 5000.15 [12:57:27]line НДС 12% НСП 1% [12:57:27]line > о реализуемом товаре [12:57:27]line ИТОГО: 5000.15 [12:57:27]line НСП 1% : 44.25 [12:57:27]line НДС 12% : 530.99 [12:57:27]line Наличными: 0.00 [12:57:27]line Безнал.: 5000.15 [12:57:27]line Место: АЗС № 122 "Партнер Нефть" [12:57:27]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:57:27]line СНО: Общий режим [12:57:27]line Чек 25 09.04.2024 12:57 [12:57:27]line Смена: 315 ФФД: 1.0 [12:57:27]line ЗНМ: 0300000147 [12:57:27]line РНМ: 0000000000091578 [12:57:27]line Версия ККМ: 001 [12:57:27]line Платежная система: O! деньги [12:57:27]line ФМ: 0000000000874657 [12:57:27]line ФД: 26893 [12:57:27]line ФПД: 7924283117409 [12:57:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T125745&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26893&fm=7924283117409&tin=02508201610067®Number=0000000000091578&sum=500015 [12:57:27]OFD Sender: Processing packet 26893 [packets to send 44, broken 43] [12:57:27]ProducePacketName [12:57:27]name=ofd_packets/00026893 [12:57:27]OFD Sender: To server: pG, [12:57:27]CommunicateWithHost lk.salyk.kg:30040 [12:57:27]ConnectInit lk.salyk.kg [12:57:27]written 0, free lines is 4095 [12:57:27]Connected sock=9 [12:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 23 F5 08 01 51 E4 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 08 10 01 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2F A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0D 69 00 00 35 04 06 00 07 35 04 14 8F 61 60 AB 72 F3 47 C4 74 16 [12:57:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 37 EF 47 00 57 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 38 37 34 36 35 37 10 04 04 00 0D 69 00 00 F4 03 04 00 B0 E2 14 66 B6 04 01 00 00 37 81 1F C5 56 E3 A3 69 [12:57:27]CommunicateWithHost err = 0 [12:57:27]CheckOFDResponse [12:57:27]1017 (14) - 77093643461234 [12:57:27]1041 (16) - 0000000000874657 [12:57:27]1040 (4) - 26893 [12:57:27]1012 (4) - 09.04.2024 06:39 [12:57:27]1206 (1) - 0 [12:57:27]OFD Sender: Remove packet 26893 [12:57:27]ProducePacketName [12:57:27]name=ofd_packets/00026893 [12:57:27]NVStorageDeleteData [12:57:27]Write to MH i2c: 01 00 00 35 54 89 [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: 01 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: 01 07 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: 01 07 00 35 54 00 00 00 00 00 91 0C 2D [12:57:27]RasterBufferAndPrint [12:57:27]line [12:57:27]line [12:57:27]line [12:57:27]line [12:57:27]line [12:57:27]written 0, free lines is 3220 [12:57:27]MH_Cut [12:57:27]Write to MH i2c: D1 01 00 3C 54 01 62 [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: D1 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: D1 01 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: D1 01 00 3C 54 00 61 [12:57:27]Write to MH i2c: 01 00 00 3D 54 91 [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:28]OFD Sender: No OFD packet to send [12:57:28]*** Cut start [12:57:28]*** Partial cut [12:57:28]*** CUTSNS_PIN = 1 [12:57:29]*** CUTSNS_PIN = 0 [12:57:29]*** Brake cut motor [12:57:29]Read from MH i2c: 01 [12:57:29]MH_I2C_Read... [12:57:29]*** Stop cut motor [12:57:29]*** Cut end [12:57:29]Read from MH i2c: 01 07 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: 01 07 00 3D 54 00 00 00 00 00 FF 0F A6 [12:57:29]process_action close_receipt done [12:57:29]requested_data is exist [12:57:29]produce_requested_data [12:57:29]requested_item fm.sn is exist - process it [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 11 00 00 [12:57:29]Write to MH i2c: E2 08 00 3E 54 80 11 00 00 00 00 00 00 0C [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 17 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 17 00 3E 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 64 [12:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:57:29]wFMCommunicate OK [12:57:29]requested_item fd.num is exist - process it [12:57:29]SAM_PROTO_GetFieldsCounters [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 13 00 00 [12:57:29]Write to MH i2c: E2 08 00 3F 54 80 13 00 00 00 00 00 00 0F [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 62 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 62 00 3F 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0D 69 00 00 0E 04 04 00 3B 01 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 37 [12:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0D 69 00 00 0E 04 04 00 3B 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:29]wFMCommunicate OK [12:57:29]SAM_PROTO_GetFieldsCounters done [12:57:29]requested_item shift.num is exist - process it [12:57:29]requested_item shift.opened is exist - process it [12:57:29]req_shift_opened [12:57:29]FM_GetShiftState [12:57:29]SAM_PROTO_GetShiftState [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 13 01 00 [12:57:29]Write to MH i2c: E2 08 00 40 54 80 13 01 00 00 00 00 00 11 [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 0E 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 0E 00 40 54 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 7C [12:57:29]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:57:29]wFMCommunicate OK [12:57:29]SAM_PROTO_GetShiftState done [12:57:29]FM_GetShiftState done [12:57:29]req_shift_opened done [12:57:29]requested_item shift.open_date is exist - process it [12:57:29]req_shift_open_date [12:57:29]req_shift_open_date done [12:57:29]produce_requested_data done [12:57:29]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26893,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [12:57:29]process_action_free close_receipt [12:57:29]json_value_free [12:57:29]json_value_free done [12:57:29]process_json_proto returns [12:57:29]Send response to host [12:57:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26893,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [12:57:29]free response buf [12:57:29]execute_script done [12:57:29]execute_script returns [12:57:29]free content buf [12:57:29]Sock 10.Close socket [12:57:29]Sock 10.Thread stoped [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:40]accept exits with 8 [12:57:40]New connection [12:57:40]New thread 3066871140 created [12:57:40]Thread 3067014500 joined [12:57:40]Waiting for new connection... [12:57:40] Sock 8.Parse request [12:57:40]Sock 8.Check first char [12:57:40]Sock 8.First char is OK [12:57:40]request: POST /json_proto HTTP/1.0 [12:57:40]Method: POST [12:57:40]URL: /json_proto [12:57:40]Method is POST - this is cgi request [12:57:40]url: /json_proto [12:57:40]query_string will be loaded in cgi processing [12:57:40]execute_cgi json_proto POST (null) [12:57:40]execute_cgi path=json_proto method=POST [12:57:40]POST find Content-Length [12:57:40]Host: 172.17.35.3:8080 [12:57:40]Content-Length: 677 [12:57:40]Content-Type: application/json [12:57:40] [12:57:40]POST finish read [12:57:40]Found Content-Length = 677 [12:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 2.910, "sum" : 184.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 184.00, "payments": [ { "type": 0, "sum" : 184.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:40]execute_script... [12:57:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 2.910, "sum" : 184.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 184.00, "payments": [ { "type": 0, "sum" : 184.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:40]POST & json_proto [12:57:40]process_json_proto [12:57:40]json parsed OK: [12:57:40]protocol is kg_v1.0 [12:57:40]action value=close_receipt [12:57:40]process_action close_receipt [12:57:40]cmd_close_receipt [12:57:40]MH_GetDate [12:57:40]Write to MH i2c: F0 00 00 41 54 84 [12:57:40]Write i2c OK [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: F0 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: F0 09 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: F0 09 00 41 54 00 58 3B 15 66 2B 11 66 64 A1 [12:57:40]GetLastDocTimeStamp 1712667465 [12:57:40]current date 1712667480 [12:57:40]FM_GetShiftState [12:57:40]SAM_PROTO_GetShiftState [12:57:40]wFMCommunicate request_size=4 [12:57:40]MH_SAM_APDU [12:57:40]CAPDU: 80 13 01 00 [12:57:40]Write to MH i2c: E2 08 00 42 54 80 13 01 00 00 00 00 00 13 [12:57:40]Write i2c OK [12:57:40]MH_I2C_Read... [12:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:40]Read from MH i2c: E2 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 0E 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 0E 00 42 54 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 7E [12:57:40]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:57:40]wFMCommunicate OK [12:57:40]SAM_PROTO_GetShiftState done [12:57:40]FM_GetShiftState done [12:57:40]opened in 1712622936 [12:57:40]opened+sec_in_day 1712709336 [12:57:40]quantity*price = 18449 [12:57:40]sum+1 = 18450 [12:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 184.00 Внесено: 200.00 СДАЧА: 16.00 НСП 1% : 1.63 НДС 12% : 19.59 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 26 09.04.2024 12:58 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26894 ФПД: 98737126022157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T125800&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26894&fm=98737126022157&tin=02508201610067®Number=0000000000091578&sum=18400 [12:57:41]StoreToDocumentArchive [12:57:41]shift 315 fd 26894 [12:57:41]save to /storage/0315/doc_00026894 [12:57:41]save last doc name /storage/0315/doc_00026894 to /storage/kkm_last_doc_name [12:57:41]save OK [12:57:41]Clear old archive folders... [12:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:41]tlvbuf is 00E3C100 [12:57:41]SAM_PROTO_ClearQueue [12:57:41]wFMCommunicate request_size=4 [12:57:41]MH_SAM_APDU [12:57:41]CAPDU: 80 09 00 00 [12:57:41]Write to MH i2c: E2 08 00 4F 54 80 09 00 00 00 00 00 00 15 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:41]Read from MH i2c: E2 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 4F 54 00 90 00 17 [12:57:41]RAPDU: 90 00 [12:57:41]wFMCommunicate OK [12:57:41]SAM_PROTO_ClearQueue done [12:57:41]KKMCreateOFDPacket [12:57:41]OFDProtocolAddRootSTLVToBuf [12:57:41]FM_MakeSignedData [12:57:41]FM_MakeSignedData [12:57:41]SAM_PROTO_SignData [12:57:41]wFMCommunicate request_size=4 [12:57:41]MH_SAM_APDU [12:57:41]CAPDU: 80 0D 01 02 [12:57:41]Write to MH i2c: E2 08 00 50 54 80 0D 01 02 00 00 00 00 1D [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:41]Read from MH i2c: E2 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 50 54 00 90 00 18 [12:57:41]RAPDU: 90 00 [12:57:41]wFMCommunicate OK [12:57:41]wFMCommunicate request_size=255 [12:57:41]MH_SAM_APDU [12:57:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 11 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 58 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 69 00 00 35 04 06 00 59 [12:57:41]Write to MH i2c: E2 02 01 51 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 11 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 58 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 69 00 00 35 04 06 00 59 00 00 A2 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:41]Read from MH i2c: E2 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 51 54 00 90 00 19 [12:57:41]RAPDU: 90 00 [12:57:41]wFMCommunicate OK [12:57:41]wFMCommunicate request_size=10 [12:57:41]MH_SAM_APDU [12:57:41]CAPDU: 80 0D 02 02 05 CD 07 52 9C 0D [12:57:41]Write to MH i2c: E2 0D 00 52 54 80 0D 02 02 05 00 CD 07 52 9C 0D 00 00 F9 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:41]Read from MH i2c: E2 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 03 00 52 54 00 90 00 1A [12:57:41]RAPDU: 90 00 [12:57:41]wFMCommunicate OK [12:57:41]wFMCommunicate request_size=4 [12:57:41]MH_SAM_APDU [12:57:41]CAPDU: 80 0D 03 02 [12:57:41]Write to MH i2c: E2 08 00 53 54 80 0D 03 02 00 00 00 00 22 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:41]Read from MH i2c: E2 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 0B 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 0B 00 53 54 00 7F 74 B4 3D 2E 99 49 80 90 00 97 [12:57:41]RAPDU: 7F 74 B4 3D 2E 99 49 80 90 00 [12:57:41]wFMCommunicate OK [12:57:41]SAM_PROTO_SignData done [12:57:41]FM_MakeSignedData done [12:57:41]CreateOFDProtocolMessage [12:57:41]wFMCommunicate request_size=4 [12:57:41]MH_SAM_APDU [12:57:41]CAPDU: 80 11 00 00 [12:57:41]Write to MH i2c: E2 08 00 54 54 80 11 00 00 00 00 00 00 22 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:41]Read from MH i2c: E2 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 17 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: E2 17 00 54 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 7A [12:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:57:41]wFMCommunicate OK [12:57:41]CreateOFDProtocolMessage done [12:57:41]OFDSenderStorePacket 26894 [12:57:41]StoreOFDPacket docnum=26894 [12:57:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 70 DF 07 01 B4 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 11 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 58 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 69 00 00 35 04 06 00 59 CD 07 52 9C 0D 7F 74 B4 3D 2E 99 49 80 [12:57:41]CheckFolder [12:57:41]dirname=/storage/ofd_packets [12:57:41]CheckFolder done [12:57:41]ProducePacketName [12:57:41]name=ofd_packets/00026894 [12:57:41]NVStorageSaveData ofd_packets/00026894 [12:57:41]File name is /storage/ofd_packets/00026894 [12:57:41]Write 301 bytes [12:57:41]NVStorageSaveData done [12:57:41]OFDSenderStorePacket done [12:57:41]KKMCreateOFDPacket done [12:57:41]NVStorageSaveData kkm_last_timestamp [12:57:41]File name is /storage/kkm_last_timestamp [12:57:41]Write 4 bytes [12:57:41]NVStorageSaveData done [12:57:41]ExternCall_PrintAddStr [12:57:41]wPrintStart [12:57:41]Write to MH i2c: 01 00 00 55 54 A9 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: 01 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: 01 07 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: 01 07 00 55 54 00 00 00 00 00 FF 0F BE [12:57:41]RasterBufferAndPrint [12:57:41]line Счет N : (1)359639 [12:57:41]line ИНН: 02508201610067 [12:57:41]line Контрольно-Кассовый Чек [12:57:41]line ПРОДАЖА [12:57:41]line ТРК (МРК, ГНК) : 61 [12:57:41]line Товар: 2710124130 [12:57:41]line Аи-92-К-5 [12:57:41]line 2.910 * 63.40 [12:57:41]line = 184.49 [12:57:41]line НДС 12% НСП 1% [12:57:41]line > о реализуемом товаре [12:57:41]line ОКРУГЛЕНИЕ: -0.49 [12:57:41]line ИТОГО: 184.00 [12:57:41]line Внесено: 200.00 [12:57:41]line СДАЧА: 16.00 [12:57:41]line НСП 1% : 1.63 [12:57:41]line НДС 12% : 19.59 [12:57:41]line Наличными: 184.00 [12:57:41]line Безнал.: 0.00 [12:57:41]line Место: АЗС № 122 "Партнер Нефть" [12:57:41]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [12:57:41]line СНО: Общий режим [12:57:41]line Чек 26 09.04.2024 12:58 [12:57:41]line Смена: 315 ФФД: 1.0 [12:57:41]line ЗНМ: 0300000147 [12:57:41]line РНМ: 0000000000091578 [12:57:41]line Версия ККМ: 001 [12:57:41]line ФМ: 0000000000874657 [12:57:41]line ФД: 26894 [12:57:41]line ФПД: 98737126022157 [12:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T125800&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26894&fm=98737126022157&tin=02508201610067®Number=0000000000091578&sum=18400 [12:57:42]OFD Sender: Processing packet 26894 [packets to send 44, broken 43] [12:57:42]ProducePacketName [12:57:42]name=ofd_packets/00026894 [12:57:42]OFD Sender: To server: pG, [12:57:42]CommunicateWithHost lk.salyk.kg:30040 [12:57:42]ConnectInit lk.salyk.kg [12:57:42]written 0, free lines is 4095 [12:57:42]Connected sock=10 [12:57:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 70 DF 07 01 B4 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 11 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 58 3B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0E 69 00 00 35 04 06 00 59 CD 07 52 9C 0D 7F 74 B4 3D 2E 99 49 80 [12:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 42 CA 47 00 E3 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 38 37 34 36 35 37 10 04 04 00 0E 69 00 00 F4 03 04 00 BF E2 14 66 B6 04 01 00 00 61 C8 91 6B 5C A7 51 7B [12:57:42]CommunicateWithHost err = 0 [12:57:42]CheckOFDResponse [12:57:42]1017 (14) - 77093643461234 [12:57:42]1041 (16) - 0000000000874657 [12:57:42]1040 (4) - 26894 [12:57:42]1012 (4) - 09.04.2024 06:39 [12:57:42]1206 (1) - 0 [12:57:42]OFD Sender: Remove packet 26894 [12:57:42]ProducePacketName [12:57:42]name=ofd_packets/00026894 [12:57:42]NVStorageDeleteData [12:57:42]Write to MH i2c: 01 00 00 80 54 D4 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: 01 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: 01 07 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: 01 07 00 80 54 00 00 00 00 00 7A 0C 61 [12:57:42]RasterBufferAndPrint [12:57:42]line [12:57:42]line [12:57:42]line [12:57:42]line [12:57:42]line [12:57:42]written 0, free lines is 3198 [12:57:42]MH_Cut [12:57:42]Write to MH i2c: D1 01 00 87 54 01 AD [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: D1 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: D1 01 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: D1 01 00 87 54 00 AC [12:57:42]Write to MH i2c: 01 00 00 88 54 DC [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:43]OFD Sender: No OFD packet to send [12:57:43]*** Cut start [12:57:43]*** Partial cut [12:57:43]*** CUTSNS_PIN = 1 [12:57:43]*** CUTSNS_PIN = 0 [12:57:44]*** Brake cut motor [12:57:44]Read from MH i2c: 01 [12:57:44]MH_I2C_Read... [12:57:44]*** Stop cut motor [12:57:44]*** Cut end [12:57:44]Read from MH i2c: 01 07 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: 01 07 00 88 54 00 00 00 00 00 FF 0F F1 [12:57:44]process_action close_receipt done [12:57:44]requested_data is exist [12:57:44]produce_requested_data [12:57:44]requested_item fm.sn is exist - process it [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 11 00 00 [12:57:44]Write to MH i2c: E2 08 00 89 54 80 11 00 00 00 00 00 00 57 [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 17 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 17 00 89 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AF [12:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [12:57:44]wFMCommunicate OK [12:57:44]requested_item fd.num is exist - process it [12:57:44]SAM_PROTO_GetFieldsCounters [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 13 00 00 [12:57:44]Write to MH i2c: E2 08 00 8A 54 80 13 00 00 00 00 00 00 5A [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 62 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 62 00 8A 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0E 69 00 00 0E 04 04 00 3B 01 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 86 [12:57:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0E 69 00 00 0E 04 04 00 3B 01 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 [12:57:44]wFMCommunicate OK [12:57:44]SAM_PROTO_GetFieldsCounters done [12:57:44]requested_item shift.num is exist - process it [12:57:44]requested_item shift.opened is exist - process it [12:57:44]req_shift_opened [12:57:44]FM_GetShiftState [12:57:44]SAM_PROTO_GetShiftState [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 13 01 00 [12:57:44]Write to MH i2c: E2 08 00 8B 54 80 13 01 00 00 00 00 00 5C [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 0E 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 0E 00 8B 54 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C7 [12:57:44]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [12:57:44]wFMCommunicate OK [12:57:44]SAM_PROTO_GetShiftState done [12:57:44]FM_GetShiftState done [12:57:44]req_shift_opened done [12:57:44]requested_item shift.open_date is exist - process it [12:57:44]req_shift_open_date [12:57:44]req_shift_open_date done [12:57:44]produce_requested_data done [12:57:44]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26894,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [12:57:44]process_action_free close_receipt [12:57:44]json_value_free [12:57:44]json_value_free done [12:57:44]process_json_proto returns [12:57:44]Send response to host [12:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26894,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [12:57:44]free response buf [12:57:44]execute_script done [12:57:44]execute_script returns [12:57:44]free content buf [12:57:44]Sock 8.Close socket [12:57:44]Sock 8.Thread stoped [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:25]accept exits with 9 [13:13:25]New connection [13:13:25]New thread 3067014500 created [13:13:25]Thread 3066871140 joined [13:13:25]Waiting for new connection... [13:13:25] Sock 9.Parse request [13:13:25]Sock 9.Check first char [13:13:25]Sock 9.First char is OK [13:13:25]request: POST /json_proto HTTP/1.0 [13:13:25]Method: POST [13:13:25]URL: /json_proto [13:13:25]Method is POST - this is cgi request [13:13:25]url: /json_proto [13:13:25]query_string will be loaded in cgi processing [13:13:25]execute_cgi json_proto POST (null) [13:13:25]execute_cgi path=json_proto method=POST [13:13:25]POST find Content-Length [13:13:25]Host: 172.17.35.3:8080 [13:13:25]Content-Length: 678 [13:13:25]Content-Type: application/json [13:13:25] [13:13:25]POST finish read [13:13:25]Found Content-Length = 678 [13:13:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 14.200, "sum" : 900.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:25]execute_script... [13:13:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 14.200, "sum" : 900.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:25]POST & json_proto [13:13:25]process_json_proto [13:13:25]json parsed OK: [13:13:25]protocol is kg_v1.0 [13:13:25]action value=close_receipt [13:13:25]process_action close_receipt [13:13:25]cmd_close_receipt [13:13:25]MH_GetDate [13:13:25]Write to MH i2c: F0 00 00 8C 54 CF [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: F0 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: F0 09 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: F0 09 00 8C 54 00 09 3F 15 66 2B 11 66 64 A1 [13:13:25]GetLastDocTimeStamp 1712667480 [13:13:25]current date 1712668425 [13:13:25]FM_GetShiftState [13:13:25]SAM_PROTO_GetShiftState [13:13:25]wFMCommunicate request_size=4 [13:13:25]MH_SAM_APDU [13:13:25]CAPDU: 80 13 01 00 [13:13:25]Write to MH i2c: E2 08 00 8D 54 80 13 01 00 00 00 00 00 5E [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:25]Read from MH i2c: E2 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 0E 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 0E 00 8D 54 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C9 [13:13:25]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:13:25]wFMCommunicate OK [13:13:25]SAM_PROTO_GetShiftState done [13:13:25]FM_GetShiftState done [13:13:25]opened in 1712622936 [13:13:25]opened+sec_in_day 1712709336 [13:13:25]quantity*price = 90028 [13:13:25]sum+1 = 90029 [13:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 27 09.04.2024 13:13 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26895 ФПД: 152218480547044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131345&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26895&fm=152218480547044&tin=02508201610067®Number=0000000000091578&sum=90000 [13:13:26]StoreToDocumentArchive [13:13:26]shift 315 fd 26895 [13:13:26]save to /storage/0315/doc_00026895 [13:13:26]save last doc name /storage/0315/doc_00026895 to /storage/kkm_last_doc_name [13:13:26]save OK [13:13:26]Clear old archive folders... [13:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:26]tlvbuf is 00F15D30 [13:13:26]SAM_PROTO_ClearQueue [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 09 00 00 [13:13:26]Write to MH i2c: E2 08 00 9A 54 80 09 00 00 00 00 00 00 60 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 9A 54 00 90 00 62 [13:13:26]RAPDU: 90 00 [13:13:26]wFMCommunicate OK [13:13:26]SAM_PROTO_ClearQueue done [13:13:26]KKMCreateOFDPacket [13:13:26]OFDProtocolAddRootSTLVToBuf [13:13:26]FM_MakeSignedData [13:13:26]FM_MakeSignedData [13:13:26]SAM_PROTO_SignData [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 0D 01 02 [13:13:26]Write to MH i2c: E2 08 00 9B 54 80 0D 01 02 00 00 00 00 68 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 9B 54 00 90 00 63 [13:13:26]RAPDU: 90 00 [13:13:26]wFMCommunicate OK [13:13:26]wFMCommunicate request_size=255 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 09 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 69 00 00 35 04 06 00 8A [13:13:26]Write to MH i2c: E2 02 01 9C 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 09 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 69 00 00 35 04 06 00 8A 00 00 AC [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 9C 54 00 90 00 64 [13:13:26]RAPDU: 90 00 [13:13:26]wFMCommunicate OK [13:13:26]wFMCommunicate request_size=10 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 0D 02 02 05 71 20 76 14 E4 [13:13:26]Write to MH i2c: E2 0D 00 9D 54 80 0D 02 02 05 00 71 20 76 14 E4 00 00 74 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 03 00 9D 54 00 90 00 65 [13:13:26]RAPDU: 90 00 [13:13:26]wFMCommunicate OK [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 0D 03 02 [13:13:26]Write to MH i2c: E2 08 00 9E 54 80 0D 03 02 00 00 00 00 6D [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 0B 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 0B 00 9E 54 00 8E 1B AD 1D 3F DA DB CF 90 00 A4 [13:13:26]RAPDU: 8E 1B AD 1D 3F DA DB CF 90 00 [13:13:26]wFMCommunicate OK [13:13:26]SAM_PROTO_SignData done [13:13:26]FM_MakeSignedData done [13:13:26]CreateOFDProtocolMessage [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 11 00 00 [13:13:26]Write to MH i2c: E2 08 00 9F 54 80 11 00 00 00 00 00 00 6D [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 17 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 17 00 9F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C5 [13:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:13:26]wFMCommunicate OK [13:13:26]CreateOFDProtocolMessage done [13:13:26]OFDSenderStorePacket 26895 [13:13:26]StoreOFDPacket docnum=26895 [13:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 E0 0D 07 01 FC 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 09 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 69 00 00 35 04 06 00 8A 71 20 76 14 E4 8E 1B AD 1D 3F DA DB CF [13:13:26]CheckFolder [13:13:26]dirname=/storage/ofd_packets [13:13:26]CheckFolder done [13:13:26]ProducePacketName [13:13:26]name=ofd_packets/00026895 [13:13:26]NVStorageSaveData ofd_packets/00026895 [13:13:26]File name is /storage/ofd_packets/00026895 [13:13:26]Write 301 bytes [13:13:26]NVStorageSaveData done [13:13:26]OFDSenderStorePacket done [13:13:26]KKMCreateOFDPacket done [13:13:26]NVStorageSaveData kkm_last_timestamp [13:13:26]File name is /storage/kkm_last_timestamp [13:13:26]Write 4 bytes [13:13:26]NVStorageSaveData done [13:13:26]ExternCall_PrintAddStr [13:13:26]wPrintStart [13:13:26]Write to MH i2c: 01 00 00 A0 54 F4 [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: 01 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: 01 07 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: 01 07 00 A0 54 00 00 00 00 00 FF 0F 09 [13:13:26]RasterBufferAndPrint [13:13:26]line Счет N : (1)359641 [13:13:26]line ИНН: 02508201610067 [13:13:26]line Контрольно-Кассовый Чек [13:13:26]line ПРОДАЖА [13:13:26]line ТРК (МРК, ГНК) : 61 [13:13:26]line Товар: 2710124130 [13:13:26]line Аи-92-К-5 [13:13:26]line 14.200 * 63.40 [13:13:26]line = 900.28 [13:13:26]line НДС 12% НСП 1% [13:13:26]line > о реализуемом товаре [13:13:26]line ОКРУГЛЕНИЕ: -0.28 [13:13:26]line ИТОГО: 900.00 [13:13:26]line Внесено: 900.00 [13:13:26]line СДАЧА: 0.00 [13:13:26]line НСП 1% : 7.97 [13:13:26]line НДС 12% : 95.60 [13:13:26]line Наличными: 900.00 [13:13:26]line Безнал.: 0.00 [13:13:26]line Место: АЗС № 122 "Партнер Нефть" [13:13:26]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:13:26]line СНО: Общий режим [13:13:26]line Чек 27 09.04.2024 13:13 [13:13:26]line Смена: 315 ФФД: 1.0 [13:13:26]line ЗНМ: 0300000147 [13:13:26]line РНМ: 0000000000091578 [13:13:26]line Версия ККМ: 001 [13:13:26]line ФМ: 0000000000874657 [13:13:26]line ФД: 26895 [13:13:26]line ФПД: 152218480547044 [13:13:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131345&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26895&fm=152218480547044&tin=02508201610067®Number=0000000000091578&sum=90000 [13:13:27]OFD Sender: Processing packet 26895 [packets to send 44, broken 43] [13:13:27]ProducePacketName [13:13:27]name=ofd_packets/00026895 [13:13:27]OFD Sender: To server: pG, [13:13:27]CommunicateWithHost lk.salyk.kg:30040 [13:13:27]ConnectInit lk.salyk.kg [13:13:27]written 0, free lines is 4095 [13:13:27]Connected sock=10 [13:13:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 E0 0D 07 01 FC 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 09 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 69 00 00 35 04 06 00 8A 71 20 76 14 E4 8E 1B AD 1D 3F DA DB CF [13:13:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 00 27 47 00 E5 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 0F 69 00 00 F4 03 04 00 70 E6 14 66 B6 04 01 00 00 24 88 32 0F D1 1B 48 D8 [13:13:27]CommunicateWithHost err = 0 [13:13:27]CheckOFDResponse [13:13:27]1017 (14) - 77093643461234 [13:13:27]1041 (16) - 0000000000874657 [13:13:27]1040 (4) - 26895 [13:13:27]1012 (4) - 09.04.2024 06:55 [13:13:27]1206 (1) - 0 [13:13:27]OFD Sender: Remove packet 26895 [13:13:27]ProducePacketName [13:13:27]name=ofd_packets/00026895 [13:13:27]NVStorageDeleteData [13:13:27]Write to MH i2c: 01 00 00 CB 54 1F [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: 01 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: 01 07 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: 01 07 00 CB 54 00 00 00 00 00 73 0C A5 [13:13:27]RasterBufferAndPrint [13:13:27]line [13:13:27]line [13:13:27]line [13:13:27]line [13:13:27]line [13:13:27]written 0, free lines is 3189 [13:13:27]MH_Cut [13:13:27]Write to MH i2c: D1 01 00 D2 54 01 F8 [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: D1 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: D1 01 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: D1 01 00 D2 54 00 F7 [13:13:27]Write to MH i2c: 01 00 00 D3 54 27 [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]OFD Sender: No OFD packet to send [13:13:28]*** Cut start [13:13:28]*** Partial cut [13:13:28]*** CUTSNS_PIN = 1 [13:13:28]*** CUTSNS_PIN = 0 [13:13:29]*** Brake cut motor [13:13:29]Read from MH i2c: 01 [13:13:29]MH_I2C_Read... [13:13:29]*** Stop cut motor [13:13:29]*** Cut end [13:13:29]Read from MH i2c: 01 07 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 D3 54 00 00 00 00 00 FF 0F 3C [13:13:29]process_action close_receipt done [13:13:29]requested_data is exist [13:13:29]produce_requested_data [13:13:29]requested_item fm.sn is exist - process it [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 11 00 00 [13:13:29]Write to MH i2c: E2 08 00 D4 54 80 11 00 00 00 00 00 00 A2 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 17 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 17 00 D4 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 FA [13:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:13:29]wFMCommunicate OK [13:13:29]requested_item fd.num is exist - process it [13:13:29]SAM_PROTO_GetFieldsCounters [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 13 00 00 [13:13:29]Write to MH i2c: E2 08 00 D5 54 80 13 00 00 00 00 00 00 A5 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 62 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 62 00 D5 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0F 69 00 00 0E 04 04 00 3B 01 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 D5 [13:13:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 0F 69 00 00 0E 04 04 00 3B 01 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 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_GetFieldsCounters done [13:13:29]requested_item shift.num is exist - process it [13:13:29]requested_item shift.opened is exist - process it [13:13:29]req_shift_opened [13:13:29]FM_GetShiftState [13:13:29]SAM_PROTO_GetShiftState [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 13 01 00 [13:13:29]Write to MH i2c: E2 08 00 D6 54 80 13 01 00 00 00 00 00 A7 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 D6 54 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 12 [13:13:29]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_GetShiftState done [13:13:29]FM_GetShiftState done [13:13:29]req_shift_opened done [13:13:29]requested_item shift.open_date is exist - process it [13:13:29]req_shift_open_date [13:13:29]req_shift_open_date done [13:13:29]produce_requested_data done [13:13:29]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26895,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [13:13:29]process_action_free close_receipt [13:13:29]json_value_free [13:13:29]json_value_free done [13:13:29]process_json_proto returns [13:13:29]Send response to host [13:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26895,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [13:13:29]free response buf [13:13:29]execute_script done [13:13:29]execute_script returns [13:13:29]free content buf [13:13:29]Sock 9.Close socket [13:13:29]Sock 9.Thread stoped [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:55]accept exits with 8 [13:13:55]New connection [13:13:55]New thread 3066871140 created [13:13:55]Thread 3067014500 joined [13:13:55]Waiting for new connection... [13:13:55] Sock 8.Parse request [13:13:55]Sock 8.Check first char [13:13:55]Sock 8.First char is OK [13:13:55]request: POST /json_proto HTTP/1.0 [13:13:55]Method: POST [13:13:55]URL: /json_proto [13:13:55]Method is POST - this is cgi request [13:13:55]url: /json_proto [13:13:55]query_string will be loaded in cgi processing [13:13:55]execute_cgi json_proto POST (null) [13:13:55]execute_cgi path=json_proto method=POST [13:13:55]POST find Content-Length [13:13:55]Host: 172.17.35.3:8080 [13:13:55]Content-Length: 988 [13:13:55]Content-Type: application/json [13:13:55] [13:13:55]POST finish read [13:13:55]Found Content-Length = 988 [13:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359640", "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" : 70.80, "quantity" : 127.120, "sum" : 9000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 122\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 127.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:55]execute_script... [13:13:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359640", "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" : 70.80, "quantity" : 127.120, "sum" : 9000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 122\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 127.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:55]POST & json_proto [13:13:55]process_json_proto [13:13:55]json parsed OK: [13:13:55]protocol is kg_v1.0 [13:13:55]action value=close_receipt [13:13:55]process_action close_receipt [13:13:55]cmd_close_receipt [13:13:55]MH_GetDate [13:13:55]Write to MH i2c: F0 00 00 D7 54 1A [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: F0 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: F0 09 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: F0 09 00 D7 54 00 28 3F 15 66 2B 11 66 64 0B [13:13:55]GetLastDocTimeStamp 1712668425 [13:13:55]current date 1712668456 [13:13:55]FM_GetShiftState [13:13:55]SAM_PROTO_GetShiftState [13:13:55]wFMCommunicate request_size=4 [13:13:55]MH_SAM_APDU [13:13:55]CAPDU: 80 13 01 00 [13:13:55]Write to MH i2c: E2 08 00 D8 54 80 13 01 00 00 00 00 00 A9 [13:13:55]Write i2c OK [13:13:55]MH_I2C_Read... [13:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:55]Read from MH i2c: E2 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 0E 00 [13:13:55]MH_I2C_Read... [13:13:55]Read from MH i2c: E2 0E 00 D8 54 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 14 [13:13:55]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:13:55]wFMCommunicate OK [13:13:55]SAM_PROTO_GetShiftState done [13:13:55]FM_GetShiftState done [13:13:55]opened in 1712622936 [13:13:55]opened+sec_in_day 1712709336 [13:13:55]quantity*price = 900009 [13:13:55]sum+1 = 900011 [13:13:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.76 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 28 09.04.2024 13:14 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Дисконтная программа ДТ номер 122 сэкономлено 127.12 сом ФМ: 0000000000874657 ФД: 26896 ФПД: 123295453060735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131416&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26896&fm=123295453060735&tin=02508201610067®Number=0000000000091578&sum=900000 [13:13:56]StoreToDocumentArchive [13:13:56]shift 315 fd 26896 [13:13:56]save to /storage/0315/doc_00026896 [13:13:56]save last doc name /storage/0315/doc_00026896 to /storage/kkm_last_doc_name [13:13:56]save OK [13:13:56]Clear old archive folders... [13:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:13:56]tlvbuf is 00EE5C50 [13:13:56]SAM_PROTO_ClearQueue [13:13:56]wFMCommunicate request_size=4 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 09 00 00 [13:13:56]Write to MH i2c: E2 08 00 E5 54 80 09 00 00 00 00 00 00 AB [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 03 00 E5 54 00 90 00 AD [13:13:56]RAPDU: 90 00 [13:13:56]wFMCommunicate OK [13:13:56]SAM_PROTO_ClearQueue done [13:13:56]KKMCreateOFDPacket [13:13:56]OFDProtocolAddRootSTLVToBuf [13:13:56]FM_MakeSignedData [13:13:56]FM_MakeSignedData [13:13:56]SAM_PROTO_SignData [13:13:56]wFMCommunicate request_size=4 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 0D 01 02 [13:13:56]Write to MH i2c: E2 08 00 E6 54 80 0D 01 02 00 00 00 00 B3 [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 E6 54 00 90 00 AE [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=255 [13:13:57]MH_SAM_APDU [13:13:57]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 90 F0 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 AA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 69 00 00 35 04 06 00 [13:13:57]Write to MH i2c: E2 02 01 E7 54 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 90 F0 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 AA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 69 00 00 35 04 06 00 00 00 45 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 E7 54 00 90 00 AF [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=11 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 02 02 06 70 22 F5 AE 9E 7F [13:13:57]Write to MH i2c: E2 0E 00 E8 54 80 0D 02 02 06 00 70 22 F5 AE 9E 7F 00 00 14 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 03 00 E8 54 00 90 00 B0 [13:13:57]RAPDU: 90 00 [13:13:57]wFMCommunicate OK [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 0D 03 02 [13:13:57]Write to MH i2c: E2 08 00 E9 54 80 0D 03 02 00 00 00 00 B8 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 0B 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 0B 00 E9 54 00 D1 4D 61 FF 7F 28 1E DC 90 00 D8 [13:13:57]RAPDU: D1 4D 61 FF 7F 28 1E DC 90 00 [13:13:57]wFMCommunicate OK [13:13:57]SAM_PROTO_SignData done [13:13:57]FM_MakeSignedData done [13:13:57]CreateOFDProtocolMessage [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 11 00 00 [13:13:57]Write to MH i2c: E2 08 00 EA 54 80 11 00 00 00 00 00 00 B8 [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:57]Read from MH i2c: E2 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: E2 17 00 EA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 10 [13:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:13:57]wFMCommunicate OK [13:13:57]CreateOFDProtocolMessage done [13:13:57]OFDSenderStorePacket 26896 [13:13:57]StoreOFDPacket docnum=26896 [13:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 EC AA 08 01 D4 D3 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 90 F0 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 AA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 69 00 00 35 04 06 00 70 22 F5 AE 9E 7F D1 4D 61 FF 7F 28 1E DC [13:13:57]CheckFolder [13:13:57]dirname=/storage/ofd_packets [13:13:57]CheckFolder done [13:13:57]ProducePacketName [13:13:57]name=ofd_packets/00026896 [13:13:57]NVStorageSaveData ofd_packets/00026896 [13:13:57]File name is /storage/ofd_packets/00026896 [13:13:57]Write 302 bytes [13:13:57]NVStorageSaveData done [13:13:57]OFDSenderStorePacket done [13:13:57]KKMCreateOFDPacket done [13:13:57]NVStorageSaveData kkm_last_timestamp [13:13:57]File name is /storage/kkm_last_timestamp [13:13:57]Write 4 bytes [13:13:57]NVStorageSaveData done [13:13:57]ExternCall_PrintAddStr [13:13:57]wPrintStart [13:13:57]Write to MH i2c: 01 00 00 EB 54 3F [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 [13:13:57]MH_I2C_Read... [13:13:57]Read from MH i2c: 01 07 00 EB 54 00 00 00 00 00 FF 0F 54 [13:13:57]RasterBufferAndPrint [13:13:57]line Счет N : (1)359640 [13:13:57]line ИНН: 02508201610067 [13:13:57]line Контрольно-Кассовый Чек [13:13:57]line ПРОДАЖА [13:13:57]line ТРК (МРК, ГНК) : 11 [13:13:57]line Товар: 2710194210 [13:13:57]line ДТ(л)-К-5 [13:13:57]line 127.120 * 70.80 [13:13:57]line = 9000.10 [13:13:57]line НДС 12% НСП 1% [13:13:57]line > о реализуемом товаре [13:13:57]line ОКРУГЛЕНИЕ: -0.10 [13:13:57]line ИТОГО: 9000.00 [13:13:57]line Внесено: 9000.00 [13:13:57]line СДАЧА: 0.00 [13:13:57]line НСП 1% : 79.65 [13:13:57]line НДС 12% : 955.76 [13:13:57]line Наличными: 9000.00 [13:13:57]line Безнал.: 0.00 [13:13:57]line Место: АЗС № 122 "Партнер Нефть" [13:13:57]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:13:57]line СНО: Общий режим [13:13:57]line Чек 28 09.04.2024 13:14 [13:13:57]line Смена: 315 ФФД: 1.0 [13:13:57]line ЗНМ: 0300000147 [13:13:57]line РНМ: 0000000000091578 [13:13:57]line Версия ККМ: 001 [13:13:57]line [13:13:57]line Дисконтная программа [13:13:57]line ДТ [13:13:57]line номер 122 [13:13:57]line сэкономлено 127.12 сом [13:13:57]line ФМ: 0000000000874657 [13:13:57]line ФД: 26896 [13:13:57]line ФПД: 123295453060735 [13:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131416&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26896&fm=123295453060735&tin=02508201610067®Number=0000000000091578&sum=900000 [13:13:57]OFD Sender: Processing packet 26896 [packets to send 44, broken 43] [13:13:57]ProducePacketName [13:13:57]name=ofd_packets/00026896 [13:13:57]OFD Sender: To server: pG, [13:13:57]CommunicateWithHost lk.salyk.kg:30040 [13:13:57]ConnectInit lk.salyk.kg [13:13:57]written 0, free lines is 4095 [13:13:57]Connected sock=10 [13:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 EC AA 08 01 D4 D3 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 90 F0 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 AA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 28 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 10 69 00 00 35 04 06 00 70 22 F5 AE 9E 7F D1 4D 61 FF 7F 28 1E DC [13:13:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 1F BA 47 00 0E 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 38 37 34 36 35 37 10 04 04 00 10 69 00 00 F4 03 04 00 8F E6 14 66 B6 04 01 00 00 89 16 73 7A 63 83 F6 CD [13:13:58]CommunicateWithHost err = 0 [13:13:58]CheckOFDResponse [13:13:58]1017 (14) - 77093643461234 [13:13:58]1041 (16) - 0000000000874657 [13:13:58]1040 (4) - 26896 [13:13:58]1012 (4) - 09.04.2024 06:56 [13:13:58]1206 (1) - 0 [13:13:58]OFD Sender: Remove packet 26896 [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00026896 [13:13:58]NVStorageDeleteData [13:13:58]Write to MH i2c: 01 00 00 1B 55 70 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 1B 55 00 00 00 00 00 FF 0B 81 [13:13:58]RasterBufferAndPrint [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]line [13:13:58]written 0, free lines is 3076 [13:13:58]MH_Cut [13:13:58]Write to MH i2c: D1 01 00 22 55 01 49 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 01 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: D1 01 00 22 55 00 48 [13:13:58]Write to MH i2c: 01 00 00 23 55 78 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]OFD Sender: No OFD packet to send [13:13:59]*** Cut start [13:13:59]*** Partial cut [13:13:59]*** CUTSNS_PIN = 1 [13:13:59]*** CUTSNS_PIN = 0 [13:13:59]*** Brake cut motor [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]*** Stop cut motor [13:14:00]*** Cut end [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 23 55 00 00 00 00 00 FF 0F 8D [13:14:00]process_action close_receipt done [13:14:00]requested_data is exist [13:14:00]produce_requested_data [13:14:00]requested_item fm.sn is exist - process it [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 11 00 00 [13:14:00]Write to MH i2c: E2 08 00 24 55 80 11 00 00 00 00 00 00 F3 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 24 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 4B [13:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:14:00]wFMCommunicate OK [13:14:00]requested_item fd.num is exist - process it [13:14:00]SAM_PROTO_GetFieldsCounters [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 00 00 [13:14:00]Write to MH i2c: E2 08 00 25 55 80 13 00 00 00 00 00 00 F6 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 25 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 10 69 00 00 0E 04 04 00 3B 01 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 2A [13:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 10 69 00 00 0E 04 04 00 3B 01 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 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetFieldsCounters done [13:14:00]requested_item shift.num is exist - process it [13:14:00]requested_item shift.opened is exist - process it [13:14:00]req_shift_opened [13:14:00]FM_GetShiftState [13:14:00]SAM_PROTO_GetShiftState [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 01 00 [13:14:00]Write to MH i2c: E2 08 00 26 55 80 13 01 00 00 00 00 00 F8 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 26 55 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 63 [13:14:00]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetShiftState done [13:14:00]FM_GetShiftState done [13:14:00]req_shift_opened done [13:14:00]requested_item shift.open_date is exist - process it [13:14:00]req_shift_open_date [13:14:00]req_shift_open_date done [13:14:00]produce_requested_data done [13:14:00]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26896,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [13:14:00]process_action_free close_receipt [13:14:00]json_value_free [13:14:00]json_value_free done [13:14:00]process_json_proto returns [13:14:00]Send response to host [13:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26896,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [13:14:00]free response buf [13:14:00]execute_script done [13:14:00]execute_script returns [13:14:00]free content buf [13:14:00]Sock 8.Close socket [13:14:00]Sock 8.Thread stoped [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]accept exits with 9 [13:14:23]New connection [13:14:23]New thread 3067014500 created [13:14:23]Thread 3066871140 joined [13:14:23]Waiting for new connection... [13:14:23] Sock 9.Parse request [13:14:23]Sock 9.Check first char [13:14:23]Sock 9.First char is OK [13:14:23]request: POST /json_proto HTTP/1.0 [13:14:23]Method: POST [13:14:23]URL: /json_proto [13:14:23]Method is POST - this is cgi request [13:14:23]url: /json_proto [13:14:23]query_string will be loaded in cgi processing [13:14:23]execute_cgi json_proto POST (null) [13:14:23]execute_cgi path=json_proto method=POST [13:14:23]POST find Content-Length [13:14:23]Host: 172.17.35.3:8080 [13:14:23]Content-Length: 678 [13:14:23]Content-Type: application/json [13:14:23] [13:14:23]POST finish read [13:14:23]Found Content-Length = 678 [13:14:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:23]execute_script... [13:14:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:23]POST & json_proto [13:14:23]process_json_proto [13:14:23]json parsed OK: [13:14:23]protocol is kg_v1.0 [13:14:23]action value=close_receipt [13:14:23]process_action close_receipt [13:14:23]cmd_close_receipt [13:14:23]MH_GetDate [13:14:23]Write to MH i2c: F0 00 00 27 55 6B [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: F0 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: F0 09 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: F0 09 00 27 55 00 43 3F 15 66 2B 11 66 64 77 [13:14:23]GetLastDocTimeStamp 1712668456 [13:14:23]current date 1712668483 [13:14:23]FM_GetShiftState [13:14:23]SAM_PROTO_GetShiftState [13:14:23]wFMCommunicate request_size=4 [13:14:23]MH_SAM_APDU [13:14:23]CAPDU: 80 13 01 00 [13:14:23]Write to MH i2c: E2 08 00 28 55 80 13 01 00 00 00 00 00 FA [13:14:23]Write i2c OK [13:14:23]MH_I2C_Read... [13:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:23]Read from MH i2c: E2 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 0E 00 [13:14:23]MH_I2C_Read... [13:14:23]Read from MH i2c: E2 0E 00 28 55 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 65 [13:14:23]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:14:23]wFMCommunicate OK [13:14:23]SAM_PROTO_GetShiftState done [13:14:23]FM_GetShiftState done [13:14:23]opened in 1712622936 [13:14:23]opened+sec_in_day 1712709336 [13:14:23]quantity*price = 80024 [13:14:23]sum+1 = 80026 [13:14:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 29 09.04.2024 13:14 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26897 ФПД: 171928293883327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131443&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26897&fm=171928293883327&tin=02508201610067®Number=0000000000091578&sum=80000 [13:14:24]StoreToDocumentArchive [13:14:24]shift 315 fd 26897 [13:14:24]save to /storage/0315/doc_00026897 [13:14:24]save last doc name /storage/0315/doc_00026897 to /storage/kkm_last_doc_name [13:14:24]save OK [13:14:24]Clear old archive folders... [13:14:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:24]tlvbuf is 00EF46F0 [13:14:24]SAM_PROTO_ClearQueue [13:14:24]wFMCommunicate request_size=4 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 09 00 00 [13:14:24]Write to MH i2c: E2 08 00 35 55 80 09 00 00 00 00 00 00 FC [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 35 55 00 90 00 FE [13:14:24]RAPDU: 90 00 [13:14:24]wFMCommunicate OK [13:14:24]SAM_PROTO_ClearQueue done [13:14:24]KKMCreateOFDPacket [13:14:24]OFDProtocolAddRootSTLVToBuf [13:14:24]FM_MakeSignedData [13:14:24]FM_MakeSignedData [13:14:24]SAM_PROTO_SignData [13:14:24]wFMCommunicate request_size=4 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 0D 01 02 [13:14:24]Write to MH i2c: E2 08 00 36 55 80 0D 01 02 00 00 00 00 04 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 36 55 00 90 00 FF [13:14:24]RAPDU: 90 00 [13:14:24]wFMCommunicate OK [13:14:24]wFMCommunicate request_size=255 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 43 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 69 00 00 35 04 06 00 9C [13:14:24]Write to MH i2c: E2 02 01 37 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 43 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 69 00 00 35 04 06 00 9C 00 00 BC [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 37 55 00 90 00 00 [13:14:24]RAPDU: 90 00 [13:14:24]wFMCommunicate OK [13:14:24]wFMCommunicate request_size=10 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 0D 02 02 05 5E 2C E2 3D BF [13:14:24]Write to MH i2c: E2 0D 00 38 55 80 0D 02 02 05 00 5E 2C E2 3D BF 00 00 79 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 03 00 38 55 00 90 00 01 [13:14:24]RAPDU: 90 00 [13:14:24]wFMCommunicate OK [13:14:24]wFMCommunicate request_size=4 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 0D 03 02 [13:14:24]Write to MH i2c: E2 08 00 39 55 80 0D 03 02 00 00 00 00 09 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 0B 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 0B 00 39 55 00 23 05 6C 44 5A ED CD 26 90 00 1C [13:14:24]RAPDU: 23 05 6C 44 5A ED CD 26 90 00 [13:14:24]wFMCommunicate OK [13:14:24]SAM_PROTO_SignData done [13:14:24]FM_MakeSignedData done [13:14:24]CreateOFDProtocolMessage [13:14:24]wFMCommunicate request_size=4 [13:14:24]MH_SAM_APDU [13:14:24]CAPDU: 80 11 00 00 [13:14:24]Write to MH i2c: E2 08 00 3A 55 80 11 00 00 00 00 00 00 09 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:24]Read from MH i2c: E2 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 17 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: E2 17 00 3A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 61 [13:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:14:24]wFMCommunicate OK [13:14:24]CreateOFDProtocolMessage done [13:14:24]OFDSenderStorePacket 26897 [13:14:24]StoreOFDPacket docnum=26897 [13:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A9 4E 07 01 A1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 43 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 69 00 00 35 04 06 00 9C 5E 2C E2 3D BF 23 05 6C 44 5A ED CD 26 [13:14:24]CheckFolder [13:14:24]dirname=/storage/ofd_packets [13:14:24]CheckFolder done [13:14:24]ProducePacketName [13:14:24]name=ofd_packets/00026897 [13:14:24]NVStorageSaveData ofd_packets/00026897 [13:14:24]File name is /storage/ofd_packets/00026897 [13:14:24]Write 301 bytes [13:14:24]NVStorageSaveData done [13:14:24]OFDSenderStorePacket done [13:14:24]KKMCreateOFDPacket done [13:14:24]NVStorageSaveData kkm_last_timestamp [13:14:24]File name is /storage/kkm_last_timestamp [13:14:24]Write 4 bytes [13:14:24]NVStorageSaveData done [13:14:24]ExternCall_PrintAddStr [13:14:24]wPrintStart [13:14:24]Write to MH i2c: 01 00 00 3B 55 90 [13:14:24]Write i2c OK [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 [13:14:24]MH_I2C_Read... [13:14:24]Read from MH i2c: 01 07 00 3B 55 00 00 00 00 00 FF 0F A5 [13:14:24]RasterBufferAndPrint [13:14:24]line Счет N : (1)359642 [13:14:24]line ИНН: 02508201610067 [13:14:24]line Контрольно-Кассовый Чек [13:14:24]line ПРОДАЖА [13:14:24]line ТРК (МРК, ГНК) : 53 [13:14:24]line Товар: 2710124500 [13:14:24]line Аи-95-К-5 [13:14:24]line 11.130 * 71.90 [13:14:24]line = 800.25 [13:14:24]line НДС 12% НСП 1% [13:14:24]line > о реализуемом товаре [13:14:24]line ОКРУГЛЕНИЕ: -0.25 [13:14:24]line ИТОГО: 800.00 [13:14:24]line Внесено: 800.00 [13:14:24]line СДАЧА: 0.00 [13:14:24]line НСП 1% : 7.08 [13:14:24]line НДС 12% : 84.98 [13:14:24]line Наличными: 800.00 [13:14:24]line Безнал.: 0.00 [13:14:24]line Место: АЗС № 122 "Партнер Нефть" [13:14:24]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:14:24]line СНО: Общий режим [13:14:24]line Чек 29 09.04.2024 13:14 [13:14:24]line Смена: 315 ФФД: 1.0 [13:14:24]line ЗНМ: 0300000147 [13:14:24]line РНМ: 0000000000091578 [13:14:24]line Версия ККМ: 001 [13:14:24]line ФМ: 0000000000874657 [13:14:24]line ФД: 26897 [13:14:25]line ФПД: 171928293883327 [13:14:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131443&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26897&fm=171928293883327&tin=02508201610067®Number=0000000000091578&sum=80000 [13:14:25]OFD Sender: Processing packet 26897 [packets to send 44, broken 43] [13:14:25]ProducePacketName [13:14:25]name=ofd_packets/00026897 [13:14:25]OFD Sender: To server: pG, [13:14:25]CommunicateWithHost lk.salyk.kg:30040 [13:14:25]ConnectInit lk.salyk.kg [13:14:25]written 0, free lines is 4095 [13:14:25]Connected sock=10 [13:14:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A9 4E 07 01 A1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 43 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 69 00 00 35 04 06 00 9C 5E 2C E2 3D BF 23 05 6C 44 5A ED CD 26 [13:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 12 82 47 00 C4 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 11 69 00 00 F4 03 04 00 AA E6 14 66 B6 04 01 00 00 4F 5B 3A 83 A7 B5 6D 57 [13:14:25]CommunicateWithHost err = 0 [13:14:25]CheckOFDResponse [13:14:25]1017 (14) - 77093643461234 [13:14:25]1041 (16) - 0000000000874657 [13:14:25]1040 (4) - 26897 [13:14:25]1012 (4) - 09.04.2024 06:56 [13:14:25]1206 (1) - 0 [13:14:25]OFD Sender: Remove packet 26897 [13:14:25]ProducePacketName [13:14:25]name=ofd_packets/00026897 [13:14:25]NVStorageDeleteData [13:14:25]Write to MH i2c: 01 00 00 66 55 BB [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 07 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: 01 07 00 66 55 00 00 00 00 00 7E 0C 4C [13:14:25]RasterBufferAndPrint [13:14:25]line [13:14:25]line [13:14:25]line [13:14:25]line [13:14:25]line [13:14:25]written 0, free lines is 3202 [13:14:25]MH_Cut [13:14:25]Write to MH i2c: D1 01 00 6D 55 01 94 [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: D1 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: D1 01 00 [13:14:25]MH_I2C_Read... [13:14:25]Read from MH i2c: D1 01 00 6D 55 00 93 [13:14:25]Write to MH i2c: 01 00 00 6E 55 C3 [13:14:25]Write i2c OK [13:14:25]MH_I2C_Read... [13:14:26]OFD Sender: No OFD packet to send [13:14:26]*** Cut start [13:14:26]*** Partial cut [13:14:26]*** CUTSNS_PIN = 1 [13:14:26]*** CUTSNS_PIN = 0 [13:14:27]*** Brake cut motor [13:14:27]Read from MH i2c: 01 [13:14:27]MH_I2C_Read... [13:14:27]*** Stop cut motor [13:14:27]*** Cut end [13:14:27]Read from MH i2c: 01 07 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: 01 07 00 6E 55 00 00 00 00 00 FF 0F D8 [13:14:27]process_action close_receipt done [13:14:27]requested_data is exist [13:14:27]produce_requested_data [13:14:27]requested_item fm.sn is exist - process it [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 11 00 00 [13:14:27]Write to MH i2c: E2 08 00 6F 55 80 11 00 00 00 00 00 00 3E [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 17 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 17 00 6F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 96 [13:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:14:27]wFMCommunicate OK [13:14:27]requested_item fd.num is exist - process it [13:14:27]SAM_PROTO_GetFieldsCounters [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 13 00 00 [13:14:27]Write to MH i2c: E2 08 00 70 55 80 13 00 00 00 00 00 00 41 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 62 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 62 00 70 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 11 69 00 00 0E 04 04 00 3B 01 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 79 [13:14:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 11 69 00 00 0E 04 04 00 3B 01 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 [13:14:27]wFMCommunicate OK [13:14:27]SAM_PROTO_GetFieldsCounters done [13:14:27]requested_item shift.num is exist - process it [13:14:27]requested_item shift.opened is exist - process it [13:14:27]req_shift_opened [13:14:27]FM_GetShiftState [13:14:27]SAM_PROTO_GetShiftState [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 13 01 00 [13:14:27]Write to MH i2c: E2 08 00 71 55 80 13 01 00 00 00 00 00 43 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 0E 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 0E 00 71 55 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 AE [13:14:27]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:14:27]wFMCommunicate OK [13:14:27]SAM_PROTO_GetShiftState done [13:14:27]FM_GetShiftState done [13:14:27]req_shift_opened done [13:14:27]requested_item shift.open_date is exist - process it [13:14:27]req_shift_open_date [13:14:27]req_shift_open_date done [13:14:27]produce_requested_data done [13:14:27]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26897,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [13:14:27]process_action_free close_receipt [13:14:27]json_value_free [13:14:27]json_value_free done [13:14:27]process_json_proto returns [13:14:27]Send response to host [13:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26897,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [13:14:27]free response buf [13:14:27]execute_script done [13:14:27]execute_script returns [13:14:27]free content buf [13:14:27]Sock 9.Close socket [13:14:27]Sock 9.Thread stoped [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:47]accept exits with 8 [13:16:47]New connection [13:16:47]New thread 3066871140 created [13:16:47]Thread 3067014500 joined [13:16:47]Waiting for new connection... [13:16:47] Sock 8.Parse request [13:16:47]Sock 8.Check first char [13:16:47]Sock 8.First char is OK [13:16:47]request: POST /json_proto HTTP/1.0 [13:16:47]Method: POST [13:16:47]URL: /json_proto [13:16:47]Method is POST - this is cgi request [13:16:47]url: /json_proto [13:16:47]query_string will be loaded in cgi processing [13:16:47]execute_cgi json_proto POST (null) [13:16:47]execute_cgi path=json_proto method=POST [13:16:47]POST find Content-Length [13:16:47]Host: 172.17.35.3:8080 [13:16:47]Content-Length: 986 [13:16:47]Content-Type: application/json [13:16:47] [13:16:47]POST finish read [13:16:47]Found Content-Length = 986 [13:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359643", "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" : 70.80, "quantity" : 84.750, "sum" : 6000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 122\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 84.75 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:47]execute_script... [13:16: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)359643", "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" : 70.80, "quantity" : 84.750, "sum" : 6000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 122\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 84.75 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:47]POST & json_proto [13:16:47]process_json_proto [13:16:47]json parsed OK: [13:16:47]protocol is kg_v1.0 [13:16:47]action value=close_receipt [13:16:47]process_action close_receipt [13:16:47]cmd_close_receipt [13:16:47]MH_GetDate [13:16:47]Write to MH i2c: F0 00 00 72 55 B6 [13:16:47]Write i2c OK [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 09 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 09 00 72 55 00 D4 3F 15 66 2B 11 66 64 53 [13:16:47]GetLastDocTimeStamp 1712668483 [13:16:47]current date 1712668628 [13:16:47]FM_GetShiftState [13:16:47]SAM_PROTO_GetShiftState [13:16:47]wFMCommunicate request_size=4 [13:16:47]MH_SAM_APDU [13:16:47]CAPDU: 80 13 01 00 [13:16:47]Write to MH i2c: E2 08 00 73 55 80 13 01 00 00 00 00 00 45 [13:16:47]Write i2c OK [13:16:47]MH_I2C_Read... [13:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:47]Read from MH i2c: E2 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 73 55 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 B0 [13:16:47]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:16:47]wFMCommunicate OK [13:16:47]SAM_PROTO_GetShiftState done [13:16:47]FM_GetShiftState done [13:16:47]opened in 1712622936 [13:16:47]opened+sec_in_day 1712709336 [13:16:47]quantity*price = 600030 [13:16:47]sum+1 = 600031 [13:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.20 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 30 09.04.2024 13:17 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Дисконтная программа ДТ номер 122 сэкономлено 84.75 сом ФМ: 0000000000874657 ФД: 26898 ФПД: 183255523846506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131708&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26898&fm=183255523846506&tin=02508201610067®Number=0000000000091578&sum=600000 [13:16:48]StoreToDocumentArchive [13:16:48]shift 315 fd 26898 [13:16:48]save to /storage/0315/doc_00026898 [13:16:48]save last doc name /storage/0315/doc_00026898 to /storage/kkm_last_doc_name [13:16:48]save OK [13:16:48]Clear old archive folders... [13:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:16:48]tlvbuf is B6DB7A70 [13:16:48]SAM_PROTO_ClearQueue [13:16:48]wFMCommunicate request_size=4 [13:16:48]MH_SAM_APDU [13:16:48]CAPDU: 80 09 00 00 [13:16:48]Write to MH i2c: E2 08 00 80 55 80 09 00 00 00 00 00 00 47 [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:48]Read from MH i2c: E2 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 80 55 00 90 00 49 [13:16:48]RAPDU: 90 00 [13:16:48]wFMCommunicate OK [13:16:48]SAM_PROTO_ClearQueue done [13:16:48]KKMCreateOFDPacket [13:16:48]OFDProtocolAddRootSTLVToBuf [13:16:48]FM_MakeSignedData [13:16:48]FM_MakeSignedData [13:16:48]SAM_PROTO_SignData [13:16:48]wFMCommunicate request_size=4 [13:16:48]MH_SAM_APDU [13:16:48]CAPDU: 80 0D 01 02 [13:16:48]Write to MH i2c: E2 08 00 81 55 80 0D 01 02 00 00 00 00 4F [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:48]Read from MH i2c: E2 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 81 55 00 90 00 4A [13:16:48]RAPDU: 90 00 [13:16:48]wFMCommunicate OK [13:16:48]wFMCommunicate request_size=255 [13:16:48]MH_SAM_APDU [13:16: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 0E 4B 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 DE 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 D4 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 69 00 00 35 04 06 00 [13:16:48]Write to MH i2c: E2 02 01 82 55 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 0E 4B 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 DE 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 D4 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 69 00 00 35 04 06 00 00 00 BE [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 82 55 00 90 00 4B [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=11 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 02 02 06 A6 AB 80 66 E9 6A [13:16:49]Write to MH i2c: E2 0E 00 83 55 80 0D 02 02 06 00 A6 AB 80 66 E9 6A 00 00 E8 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 83 55 00 90 00 4C [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 03 02 [13:16:49]Write to MH i2c: E2 08 00 84 55 80 0D 03 02 00 00 00 00 54 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 84 55 00 79 51 50 7A 8F CE 6E 0E 90 00 C2 [13:16:49]RAPDU: 79 51 50 7A 8F CE 6E 0E 90 00 [13:16:49]wFMCommunicate OK [13:16:49]SAM_PROTO_SignData done [13:16:49]FM_MakeSignedData done [13:16:49]CreateOFDProtocolMessage [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 11 00 00 [13:16:49]Write to MH i2c: E2 08 00 85 55 80 11 00 00 00 00 00 00 54 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 85 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AC [13:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:16:49]wFMCommunicate OK [13:16:49]CreateOFDProtocolMessage done [13:16:49]OFDSenderStorePacket 26898 [13:16:49]StoreOFDPacket docnum=26898 [13:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 5B E8 08 01 22 68 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 0E 4B 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 DE 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 D4 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 69 00 00 35 04 06 00 A6 AB 80 66 E9 6A 79 51 50 7A 8F CE 6E 0E [13:16:49]CheckFolder [13:16:49]dirname=/storage/ofd_packets [13:16:49]CheckFolder done [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00026898 [13:16:49]NVStorageSaveData ofd_packets/00026898 [13:16:49]File name is /storage/ofd_packets/00026898 [13:16:49]Write 302 bytes [13:16:49]NVStorageSaveData done [13:16:49]OFDSenderStorePacket done [13:16:49]KKMCreateOFDPacket done [13:16:49]NVStorageSaveData kkm_last_timestamp [13:16:49]File name is /storage/kkm_last_timestamp [13:16:49]Write 4 bytes [13:16:49]NVStorageSaveData done [13:16:49]ExternCall_PrintAddStr [13:16:49]wPrintStart [13:16:49]Write to MH i2c: 01 00 00 86 55 DB [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 86 55 00 00 00 00 00 FF 0F F0 [13:16:49]RasterBufferAndPrint [13:16:49]line Счет N : (1)359643 [13:16:49]line ИНН: 02508201610067 [13:16:49]line Контрольно-Кассовый Чек [13:16:49]line ПРОДАЖА [13:16:49]line ТРК (МРК, ГНК) : 11 [13:16:49]line Товар: 2710194210 [13:16:49]line ДТ(л)-К-5 [13:16:49]line 84.750 * 70.80 [13:16:49]line = 6000.30 [13:16:49]line НДС 12% НСП 1% [13:16:49]line > о реализуемом товаре [13:16:49]line ОКРУГЛЕНИЕ: -0.30 [13:16:49]line ИТОГО: 6000.00 [13:16:49]line Внесено: 6000.00 [13:16:49]line СДАЧА: 0.00 [13:16:49]line НСП 1% : 53.10 [13:16:49]line НДС 12% : 637.20 [13:16:49]line Наличными: 6000.00 [13:16:49]line Безнал.: 0.00 [13:16:49]line Место: АЗС № 122 "Партнер Нефть" [13:16:49]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [13:16:49]line СНО: Общий режим [13:16:49]line Чек 30 09.04.2024 13:17 [13:16:49]line Смена: 315 ФФД: 1.0 [13:16:49]line ЗНМ: 0300000147 [13:16:49]line РНМ: 0000000000091578 [13:16:49]line Версия ККМ: 001 [13:16:49]line [13:16:49]line Дисконтная программа [13:16:49]line ДТ [13:16:49]line номер 122 [13:16:49]line сэкономлено 84.75 сом [13:16:49]line ФМ: 0000000000874657 [13:16:49]line ФД: 26898 [13:16:49]line ФПД: 183255523846506 [13:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T131708&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26898&fm=183255523846506&tin=02508201610067®Number=0000000000091578&sum=600000 [13:16:49]OFD Sender: Processing packet 26898 [packets to send 44, broken 43] [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00026898 [13:16:49]OFD Sender: To server: pG, [13:16:49]CommunicateWithHost lk.salyk.kg:30040 [13:16:49]ConnectInit lk.salyk.kg [13:16:49]written 0, free lines is 4095 [13:16:49]Connected sock=10 [13:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 5B E8 08 01 22 68 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 0E 4B 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 DE 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 D4 3F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 69 00 00 35 04 06 00 A6 AB 80 66 E9 6A 79 51 50 7A 8F CE 6E 0E [13:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 09 63 47 00 01 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 12 69 00 00 F4 03 04 00 3A E7 14 66 B6 04 01 00 00 AA 8C 38 8D 59 A4 FB 28 [13:16:49]CommunicateWithHost err = 0 [13:16:49]CheckOFDResponse [13:16:49]1017 (14) - 77093643461234 [13:16:49]1041 (16) - 0000000000874657 [13:16:49]1040 (4) - 26898 [13:16:49]1012 (4) - 09.04.2024 06:59 [13:16:49]1206 (1) - 0 [13:16:49]OFD Sender: Remove packet 26898 [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00026898 [13:16:49]NVStorageDeleteData [13:16:50]Write to MH i2c: 01 00 00 B6 55 0B [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 07 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: 01 07 00 B6 55 00 00 00 00 00 0A 0C 28 [13:16:50]RasterBufferAndPrint [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]line [13:16:50]written 0, free lines is 3087 [13:16:50]MH_Cut [13:16:50]Write to MH i2c: D1 01 00 BD 55 01 E4 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 01 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: D1 01 00 BD 55 00 E3 [13:16:50]Write to MH i2c: 01 00 00 BE 55 13 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]OFD Sender: No OFD packet to send [13:16:51]*** Cut start [13:16:51]*** Partial cut [13:16:51]*** CUTSNS_PIN = 1 [13:16:51]*** CUTSNS_PIN = 0 [13:16:51]*** Brake cut motor [13:16:51]Read from MH i2c: 01 [13:16:51]MH_I2C_Read... [13:16:51]*** Stop cut motor [13:16:51]*** Cut end [13:16:51]Read from MH i2c: 01 07 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: 01 07 00 BE 55 00 00 00 00 00 FF 0F 28 [13:16:51]process_action close_receipt done [13:16:51]requested_data is exist [13:16:51]produce_requested_data [13:16:51]requested_item fm.sn is exist - process it [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 11 00 00 [13:16:51]Write to MH i2c: E2 08 00 BF 55 80 11 00 00 00 00 00 00 8E [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 BF 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E6 [13:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [13:16:52]wFMCommunicate OK [13:16:52]requested_item fd.num is exist - process it [13:16:52]SAM_PROTO_GetFieldsCounters [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 13 00 00 [13:16:52]Write to MH i2c: E2 08 00 C0 55 80 13 00 00 00 00 00 00 91 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 62 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 62 00 C0 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 12 69 00 00 0E 04 04 00 3B 01 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 CD [13:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 12 69 00 00 0E 04 04 00 3B 01 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 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_GetFieldsCounters done [13:16:52]requested_item shift.num is exist - process it [13:16:52]requested_item shift.opened is exist - process it [13:16:52]req_shift_opened [13:16:52]FM_GetShiftState [13:16:52]SAM_PROTO_GetShiftState [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 13 01 00 [13:16:52]Write to MH i2c: E2 08 00 C1 55 80 13 01 00 00 00 00 00 93 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 C1 55 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 FE [13:16:52]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_GetShiftState done [13:16:52]FM_GetShiftState done [13:16:52]req_shift_opened done [13:16:52]requested_item shift.open_date is exist - process it [13:16:52]req_shift_open_date [13:16:52]req_shift_open_date done [13:16:52]produce_requested_data done [13:16:52]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26898,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [13:16:52]process_action_free close_receipt [13:16:52]json_value_free [13:16:52]json_value_free done [13:16:52]process_json_proto returns [13:16:52]Send response to host [13:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26898,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [13:16:52]free response buf [13:16:52]execute_script done [13:16:52]execute_script returns [13:16:52]free content buf [13:16:52]Sock 8.Close socket [13:16:52]Sock 8.Thread stoped [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]accept exits with 9 [14:23:58]New connection [14:23:58]New thread 3067014500 created [14:23:58]Thread 3066871140 joined [14:23:58]Waiting for new connection... [14:23:58] Sock 9.Parse request [14:23:58]Sock 9.Check first char [14:23:58]Sock 9.First char is OK [14:23:58]request: POST /json_proto HTTP/1.0 [14:23:58]Method: POST [14:23:58]URL: /json_proto [14:23:58]Method is POST - this is cgi request [14:23:58]url: /json_proto [14:23:58]query_string will be loaded in cgi processing [14:23:58]execute_cgi json_proto POST (null) [14:23:58]execute_cgi path=json_proto method=POST [14:23:58]POST find Content-Length [14:23:58]Host: 172.17.35.3:8080 [14:23:58]Content-Length: 819 [14:23:58]Content-Type: application/json [14:23:58] [14:23:58]POST finish read [14:23:58]Found Content-Length = 819 [14:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:58]execute_script... [14:23:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:58]POST & json_proto [14:23:58]process_json_proto [14:23:58]json parsed OK: [14:23:58]protocol is kg_v1.0 [14:23:58]action value=close_receipt [14:23:58]process_action close_receipt [14:23:58]cmd_close_receipt [14:23:58]MH_GetDate [14:23:58]Write to MH i2c: F0 00 00 C2 55 06 [14:23:58]Write i2c OK [14:23:58]MH_I2C_Read... [14:23:58]Read from MH i2c: F0 [14:23:58]MH_I2C_Read... [14:23:58]Read from MH i2c: F0 09 00 [14:23:58]MH_I2C_Read... [14:23:58]Read from MH i2c: F0 09 00 C2 55 00 93 4F 15 66 2B 11 66 64 72 [14:23:58]GetLastDocTimeStamp 1712668628 [14:23:58]current date 1712672659 [14:23:58]FM_GetShiftState [14:23:58]SAM_PROTO_GetShiftState [14:23:58]wFMCommunicate request_size=4 [14:23:58]MH_SAM_APDU [14:23:58]CAPDU: 80 13 01 00 [14:23:58]Write to MH i2c: E2 08 00 C3 55 80 13 01 00 00 00 00 00 95 [14:23:58]Write i2c OK [14:23:58]MH_I2C_Read... [14:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:58]Read from MH i2c: E2 [14:23:58]MH_I2C_Read... [14:23:58]Read from MH i2c: E2 0E 00 [14:23:58]MH_I2C_Read... [14:23:58]Read from MH i2c: E2 0E 00 C3 55 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 00 [14:23:58]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:23:58]wFMCommunicate OK [14:23:58]SAM_PROTO_GetShiftState done [14:23:58]FM_GetShiftState done [14:23:58]opened in 1712622936 [14:23:58]opened+sec_in_day 1712709336 [14:23:58]quantity*price = 120001 [14:23:58]sum+1 = 120002 [14:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.01 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 0.00 Безнал.: 1200.01 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 31 09.04.2024 14:24 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874657 ФД: 26899 ФПД: 105054483145730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T142419&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26899&fm=105054483145730&tin=02508201610067®Number=0000000000091578&sum=120001 [14:23:59]StoreToDocumentArchive [14:23:59]shift 315 fd 26899 [14:23:59]save to /storage/0315/doc_00026899 [14:23:59]save last doc name /storage/0315/doc_00026899 to /storage/kkm_last_doc_name [14:23:59]save OK [14:23:59]Clear old archive folders... [14:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:59]tlvbuf is B6EE95A0 [14:23:59]SAM_PROTO_ClearQueue [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 09 00 00 [14:23:59]Write to MH i2c: E2 08 00 D0 55 80 09 00 00 00 00 00 00 97 [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 03 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 03 00 D0 55 00 90 00 99 [14:23:59]RAPDU: 90 00 [14:23:59]wFMCommunicate OK [14:23:59]SAM_PROTO_ClearQueue done [14:23:59]KKMCreateOFDPacket [14:23:59]OFDProtocolAddRootSTLVToBuf [14:23:59]FM_MakeSignedData [14:23:59]FM_MakeSignedData [14:23:59]SAM_PROTO_SignData [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 0D 01 02 [14:23:59]Write to MH i2c: E2 08 00 D1 55 80 0D 01 02 00 00 00 00 9F [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 03 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 03 00 D1 55 00 90 00 9A [14:23:59]RAPDU: 90 00 [14:23:59]wFMCommunicate OK [14:23:59]wFMCommunicate request_size=255 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 4F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 69 00 00 35 04 06 00 5F [14:23:59]Write to MH i2c: E2 02 01 D2 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 4F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 69 00 00 35 04 06 00 5F 00 00 D3 [14:24:00]Write i2c OK [14:24:00]MH_I2C_Read... [14:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:00]Read from MH i2c: E2 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 03 00 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 03 00 D2 55 00 90 00 9B [14:24:00]RAPDU: 90 00 [14:24:00]wFMCommunicate OK [14:24:00]wFMCommunicate request_size=10 [14:24:00]MH_SAM_APDU [14:24:00]CAPDU: 80 0D 02 02 05 8B E7 26 64 02 [14:24:00]Write to MH i2c: E2 0D 00 D3 55 80 0D 02 02 05 00 8B E7 26 64 02 00 00 AA [14:24:00]Write i2c OK [14:24:00]MH_I2C_Read... [14:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:00]Read from MH i2c: E2 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 03 00 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 03 00 D3 55 00 90 00 9C [14:24:00]RAPDU: 90 00 [14:24:00]wFMCommunicate OK [14:24:00]wFMCommunicate request_size=4 [14:24:00]MH_SAM_APDU [14:24:00]CAPDU: 80 0D 03 02 [14:24:00]Write to MH i2c: E2 08 00 D4 55 80 0D 03 02 00 00 00 00 A4 [14:24:00]Write i2c OK [14:24:00]MH_I2C_Read... [14:24:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:00]Read from MH i2c: E2 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 0B 00 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 0B 00 D4 55 00 AE AF 43 80 D3 BD BD 1D 90 00 2F [14:24:00]RAPDU: AE AF 43 80 D3 BD BD 1D 90 00 [14:24:00]wFMCommunicate OK [14:24:00]SAM_PROTO_SignData done [14:24:00]FM_MakeSignedData done [14:24:00]CreateOFDProtocolMessage [14:24:00]wFMCommunicate request_size=4 [14:24:00]MH_SAM_APDU [14:24:00]CAPDU: 80 11 00 00 [14:24:00]Write to MH i2c: E2 08 00 D5 55 80 11 00 00 00 00 00 00 A4 [14:24:00]Write i2c OK [14:24:00]MH_I2C_Read... [14:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:00]Read from MH i2c: E2 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 17 00 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: E2 17 00 D5 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 FC [14:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:24:00]wFMCommunicate OK [14:24:00]CreateOFDProtocolMessage done [14:24:00]OFDSenderStorePacket 26899 [14:24:00]StoreOFDPacket docnum=26899 [14:24:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 5D 19 07 01 0D 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 4F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 69 00 00 35 04 06 00 5F 8B E7 26 64 02 AE AF 43 80 D3 BD BD 1D [14:24:00]CheckFolder [14:24:00]dirname=/storage/ofd_packets [14:24:00]CheckFolder done [14:24:00]ProducePacketName [14:24:00]name=ofd_packets/00026899 [14:24:00]NVStorageSaveData ofd_packets/00026899 [14:24:00]File name is /storage/ofd_packets/00026899 [14:24:00]Write 301 bytes [14:24:00]NVStorageSaveData done [14:24:00]OFDSenderStorePacket done [14:24:00]KKMCreateOFDPacket done [14:24:00]NVStorageSaveData kkm_last_timestamp [14:24:00]File name is /storage/kkm_last_timestamp [14:24:00]Write 4 bytes [14:24:00]NVStorageSaveData done [14:24:00]ExternCall_PrintAddStr [14:24:00]wPrintStart [14:24:00]Write to MH i2c: 01 00 00 D6 55 2B [14:24:00]Write i2c OK [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: 01 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: 01 07 00 [14:24:00]MH_I2C_Read... [14:24:00]Read from MH i2c: 01 07 00 D6 55 00 00 00 00 00 FF 0F 40 [14:24:00]RasterBufferAndPrint [14:24:00]line Счет N : (1)359644 [14:24:00]line ИНН: 02508201610067 [14:24:00]line Контрольно-Кассовый Чек [14:24:00]line ПРОДАЖА [14:24:00]line ТРК (МРК, ГНК) : 53 [14:24:00]line Товар: 2710124500 [14:24:00]line Аи-95-К-5 [14:24:00]line 16.690 * 71.90 [14:24:00]line = 1200.01 [14:24:00]line НДС 12% НСП 1% [14:24:00]line > о реализуемом товаре [14:24:00]line ИТОГО: 1200.01 [14:24:00]line НСП 1% : 10.62 [14:24:00]line НДС 12% : 127.43 [14:24:00]line Наличными: 0.00 [14:24:00]line Безнал.: 1200.01 [14:24:00]line Место: АЗС № 122 "Партнер Нефть" [14:24:00]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:24:00]line СНО: Общий режим [14:24:00]line Чек 31 09.04.2024 14:24 [14:24:00]line Смена: 315 ФФД: 1.0 [14:24:00]line ЗНМ: 0300000147 [14:24:00]line РНМ: 0000000000091578 [14:24:00]line Версия ККМ: 001 [14:24:00]line Платежная система: Бакай Банк [14:24:00]line ФМ: 0000000000874657 [14:24:00]line ФД: 26899 [14:24:00]line ФПД: 105054483145730 [14:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T142419&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26899&fm=105054483145730&tin=02508201610067®Number=0000000000091578&sum=120001 [14:24:00]OFD Sender: Processing packet 26899 [packets to send 44, broken 43] [14:24:00]ProducePacketName [14:24:00]name=ofd_packets/00026899 [14:24:00]OFD Sender: To server: pG, [14:24:00]CommunicateWithHost lk.salyk.kg:30040 [14:24:00]ConnectInit lk.salyk.kg [14:24:00]written 0, free lines is 4095 [14:24:00]Connected sock=10 [14:24:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 5D 19 07 01 0D 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 93 4F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 69 00 00 35 04 06 00 5F 8B E7 26 64 02 AE AF 43 80 D3 BD BD 1D [14:24:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 0D DA 47 00 A0 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 13 69 00 00 F4 03 04 00 FA F6 14 66 B6 04 01 00 00 CE 63 60 70 19 F3 16 D9 [14:24:01]CommunicateWithHost err = 0 [14:24:01]CheckOFDResponse [14:24:01]1017 (14) - 77093643461234 [14:24:01]1041 (16) - 0000000000874657 [14:24:01]1040 (4) - 26899 [14:24:01]1012 (4) - 09.04.2024 08:06 [14:24:01]1206 (1) - 0 [14:24:01]OFD Sender: Remove packet 26899 [14:24:01]ProducePacketName [14:24:01]name=ofd_packets/00026899 [14:24:01]NVStorageDeleteData [14:24:01]Write to MH i2c: 01 00 00 00 56 56 [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: 01 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: 01 07 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: 01 07 00 00 56 00 00 00 00 00 81 0C EA [14:24:01]RasterBufferAndPrint [14:24:01]line [14:24:01]line [14:24:01]line [14:24:01]line [14:24:01]line [14:24:01]written 0, free lines is 3206 [14:24:01]MH_Cut [14:24:01]Write to MH i2c: D1 01 00 07 56 01 2F [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: D1 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: D1 01 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: D1 01 00 07 56 00 2E [14:24:01]Write to MH i2c: 01 00 00 08 56 5E [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]OFD Sender: No OFD packet to send [14:24:02]*** Cut start [14:24:02]*** Partial cut [14:24:02]*** CUTSNS_PIN = 1 [14:24:02]*** CUTSNS_PIN = 0 [14:24:02]*** Brake cut motor [14:24:03]Read from MH i2c: 01 [14:24:03]MH_I2C_Read... [14:24:03]*** Stop cut motor [14:24:03]*** Cut end [14:24:03]Read from MH i2c: 01 07 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 08 56 00 00 00 00 00 FF 0F 73 [14:24:03]process_action close_receipt done [14:24:03]requested_data is exist [14:24:03]produce_requested_data [14:24:03]requested_item fm.sn is exist - process it [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 11 00 00 [14:24:03]Write to MH i2c: E2 08 00 09 56 80 11 00 00 00 00 00 00 D9 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 17 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 17 00 09 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 31 [14:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:24:03]wFMCommunicate OK [14:24:03]requested_item fd.num is exist - process it [14:24:03]SAM_PROTO_GetFieldsCounters [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 13 00 00 [14:24:03]Write to MH i2c: E2 08 00 0A 56 80 13 00 00 00 00 00 00 DC [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 62 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 62 00 0A 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 13 69 00 00 0E 04 04 00 3B 01 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 1C [14:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 13 69 00 00 0E 04 04 00 3B 01 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 [14:24:03]wFMCommunicate OK [14:24:03]SAM_PROTO_GetFieldsCounters done [14:24:03]requested_item shift.num is exist - process it [14:24:03]requested_item shift.opened is exist - process it [14:24:03]req_shift_opened [14:24:03]FM_GetShiftState [14:24:03]SAM_PROTO_GetShiftState [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 13 01 00 [14:24:03]Write to MH i2c: E2 08 00 0B 56 80 13 01 00 00 00 00 00 DE [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 0E 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 0E 00 0B 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 49 [14:24:03]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:24:03]wFMCommunicate OK [14:24:03]SAM_PROTO_GetShiftState done [14:24:03]FM_GetShiftState done [14:24:03]req_shift_opened done [14:24:03]requested_item shift.open_date is exist - process it [14:24:03]req_shift_open_date [14:24:03]req_shift_open_date done [14:24:03]produce_requested_data done [14:24:03]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26899,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [14:24:03]process_action_free close_receipt [14:24:03]json_value_free [14:24:03]json_value_free done [14:24:03]process_json_proto returns [14:24:03]Send response to host [14:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26899,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [14:24:03]free response buf [14:24:03]execute_script done [14:24:03]execute_script returns [14:24:03]free content buf [14:24:03]Sock 9.Close socket [14:24:03]Sock 9.Thread stoped [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:20]accept exits with 8 [14:26:20]New connection [14:26:20]New thread 3066871140 created [14:26:20]Thread 3067014500 joined [14:26:20]Waiting for new connection... [14:26:20] Sock 8.Parse request [14:26:20]Sock 8.Check first char [14:26:20]Sock 8.First char is OK [14:26:20]request: POST /json_proto HTTP/1.0 [14:26:20]Method: POST [14:26:20]URL: /json_proto [14:26:20]Method is POST - this is cgi request [14:26:20]url: /json_proto [14:26:20]query_string will be loaded in cgi processing [14:26:20]execute_cgi json_proto POST (null) [14:26:20]execute_cgi path=json_proto method=POST [14:26:20]POST find Content-Length [14:26:20]Host: 172.17.35.3:8080 [14:26:20]Content-Length: 682 [14:26:20]Content-Type: application/json [14:26:20] [14:26:20]POST finish read [14:26:20]Found Content-Length = 682 [14:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:20]execute_script... [14:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:20]POST & json_proto [14:26:20]process_json_proto [14:26:20]json parsed OK: [14:26:20]protocol is kg_v1.0 [14:26:20]action value=close_receipt [14:26:20]process_action close_receipt [14:26:20]cmd_close_receipt [14:26:20]MH_GetDate [14:26:20]Write to MH i2c: F0 00 00 0C 56 51 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: F0 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: F0 09 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: F0 09 00 0C 56 00 21 50 15 66 2B 11 66 64 4C [14:26:20]GetLastDocTimeStamp 1712672659 [14:26:20]current date 1712672801 [14:26:20]FM_GetShiftState [14:26:20]SAM_PROTO_GetShiftState [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 13 01 00 [14:26:20]Write to MH i2c: E2 08 00 0D 56 80 13 01 00 00 00 00 00 E0 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0E 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0E 00 0D 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 4B [14:26:20]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:26:20]wFMCommunicate OK [14:26:20]SAM_PROTO_GetShiftState done [14:26:20]FM_GetShiftState done [14:26:20]opened in 1712622936 [14:26:20]opened+sec_in_day 1712709336 [14:26:20]quantity*price = 100012 [14:26:20]sum+1 = 100014 [14:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 32 09.04.2024 14:26 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26900 ФПД: 25306837596541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T142641&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26900&fm=25306837596541&tin=02508201610067®Number=0000000000091578&sum=100000 [14:26:21]StoreToDocumentArchive [14:26:21]shift 315 fd 26900 [14:26:21]save to /storage/0315/doc_00026900 [14:26:21]save last doc name /storage/0315/doc_00026900 to /storage/kkm_last_doc_name [14:26:21]save OK [14:26:21]Clear old archive folders... [14:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:21]tlvbuf is 00EEB770 [14:26:21]SAM_PROTO_ClearQueue [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 09 00 00 [14:26:21]Write to MH i2c: E2 08 00 1A 56 80 09 00 00 00 00 00 00 E2 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 1A 56 00 90 00 E4 [14:26:21]RAPDU: 90 00 [14:26:21]wFMCommunicate OK [14:26:21]SAM_PROTO_ClearQueue done [14:26:21]KKMCreateOFDPacket [14:26:21]OFDProtocolAddRootSTLVToBuf [14:26:21]FM_MakeSignedData [14:26:21]FM_MakeSignedData [14:26:21]SAM_PROTO_SignData [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 0D 01 02 [14:26:21]Write to MH i2c: E2 08 00 1B 56 80 0D 01 02 00 00 00 00 EA [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 03 00 1B 56 00 90 00 E5 [14:26:21]RAPDU: 90 00 [14:26:21]wFMCommunicate OK [14:26:21]wFMCommunicate request_size=255 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 21 50 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 69 00 00 35 04 06 00 17 [14:26:21]Write to MH i2c: E2 02 01 1C 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 21 50 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 69 00 00 35 04 06 00 17 00 00 3C [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 1C 56 00 90 00 E6 [14:26:22]RAPDU: 90 00 [14:26:22]wFMCommunicate OK [14:26:22]wFMCommunicate request_size=10 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 0D 02 02 05 04 35 10 B9 7D [14:26:22]Write to MH i2c: E2 0D 00 1D 56 80 0D 02 02 05 00 04 35 10 B9 7D 00 00 76 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 03 00 1D 56 00 90 00 E7 [14:26:22]RAPDU: 90 00 [14:26:22]wFMCommunicate OK [14:26:22]wFMCommunicate request_size=4 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 0D 03 02 [14:26:22]Write to MH i2c: E2 08 00 1E 56 80 0D 03 02 00 00 00 00 EF [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0B 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0B 00 1E 56 00 02 65 9A 56 A8 35 FF BE 90 00 E1 [14:26:22]RAPDU: 02 65 9A 56 A8 35 FF BE 90 00 [14:26:22]wFMCommunicate OK [14:26:22]SAM_PROTO_SignData done [14:26:22]FM_MakeSignedData done [14:26:22]CreateOFDProtocolMessage [14:26:22]wFMCommunicate request_size=4 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 11 00 00 [14:26:22]Write to MH i2c: E2 08 00 1F 56 80 11 00 00 00 00 00 00 EF [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 17 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 17 00 1F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 47 [14:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:26:22]wFMCommunicate OK [14:26:22]CreateOFDProtocolMessage done [14:26:22]OFDSenderStorePacket 26900 [14:26:22]StoreOFDPacket docnum=26900 [14:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 50 33 07 01 0D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 21 50 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 69 00 00 35 04 06 00 17 04 35 10 B9 7D 02 65 9A 56 A8 35 FF BE [14:26:22]CheckFolder [14:26:22]dirname=/storage/ofd_packets [14:26:22]CheckFolder done [14:26:22]ProducePacketName [14:26:22]name=ofd_packets/00026900 [14:26:22]NVStorageSaveData ofd_packets/00026900 [14:26:22]File name is /storage/ofd_packets/00026900 [14:26:22]Write 301 bytes [14:26:22]NVStorageSaveData done [14:26:22]OFDSenderStorePacket done [14:26:22]KKMCreateOFDPacket done [14:26:22]NVStorageSaveData kkm_last_timestamp [14:26:22]File name is /storage/kkm_last_timestamp [14:26:22]Write 4 bytes [14:26:22]NVStorageSaveData done [14:26:22]ExternCall_PrintAddStr [14:26:22]wPrintStart [14:26:22]Write to MH i2c: 01 00 00 20 56 76 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 20 56 00 00 00 00 00 FF 0F 8B [14:26:22]RasterBufferAndPrint [14:26:22]line Счет N : (1)359645 [14:26:22]line ИНН: 02508201610067 [14:26:22]line Контрольно-Кассовый Чек [14:26:22]line ПРОДАЖА [14:26:22]line ТРК (МРК, ГНК) : 63 [14:26:22]line Товар: 2710124500 [14:26:22]line Аи-95-К-5 [14:26:22]line 13.910 * 71.90 [14:26:22]line = 1000.13 [14:26:22]line НДС 12% НСП 1% [14:26:22]line > о реализуемом товаре [14:26:22]line ОКРУГЛЕНИЕ: -0.13 [14:26:22]line ИТОГО: 1000.00 [14:26:22]line Внесено: 1000.00 [14:26:22]line СДАЧА: 0.00 [14:26:22]line НСП 1% : 8.85 [14:26:22]line НДС 12% : 106.21 [14:26:22]line Наличными: 1000.00 [14:26:22]line Безнал.: 0.00 [14:26:22]line Место: АЗС № 122 "Партнер Нефть" [14:26:22]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:26:22]line СНО: Общий режим [14:26:22]line Чек 32 09.04.2024 14:26 [14:26:22]line Смена: 315 ФФД: 1.0 [14:26:22]line ЗНМ: 0300000147 [14:26:22]line РНМ: 0000000000091578 [14:26:22]line Версия ККМ: 001 [14:26:22]line ФМ: 0000000000874657 [14:26:22]line ФД: 26900 [14:26:22]line ФПД: 25306837596541 [14:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T142641&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26900&fm=25306837596541&tin=02508201610067®Number=0000000000091578&sum=100000 [14:26:22]OFD Sender: Processing packet 26900 [packets to send 44, broken 43] [14:26:22]ProducePacketName [14:26:22]name=ofd_packets/00026900 [14:26:22]OFD Sender: To server: pG, [14:26:22]CommunicateWithHost lk.salyk.kg:30040 [14:26:22]ConnectInit lk.salyk.kg [14:26:22]written 0, free lines is 4095 [14:26:22]Connected sock=10 [14:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 50 33 07 01 0D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 21 50 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 69 00 00 35 04 06 00 17 04 35 10 B9 7D 02 65 9A 56 A8 35 FF BE [14:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F0 6A 47 00 18 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 14 69 00 00 F4 03 04 00 88 F7 14 66 B6 04 01 00 00 C1 A7 EF D6 B0 71 CD 74 [14:26:22]CommunicateWithHost err = 0 [14:26:22]CheckOFDResponse [14:26:22]1017 (14) - 77093643461234 [14:26:22]1041 (16) - 0000000000874657 [14:26:22]1040 (4) - 26900 [14:26:22]1012 (4) - 09.04.2024 08:08 [14:26:22]1206 (1) - 0 [14:26:22]OFD Sender: Remove packet 26900 [14:26:22]ProducePacketName [14:26:22]name=ofd_packets/00026900 [14:26:22]NVStorageDeleteData [14:26:23]Write to MH i2c: 01 00 00 4B 56 A1 [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: 01 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: 01 07 00 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: 01 07 00 4B 56 00 00 00 00 00 6E 0C 22 [14:26:23]RasterBufferAndPrint [14:26:23]line [14:26:23]line [14:26:23]line [14:26:23]line [14:26:23]line [14:26:23]written 0, free lines is 3186 [14:26:23]MH_Cut [14:26:23]Write to MH i2c: D1 01 00 52 56 01 7A [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: D1 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: D1 01 00 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: D1 01 00 52 56 00 79 [14:26:23]Write to MH i2c: 01 00 00 53 56 A9 [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]OFD Sender: No OFD packet to send [14:26:24]*** Cut start [14:26:24]*** Partial cut [14:26:24]*** CUTSNS_PIN = 1 [14:26:24]*** CUTSNS_PIN = 0 [14:26:24]*** Brake cut motor [14:26:24]Read from MH i2c: 01 [14:26:24]MH_I2C_Read... [14:26:24]*** Stop cut motor [14:26:24]*** Cut end [14:26:24]Read from MH i2c: 01 07 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 07 00 53 56 00 00 00 00 00 FF 0F BE [14:26:24]process_action close_receipt done [14:26:24]requested_data is exist [14:26:24]produce_requested_data [14:26:24]requested_item fm.sn is exist - process it [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 11 00 00 [14:26:24]Write to MH i2c: E2 08 00 54 56 80 11 00 00 00 00 00 00 24 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:25]Read from MH i2c: E2 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: E2 17 00 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: E2 17 00 54 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 7C [14:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:26:25]wFMCommunicate OK [14:26:25]requested_item fd.num is exist - process it [14:26:25]SAM_PROTO_GetFieldsCounters [14:26:25]wFMCommunicate request_size=4 [14:26:25]MH_SAM_APDU [14:26:25]CAPDU: 80 13 00 00 [14:26:25]Write to MH i2c: E2 08 00 55 56 80 13 00 00 00 00 00 00 27 [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:25]Read from MH i2c: E2 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: E2 62 00 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: E2 62 00 55 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 14 69 00 00 0E 04 04 00 3B 01 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 6B [14:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 14 69 00 00 0E 04 04 00 3B 01 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 [14:26:25]wFMCommunicate OK [14:26:25]SAM_PROTO_GetFieldsCounters done [14:26:25]requested_item shift.num is exist - process it [14:26:25]requested_item shift.opened is exist - process it [14:26:25]req_shift_opened [14:26:25]FM_GetShiftState [14:26:25]SAM_PROTO_GetShiftState [14:26:25]wFMCommunicate request_size=4 [14:26:25]MH_SAM_APDU [14:26:25]CAPDU: 80 13 01 00 [14:26:25]Write to MH i2c: E2 08 00 56 56 80 13 01 00 00 00 00 00 29 [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:25]Read from MH i2c: E2 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: E2 0E 00 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: E2 0E 00 56 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 94 [14:26:25]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:26:25]wFMCommunicate OK [14:26:25]SAM_PROTO_GetShiftState done [14:26:25]FM_GetShiftState done [14:26:25]req_shift_opened done [14:26:25]requested_item shift.open_date is exist - process it [14:26:25]req_shift_open_date [14:26:25]req_shift_open_date done [14:26:25]produce_requested_data done [14:26:25]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26900,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [14:26:25]process_action_free close_receipt [14:26:25]json_value_free [14:26:25]json_value_free done [14:26:25]process_json_proto returns [14:26:25]Send response to host [14:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26900,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [14:26:25]free response buf [14:26:25]execute_script done [14:26:25]execute_script returns [14:26:25]free content buf [14:26:25]Sock 8.Close socket [14:26:25]Sock 8.Thread stoped [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:02]accept exits with 9 [14:32:02]New connection [14:32:02]New thread 3067014500 created [14:32:02]Thread 3066871140 joined [14:32:02]Waiting for new connection... [14:32:02] Sock 9.Parse request [14:32:02]Sock 9.Check first char [14:32:02]Sock 9.First char is OK [14:32:02]request: POST /json_proto HTTP/1.0 [14:32:02]Method: POST [14:32:02]URL: /json_proto [14:32:02]Method is POST - this is cgi request [14:32:02]url: /json_proto [14:32:02]query_string will be loaded in cgi processing [14:32:02]execute_cgi json_proto POST (null) [14:32:02]execute_cgi path=json_proto method=POST [14:32:02]POST find Content-Length [14:32:02]Host: 172.17.35.3:8080 [14:32:02]Content-Length: 682 [14:32:02]Content-Type: application/json [14:32:02] [14:32:02]POST finish read [14:32:02]Found Content-Length = 682 [14:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 5.580, "sum" : 400.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:02]execute_script... [14:32:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 5.580, "sum" : 400.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:02]POST & json_proto [14:32:02]process_json_proto [14:32:02]json parsed OK: [14:32:02]protocol is kg_v1.0 [14:32:02]action value=close_receipt [14:32:02]process_action close_receipt [14:32:02]cmd_close_receipt [14:32:02]MH_GetDate [14:32:02]Write to MH i2c: F0 00 00 57 56 9C [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: F0 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: F0 09 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: F0 09 00 57 56 00 77 51 15 66 2B 11 66 64 EE [14:32:02]GetLastDocTimeStamp 1712672801 [14:32:02]current date 1712673143 [14:32:02]FM_GetShiftState [14:32:02]SAM_PROTO_GetShiftState [14:32:02]wFMCommunicate request_size=4 [14:32:02]MH_SAM_APDU [14:32:02]CAPDU: 80 13 01 00 [14:32:02]Write to MH i2c: E2 08 00 58 56 80 13 01 00 00 00 00 00 2B [14:32:02]Write i2c OK [14:32:02]MH_I2C_Read... [14:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:02]Read from MH i2c: E2 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 0E 00 [14:32:02]MH_I2C_Read... [14:32:02]Read from MH i2c: E2 0E 00 58 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 96 [14:32:02]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:32:02]wFMCommunicate OK [14:32:02]SAM_PROTO_GetShiftState done [14:32:02]FM_GetShiftState done [14:32:02]opened in 1712622936 [14:32:02]opened+sec_in_day 1712709336 [14:32:02]quantity*price = 40064 [14:32:02]sum+1 = 40065 [14:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 33 09.04.2024 14:32 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26901 ФПД: 48591077015644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T143223&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26901&fm=48591077015644&tin=02508201610067®Number=0000000000091578&sum=40000 [14:32:03]StoreToDocumentArchive [14:32:03]shift 315 fd 26901 [14:32:03]save to /storage/0315/doc_00026901 [14:32:03]save last doc name /storage/0315/doc_00026901 to /storage/kkm_last_doc_name [14:32:03]save OK [14:32:03]Clear old archive folders... [14:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:32:03]tlvbuf is B6EE9350 [14:32:03]SAM_PROTO_ClearQueue [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 09 00 00 [14:32:03]Write to MH i2c: E2 08 00 65 56 80 09 00 00 00 00 00 00 2D [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 65 56 00 90 00 2F [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]SAM_PROTO_ClearQueue done [14:32:03]KKMCreateOFDPacket [14:32:03]OFDProtocolAddRootSTLVToBuf [14:32:03]FM_MakeSignedData [14:32:03]FM_MakeSignedData [14:32:03]SAM_PROTO_SignData [14:32:03]wFMCommunicate request_size=4 [14:32:03]MH_SAM_APDU [14:32:03]CAPDU: 80 0D 01 02 [14:32:03]Write to MH i2c: E2 08 00 66 56 80 0D 01 02 00 00 00 00 35 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:03]Read from MH i2c: E2 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 [14:32:03]MH_I2C_Read... [14:32:03]Read from MH i2c: E2 03 00 66 56 00 90 00 30 [14:32:03]RAPDU: 90 00 [14:32:03]wFMCommunicate OK [14:32:03]wFMCommunicate request_size=255 [14:32:03]MH_SAM_APDU [14:32:03]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 CC 15 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 80 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 77 51 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 69 00 00 35 04 06 00 [14:32:03]Write to MH i2c: E2 02 01 67 56 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 CC 15 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 80 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 77 51 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 69 00 00 35 04 06 00 00 00 91 [14:32:03]Write i2c OK [14:32:03]MH_I2C_Read... [14:32:03]OFD Sender: No OFD packet to send [14:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 67 56 00 90 00 31 [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]wFMCommunicate request_size=11 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 0D 02 02 06 2C 31 7D E2 80 5C [14:32:04]Write to MH i2c: E2 0E 00 68 56 80 0D 02 02 06 00 2C 31 7D E2 80 5C 00 00 DC [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 03 00 68 56 00 90 00 32 [14:32:04]RAPDU: 90 00 [14:32:04]wFMCommunicate OK [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 0D 03 02 [14:32:04]Write to MH i2c: E2 08 00 69 56 80 0D 03 02 00 00 00 00 3A [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 0B 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 0B 00 69 56 00 CE F2 4A A4 9B 5A 72 78 90 00 C8 [14:32:04]RAPDU: CE F2 4A A4 9B 5A 72 78 90 00 [14:32:04]wFMCommunicate OK [14:32:04]SAM_PROTO_SignData done [14:32:04]FM_MakeSignedData done [14:32:04]CreateOFDProtocolMessage [14:32:04]wFMCommunicate request_size=4 [14:32:04]MH_SAM_APDU [14:32:04]CAPDU: 80 11 00 00 [14:32:04]Write to MH i2c: E2 08 00 6A 56 80 11 00 00 00 00 00 00 3A [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:04]Read from MH i2c: E2 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 17 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: E2 17 00 6A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 92 [14:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:32:04]wFMCommunicate OK [14:32:04]CreateOFDProtocolMessage done [14:32:04]OFDSenderStorePacket 26901 [14:32:04]StoreOFDPacket docnum=26901 [14:32:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 AC D9 08 01 A7 9A 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 CC 15 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 80 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 77 51 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 69 00 00 35 04 06 00 2C 31 7D E2 80 5C CE F2 4A A4 9B 5A 72 78 [14:32:04]CheckFolder [14:32:04]dirname=/storage/ofd_packets [14:32:04]CheckFolder done [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00026901 [14:32:04]NVStorageSaveData ofd_packets/00026901 [14:32:04]File name is /storage/ofd_packets/00026901 [14:32:04]Write 302 bytes [14:32:04]NVStorageSaveData done [14:32:04]OFDSenderStorePacket done [14:32:04]KKMCreateOFDPacket done [14:32:04]NVStorageSaveData kkm_last_timestamp [14:32:04]File name is /storage/kkm_last_timestamp [14:32:04]Write 4 bytes [14:32:04]NVStorageSaveData done [14:32:04]ExternCall_PrintAddStr [14:32:04]wPrintStart [14:32:04]Write to MH i2c: 01 00 00 6B 56 C1 [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 6B 56 00 00 00 00 00 FF 0F D6 [14:32:04]RasterBufferAndPrint [14:32:04]line Счет N : (1)359646 [14:32:04]line ИНН: 02508201610067 [14:32:04]line Контрольно-Кассовый Чек [14:32:04]line ПРОДАЖА [14:32:04]line ТРК (МРК, ГНК) : 21 [14:32:04]line Товар: 2710194210 [14:32:04]line ДТ(л)-К-5 [14:32:04]line 5.580 * 71.80 [14:32:04]line = 400.64 [14:32:04]line НДС 12% НСП 1% [14:32:04]line > о реализуемом товаре [14:32:04]line ОКРУГЛЕНИЕ: -0.64 [14:32:04]line ИТОГО: 400.00 [14:32:04]line Внесено: 400.00 [14:32:04]line СДАЧА: 0.00 [14:32:04]line НСП 1% : 3.54 [14:32:04]line НДС 12% : 42.55 [14:32:04]line Наличными: 400.00 [14:32:04]line Безнал.: 0.00 [14:32:04]line Место: АЗС № 122 "Партнер Нефть" [14:32:04]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:32:04]line СНО: Общий режим [14:32:04]line Чек 33 09.04.2024 14:32 [14:32:04]line Смена: 315 ФФД: 1.0 [14:32:04]line ЗНМ: 0300000147 [14:32:04]line РНМ: 0000000000091578 [14:32:04]line Версия ККМ: 001 [14:32:04]line ФМ: 0000000000874657 [14:32:04]line ФД: 26901 [14:32:04]line ФПД: 48591077015644 [14:32:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T143223&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26901&fm=48591077015644&tin=02508201610067®Number=0000000000091578&sum=40000 [14:32:04]OFD Sender: Processing packet 26901 [packets to send 44, broken 43] [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00026901 [14:32:04]OFD Sender: To server: pG, [14:32:04]CommunicateWithHost lk.salyk.kg:30040 [14:32:04]ConnectInit lk.salyk.kg [14:32:04]written 0, free lines is 4095 [14:32:04]Connected sock=10 [14:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 AC D9 08 01 A7 9A 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 CC 15 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 80 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 77 51 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 69 00 00 35 04 06 00 2C 31 7D E2 80 5C CE F2 4A A4 9B 5A 72 78 [14:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 38 85 47 00 49 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 15 69 00 00 F4 03 04 00 DD F8 14 66 B6 04 01 00 00 DC 83 6D 07 CB 1A A6 99 [14:32:04]CommunicateWithHost err = 0 [14:32:04]CheckOFDResponse [14:32:04]1017 (14) - 77093643461234 [14:32:04]1041 (16) - 0000000000874657 [14:32:04]1040 (4) - 26901 [14:32:04]1012 (4) - 09.04.2024 08:14 [14:32:04]1206 (1) - 0 [14:32:04]OFD Sender: Remove packet 26901 [14:32:04]ProducePacketName [14:32:04]name=ofd_packets/00026901 [14:32:04]NVStorageDeleteData [14:32:04]Write to MH i2c: 01 00 00 96 56 EC [14:32:04]Write i2c OK [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 [14:32:04]MH_I2C_Read... [14:32:04]Read from MH i2c: 01 07 00 96 56 00 00 00 00 00 6C 0C 6B [14:32:04]RasterBufferAndPrint [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]line [14:32:04]written 0, free lines is 3184 [14:32:05]MH_Cut [14:32:05]Write to MH i2c: D1 01 00 9D 56 01 C5 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 01 00 [14:32:05]MH_I2C_Read... [14:32:05]Read from MH i2c: D1 01 00 9D 56 00 C4 [14:32:05]Write to MH i2c: 01 00 00 9E 56 F4 [14:32:05]Write i2c OK [14:32:05]MH_I2C_Read... [14:32:05]OFD Sender: No OFD packet to send [14:32:06]*** Cut start [14:32:06]*** Partial cut [14:32:06]*** CUTSNS_PIN = 1 [14:32:06]*** CUTSNS_PIN = 0 [14:32:06]*** Brake cut motor [14:32:06]Read from MH i2c: 01 [14:32:06]MH_I2C_Read... [14:32:06]*** Stop cut motor [14:32:06]*** Cut end [14:32:06]Read from MH i2c: 01 07 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: 01 07 00 9E 56 00 00 00 00 00 FF 0F 09 [14:32:06]process_action close_receipt done [14:32:06]requested_data is exist [14:32:06]produce_requested_data [14:32:06]requested_item fm.sn is exist - process it [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 11 00 00 [14:32:06]Write to MH i2c: E2 08 00 9F 56 80 11 00 00 00 00 00 00 6F [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 17 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 17 00 9F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C7 [14:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:32:06]wFMCommunicate OK [14:32:06]requested_item fd.num is exist - process it [14:32:06]SAM_PROTO_GetFieldsCounters [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 13 00 00 [14:32:06]Write to MH i2c: E2 08 00 A0 56 80 13 00 00 00 00 00 00 72 [14:32:06]Write i2c OK [14:32:06]MH_I2C_Read... [14:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:06]Read from MH i2c: E2 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 62 00 [14:32:06]MH_I2C_Read... [14:32:06]Read from MH i2c: E2 62 00 A0 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 15 69 00 00 0E 04 04 00 3B 01 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 BA [14:32:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 15 69 00 00 0E 04 04 00 3B 01 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 [14:32:06]wFMCommunicate OK [14:32:06]SAM_PROTO_GetFieldsCounters done [14:32:06]requested_item shift.num is exist - process it [14:32:06]requested_item shift.opened is exist - process it [14:32:06]req_shift_opened [14:32:06]FM_GetShiftState [14:32:06]SAM_PROTO_GetShiftState [14:32:06]wFMCommunicate request_size=4 [14:32:06]MH_SAM_APDU [14:32:06]CAPDU: 80 13 01 00 [14:32:07]Write to MH i2c: E2 08 00 A1 56 80 13 01 00 00 00 00 00 74 [14:32:07]Write i2c OK [14:32:07]MH_I2C_Read... [14:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:07]Read from MH i2c: E2 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0E 00 [14:32:07]MH_I2C_Read... [14:32:07]Read from MH i2c: E2 0E 00 A1 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 DF [14:32:07]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:32:07]wFMCommunicate OK [14:32:07]SAM_PROTO_GetShiftState done [14:32:07]FM_GetShiftState done [14:32:07]req_shift_opened done [14:32:07]requested_item shift.open_date is exist - process it [14:32:07]req_shift_open_date [14:32:07]req_shift_open_date done [14:32:07]produce_requested_data done [14:32:07]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26901,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [14:32:07]process_action_free close_receipt [14:32:07]json_value_free [14:32:07]json_value_free done [14:32:07]process_json_proto returns [14:32:07]Send response to host [14:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26901,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [14:32:07]free response buf [14:32:07]execute_script done [14:32:07]execute_script returns [14:32:07]free content buf [14:32:07]Sock 9.Close socket [14:32:07]Sock 9.Thread stoped [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:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:51:58]accept exits with 8 [14:51:58]New connection [14:51:58]New thread 3066871140 created [14:51:58]Thread 3067014500 joined [14:51:58]Waiting for new connection... [14:51:58] Sock 8.Parse request [14:51:58]Sock 8.Check first char [14:51:58]Sock 8.First char is OK [14:51:58]request: POST /json_proto HTTP/1.0 [14:51:58]Method: POST [14:51:58]URL: /json_proto [14:51:58]Method is POST - this is cgi request [14:51:58]url: /json_proto [14:51:58]query_string will be loaded in cgi processing [14:51:58]execute_cgi json_proto POST (null) [14:51:58]execute_cgi path=json_proto method=POST [14:51:58]POST find Content-Length [14:51:58]Host: 172.17.35.3:8080 [14:51:58]Content-Length: 677 [14:51:58]Content-Type: application/json [14:51:58] [14:51:58]POST finish read [14:51:58]Found Content-Length = 677 [14:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.470, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:58]execute_script... [14:51:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.470, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:58]POST & json_proto [14:51:58]process_json_proto [14:51:58]json parsed OK: [14:51:58]protocol is kg_v1.0 [14:51:58]action value=close_receipt [14:51:58]process_action close_receipt [14:51:58]cmd_close_receipt [14:51:58]MH_GetDate [14:51:58]Write to MH i2c: F0 00 00 A2 56 E7 [14:51:58]Write i2c OK [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: F0 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: F0 09 00 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: F0 09 00 A2 56 00 22 56 15 66 2B 11 66 64 E9 [14:51:58]GetLastDocTimeStamp 1712673143 [14:51:58]current date 1712674338 [14:51:58]FM_GetShiftState [14:51:58]SAM_PROTO_GetShiftState [14:51:58]wFMCommunicate request_size=4 [14:51:58]MH_SAM_APDU [14:51:58]CAPDU: 80 13 01 00 [14:51:58]Write to MH i2c: E2 08 00 A3 56 80 13 01 00 00 00 00 00 76 [14:51:58]Write i2c OK [14:51:58]MH_I2C_Read... [14:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:58]Read from MH i2c: E2 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: E2 0E 00 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: E2 0E 00 A3 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 E1 [14:51:58]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:51:58]wFMCommunicate OK [14:51:58]SAM_PROTO_GetShiftState done [14:51:58]FM_GetShiftState done [14:51:58]opened in 1712622936 [14:51:58]opened+sec_in_day 1712709336 [14:51:58]quantity*price = 60039 [14:51:58]sum+1 = 60041 [14:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 34 09.04.2024 14:52 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26902 ФПД: 230854017583970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T145219&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26902&fm=230854017583970&tin=02508201610067®Number=0000000000091578&sum=60000 [14:51:59]StoreToDocumentArchive [14:51:59]shift 315 fd 26902 [14:51:59]save to /storage/0315/doc_00026902 [14:51:59]save last doc name /storage/0315/doc_00026902 to /storage/kkm_last_doc_name [14:51:59]save OK [14:51:59]Clear old archive folders... [14:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:59]tlvbuf is 00EF6B50 [14:51:59]SAM_PROTO_ClearQueue [14:51:59]wFMCommunicate request_size=4 [14:51:59]MH_SAM_APDU [14:51:59]CAPDU: 80 09 00 00 [14:51:59]Write to MH i2c: E2 08 00 B0 56 80 09 00 00 00 00 00 00 78 [14:51:59]Write i2c OK [14:51:59]MH_I2C_Read... [14:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:59]Read from MH i2c: E2 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 B0 56 00 90 00 7A [14:51:59]RAPDU: 90 00 [14:51:59]wFMCommunicate OK [14:51:59]SAM_PROTO_ClearQueue done [14:51:59]KKMCreateOFDPacket [14:51:59]OFDProtocolAddRootSTLVToBuf [14:51:59]FM_MakeSignedData [14:51:59]FM_MakeSignedData [14:51:59]SAM_PROTO_SignData [14:51:59]wFMCommunicate request_size=4 [14:51:59]MH_SAM_APDU [14:51:59]CAPDU: 80 0D 01 02 [14:51:59]Write to MH i2c: E2 08 00 B1 56 80 0D 01 02 00 00 00 00 80 [14:51:59]Write i2c OK [14:51:59]MH_I2C_Read... [14:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:59]Read from MH i2c: E2 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 B1 56 00 90 00 7B [14:51:59]RAPDU: 90 00 [14:51:59]wFMCommunicate OK [14:51:59]wFMCommunicate request_size=255 [14:51:59]MH_SAM_APDU [14:51:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 56 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 69 00 00 35 04 06 00 D1 [14:51:59]Write to MH i2c: E2 02 01 B2 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 56 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 69 00 00 35 04 06 00 D1 00 00 4F [14:51:59]Write i2c OK [14:51:59]MH_I2C_Read... [14:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:59]Read from MH i2c: E2 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 B2 56 00 90 00 7C [14:51:59]RAPDU: 90 00 [14:51:59]wFMCommunicate OK [14:51:59]wFMCommunicate request_size=10 [14:51:59]MH_SAM_APDU [14:51:59]CAPDU: 80 0D 02 02 05 F5 E3 B6 8B 62 [14:51:59]Write to MH i2c: E2 0D 00 B3 56 80 0D 02 02 05 00 F5 E3 B6 8B 62 00 00 08 [14:51:59]Write i2c OK [14:51:59]MH_I2C_Read... [14:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:59]Read from MH i2c: E2 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 03 00 B3 56 00 90 00 7D [14:51:59]RAPDU: 90 00 [14:51:59]wFMCommunicate OK [14:51:59]wFMCommunicate request_size=4 [14:51:59]MH_SAM_APDU [14:51:59]CAPDU: 80 0D 03 02 [14:51:59]Write to MH i2c: E2 08 00 B4 56 80 0D 03 02 00 00 00 00 85 [14:51:59]Write i2c OK [14:51:59]MH_I2C_Read... [14:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:59]Read from MH i2c: E2 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 0B 00 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 0B 00 B4 56 00 B1 B3 8C 01 65 5E 19 7E 90 00 D1 [14:51:59]RAPDU: B1 B3 8C 01 65 5E 19 7E 90 00 [14:51:59]wFMCommunicate OK [14:51:59]SAM_PROTO_SignData done [14:51:59]FM_MakeSignedData done [14:51:59]CreateOFDProtocolMessage [14:51:59]wFMCommunicate request_size=4 [14:51:59]MH_SAM_APDU [14:51:59]CAPDU: 80 11 00 00 [14:51:59]Write to MH i2c: E2 08 00 B5 56 80 11 00 00 00 00 00 00 85 [14:51:59]Write i2c OK [14:51:59]MH_I2C_Read... [14:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:59]Read from MH i2c: E2 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 17 00 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: E2 17 00 B5 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 DD [14:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:51:59]wFMCommunicate OK [14:51:59]CreateOFDProtocolMessage done [14:51:59]OFDSenderStorePacket 26902 [14:51:59]StoreOFDPacket docnum=26902 [14:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 5F 72 07 01 6C 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 56 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 69 00 00 35 04 06 00 D1 F5 E3 B6 8B 62 B1 B3 8C 01 65 5E 19 7E [14:51:59]CheckFolder [14:51:59]dirname=/storage/ofd_packets [14:51:59]CheckFolder done [14:51:59]ProducePacketName [14:51:59]name=ofd_packets/00026902 [14:51:59]NVStorageSaveData ofd_packets/00026902 [14:51:59]File name is /storage/ofd_packets/00026902 [14:51:59]Write 301 bytes [14:51:59]NVStorageSaveData done [14:51:59]OFDSenderStorePacket done [14:51:59]KKMCreateOFDPacket done [14:51:59]NVStorageSaveData kkm_last_timestamp [14:51:59]File name is /storage/kkm_last_timestamp [14:51:59]Write 4 bytes [14:51:59]NVStorageSaveData done [14:51:59]ExternCall_PrintAddStr [14:51:59]wPrintStart [14:51:59]Write to MH i2c: 01 00 00 B6 56 0C [14:51:59]Write i2c OK [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: 01 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: 01 07 00 [14:51:59]MH_I2C_Read... [14:51:59]Read from MH i2c: 01 07 00 B6 56 00 00 00 00 00 FF 0F 21 [14:51:59]RasterBufferAndPrint [14:51:59]line Счет N : (1)359647 [14:51:59]line ИНН: 02508201610067 [14:51:59]line Контрольно-Кассовый Чек [14:51:59]line ПРОДАЖА [14:51:59]line ТРК (МРК, ГНК) : 61 [14:51:59]line Товар: 2710124130 [14:51:59]line Аи-92-К-5 [14:51:59]line 9.470 * 63.40 [14:51:59]line = 600.40 [14:51:59]line НДС 12% НСП 1% [14:51:59]line > о реализуемом товаре [14:51:59]line ОКРУГЛЕНИЕ: -0.40 [14:51:59]line ИТОГО: 600.00 [14:51:59]line Внесено: 600.00 [14:51:59]line СДАЧА: 0.00 [14:51:59]line НСП 1% : 5.31 [14:51:59]line НДС 12% : 63.76 [14:51:59]line Наличными: 600.00 [14:51:59]line Безнал.: 0.00 [14:51:59]line Место: АЗС № 122 "Партнер Нефть" [14:51:59]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [14:51:59]line СНО: Общий режим [14:51:59]line Чек 34 09.04.2024 14:52 [14:51:59]line Смена: 315 ФФД: 1.0 [14:51:59]line ЗНМ: 0300000147 [14:51:59]line РНМ: 0000000000091578 [14:51:59]line Версия ККМ: 001 [14:51:59]line ФМ: 0000000000874657 [14:51:59]line ФД: 26902 [14:51:59]line ФПД: 230854017583970 [14:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T145219&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26902&fm=230854017583970&tin=02508201610067®Number=0000000000091578&sum=60000 [14:52:00]OFD Sender: Processing packet 26902 [packets to send 44, broken 43] [14:52:00]ProducePacketName [14:52:00]name=ofd_packets/00026902 [14:52:00]OFD Sender: To server: pG, [14:52:00]CommunicateWithHost lk.salyk.kg:30040 [14:52:00]ConnectInit lk.salyk.kg [14:52:00]written 0, free lines is 4095 [14:52:00]Connected sock=10 [14:52:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 5F 72 07 01 6C 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 24 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 23 56 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 16 69 00 00 35 04 06 00 D1 F5 E3 B6 8B 62 B1 B3 8C 01 65 5E 19 7E [14:52:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 0E 68 47 00 A9 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 38 37 34 36 35 37 10 04 04 00 16 69 00 00 F4 03 04 00 89 FD 14 66 B6 04 01 00 00 00 3F 6A 9E CC 9A F0 21 [14:52:00]CommunicateWithHost err = 0 [14:52:00]CheckOFDResponse [14:52:00]1017 (14) - 77093643461234 [14:52:00]1041 (16) - 0000000000874657 [14:52:00]1040 (4) - 26902 [14:52:00]1012 (4) - 09.04.2024 08:34 [14:52:00]1206 (1) - 0 [14:52:00]OFD Sender: Remove packet 26902 [14:52:00]ProducePacketName [14:52:00]name=ofd_packets/00026902 [14:52:00]NVStorageDeleteData [14:52:00]Write to MH i2c: 01 00 00 E1 56 37 [14:52:00]Write i2c OK [14:52:00]MH_I2C_Read... [14:52:00]Read from MH i2c: 01 [14:52:00]MH_I2C_Read... [14:52:00]Read from MH i2c: 01 07 00 [14:52:00]MH_I2C_Read... [14:52:00]Read from MH i2c: 01 07 00 E1 56 00 00 00 00 00 73 0C BD [14:52:00]RasterBufferAndPrint [14:52:00]line [14:52:00]line [14:52:00]line [14:52:00]line [14:52:00]line [14:52:00]written 0, free lines is 3190 [14:52:00]MH_Cut [14:52:00]Write to MH i2c: D1 01 00 E8 56 01 10 [14:52:00]Write i2c OK [14:52:00]MH_I2C_Read... [14:52:00]Read from MH i2c: D1 [14:52:00]MH_I2C_Read... [14:52:00]Read from MH i2c: D1 01 00 [14:52:00]MH_I2C_Read... [14:52:00]Read from MH i2c: D1 01 00 E8 56 00 0F [14:52:00]Write to MH i2c: 01 00 00 E9 56 3F [14:52:00]Write i2c OK [14:52:00]MH_I2C_Read... [14:52:00]OFD Sender: No OFD packet to send [14:52:01]*** Cut start [14:52:01]*** Partial cut [14:52:01]*** CUTSNS_PIN = 1 [14:52:01]*** CUTSNS_PIN = 0 [14:52:02]*** Brake cut motor [14:52:02]Read from MH i2c: 01 [14:52:02]MH_I2C_Read... [14:52:02]*** Stop cut motor [14:52:02]*** Cut end [14:52:02]Read from MH i2c: 01 07 00 [14:52:02]MH_I2C_Read... [14:52:02]Read from MH i2c: 01 07 00 E9 56 00 00 00 00 00 FF 0F 54 [14:52:02]process_action close_receipt done [14:52:02]requested_data is exist [14:52:02]produce_requested_data [14:52:02]requested_item fm.sn is exist - process it [14:52:02]wFMCommunicate request_size=4 [14:52:02]MH_SAM_APDU [14:52:02]CAPDU: 80 11 00 00 [14:52:02]Write to MH i2c: E2 08 00 EA 56 80 11 00 00 00 00 00 00 BA [14:52:02]Write i2c OK [14:52:02]MH_I2C_Read... [14:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:02]Read from MH i2c: E2 [14:52:02]MH_I2C_Read... [14:52:02]Read from MH i2c: E2 17 00 [14:52:02]MH_I2C_Read... [14:52:02]Read from MH i2c: E2 17 00 EA 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 12 [14:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [14:52:02]wFMCommunicate OK [14:52:02]requested_item fd.num is exist - process it [14:52:02]SAM_PROTO_GetFieldsCounters [14:52:02]wFMCommunicate request_size=4 [14:52:02]MH_SAM_APDU [14:52:02]CAPDU: 80 13 00 00 [14:52:02]Write to MH i2c: E2 08 00 EB 56 80 13 00 00 00 00 00 00 BD [14:52:02]Write i2c OK [14:52:02]MH_I2C_Read... [14:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:02]Read from MH i2c: E2 [14:52:02]MH_I2C_Read... [14:52:02]Read from MH i2c: E2 62 00 [14:52:02]MH_I2C_Read... [14:52:02]Read from MH i2c: E2 62 00 EB 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 16 69 00 00 0E 04 04 00 3B 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [14:52:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 16 69 00 00 0E 04 04 00 3B 01 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 [14:52:02]wFMCommunicate OK [14:52:02]SAM_PROTO_GetFieldsCounters done [14:52:02]requested_item shift.num is exist - process it [14:52:02]requested_item shift.opened is exist - process it [14:52:02]req_shift_opened [14:52:02]FM_GetShiftState [14:52:02]SAM_PROTO_GetShiftState [14:52:02]wFMCommunicate request_size=4 [14:52:02]MH_SAM_APDU [14:52:02]CAPDU: 80 13 01 00 [14:52:02]Write to MH i2c: E2 08 00 EC 56 80 13 01 00 00 00 00 00 BF [14:52:02]Write i2c OK [14:52:02]MH_I2C_Read... [14:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:02]Read from MH i2c: E2 [14:52:02]MH_I2C_Read... [14:52:02]Read from MH i2c: E2 0E 00 [14:52:02]MH_I2C_Read... [14:52:02]Read from MH i2c: E2 0E 00 EC 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 2A [14:52:02]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [14:52:02]wFMCommunicate OK [14:52:02]SAM_PROTO_GetShiftState done [14:52:02]FM_GetShiftState done [14:52:02]req_shift_opened done [14:52:02]requested_item shift.open_date is exist - process it [14:52:02]req_shift_open_date [14:52:02]req_shift_open_date done [14:52:02]produce_requested_data done [14:52:02]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26902,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [14:52:02]process_action_free close_receipt [14:52:02]json_value_free [14:52:02]json_value_free done [14:52:02]process_json_proto returns [14:52:02]Send response to host [14:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26902,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [14:52:02]free response buf [14:52:02]execute_script done [14:52:02]execute_script returns [14:52:02]free content buf [14:52:02]Sock 8.Close socket [14:52:02]Sock 8.Thread stoped [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]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:35]accept exits with 9 [15:11:35]New connection [15:11:35]New thread 3067014500 created [15:11:35]Thread 3066871140 joined [15:11:35]Waiting for new connection... [15:11:35] Sock 9.Parse request [15:11:35]Sock 9.Check first char [15:11:35]Sock 9.First char is OK [15:11:35]request: POST /json_proto HTTP/1.0 [15:11:35]Method: POST [15:11:35]URL: /json_proto [15:11:35]Method is POST - this is cgi request [15:11:35]url: /json_proto [15:11:35]query_string will be loaded in cgi processing [15:11:35]execute_cgi json_proto POST (null) [15:11:35]execute_cgi path=json_proto method=POST [15:11:35]POST find Content-Length [15:11:35]Host: 172.17.35.3:8080 [15:11:35]Content-Length: 986 [15:11:35]Content-Type: application/json [15:11:35] [15:11:35]POST finish read [15:11:35]Found Content-Length = 986 [15:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359648", "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" : 70.80, "quantity" : 66.390, "sum" : 4700.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 122\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.39 \u0441\u043E\u043C", "deposit" : 4700.00, "total" : 4700.00, "payments": [ { "type": 0, "sum" : 4700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:35]execute_script... [15:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359648", "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" : 70.80, "quantity" : 66.390, "sum" : 4700.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 122\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.39 \u0441\u043E\u043C", "deposit" : 4700.00, "total" : 4700.00, "payments": [ { "type": 0, "sum" : 4700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:35]POST & json_proto [15:11:35]process_json_proto [15:11:35]json parsed OK: [15:11:35]protocol is kg_v1.0 [15:11:35]action value=close_receipt [15:11:35]process_action close_receipt [15:11:35]cmd_close_receipt [15:11:35]MH_GetDate [15:11:35]Write to MH i2c: F0 00 00 ED 56 32 [15:11:35]Write i2c OK [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: F0 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: F0 09 00 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: F0 09 00 ED 56 00 BC 5A 15 66 2B 11 66 64 D2 [15:11:35]GetLastDocTimeStamp 1712674339 [15:11:35]current date 1712675516 [15:11:35]FM_GetShiftState [15:11:35]SAM_PROTO_GetShiftState [15:11:35]wFMCommunicate request_size=4 [15:11:35]MH_SAM_APDU [15:11:35]CAPDU: 80 13 01 00 [15:11:35]Write to MH i2c: E2 08 00 EE 56 80 13 01 00 00 00 00 00 C1 [15:11:35]Write i2c OK [15:11:35]MH_I2C_Read... [15:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:35]Read from MH i2c: E2 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: E2 0E 00 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: E2 0E 00 EE 56 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 2C [15:11:35]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:11:35]wFMCommunicate OK [15:11:35]SAM_PROTO_GetShiftState done [15:11:35]FM_GetShiftState done [15:11:35]opened in 1712622936 [15:11:35]opened+sec_in_day 1712709336 [15:11:35]quantity*price = 470041 [15:11:35]sum+1 = 470042 [15:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 4700.00 Внесено: 4700.00 СДАЧА: 0.00 НСП 1% : 41.60 НДС 12% : 499.16 Наличными: 4700.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 35 09.04.2024 15:11 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Дисконтная программа ДТ номер 122 сэкономлено 66.39 сом ФМ: 0000000000874657 ФД: 26903 ФПД: 278926040397670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T151156&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26903&fm=278926040397670&tin=02508201610067®Number=0000000000091578&sum=470000 [15:11:36]StoreToDocumentArchive [15:11:36]shift 315 fd 26903 [15:11:36]save to /storage/0315/doc_00026903 [15:11:36]save last doc name /storage/0315/doc_00026903 to /storage/kkm_last_doc_name [15:11:36]save OK [15:11:36]Clear old archive folders... [15:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:11:36]tlvbuf is 00E55040 [15:11:36]SAM_PROTO_ClearQueue [15:11:36]wFMCommunicate request_size=4 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 09 00 00 [15:11:36]Write to MH i2c: E2 08 00 FB 56 80 09 00 00 00 00 00 00 C3 [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 FB 56 00 90 00 C5 [15:11:36]RAPDU: 90 00 [15:11:36]wFMCommunicate OK [15:11:36]SAM_PROTO_ClearQueue done [15:11:36]KKMCreateOFDPacket [15:11:36]OFDProtocolAddRootSTLVToBuf [15:11:36]FM_MakeSignedData [15:11:36]FM_MakeSignedData [15:11:36]SAM_PROTO_SignData [15:11:36]wFMCommunicate request_size=4 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 0D 01 02 [15:11:36]Write to MH i2c: E2 08 00 FC 56 80 0D 01 02 00 00 00 00 CB [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 FC 56 00 90 00 C6 [15:11:36]RAPDU: 90 00 [15:11:36]wFMCommunicate OK [15:11:36]wFMCommunicate request_size=255 [15:11:36]MH_SAM_APDU [15:11:36]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 56 03 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 19 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC C2 00 00 00 00 07 04 06 00 F0 2B 07 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 BC 5A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 69 00 00 35 04 06 00 [15:11:36]Write to MH i2c: E2 02 01 FD 56 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 56 03 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 19 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC C2 00 00 00 00 07 04 06 00 F0 2B 07 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 BC 5A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 69 00 00 35 04 06 00 00 00 45 [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 FD 56 00 90 00 C7 [15:11:36]RAPDU: 90 00 [15:11:36]wFMCommunicate OK [15:11:36]wFMCommunicate request_size=11 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 0D 02 02 06 FD AE 87 8E 77 66 [15:11:36]Write to MH i2c: E2 0E 00 FE 56 80 0D 02 02 06 00 FD AE 87 8E 77 66 00 00 77 [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:36]Read from MH i2c: E2 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 [15:11:36]MH_I2C_Read... [15:11:36]Read from MH i2c: E2 03 00 FE 56 00 90 00 C8 [15:11:36]RAPDU: 90 00 [15:11:36]wFMCommunicate OK [15:11:36]wFMCommunicate request_size=4 [15:11:36]MH_SAM_APDU [15:11:36]CAPDU: 80 0D 03 02 [15:11:36]Write to MH i2c: E2 08 00 FF 56 80 0D 03 02 00 00 00 00 D0 [15:11:36]Write i2c OK [15:11:36]MH_I2C_Read... [15:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:37]OFD Sender: No OFD packet to send [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 0B 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 0B 00 FF 56 00 8F DE 4E 48 31 A4 AB EC 90 00 40 [15:11:37]RAPDU: 8F DE 4E 48 31 A4 AB EC 90 00 [15:11:37]wFMCommunicate OK [15:11:37]SAM_PROTO_SignData done [15:11:37]FM_MakeSignedData done [15:11:37]CreateOFDProtocolMessage [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 11 00 00 [15:11:37]Write to MH i2c: E2 08 00 00 57 80 11 00 00 00 00 00 00 D1 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 17 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 17 00 00 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 29 [15:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:11:37]wFMCommunicate OK [15:11:37]CreateOFDProtocolMessage done [15:11:37]OFDSenderStorePacket 26903 [15:11:37]StoreOFDPacket docnum=26903 [15:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 D2 F1 08 01 F4 E9 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 56 03 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 19 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC C2 00 00 00 00 07 04 06 00 F0 2B 07 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 BC 5A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 69 00 00 35 04 06 00 FD AE 87 8E 77 66 8F DE 4E 48 31 A4 AB EC [15:11:37]CheckFolder [15:11:37]dirname=/storage/ofd_packets [15:11:37]CheckFolder done [15:11:37]ProducePacketName [15:11:37]name=ofd_packets/00026903 [15:11:37]NVStorageSaveData ofd_packets/00026903 [15:11:37]File name is /storage/ofd_packets/00026903 [15:11:37]Write 302 bytes [15:11:37]NVStorageSaveData done [15:11:37]OFDSenderStorePacket done [15:11:37]KKMCreateOFDPacket done [15:11:37]NVStorageSaveData kkm_last_timestamp [15:11:37]File name is /storage/kkm_last_timestamp [15:11:37]Write 4 bytes [15:11:37]NVStorageSaveData done [15:11:37]ExternCall_PrintAddStr [15:11:37]wPrintStart [15:11:37]Write to MH i2c: 01 00 00 01 57 58 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 07 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 07 00 01 57 00 00 00 00 00 FF 0F 6D [15:11:37]RasterBufferAndPrint [15:11:37]line Счет N : (1)359648 [15:11:37]line ИНН: 02508201610067 [15:11:37]line Контрольно-Кассовый Чек [15:11:37]line ПРОДАЖА [15:11:37]line ТРК (МРК, ГНК) : 11 [15:11:37]line Товар: 2710194210 [15:11:37]line ДТ(л)-К-5 [15:11:37]line 66.390 * 70.80 [15:11:37]line = 4700.41 [15:11:37]line НДС 12% НСП 1% [15:11:37]line > о реализуемом товаре [15:11:37]line ОКРУГЛЕНИЕ: -0.41 [15:11:37]line ИТОГО: 4700.00 [15:11:37]line Внесено: 4700.00 [15:11:37]line СДАЧА: 0.00 [15:11:37]line НСП 1% : 41.60 [15:11:37]line НДС 12% : 499.16 [15:11:37]line Наличными: 4700.00 [15:11:37]line Безнал.: 0.00 [15:11:37]line Место: АЗС № 122 "Партнер Нефть" [15:11:37]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:11:37]line СНО: Общий режим [15:11:37]line Чек 35 09.04.2024 15:11 [15:11:37]line Смена: 315 ФФД: 1.0 [15:11:37]line ЗНМ: 0300000147 [15:11:37]line РНМ: 0000000000091578 [15:11:37]line Версия ККМ: 001 [15:11:37]line [15:11:37]line Дисконтная программа [15:11:37]line ДТ [15:11:37]line номер 122 [15:11:37]line сэкономлено 66.39 сом [15:11:37]line ФМ: 0000000000874657 [15:11:37]line ФД: 26903 [15:11:37]line ФПД: 278926040397670 [15:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T151156&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26903&fm=278926040397670&tin=02508201610067®Number=0000000000091578&sum=470000 [15:11:37]OFD Sender: Processing packet 26903 [packets to send 44, broken 43] [15:11:37]ProducePacketName [15:11:37]name=ofd_packets/00026903 [15:11:37]OFD Sender: To server: pG, [15:11:37]CommunicateWithHost lk.salyk.kg:30040 [15:11:37]ConnectInit lk.salyk.kg [15:11:37]written 0, free lines is 4095 [15:11:37]Connected sock=10 [15:11:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 D2 F1 08 01 F4 E9 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 56 03 01 00 00 00 00 37 04 06 00 A8 1B 00 00 00 00 13 04 06 00 19 2C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC C2 00 00 00 00 07 04 06 00 F0 2B 07 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 BC 5A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 69 00 00 35 04 06 00 FD AE 87 8E 77 66 8F DE 4E 48 31 A4 AB EC [15:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F9 1E 47 00 D6 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 17 69 00 00 F4 03 04 00 22 02 15 66 B6 04 01 00 00 D6 45 57 C9 20 C0 A1 EA [15:11:37]CommunicateWithHost err = 0 [15:11:37]CheckOFDResponse [15:11:37]1017 (14) - 77093643461234 [15:11:37]1041 (16) - 0000000000874657 [15:11:37]1040 (4) - 26903 [15:11:37]1012 (4) - 09.04.2024 08:53 [15:11:37]1206 (1) - 0 [15:11:37]OFD Sender: Remove packet 26903 [15:11:37]ProducePacketName [15:11:37]name=ofd_packets/00026903 [15:11:37]NVStorageDeleteData [15:11:37]Write to MH i2c: 01 00 00 31 57 88 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 07 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 07 00 31 57 00 00 00 00 00 FC 0B 96 [15:11:37]RasterBufferAndPrint [15:11:37]line [15:11:37]line [15:11:37]line [15:11:37]line [15:11:37]line [15:11:37]written 0, free lines is 3074 [15:11:37]MH_Cut [15:11:37]Write to MH i2c: D1 01 00 38 57 01 61 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: D1 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: D1 01 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: D1 01 00 38 57 00 60 [15:11:37]Write to MH i2c: 01 00 00 39 57 90 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:38]OFD Sender: No OFD packet to send [15:11:39]*** Cut start [15:11:39]*** Partial cut [15:11:39]*** CUTSNS_PIN = 1 [15:11:39]*** CUTSNS_PIN = 0 [15:11:39]*** Brake cut motor [15:11:39]Read from MH i2c: 01 [15:11:39]MH_I2C_Read... [15:11:39]*** Stop cut motor [15:11:39]*** Cut end [15:11:39]Read from MH i2c: 01 07 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: 01 07 00 39 57 00 00 00 00 00 FF 0F A5 [15:11:39]process_action close_receipt done [15:11:39]requested_data is exist [15:11:39]produce_requested_data [15:11:39]requested_item fm.sn is exist - process it [15:11:39]wFMCommunicate request_size=4 [15:11:39]MH_SAM_APDU [15:11:39]CAPDU: 80 11 00 00 [15:11:39]Write to MH i2c: E2 08 00 3A 57 80 11 00 00 00 00 00 00 0B [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:39]Read from MH i2c: E2 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 17 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 17 00 3A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 63 [15:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:11:39]wFMCommunicate OK [15:11:39]requested_item fd.num is exist - process it [15:11:39]SAM_PROTO_GetFieldsCounters [15:11:39]wFMCommunicate request_size=4 [15:11:39]MH_SAM_APDU [15:11:39]CAPDU: 80 13 00 00 [15:11:39]Write to MH i2c: E2 08 00 3B 57 80 13 00 00 00 00 00 00 0E [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 62 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 62 00 3B 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 17 69 00 00 0E 04 04 00 3B 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [15:11:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 17 69 00 00 0E 04 04 00 3B 01 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 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_GetFieldsCounters done [15:11:40]requested_item shift.num is exist - process it [15:11:40]requested_item shift.opened is exist - process it [15:11:40]req_shift_opened [15:11:40]FM_GetShiftState [15:11:40]SAM_PROTO_GetShiftState [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 13 01 00 [15:11:40]Write to MH i2c: E2 08 00 3C 57 80 13 01 00 00 00 00 00 10 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 3C 57 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 7B [15:11:40]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_GetShiftState done [15:11:40]FM_GetShiftState done [15:11:40]req_shift_opened done [15:11:40]requested_item shift.open_date is exist - process it [15:11:40]req_shift_open_date [15:11:40]req_shift_open_date done [15:11:40]produce_requested_data done [15:11:40]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26903,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:11:40]process_action_free close_receipt [15:11:40]json_value_free [15:11:40]json_value_free done [15:11:40]process_json_proto returns [15:11:40]Send response to host [15:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26903,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:11:40]free response buf [15:11:40]execute_script done [15:11:40]execute_script returns [15:11:40]free content buf [15:11:40]Sock 9.Close socket [15:11:40]Sock 9.Thread stoped [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:12]accept exits with 8 [15:15:12]New connection [15:15:12]New thread 3066871140 created [15:15:12]Thread 3067014500 joined [15:15:12]Waiting for new connection... [15:15:12] Sock 8.Parse request [15:15:12]Sock 8.Check first char [15:15:12]Sock 8.First char is OK [15:15:12]request: POST /json_proto HTTP/1.0 [15:15:12]Method: POST [15:15:12]URL: /json_proto [15:15:12]Method is POST - this is cgi request [15:15:12]url: /json_proto [15:15:12]query_string will be loaded in cgi processing [15:15:12]execute_cgi json_proto POST (null) [15:15:12]execute_cgi path=json_proto method=POST [15:15:12]POST find Content-Length [15:15:12]Host: 172.17.35.3:8080 [15:15:12]Content-Length: 678 [15:15:12]Content-Type: application/json [15:15:12] [15:15:12]POST finish read [15:15:12]Found Content-Length = 678 [15:15:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:12]execute_script... [15:15: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)359649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:12]POST & json_proto [15:15:12]process_json_proto [15:15:12]json parsed OK: [15:15:12]protocol is kg_v1.0 [15:15:12]action value=close_receipt [15:15:12]process_action close_receipt [15:15:12]cmd_close_receipt [15:15:12]MH_GetDate [15:15:12]Write to MH i2c: F0 00 00 3D 57 83 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: F0 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: F0 09 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: F0 09 00 3D 57 00 95 5B 15 66 2B 11 66 64 FD [15:15:12]GetLastDocTimeStamp 1712675516 [15:15:12]current date 1712675733 [15:15:12]FM_GetShiftState [15:15:12]SAM_PROTO_GetShiftState [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 13 01 00 [15:15:12]Write to MH i2c: E2 08 00 3E 57 80 13 01 00 00 00 00 00 12 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 0E 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 0E 00 3E 57 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 7D [15:15:12]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:15:12]wFMCommunicate OK [15:15:12]SAM_PROTO_GetShiftState done [15:15:12]FM_GetShiftState done [15:15:12]opened in 1712622936 [15:15:12]opened+sec_in_day 1712709336 [15:15:12]quantity*price = 80024 [15:15:12]sum+1 = 80026 [15:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 36 09.04.2024 15:15 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26904 ФПД: 164164553760150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T151533&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26904&fm=164164553760150&tin=02508201610067®Number=0000000000091578&sum=80000 [15:15:13]StoreToDocumentArchive [15:15:13]shift 315 fd 26904 [15:15:13]save to /storage/0315/doc_00026904 [15:15:13]save last doc name /storage/0315/doc_00026904 to /storage/kkm_last_doc_name [15:15:13]save OK [15:15:13]Clear old archive folders... [15:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:13]tlvbuf is 00E83E90 [15:15:13]SAM_PROTO_ClearQueue [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 09 00 00 [15:15:13]Write to MH i2c: E2 08 00 4B 57 80 09 00 00 00 00 00 00 14 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 4B 57 00 90 00 16 [15:15:13]RAPDU: 90 00 [15:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_ClearQueue done [15:15:13]KKMCreateOFDPacket [15:15:13]OFDProtocolAddRootSTLVToBuf [15:15:13]FM_MakeSignedData [15:15:13]FM_MakeSignedData [15:15:13]SAM_PROTO_SignData [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 0D 01 02 [15:15:13]Write to MH i2c: E2 08 00 4C 57 80 0D 01 02 00 00 00 00 1C [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 4C 57 00 90 00 17 [15:15:13]RAPDU: 90 00 [15:15:13]wFMCommunicate OK [15:15:13]wFMCommunicate request_size=255 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 5B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 69 00 00 35 04 06 00 95 [15:15:13]Write to MH i2c: E2 02 01 4D 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 5B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 69 00 00 35 04 06 00 95 00 00 49 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]OFD Sender: No OFD packet to send [15:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 4D 57 00 90 00 18 [15:15:13]RAPDU: 90 00 [15:15:13]wFMCommunicate OK [15:15:13]wFMCommunicate request_size=10 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 0D 02 02 05 4E 89 E9 5D 96 [15:15:13]Write to MH i2c: E2 0D 00 4E 57 80 0D 02 02 05 00 4E 89 E9 5D 96 00 00 DC [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 03 00 4E 57 00 90 00 19 [15:15:13]RAPDU: 90 00 [15:15:13]wFMCommunicate OK [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 0D 03 02 [15:15:13]Write to MH i2c: E2 08 00 4F 57 80 0D 03 02 00 00 00 00 21 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0B 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0B 00 4F 57 00 02 C6 63 04 20 01 0A 3F 90 00 BB [15:15:13]RAPDU: 02 C6 63 04 20 01 0A 3F 90 00 [15:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_SignData done [15:15:13]FM_MakeSignedData done [15:15:13]CreateOFDProtocolMessage [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 11 00 00 [15:15:13]Write to MH i2c: E2 08 00 50 57 80 11 00 00 00 00 00 00 21 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 50 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 79 [15:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:15:13]wFMCommunicate OK [15:15:13]CreateOFDProtocolMessage done [15:15:13]OFDSenderStorePacket 26904 [15:15:13]StoreOFDPacket docnum=26904 [15:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 5D 19 07 01 8A CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 5B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 69 00 00 35 04 06 00 95 4E 89 E9 5D 96 02 C6 63 04 20 01 0A 3F [15:15:13]CheckFolder [15:15:13]dirname=/storage/ofd_packets [15:15:13]CheckFolder done [15:15:13]ProducePacketName [15:15:13]name=ofd_packets/00026904 [15:15:13]NVStorageSaveData ofd_packets/00026904 [15:15:13]File name is /storage/ofd_packets/00026904 [15:15:13]Write 301 bytes [15:15:13]NVStorageSaveData done [15:15:13]OFDSenderStorePacket done [15:15:13]KKMCreateOFDPacket done [15:15:13]NVStorageSaveData kkm_last_timestamp [15:15:13]File name is /storage/kkm_last_timestamp [15:15:13]Write 4 bytes [15:15:13]NVStorageSaveData done [15:15:13]ExternCall_PrintAddStr [15:15:13]wPrintStart [15:15:13]Write to MH i2c: 01 00 00 51 57 A8 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 51 57 00 00 00 00 00 FF 0F BD [15:15:13]RasterBufferAndPrint [15:15:13]line Счет N : (1)359649 [15:15:13]line ИНН: 02508201610067 [15:15:13]line Контрольно-Кассовый Чек [15:15:13]line ПРОДАЖА [15:15:13]line ТРК (МРК, ГНК) : 53 [15:15:13]line Товар: 2710124500 [15:15:13]line Аи-95-К-5 [15:15:13]line 11.130 * 71.90 [15:15:13]line = 800.25 [15:15:13]line НДС 12% НСП 1% [15:15:13]line > о реализуемом товаре [15:15:13]line ОКРУГЛЕНИЕ: -0.25 [15:15:13]line ИТОГО: 800.00 [15:15:13]line Внесено: 800.00 [15:15:13]line СДАЧА: 0.00 [15:15:13]line НСП 1% : 7.08 [15:15:13]line НДС 12% : 84.98 [15:15:13]line Наличными: 800.00 [15:15:13]line Безнал.: 0.00 [15:15:13]line Место: АЗС № 122 "Партнер Нефть" [15:15:13]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:15:13]line СНО: Общий режим [15:15:13]line Чек 36 09.04.2024 15:15 [15:15:13]line Смена: 315 ФФД: 1.0 [15:15:13]line ЗНМ: 0300000147 [15:15:13]line РНМ: 0000000000091578 [15:15:13]line Версия ККМ: 001 [15:15:13]line ФМ: 0000000000874657 [15:15:13]line ФД: 26904 [15:15:13]line ФПД: 164164553760150 [15:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T151533&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26904&fm=164164553760150&tin=02508201610067®Number=0000000000091578&sum=80000 [15:15:14]OFD Sender: Processing packet 26904 [packets to send 44, broken 43] [15:15:14]ProducePacketName [15:15:14]name=ofd_packets/00026904 [15:15:14]OFD Sender: To server: pG, [15:15:14]CommunicateWithHost lk.salyk.kg:30040 [15:15:14]ConnectInit lk.salyk.kg [15:15:14]written 0, free lines is 4095 [15:15:14]Connected sock=10 [15:15:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 5D 19 07 01 8A CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 5B 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 69 00 00 35 04 06 00 95 4E 89 E9 5D 96 02 C6 63 04 20 01 0A 3F [15:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 66 A5 47 00 D1 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 18 69 00 00 F4 03 04 00 FB 02 15 66 B6 04 01 00 00 22 9C BC 2A 9F 14 AE 00 [15:15:14]CommunicateWithHost err = 0 [15:15:14]CheckOFDResponse [15:15:14]1017 (14) - 77093643461234 [15:15:14]1041 (16) - 0000000000874657 [15:15:14]1040 (4) - 26904 [15:15:14]1012 (4) - 09.04.2024 08:57 [15:15:14]1206 (1) - 0 [15:15:14]OFD Sender: Remove packet 26904 [15:15:14]ProducePacketName [15:15:14]name=ofd_packets/00026904 [15:15:14]NVStorageDeleteData [15:15:14]Write to MH i2c: 01 00 00 7C 57 D3 [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: 01 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: 01 07 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: 01 07 00 7C 57 00 00 00 00 00 73 0C 59 [15:15:14]RasterBufferAndPrint [15:15:14]line [15:15:14]line [15:15:14]line [15:15:14]line [15:15:14]line [15:15:14]written 0, free lines is 3189 [15:15:14]MH_Cut [15:15:14]Write to MH i2c: D1 01 00 83 57 01 AC [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: D1 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: D1 01 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: D1 01 00 83 57 00 AB [15:15:14]Write to MH i2c: 01 00 00 84 57 DB [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]OFD Sender: No OFD packet to send [15:15:15]*** Cut start [15:15:15]*** Partial cut [15:15:15]*** CUTSNS_PIN = 1 [15:15:15]*** CUTSNS_PIN = 0 [15:15:16]*** Brake cut motor [15:15:16]Read from MH i2c: 01 [15:15:16]MH_I2C_Read... [15:15:16]*** Stop cut motor [15:15:16]*** Cut end [15:15:16]Read from MH i2c: 01 07 00 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: 01 07 00 84 57 00 00 00 00 00 FF 0F F0 [15:15:16]process_action close_receipt done [15:15:16]requested_data is exist [15:15:16]produce_requested_data [15:15:16]requested_item fm.sn is exist - process it [15:15:16]wFMCommunicate request_size=4 [15:15:16]MH_SAM_APDU [15:15:16]CAPDU: 80 11 00 00 [15:15:16]Write to MH i2c: E2 08 00 85 57 80 11 00 00 00 00 00 00 56 [15:15:16]Write i2c OK [15:15:16]MH_I2C_Read... [15:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:16]Read from MH i2c: E2 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: E2 17 00 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: E2 17 00 85 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AE [15:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:15:16]wFMCommunicate OK [15:15:16]requested_item fd.num is exist - process it [15:15:16]SAM_PROTO_GetFieldsCounters [15:15:16]wFMCommunicate request_size=4 [15:15:16]MH_SAM_APDU [15:15:16]CAPDU: 80 13 00 00 [15:15:16]Write to MH i2c: E2 08 00 86 57 80 13 00 00 00 00 00 00 59 [15:15:16]Write i2c OK [15:15:16]MH_I2C_Read... [15:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:16]Read from MH i2c: E2 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: E2 62 00 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: E2 62 00 86 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 18 69 00 00 0E 04 04 00 3B 01 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 AD [15:15:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 18 69 00 00 0E 04 04 00 3B 01 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 [15:15:16]wFMCommunicate OK [15:15:16]SAM_PROTO_GetFieldsCounters done [15:15:16]requested_item shift.num is exist - process it [15:15:16]requested_item shift.opened is exist - process it [15:15:16]req_shift_opened [15:15:16]FM_GetShiftState [15:15:16]SAM_PROTO_GetShiftState [15:15:16]wFMCommunicate request_size=4 [15:15:16]MH_SAM_APDU [15:15:16]CAPDU: 80 13 01 00 [15:15:16]Write to MH i2c: E2 08 00 87 57 80 13 01 00 00 00 00 00 5B [15:15:16]Write i2c OK [15:15:16]MH_I2C_Read... [15:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:16]Read from MH i2c: E2 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: E2 0E 00 [15:15:16]MH_I2C_Read... [15:15:16]Read from MH i2c: E2 0E 00 87 57 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C6 [15:15:16]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:15:16]wFMCommunicate OK [15:15:16]SAM_PROTO_GetShiftState done [15:15:16]FM_GetShiftState done [15:15:16]req_shift_opened done [15:15:16]requested_item shift.open_date is exist - process it [15:15:16]req_shift_open_date [15:15:16]req_shift_open_date done [15:15:16]produce_requested_data done [15:15:16]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26904,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:15:16]process_action_free close_receipt [15:15:16]json_value_free [15:15:16]json_value_free done [15:15:16]process_json_proto returns [15:15:16]Send response to host [15:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26904,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:15:16]free response buf [15:15:16]execute_script done [15:15:16]execute_script returns [15:15:16]free content buf [15:15:16]Sock 8.Close socket [15:15:16]Sock 8.Thread stoped [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]accept exits with 9 [15:34:25]New connection [15:34:25]New thread 3067014500 created [15:34:25]Thread 3066871140 joined [15:34:25]Waiting for new connection... [15:34:25] Sock 9.Parse request [15:34:25]Sock 9.Check first char [15:34:25]Sock 9.First char is OK [15:34:25]request: POST /json_proto HTTP/1.0 [15:34:25]Method: POST [15:34:25]URL: /json_proto [15:34:25]Method is POST - this is cgi request [15:34:25]url: /json_proto [15:34:25]query_string will be loaded in cgi processing [15:34:25]execute_cgi json_proto POST (null) [15:34:25]execute_cgi path=json_proto method=POST [15:34:25]POST find Content-Length [15:34:25]Host: 172.17.35.3:8080 [15:34:25]Content-Length: 816 [15:34:25]Content-Type: application/json [15:34:25] [15:34:25]POST finish read [15:34:25]Found Content-Length = 816 [15:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 3.430, "sum" : 246.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 246.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:25]execute_script... [15:34:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 3.430, "sum" : 246.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 246.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:25]POST & json_proto [15:34:25]process_json_proto [15:34:25]json parsed OK: [15:34:25]protocol is kg_v1.0 [15:34:25]action value=close_receipt [15:34:25]process_action close_receipt [15:34:25]cmd_close_receipt [15:34:25]MH_GetDate [15:34:25]Write to MH i2c: F0 00 00 88 57 CE [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 88 57 00 16 60 15 66 2B 11 66 64 CE [15:34:25]GetLastDocTimeStamp 1712675733 [15:34:25]current date 1712676886 [15:34:25]FM_GetShiftState [15:34:25]SAM_PROTO_GetShiftState [15:34:25]wFMCommunicate request_size=4 [15:34:25]MH_SAM_APDU [15:34:25]CAPDU: 80 13 01 00 [15:34:25]Write to MH i2c: E2 08 00 89 57 80 13 01 00 00 00 00 00 5D [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:25]Read from MH i2c: E2 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 89 57 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C8 [15:34:25]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:34:25]wFMCommunicate OK [15:34:25]SAM_PROTO_GetShiftState done [15:34:25]FM_GetShiftState done [15:34:25]opened in 1712622936 [15:34:25]opened+sec_in_day 1712709336 [15:34:25]quantity*price = 24661 [15:34:25]sum+1 = 24663 [15:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 246.62 НСП 1% : 2.18 НДС 12% : 26.19 Наличными: 0.00 Безнал.: 246.62 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 37 09.04.2024 15:34 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874657 ФД: 26905 ФПД: 41269687762749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T153446&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26905&fm=41269687762749&tin=02508201610067®Number=0000000000091578&sum=24662 [15:34:26]StoreToDocumentArchive [15:34:26]shift 315 fd 26905 [15:34:26]save to /storage/0315/doc_00026905 [15:34:26]save last doc name /storage/0315/doc_00026905 to /storage/kkm_last_doc_name [15:34:26]save OK [15:34:26]Clear old archive folders... [15:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:26]tlvbuf is 00E93260 [15:34:26]SAM_PROTO_ClearQueue [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 09 00 00 [15:34:26]Write to MH i2c: E2 08 00 96 57 80 09 00 00 00 00 00 00 5F [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 96 57 00 90 00 61 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_ClearQueue done [15:34:26]KKMCreateOFDPacket [15:34:26]OFDProtocolAddRootSTLVToBuf [15:34:26]FM_MakeSignedData [15:34:26]FM_MakeSignedData [15:34:26]SAM_PROTO_SignData [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 01 02 [15:34:26]Write to MH i2c: E2 08 00 97 57 80 0D 01 02 00 00 00 00 67 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 97 57 00 90 00 62 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]wFMCommunicate request_size=255 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 56 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 3B 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 16 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 69 00 00 35 04 06 00 25 [15:34:26]Write to MH i2c: E2 02 01 98 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 56 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 3B 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 16 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 69 00 00 35 04 06 00 25 00 00 5E [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 98 57 00 90 00 63 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]wFMCommunicate request_size=10 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 02 02 05 88 D9 14 3F 3D [15:34:26]Write to MH i2c: E2 0D 00 99 57 80 0D 02 02 05 00 88 D9 14 3F 3D 00 00 65 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 03 00 99 57 00 90 00 64 [15:34:26]RAPDU: 90 00 [15:34:26]wFMCommunicate OK [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 0D 03 02 [15:34:26]Write to MH i2c: E2 08 00 9A 57 80 0D 03 02 00 00 00 00 6C [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 0B 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 0B 00 9A 57 00 72 1A 62 90 64 61 37 A2 90 00 89 [15:34:26]RAPDU: 72 1A 62 90 64 61 37 A2 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_SignData done [15:34:26]FM_MakeSignedData done [15:34:26]CreateOFDProtocolMessage [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 11 00 00 [15:34:26]Write to MH i2c: E2 08 00 9B 57 80 11 00 00 00 00 00 00 6C [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 17 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 17 00 9B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C4 [15:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:34:26]wFMCommunicate OK [15:34:26]CreateOFDProtocolMessage done [15:34:26]OFDSenderStorePacket 26905 [15:34:26]StoreOFDPacket docnum=26905 [15:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 2F 7C 07 01 3A 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 56 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 3B 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 16 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 69 00 00 35 04 06 00 25 88 D9 14 3F 3D 72 1A 62 90 64 61 37 A2 [15:34:26]CheckFolder [15:34:26]dirname=/storage/ofd_packets [15:34:26]CheckFolder done [15:34:26]ProducePacketName [15:34:26]name=ofd_packets/00026905 [15:34:26]NVStorageSaveData ofd_packets/00026905 [15:34:26]File name is /storage/ofd_packets/00026905 [15:34:26]Write 301 bytes [15:34:26]NVStorageSaveData done [15:34:26]OFDSenderStorePacket done [15:34:26]KKMCreateOFDPacket done [15:34:26]NVStorageSaveData kkm_last_timestamp [15:34:26]File name is /storage/kkm_last_timestamp [15:34:26]Write 4 bytes [15:34:26]NVStorageSaveData done [15:34:26]ExternCall_PrintAddStr [15:34:26]wPrintStart [15:34:26]Write to MH i2c: 01 00 00 9C 57 F3 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: 01 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: 01 07 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: 01 07 00 9C 57 00 00 00 00 00 FF 0F 08 [15:34:26]RasterBufferAndPrint [15:34:26]line Счет N : (1)359650 [15:34:26]line ИНН: 02508201610067 [15:34:26]line Контрольно-Кассовый Чек [15:34:26]line ПРОДАЖА [15:34:26]line ТРК (МРК, ГНК) : 53 [15:34:26]line Товар: 2710124500 [15:34:26]line Аи-95-К-5 [15:34:26]line 3.430 * 71.90 [15:34:26]line = 246.62 [15:34:26]line НДС 12% НСП 1% [15:34:26]line > о реализуемом товаре [15:34:26]line ИТОГО: 246.62 [15:34:26]line НСП 1% : 2.18 [15:34:26]line НДС 12% : 26.19 [15:34:26]line Наличными: 0.00 [15:34:26]line Безнал.: 246.62 [15:34:26]line Место: АЗС № 122 "Партнер Нефть" [15:34:26]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:34:26]line СНО: Общий режим [15:34:26]line Чек 37 09.04.2024 15:34 [15:34:26]line Смена: 315 ФФД: 1.0 [15:34:26]line ЗНМ: 0300000147 [15:34:26]line РНМ: 0000000000091578 [15:34:26]line Версия ККМ: 001 [15:34:26]line Платежная система: Бакай Банк [15:34:26]line ФМ: 0000000000874657 [15:34:26]line ФД: 26905 [15:34:26]line ФПД: 41269687762749 [15:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T153446&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26905&fm=41269687762749&tin=02508201610067®Number=0000000000091578&sum=24662 [15:34:27]OFD Sender: Processing packet 26905 [packets to send 44, broken 43] [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00026905 [15:34:27]OFD Sender: To server: pG, [15:34:27]CommunicateWithHost lk.salyk.kg:30040 [15:34:27]ConnectInit lk.salyk.kg [15:34:27]written 0, free lines is 4095 [15:34:27]Connected sock=10 [15:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 2F 7C 07 01 3A 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 56 60 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 3B 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 60 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 16 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 69 00 00 35 04 06 00 25 88 D9 14 3F 3D 72 1A 62 90 64 61 37 A2 [15:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F6 82 47 00 BA 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 19 69 00 00 F4 03 04 00 7C 07 15 66 B6 04 01 00 00 68 44 C2 15 18 96 18 C0 [15:34:27]CommunicateWithHost err = 0 [15:34:27]CheckOFDResponse [15:34:27]1017 (14) - 77093643461234 [15:34:27]1041 (16) - 0000000000874657 [15:34:27]1040 (4) - 26905 [15:34:27]1012 (4) - 09.04.2024 09:16 [15:34:27]1206 (1) - 0 [15:34:27]OFD Sender: Remove packet 26905 [15:34:27]ProducePacketName [15:34:27]name=ofd_packets/00026905 [15:34:27]NVStorageDeleteData [15:34:27]Write to MH i2c: 01 00 00 C6 57 1D [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: 01 07 00 C6 57 00 00 00 00 00 90 0C C0 [15:34:27]RasterBufferAndPrint [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]line [15:34:27]written 0, free lines is 3218 [15:34:27]MH_Cut [15:34:27]Write to MH i2c: D1 01 00 CD 57 01 F6 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: D1 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: D1 01 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: D1 01 00 CD 57 00 F5 [15:34:27]Write to MH i2c: 01 00 00 CE 57 25 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:28]OFD Sender: No OFD packet to send [15:34:28]*** Cut start [15:34:28]*** Partial cut [15:34:28]*** CUTSNS_PIN = 1 [15:34:28]*** CUTSNS_PIN = 0 [15:34:29]*** Brake cut motor [15:34:29]Read from MH i2c: 01 [15:34:29]MH_I2C_Read... [15:34:29]*** Stop cut motor [15:34:29]*** Cut end [15:34:29]Read from MH i2c: 01 07 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: 01 07 00 CE 57 00 00 00 00 00 FF 0F 3A [15:34:29]process_action close_receipt done [15:34:29]requested_data is exist [15:34:29]produce_requested_data [15:34:29]requested_item fm.sn is exist - process it [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 11 00 00 [15:34:29]Write to MH i2c: E2 08 00 CF 57 80 11 00 00 00 00 00 00 A0 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 17 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 17 00 CF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F8 [15:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:34:29]wFMCommunicate OK [15:34:29]requested_item fd.num is exist - process it [15:34:29]SAM_PROTO_GetFieldsCounters [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 13 00 00 [15:34:29]Write to MH i2c: E2 08 00 D0 57 80 13 00 00 00 00 00 00 A3 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 62 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 62 00 D0 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 19 69 00 00 0E 04 04 00 3B 01 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 FB [15:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 19 69 00 00 0E 04 04 00 3B 01 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 [15:34:29]wFMCommunicate OK [15:34:29]SAM_PROTO_GetFieldsCounters done [15:34:29]requested_item shift.num is exist - process it [15:34:29]requested_item shift.opened is exist - process it [15:34:29]req_shift_opened [15:34:29]FM_GetShiftState [15:34:29]SAM_PROTO_GetShiftState [15:34:29]wFMCommunicate request_size=4 [15:34:29]MH_SAM_APDU [15:34:29]CAPDU: 80 13 01 00 [15:34:29]Write to MH i2c: E2 08 00 D1 57 80 13 01 00 00 00 00 00 A5 [15:34:29]Write i2c OK [15:34:29]MH_I2C_Read... [15:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:29]Read from MH i2c: E2 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0E 00 [15:34:29]MH_I2C_Read... [15:34:29]Read from MH i2c: E2 0E 00 D1 57 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 10 [15:34:29]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:34:29]wFMCommunicate OK [15:34:29]SAM_PROTO_GetShiftState done [15:34:29]FM_GetShiftState done [15:34:29]req_shift_opened done [15:34:29]requested_item shift.open_date is exist - process it [15:34:29]req_shift_open_date [15:34:29]req_shift_open_date done [15:34:29]produce_requested_data done [15:34:29]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26905,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:34:29]process_action_free close_receipt [15:34:29]json_value_free [15:34:29]json_value_free done [15:34:29]process_json_proto returns [15:34:29]Send response to host [15:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26905,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:34:29]free response buf [15:34:29]execute_script done [15:34:29]execute_script returns [15:34:29]free content buf [15:34:29]Sock 9.Close socket [15:34:29]Sock 9.Thread stoped [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:14]accept exits with 8 [15:35:14]New connection [15:35:14]New thread 3066871140 created [15:35:14]Thread 3067014500 joined [15:35:14]Waiting for new connection... [15:35:14] Sock 8.Parse request [15:35:14]Sock 8.Check first char [15:35:14]Sock 8.First char is OK [15:35:14]request: POST /json_proto HTTP/1.0 [15:35:14]Method: POST [15:35:14]URL: /json_proto [15:35:14]Method is POST - this is cgi request [15:35:14]url: /json_proto [15:35:14]query_string will be loaded in cgi processing [15:35:14]execute_cgi json_proto POST (null) [15:35:14]execute_cgi path=json_proto method=POST [15:35:14]POST find Content-Length [15:35:14]Host: 172.17.35.3:8080 [15:35:14]Content-Length: 678 [15:35:14]Content-Type: application/json [15:35:14] [15:35:14]POST finish read [15:35:14]Found Content-Length = 678 [15:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.490, "sum" : 754.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 754.00, "total" : 754.00, "payments": [ { "type": 0, "sum" : 754.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:14]execute_script... [15:35:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.490, "sum" : 754.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 754.00, "total" : 754.00, "payments": [ { "type": 0, "sum" : 754.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:14]POST & json_proto [15:35:14]process_json_proto [15:35:14]json parsed OK: [15:35:14]protocol is kg_v1.0 [15:35:14]action value=close_receipt [15:35:14]process_action close_receipt [15:35:14]cmd_close_receipt [15:35:14]MH_GetDate [15:35:14]Write to MH i2c: F0 00 00 D2 57 18 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: F0 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: F0 09 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: F0 09 00 D2 57 00 47 60 15 66 2B 11 66 64 49 [15:35:14]GetLastDocTimeStamp 1712676886 [15:35:14]current date 1712676935 [15:35:14]FM_GetShiftState [15:35:14]SAM_PROTO_GetShiftState [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 13 01 00 [15:35:14]Write to MH i2c: E2 08 00 D3 57 80 13 01 00 00 00 00 00 A7 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 0E 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 0E 00 D3 57 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 12 [15:35:14]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:35:14]wFMCommunicate OK [15:35:14]SAM_PROTO_GetShiftState done [15:35:14]FM_GetShiftState done [15:35:14]opened in 1712622936 [15:35:14]opened+sec_in_day 1712709336 [15:35:14]quantity*price = 75423 [15:35:14]sum+1 = 75424 [15:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 754.00 Внесено: 754.00 СДАЧА: 0.00 НСП 1% : 6.67 НДС 12% : 80.09 Наличными: 754.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 38 09.04.2024 15:35 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26906 ФПД: 133730799796554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T153535&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26906&fm=133730799796554&tin=02508201610067®Number=0000000000091578&sum=75400 [15:35:15]StoreToDocumentArchive [15:35:15]shift 315 fd 26906 [15:35:15]save to /storage/0315/doc_00026906 [15:35:15]save last doc name /storage/0315/doc_00026906 to /storage/kkm_last_doc_name [15:35:15]save OK [15:35:15]Clear old archive folders... [15:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:15]tlvbuf is 00EE6330 [15:35:15]SAM_PROTO_ClearQueue [15:35:15]wFMCommunicate request_size=4 [15:35:15]MH_SAM_APDU [15:35:15]CAPDU: 80 09 00 00 [15:35:15]Write to MH i2c: E2 08 00 E0 57 80 09 00 00 00 00 00 00 A9 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 03 00 E0 57 00 90 00 AB [15:35:15]RAPDU: 90 00 [15:35:15]wFMCommunicate OK [15:35:15]SAM_PROTO_ClearQueue done [15:35:15]KKMCreateOFDPacket [15:35:15]OFDProtocolAddRootSTLVToBuf [15:35:15]FM_MakeSignedData [15:35:15]FM_MakeSignedData [15:35:15]SAM_PROTO_SignData [15:35:15]wFMCommunicate request_size=4 [15:35:15]MH_SAM_APDU [15:35:15]CAPDU: 80 0D 01 02 [15:35:15]Write to MH i2c: E2 08 00 E1 57 80 0D 01 02 00 00 00 00 B1 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:16]Read from MH i2c: E2 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 03 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 03 00 E1 57 00 90 00 AC [15:35:16]RAPDU: 90 00 [15:35:16]wFMCommunicate OK [15:35:16]wFMCommunicate request_size=255 [15:35:16]MH_SAM_APDU [15:35:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FA 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9F 26 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 1F 00 00 00 00 07 04 06 00 88 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 47 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 69 00 00 35 04 06 00 79 [15:35:16]Write to MH i2c: E2 02 01 E2 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FA 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9F 26 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 1F 00 00 00 00 07 04 06 00 88 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 47 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 69 00 00 35 04 06 00 79 00 00 C6 [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:16]Read from MH i2c: E2 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 03 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 03 00 E2 57 00 90 00 AD [15:35:16]RAPDU: 90 00 [15:35:16]wFMCommunicate OK [15:35:16]wFMCommunicate request_size=10 [15:35:16]MH_SAM_APDU [15:35:16]CAPDU: 80 0D 02 02 05 A0 A0 D1 41 4A [15:35:16]Write to MH i2c: E2 0D 00 E3 57 80 0D 02 02 05 00 A0 A0 D1 41 4A 00 00 5A [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:16]Read from MH i2c: E2 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 03 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 03 00 E3 57 00 90 00 AE [15:35:16]RAPDU: 90 00 [15:35:16]wFMCommunicate OK [15:35:16]wFMCommunicate request_size=4 [15:35:16]MH_SAM_APDU [15:35:16]CAPDU: 80 0D 03 02 [15:35:16]Write to MH i2c: E2 08 00 E4 57 80 0D 03 02 00 00 00 00 B6 [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:16]Read from MH i2c: E2 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 0B 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 0B 00 E4 57 00 E8 57 58 BB 70 75 B3 37 90 00 D8 [15:35:16]RAPDU: E8 57 58 BB 70 75 B3 37 90 00 [15:35:16]wFMCommunicate OK [15:35:16]SAM_PROTO_SignData done [15:35:16]FM_MakeSignedData done [15:35:16]CreateOFDProtocolMessage [15:35:16]wFMCommunicate request_size=4 [15:35:16]MH_SAM_APDU [15:35:16]CAPDU: 80 11 00 00 [15:35:16]Write to MH i2c: E2 08 00 E5 57 80 11 00 00 00 00 00 00 B6 [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:16]Read from MH i2c: E2 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 17 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: E2 17 00 E5 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0E [15:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:35:16]wFMCommunicate OK [15:35:16]CreateOFDProtocolMessage done [15:35:16]OFDSenderStorePacket 26906 [15:35:16]StoreOFDPacket docnum=26906 [15:35:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 11 5F 07 01 71 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FA 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9F 26 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 1F 00 00 00 00 07 04 06 00 88 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 47 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 69 00 00 35 04 06 00 79 A0 A0 D1 41 4A E8 57 58 BB 70 75 B3 37 [15:35:16]CheckFolder [15:35:16]dirname=/storage/ofd_packets [15:35:16]CheckFolder done [15:35:16]ProducePacketName [15:35:16]name=ofd_packets/00026906 [15:35:16]NVStorageSaveData ofd_packets/00026906 [15:35:16]File name is /storage/ofd_packets/00026906 [15:35:16]Write 301 bytes [15:35:16]NVStorageSaveData done [15:35:16]OFDSenderStorePacket done [15:35:16]KKMCreateOFDPacket done [15:35:16]NVStorageSaveData kkm_last_timestamp [15:35:16]File name is /storage/kkm_last_timestamp [15:35:16]Write 4 bytes [15:35:16]NVStorageSaveData done [15:35:16]ExternCall_PrintAddStr [15:35:16]wPrintStart [15:35:16]Write to MH i2c: 01 00 00 E6 57 3D [15:35:16]Write i2c OK [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: 01 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: 01 07 00 [15:35:16]MH_I2C_Read... [15:35:16]Read from MH i2c: 01 07 00 E6 57 00 00 00 00 00 FF 0F 52 [15:35:16]RasterBufferAndPrint [15:35:16]line Счет N : (1)359651 [15:35:16]line ИНН: 02508201610067 [15:35:16]line Контрольно-Кассовый Чек [15:35:16]line ПРОДАЖА [15:35:16]line ТРК (МРК, ГНК) : 53 [15:35:16]line Товар: 2710124500 [15:35:16]line Аи-95-К-5 [15:35:16]line 10.490 * 71.90 [15:35:16]line = 754.23 [15:35:16]line НДС 12% НСП 1% [15:35:16]line > о реализуемом товаре [15:35:16]line ОКРУГЛЕНИЕ: -0.23 [15:35:16]line ИТОГО: 754.00 [15:35:16]line Внесено: 754.00 [15:35:16]line СДАЧА: 0.00 [15:35:16]line НСП 1% : 6.67 [15:35:16]line НДС 12% : 80.09 [15:35:16]line Наличными: 754.00 [15:35:16]line Безнал.: 0.00 [15:35:16]line Место: АЗС № 122 "Партнер Нефть" [15:35:16]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:35:16]line СНО: Общий режим [15:35:16]line Чек 38 09.04.2024 15:35 [15:35:16]line Смена: 315 ФФД: 1.0 [15:35:16]line ЗНМ: 0300000147 [15:35:16]line РНМ: 0000000000091578 [15:35:16]line Версия ККМ: 001 [15:35:16]line ФМ: 0000000000874657 [15:35:16]line ФД: 26906 [15:35:16]line ФПД: 133730799796554 [15:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T153535&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26906&fm=133730799796554&tin=02508201610067®Number=0000000000091578&sum=75400 [15:35:16]OFD Sender: Processing packet 26906 [packets to send 44, broken 43] [15:35:16]ProducePacketName [15:35:16]name=ofd_packets/00026906 [15:35:16]OFD Sender: To server: pG, [15:35:16]CommunicateWithHost lk.salyk.kg:30040 [15:35:16]ConnectInit lk.salyk.kg [15:35:16]written 0, free lines is 4095 [15:35:16]Connected sock=10 [15:35:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 11 5F 07 01 71 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FA 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 9F 26 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 1F 00 00 00 00 07 04 06 00 88 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 47 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 69 00 00 35 04 06 00 79 A0 A0 D1 41 4A E8 57 58 BB 70 75 B3 37 [15:35:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 7F AB 47 00 E7 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1A 69 00 00 F4 03 04 00 AE 07 15 66 B6 04 01 00 00 A3 7F 48 78 B0 48 C1 21 [15:35:17]CommunicateWithHost err = 0 [15:35:17]CheckOFDResponse [15:35:17]1017 (14) - 77093643461234 [15:35:17]1041 (16) - 0000000000874657 [15:35:17]1040 (4) - 26906 [15:35:17]1012 (4) - 09.04.2024 09:17 [15:35:17]1206 (1) - 0 [15:35:17]OFD Sender: Remove packet 26906 [15:35:17]ProducePacketName [15:35:17]name=ofd_packets/00026906 [15:35:17]NVStorageDeleteData [15:35:17]Write to MH i2c: 01 00 00 11 58 69 [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: 01 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: 01 07 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: 01 07 00 11 58 00 00 00 00 00 7B 0C F7 [15:35:17]RasterBufferAndPrint [15:35:17]line [15:35:17]line [15:35:17]line [15:35:17]line [15:35:17]line [15:35:17]written 0, free lines is 3199 [15:35:17]MH_Cut [15:35:17]Write to MH i2c: D1 01 00 18 58 01 42 [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: D1 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: D1 01 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: D1 01 00 18 58 00 41 [15:35:17]Write to MH i2c: 01 00 00 19 58 71 [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]OFD Sender: No OFD packet to send [15:35:18]*** Cut start [15:35:18]*** Partial cut [15:35:18]*** CUTSNS_PIN = 1 [15:35:18]*** CUTSNS_PIN = 0 [15:35:18]*** Brake cut motor [15:35:19]Read from MH i2c: 01 [15:35:19]MH_I2C_Read... [15:35:19]*** Stop cut motor [15:35:19]*** Cut end [15:35:19]Read from MH i2c: 01 07 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: 01 07 00 19 58 00 00 00 00 00 FF 0F 86 [15:35:19]process_action close_receipt done [15:35:19]requested_data is exist [15:35:19]produce_requested_data [15:35:19]requested_item fm.sn is exist - process it [15:35:19]wFMCommunicate request_size=4 [15:35:19]MH_SAM_APDU [15:35:19]CAPDU: 80 11 00 00 [15:35:19]Write to MH i2c: E2 08 00 1A 58 80 11 00 00 00 00 00 00 EC [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:19]Read from MH i2c: E2 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 17 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 17 00 1A 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 44 [15:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:35:19]wFMCommunicate OK [15:35:19]requested_item fd.num is exist - process it [15:35:19]SAM_PROTO_GetFieldsCounters [15:35:19]wFMCommunicate request_size=4 [15:35:19]MH_SAM_APDU [15:35:19]CAPDU: 80 13 00 00 [15:35:19]Write to MH i2c: E2 08 00 1B 58 80 13 00 00 00 00 00 00 EF [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:19]Read from MH i2c: E2 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 62 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 62 00 1B 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1A 69 00 00 0E 04 04 00 3B 01 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 4B [15:35:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1A 69 00 00 0E 04 04 00 3B 01 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 [15:35:19]wFMCommunicate OK [15:35:19]SAM_PROTO_GetFieldsCounters done [15:35:19]requested_item shift.num is exist - process it [15:35:19]requested_item shift.opened is exist - process it [15:35:19]req_shift_opened [15:35:19]FM_GetShiftState [15:35:19]SAM_PROTO_GetShiftState [15:35:19]wFMCommunicate request_size=4 [15:35:19]MH_SAM_APDU [15:35:19]CAPDU: 80 13 01 00 [15:35:19]Write to MH i2c: E2 08 00 1C 58 80 13 01 00 00 00 00 00 F1 [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:19]Read from MH i2c: E2 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 1C 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 5C [15:35:19]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:35:19]wFMCommunicate OK [15:35:19]SAM_PROTO_GetShiftState done [15:35:19]FM_GetShiftState done [15:35:19]req_shift_opened done [15:35:19]requested_item shift.open_date is exist - process it [15:35:19]req_shift_open_date [15:35:19]req_shift_open_date done [15:35:19]produce_requested_data done [15:35:19]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26906,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:35:19]process_action_free close_receipt [15:35:19]json_value_free [15:35:19]json_value_free done [15:35:19]process_json_proto returns [15:35:19]Send response to host [15:35:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26906,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:35:19]free response buf [15:35:19]execute_script done [15:35:19]execute_script returns [15:35:19]free content buf [15:35:19]Sock 8.Close socket [15:35:19]Sock 8.Thread stoped [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:30]accept exits with 9 [15:37:30]New connection [15:37:30]New thread 3067014500 created [15:37:30]Thread 3066871140 joined [15:37:30]Waiting for new connection... [15:37:30] Sock 9.Parse request [15:37:30]Sock 9.Check first char [15:37:30]Sock 9.First char is OK [15:37:30]request: POST /json_proto HTTP/1.0 [15:37:30]Method: POST [15:37:30]URL: /json_proto [15:37:30]Method is POST - this is cgi request [15:37:30]url: /json_proto [15:37:30]query_string will be loaded in cgi processing [15:37:30]execute_cgi json_proto POST (null) [15:37:30]execute_cgi path=json_proto method=POST [15:37:30]POST find Content-Length [15:37:30]Host: 172.17.35.3:8080 [15:37:30]Content-Length: 682 [15:37:30]Content-Type: application/json [15:37:30] [15:37:30]POST finish read [15:37:30]Found Content-Length = 682 [15:37:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:30]execute_script... [15:37:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:30]POST & json_proto [15:37:30]process_json_proto [15:37:30]json parsed OK: [15:37:30]protocol is kg_v1.0 [15:37:30]action value=close_receipt [15:37:30]process_action close_receipt [15:37:30]cmd_close_receipt [15:37:30]MH_GetDate [15:37:30]Write to MH i2c: F0 00 00 1D 58 64 [15:37:30]Write i2c OK [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: F0 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: F0 09 00 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: F0 09 00 1D 58 00 CF 60 15 66 2B 11 66 64 1D [15:37:30]GetLastDocTimeStamp 1712676935 [15:37:30]current date 1712677071 [15:37:30]FM_GetShiftState [15:37:30]SAM_PROTO_GetShiftState [15:37:30]wFMCommunicate request_size=4 [15:37:30]MH_SAM_APDU [15:37:30]CAPDU: 80 13 01 00 [15:37:30]Write to MH i2c: E2 08 00 1E 58 80 13 01 00 00 00 00 00 F3 [15:37:30]Write i2c OK [15:37:30]MH_I2C_Read... [15:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:30]Read from MH i2c: E2 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: E2 0E 00 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: E2 0E 00 1E 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 5E [15:37:30]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:37:30]wFMCommunicate OK [15:37:30]SAM_PROTO_GetShiftState done [15:37:30]FM_GetShiftState done [15:37:30]opened in 1712622936 [15:37:30]opened+sec_in_day 1712709336 [15:37:30]quantity*price = 100012 [15:37:30]sum+1 = 100014 [15:37:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 39 09.04.2024 15:37 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26907 ФПД: 267818292560416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T153751&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26907&fm=267818292560416&tin=02508201610067®Number=0000000000091578&sum=100000 [15:37:31]StoreToDocumentArchive [15:37:31]shift 315 fd 26907 [15:37:31]save to /storage/0315/doc_00026907 [15:37:31]save last doc name /storage/0315/doc_00026907 to /storage/kkm_last_doc_name [15:37:31]save OK [15:37:31]Clear old archive folders... [15:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:31]tlvbuf is 00EC9170 [15:37:31]SAM_PROTO_ClearQueue [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 09 00 00 [15:37:31]Write to MH i2c: E2 08 00 2B 58 80 09 00 00 00 00 00 00 F5 [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 2B 58 00 90 00 F7 [15:37:31]RAPDU: 90 00 [15:37:31]wFMCommunicate OK [15:37:31]SAM_PROTO_ClearQueue done [15:37:31]KKMCreateOFDPacket [15:37:31]OFDProtocolAddRootSTLVToBuf [15:37:31]FM_MakeSignedData [15:37:31]FM_MakeSignedData [15:37:31]SAM_PROTO_SignData [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 0D 01 02 [15:37:31]Write to MH i2c: E2 08 00 2C 58 80 0D 01 02 00 00 00 00 FD [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 2C 58 00 90 00 F8 [15:37:31]RAPDU: 90 00 [15:37:31]wFMCommunicate OK [15:37:31]wFMCommunicate request_size=255 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CF 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 69 00 00 35 04 06 00 F3 [15:37:31]Write to MH i2c: E2 02 01 2D 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CF 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 69 00 00 35 04 06 00 F3 00 00 F7 [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:32]Read from MH i2c: E2 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 03 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 03 00 2D 58 00 90 00 F9 [15:37:32]RAPDU: 90 00 [15:37:32]wFMCommunicate OK [15:37:32]wFMCommunicate request_size=10 [15:37:32]MH_SAM_APDU [15:37:32]CAPDU: 80 0D 02 02 05 94 4E 31 42 20 [15:37:32]Write to MH i2c: E2 0D 00 2E 58 80 0D 02 02 05 00 94 4E 31 42 20 00 00 7F [15:37:32]Write i2c OK [15:37:32]MH_I2C_Read... [15:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:32]Read from MH i2c: E2 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 03 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 03 00 2E 58 00 90 00 FA [15:37:32]RAPDU: 90 00 [15:37:32]wFMCommunicate OK [15:37:32]wFMCommunicate request_size=4 [15:37:32]MH_SAM_APDU [15:37:32]CAPDU: 80 0D 03 02 [15:37:32]Write to MH i2c: E2 08 00 2F 58 80 0D 03 02 00 00 00 00 02 [15:37:32]Write i2c OK [15:37:32]MH_I2C_Read... [15:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:32]Read from MH i2c: E2 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 0B 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 0B 00 2F 58 00 75 30 75 87 D0 00 A1 6B 90 00 80 [15:37:32]RAPDU: 75 30 75 87 D0 00 A1 6B 90 00 [15:37:32]wFMCommunicate OK [15:37:32]SAM_PROTO_SignData done [15:37:32]FM_MakeSignedData done [15:37:32]CreateOFDProtocolMessage [15:37:32]wFMCommunicate request_size=4 [15:37:32]MH_SAM_APDU [15:37:32]CAPDU: 80 11 00 00 [15:37:32]Write to MH i2c: E2 08 00 30 58 80 11 00 00 00 00 00 00 02 [15:37:32]Write i2c OK [15:37:32]MH_I2C_Read... [15:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:32]Read from MH i2c: E2 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 17 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 17 00 30 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 5A [15:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:37:32]wFMCommunicate OK [15:37:32]CreateOFDProtocolMessage done [15:37:32]OFDSenderStorePacket 26907 [15:37:32]StoreOFDPacket docnum=26907 [15:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 31 FD 07 01 61 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CF 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 69 00 00 35 04 06 00 F3 94 4E 31 42 20 75 30 75 87 D0 00 A1 6B [15:37:32]CheckFolder [15:37:32]dirname=/storage/ofd_packets [15:37:32]CheckFolder done [15:37:32]ProducePacketName [15:37:32]name=ofd_packets/00026907 [15:37:32]NVStorageSaveData ofd_packets/00026907 [15:37:32]File name is /storage/ofd_packets/00026907 [15:37:32]Write 301 bytes [15:37:32]NVStorageSaveData done [15:37:32]OFDSenderStorePacket done [15:37:32]KKMCreateOFDPacket done [15:37:32]NVStorageSaveData kkm_last_timestamp [15:37:32]File name is /storage/kkm_last_timestamp [15:37:32]Write 4 bytes [15:37:32]NVStorageSaveData done [15:37:32]ExternCall_PrintAddStr [15:37:32]wPrintStart [15:37:32]Write to MH i2c: 01 00 00 31 58 89 [15:37:32]Write i2c OK [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: 01 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: 01 07 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: 01 07 00 31 58 00 00 00 00 00 FF 0F 9E [15:37:32]RasterBufferAndPrint [15:37:32]line Счет N : (1)359652 [15:37:32]line ИНН: 02508201610067 [15:37:32]line Контрольно-Кассовый Чек [15:37:32]line ПРОДАЖА [15:37:32]line ТРК (МРК, ГНК) : 53 [15:37:32]line Товар: 2710124500 [15:37:32]line Аи-95-К-5 [15:37:32]line 13.910 * 71.90 [15:37:32]line = 1000.13 [15:37:32]line НДС 12% НСП 1% [15:37:32]line > о реализуемом товаре [15:37:32]line ОКРУГЛЕНИЕ: -0.13 [15:37:32]line ИТОГО: 1000.00 [15:37:32]line Внесено: 1000.00 [15:37:32]line СДАЧА: 0.00 [15:37:32]line НСП 1% : 8.85 [15:37:32]line НДС 12% : 106.21 [15:37:32]line Наличными: 1000.00 [15:37:32]line Безнал.: 0.00 [15:37:32]line Место: АЗС № 122 "Партнер Нефть" [15:37:32]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:37:32]line СНО: Общий режим [15:37:32]line Чек 39 09.04.2024 15:37 [15:37:32]line Смена: 315 ФФД: 1.0 [15:37:32]line ЗНМ: 0300000147 [15:37:32]line РНМ: 0000000000091578 [15:37:32]line Версия ККМ: 001 [15:37:32]line ФМ: 0000000000874657 [15:37:32]line ФД: 26907 [15:37:32]line ФПД: 267818292560416 [15:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T153751&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26907&fm=267818292560416&tin=02508201610067®Number=0000000000091578&sum=100000 [15:37:32]OFD Sender: Processing packet 26907 [packets to send 44, broken 43] [15:37:32]ProducePacketName [15:37:32]name=ofd_packets/00026907 [15:37:32]OFD Sender: To server: pG, [15:37:32]CommunicateWithHost lk.salyk.kg:30040 [15:37:32]ConnectInit lk.salyk.kg [15:37:32]written 0, free lines is 4095 [15:37:32]Connected sock=10 [15:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 31 FD 07 01 61 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 CF 60 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 69 00 00 35 04 06 00 F3 94 4E 31 42 20 75 30 75 87 D0 00 A1 6B [15:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F2 6B 47 00 CA 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1B 69 00 00 F4 03 04 00 36 08 15 66 B6 04 01 00 00 C5 E9 19 E7 08 90 A0 BD [15:37:32]CommunicateWithHost err = 0 [15:37:32]CheckOFDResponse [15:37:32]1017 (14) - 77093643461234 [15:37:32]1041 (16) - 0000000000874657 [15:37:32]1040 (4) - 26907 [15:37:32]1012 (4) - 09.04.2024 09:19 [15:37:32]1206 (1) - 0 [15:37:32]OFD Sender: Remove packet 26907 [15:37:32]ProducePacketName [15:37:32]name=ofd_packets/00026907 [15:37:32]NVStorageDeleteData [15:37:33]Write to MH i2c: 01 00 00 5C 58 B4 [15:37:33]Write i2c OK [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: 01 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: 01 07 00 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: 01 07 00 5C 58 00 00 00 00 00 7A 0C 41 [15:37:33]RasterBufferAndPrint [15:37:33]line [15:37:33]line [15:37:33]line [15:37:33]line [15:37:33]line [15:37:33]written 0, free lines is 3197 [15:37:33]MH_Cut [15:37:33]Write to MH i2c: D1 01 00 63 58 01 8D [15:37:33]Write i2c OK [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: D1 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: D1 01 00 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: D1 01 00 63 58 00 8C [15:37:33]Write to MH i2c: 01 00 00 64 58 BC [15:37:33]Write i2c OK [15:37:33]MH_I2C_Read... [15:37:33]OFD Sender: No OFD packet to send [15:37:34]*** Cut start [15:37:34]*** Partial cut [15:37:34]*** CUTSNS_PIN = 1 [15:37:34]*** CUTSNS_PIN = 0 [15:37:34]*** Brake cut motor [15:37:34]Read from MH i2c: 01 [15:37:34]MH_I2C_Read... [15:37:34]*** Stop cut motor [15:37:34]*** Cut end [15:37:34]Read from MH i2c: 01 07 00 [15:37:34]MH_I2C_Read... [15:37:34]Read from MH i2c: 01 07 00 64 58 00 00 00 00 00 FF 0F D1 [15:37:34]process_action close_receipt done [15:37:34]requested_data is exist [15:37:34]produce_requested_data [15:37:34]requested_item fm.sn is exist - process it [15:37:34]wFMCommunicate request_size=4 [15:37:34]MH_SAM_APDU [15:37:34]CAPDU: 80 11 00 00 [15:37:34]Write to MH i2c: E2 08 00 65 58 80 11 00 00 00 00 00 00 37 [15:37:34]Write i2c OK [15:37:34]MH_I2C_Read... [15:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:34]Read from MH i2c: E2 [15:37:34]MH_I2C_Read... [15:37:34]Read from MH i2c: E2 17 00 [15:37:34]MH_I2C_Read... [15:37:34]Read from MH i2c: E2 17 00 65 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 8F [15:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:37:34]wFMCommunicate OK [15:37:34]requested_item fd.num is exist - process it [15:37:34]SAM_PROTO_GetFieldsCounters [15:37:34]wFMCommunicate request_size=4 [15:37:34]MH_SAM_APDU [15:37:34]CAPDU: 80 13 00 00 [15:37:34]Write to MH i2c: E2 08 00 66 58 80 13 00 00 00 00 00 00 3A [15:37:34]Write i2c OK [15:37:34]MH_I2C_Read... [15:37:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:35]Read from MH i2c: E2 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: E2 62 00 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: E2 62 00 66 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1B 69 00 00 0E 04 04 00 3B 01 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 9A [15:37:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1B 69 00 00 0E 04 04 00 3B 01 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 [15:37:35]wFMCommunicate OK [15:37:35]SAM_PROTO_GetFieldsCounters done [15:37:35]requested_item shift.num is exist - process it [15:37:35]requested_item shift.opened is exist - process it [15:37:35]req_shift_opened [15:37:35]FM_GetShiftState [15:37:35]SAM_PROTO_GetShiftState [15:37:35]wFMCommunicate request_size=4 [15:37:35]MH_SAM_APDU [15:37:35]CAPDU: 80 13 01 00 [15:37:35]Write to MH i2c: E2 08 00 67 58 80 13 01 00 00 00 00 00 3C [15:37:35]Write i2c OK [15:37:35]MH_I2C_Read... [15:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:35]Read from MH i2c: E2 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: E2 0E 00 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: E2 0E 00 67 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 A7 [15:37:35]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:37:35]wFMCommunicate OK [15:37:35]SAM_PROTO_GetShiftState done [15:37:35]FM_GetShiftState done [15:37:35]req_shift_opened done [15:37:35]requested_item shift.open_date is exist - process it [15:37:35]req_shift_open_date [15:37:35]req_shift_open_date done [15:37:35]produce_requested_data done [15:37:35]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26907,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:37:35]process_action_free close_receipt [15:37:35]json_value_free [15:37:35]json_value_free done [15:37:35]process_json_proto returns [15:37:35]Send response to host [15:37:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26907,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:37:35]free response buf [15:37:35]execute_script done [15:37:35]execute_script returns [15:37:35]free content buf [15:37:35]Sock 9.Close socket [15:37:35]Sock 9.Thread stoped [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]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:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:41]accept exits with 8 [15:53:41]New connection [15:53:41]New thread 3066871140 created [15:53:41]Thread 3067014500 joined [15:53:41]Waiting for new connection... [15:53:41] Sock 8.Parse request [15:53:41]Sock 8.Check first char [15:53:41]Sock 8.First char is OK [15:53:41]request: POST /json_proto HTTP/1.0 [15:53:41]Method: POST [15:53:41]URL: /json_proto [15:53:41]Method is POST - this is cgi request [15:53:41]url: /json_proto [15:53:41]query_string will be loaded in cgi processing [15:53:41]execute_cgi json_proto POST (null) [15:53:41]execute_cgi path=json_proto method=POST [15:53:41]POST find Content-Length [15:53:41]Host: 172.17.35.3:8080 [15:53:41]Content-Length: 677 [15:53:41]Content-Type: application/json [15:53:41] [15:53:41]POST finish read [15:53:41]Found Content-Length = 677 [15:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.940, "sum" : 630.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:41]execute_script... [15:53:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 9.940, "sum" : 630.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:41]POST & json_proto [15:53:41]process_json_proto [15:53:41]json parsed OK: [15:53:41]protocol is kg_v1.0 [15:53:41]action value=close_receipt [15:53:41]process_action close_receipt [15:53:41]cmd_close_receipt [15:53:41]MH_GetDate [15:53:41]Write to MH i2c: F0 00 00 68 58 AF [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: F0 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: F0 09 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: F0 09 00 68 58 00 9A 64 15 66 2B 11 66 64 37 [15:53:41]GetLastDocTimeStamp 1712677071 [15:53:41]current date 1712678042 [15:53:41]FM_GetShiftState [15:53:41]SAM_PROTO_GetShiftState [15:53:41]wFMCommunicate request_size=4 [15:53:41]MH_SAM_APDU [15:53:41]CAPDU: 80 13 01 00 [15:53:41]Write to MH i2c: E2 08 00 69 58 80 13 01 00 00 00 00 00 3E [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:41]Read from MH i2c: E2 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 0E 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 0E 00 69 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 A9 [15:53:41]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:53:41]wFMCommunicate OK [15:53:41]SAM_PROTO_GetShiftState done [15:53:41]FM_GetShiftState done [15:53:41]opened in 1712622936 [15:53:41]opened+sec_in_day 1712709336 [15:53:41]quantity*price = 63019 [15:53:41]sum+1 = 63021 [15:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.92 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 40 09.04.2024 15:54 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26908 ФПД: 67909993870089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T155402&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26908&fm=67909993870089&tin=02508201610067®Number=0000000000091578&sum=63000 [15:53:42]StoreToDocumentArchive [15:53:42]shift 315 fd 26908 [15:53:42]save to /storage/0315/doc_00026908 [15:53:42]save last doc name /storage/0315/doc_00026908 to /storage/kkm_last_doc_name [15:53:42]save OK [15:53:42]Clear old archive folders... [15:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:42]tlvbuf is B6F640C0 [15:53:42]SAM_PROTO_ClearQueue [15:53:42]wFMCommunicate request_size=4 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 09 00 00 [15:53:42]Write to MH i2c: E2 08 00 76 58 80 09 00 00 00 00 00 00 40 [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 76 58 00 90 00 42 [15:53:42]RAPDU: 90 00 [15:53:42]wFMCommunicate OK [15:53:42]SAM_PROTO_ClearQueue done [15:53:42]KKMCreateOFDPacket [15:53:42]OFDProtocolAddRootSTLVToBuf [15:53:42]FM_MakeSignedData [15:53:42]FM_MakeSignedData [15:53:42]SAM_PROTO_SignData [15:53:42]wFMCommunicate request_size=4 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 0D 01 02 [15:53:42]Write to MH i2c: E2 08 00 77 58 80 0D 01 02 00 00 00 00 48 [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 77 58 00 90 00 43 [15:53:42]RAPDU: 90 00 [15:53:42]wFMCommunicate OK [15:53:42]wFMCommunicate request_size=255 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 9A 64 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 69 00 00 35 04 06 00 3D [15:53:42]Write to MH i2c: E2 02 01 78 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 26 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 9A 64 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 69 00 00 35 04 06 00 3D 00 00 7D [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 78 58 00 90 00 44 [15:53:42]RAPDU: 90 00 [15:53:42]wFMCommunicate OK [15:53:42]wFMCommunicate request_size=10 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 0D 02 02 05 C3 87 0F B3 09 [15:53:42]Write to MH i2c: E2 0D 00 79 58 80 0D 02 02 05 00 C3 87 0F B3 09 00 00 6A [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 03 00 79 58 00 90 00 45 [15:53:42]RAPDU: 90 00 [15:53:42]wFMCommunicate OK [15:53:42]wFMCommunicate request_size=4 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 0D 03 02 [15:53:42]Write to MH i2c: E2 08 00 7A 58 80 0D 03 02 00 00 00 00 4D [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 0B 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 0B 00 7A 58 00 9C 8C C0 CE 2E 57 C6 D8 90 00 27 [15:53:42]RAPDU: 9C 8C C0 CE 2E 57 C6 D8 90 00 [15:53:42]wFMCommunicate OK [15:53:42]SAM_PROTO_SignData done [15:53:42]FM_MakeSignedData done [15:53:42]CreateOFDProtocolMessage [15:53:42]wFMCommunicate request_size=4 [15:53:42]MH_SAM_APDU [15:53:42]CAPDU: 80 11 00 00 [15:53:42]Write to MH i2c: E2 08 00 7B 58 80 11 00 00 00 00 00 00 4D [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:42]Read from MH i2c: E2 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 17 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: E2 17 00 7B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 A5 [15:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:53:42]wFMCommunicate OK [15:53:42]CreateOFDProtocolMessage done [15:53:42]OFDSenderStorePacket 26908 [15:53:42]StoreOFDPacket docnum=26908 [15:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 41 47 07 01 B1 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 D4 26 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 9A 64 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 69 00 00 35 04 06 00 3D C3 87 0F B3 09 9C 8C C0 CE 2E 57 C6 D8 [15:53:42]CheckFolder [15:53:42]dirname=/storage/ofd_packets [15:53:42]CheckFolder done [15:53:42]ProducePacketName [15:53:42]name=ofd_packets/00026908 [15:53:42]NVStorageSaveData ofd_packets/00026908 [15:53:42]File name is /storage/ofd_packets/00026908 [15:53:42]Write 301 bytes [15:53:42]NVStorageSaveData done [15:53:42]OFDSenderStorePacket done [15:53:42]KKMCreateOFDPacket done [15:53:42]NVStorageSaveData kkm_last_timestamp [15:53:42]File name is /storage/kkm_last_timestamp [15:53:42]Write 4 bytes [15:53:42]NVStorageSaveData done [15:53:42]ExternCall_PrintAddStr [15:53:42]wPrintStart [15:53:42]Write to MH i2c: 01 00 00 7C 58 D4 [15:53:42]Write i2c OK [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: 01 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: 01 07 00 [15:53:42]MH_I2C_Read... [15:53:42]Read from MH i2c: 01 07 00 7C 58 00 00 00 00 00 FF 0F E9 [15:53:42]RasterBufferAndPrint [15:53:42]line Счет N : (1)359653 [15:53:42]line ИНН: 02508201610067 [15:53:42]line Контрольно-Кассовый Чек [15:53:42]line ПРОДАЖА [15:53:42]line ТРК (МРК, ГНК) : 51 [15:53:42]line Товар: 2710124130 [15:53:42]line Аи-92-К-5 [15:53:42]line 9.940 * 63.40 [15:53:42]line = 630.20 [15:53:42]line НДС 12% НСП 1% [15:53:42]line > о реализуемом товаре [15:53:42]line ОКРУГЛЕНИЕ: -0.20 [15:53:42]line ИТОГО: 630.00 [15:53:42]line Внесено: 630.00 [15:53:42]line СДАЧА: 0.00 [15:53:42]line НСП 1% : 5.58 [15:53:42]line НДС 12% : 66.92 [15:53:42]line Наличными: 630.00 [15:53:42]line Безнал.: 0.00 [15:53:42]line Место: АЗС № 122 "Партнер Нефть" [15:53:42]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:53:42]line СНО: Общий режим [15:53:42]line Чек 40 09.04.2024 15:54 [15:53:42]line Смена: 315 ФФД: 1.0 [15:53:42]line ЗНМ: 0300000147 [15:53:42]line РНМ: 0000000000091578 [15:53:42]line Версия ККМ: 001 [15:53:42]line ФМ: 0000000000874657 [15:53:42]line ФД: 26908 [15:53:42]line ФПД: 67909993870089 [15:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T155402&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26908&fm=67909993870089&tin=02508201610067®Number=0000000000091578&sum=63000 [15:53:43]OFD Sender: Processing packet 26908 [packets to send 44, broken 43] [15:53:43]ProducePacketName [15:53:43]name=ofd_packets/00026908 [15:53:43]OFD Sender: To server: pG, [15:53:43]CommunicateWithHost lk.salyk.kg:30040 [15:53:43]ConnectInit lk.salyk.kg [15:53:43]written 0, free lines is 4095 [15:53:43]Connected sock=11 [15:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 41 47 07 01 B1 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 D4 26 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 9A 64 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 69 00 00 35 04 06 00 3D C3 87 0F B3 09 9C 8C C0 CE 2E 57 C6 D8 [15:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 FC 78 47 00 6F 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1C 69 00 00 F4 03 04 00 00 0C 15 66 B6 04 01 00 00 15 13 C3 30 38 13 A5 06 [15:53:43]CommunicateWithHost err = 0 [15:53:43]CheckOFDResponse [15:53:43]1017 (14) - 77093643461234 [15:53:43]1041 (16) - 0000000000874657 [15:53:43]1040 (4) - 26908 [15:53:43]1012 (4) - 09.04.2024 09:36 [15:53:43]1206 (1) - 0 [15:53:43]OFD Sender: Remove packet 26908 [15:53:43]ProducePacketName [15:53:43]name=ofd_packets/00026908 [15:53:43]NVStorageDeleteData [15:53:43]Write to MH i2c: 01 00 00 A7 58 FF [15:53:43]Write i2c OK [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: 01 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: 01 07 00 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: 01 07 00 A7 58 00 00 00 00 00 79 0C 8B [15:53:43]RasterBufferAndPrint [15:53:43]line [15:53:43]line [15:53:43]line [15:53:43]line [15:53:43]line [15:53:43]written 0, free lines is 3196 [15:53:43]MH_Cut [15:53:43]Write to MH i2c: D1 01 00 AE 58 01 D8 [15:53:43]Write i2c OK [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: D1 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: D1 01 00 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: D1 01 00 AE 58 00 D7 [15:53:43]Write to MH i2c: 01 00 00 AF 58 07 [15:53:43]Write i2c OK [15:53:43]MH_I2C_Read... [15:53:43]OFD Sender: No OFD packet to send [15:53:44]*** Cut start [15:53:44]*** Partial cut [15:53:44]*** CUTSNS_PIN = 1 [15:53:44]*** CUTSNS_PIN = 0 [15:53:45]*** Brake cut motor [15:53:45]Read from MH i2c: 01 [15:53:45]MH_I2C_Read... [15:53:45]*** Stop cut motor [15:53:45]*** Cut end [15:53:45]Read from MH i2c: 01 07 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: 01 07 00 AF 58 00 00 00 00 00 FF 0F 1C [15:53:45]process_action close_receipt done [15:53:45]requested_data is exist [15:53:45]produce_requested_data [15:53:45]requested_item fm.sn is exist - process it [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 11 00 00 [15:53:45]Write to MH i2c: E2 08 00 B0 58 80 11 00 00 00 00 00 00 82 [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 17 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 17 00 B0 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 DA [15:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:53:45]wFMCommunicate OK [15:53:45]requested_item fd.num is exist - process it [15:53:45]SAM_PROTO_GetFieldsCounters [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 13 00 00 [15:53:45]Write to MH i2c: E2 08 00 B1 58 80 13 00 00 00 00 00 00 85 [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 62 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 62 00 B1 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1C 69 00 00 0E 04 04 00 3B 01 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 E9 [15:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1C 69 00 00 0E 04 04 00 3B 01 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 [15:53:45]wFMCommunicate OK [15:53:45]SAM_PROTO_GetFieldsCounters done [15:53:45]requested_item shift.num is exist - process it [15:53:45]requested_item shift.opened is exist - process it [15:53:45]req_shift_opened [15:53:45]FM_GetShiftState [15:53:45]SAM_PROTO_GetShiftState [15:53:45]wFMCommunicate request_size=4 [15:53:45]MH_SAM_APDU [15:53:45]CAPDU: 80 13 01 00 [15:53:45]Write to MH i2c: E2 08 00 B2 58 80 13 01 00 00 00 00 00 87 [15:53:45]Write i2c OK [15:53:45]MH_I2C_Read... [15:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:45]Read from MH i2c: E2 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 0E 00 [15:53:45]MH_I2C_Read... [15:53:45]Read from MH i2c: E2 0E 00 B2 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 F2 [15:53:45]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:53:45]wFMCommunicate OK [15:53:45]SAM_PROTO_GetShiftState done [15:53:45]FM_GetShiftState done [15:53:45]req_shift_opened done [15:53:45]requested_item shift.open_date is exist - process it [15:53:45]req_shift_open_date [15:53:45]req_shift_open_date done [15:53:45]produce_requested_data done [15:53:45]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26908,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:53:45]process_action_free close_receipt [15:53:45]json_value_free [15:53:45]json_value_free done [15:53:45]process_json_proto returns [15:53:45]Send response to host [15:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26908,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:53:45]free response buf [15:53:45]execute_script done [15:53:45]execute_script returns [15:53:45]free content buf [15:53:45]Sock 8.Close socket [15:53:45]Sock 8.Thread stoped [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:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:38]accept exits with 9 [15:57:38]New connection [15:57:38]New thread 3067014500 created [15:57:38]Thread 3066871140 joined [15:57:38]Waiting for new connection... [15:57:38] Sock 9.Parse request [15:57:38]Sock 9.Check first char [15:57:38]Sock 9.First char is OK [15:57:38]request: POST /json_proto HTTP/1.0 [15:57:38]Method: POST [15:57:38]URL: /json_proto [15:57:38]Method is POST - this is cgi request [15:57:38]url: /json_proto [15:57:38]query_string will be loaded in cgi processing [15:57:38]execute_cgi json_proto POST (null) [15:57:38]execute_cgi path=json_proto method=POST [15:57:38]POST find Content-Length [15:57:38]Host: 172.17.35.3:8080 [15:57:38]Content-Length: 682 [15:57:38]Content-Type: application/json [15:57:38] [15:57:38]POST finish read [15:57:38]Found Content-Length = 682 [15:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:38]execute_script... [15:57: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)359654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:38]POST & json_proto [15:57:38]process_json_proto [15:57:38]json parsed OK: [15:57:38]protocol is kg_v1.0 [15:57:38]action value=close_receipt [15:57:38]process_action close_receipt [15:57:38]cmd_close_receipt [15:57:38]MH_GetDate [15:57:38]Write to MH i2c: F0 00 00 B3 58 FA [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: F0 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: F0 09 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: F0 09 00 B3 58 00 88 65 15 66 2B 11 66 64 71 [15:57:38]GetLastDocTimeStamp 1712678042 [15:57:38]current date 1712678280 [15:57:38]FM_GetShiftState [15:57:38]SAM_PROTO_GetShiftState [15:57:38]wFMCommunicate request_size=4 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 13 01 00 [15:57:38]Write to MH i2c: E2 08 00 B4 58 80 13 01 00 00 00 00 00 89 [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:39]Read from MH i2c: E2 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: E2 0E 00 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: E2 0E 00 B4 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 F4 [15:57:39]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:57:39]wFMCommunicate OK [15:57:39]SAM_PROTO_GetShiftState done [15:57:39]FM_GetShiftState done [15:57:39]opened in 1712622936 [15:57:39]opened+sec_in_day 1712709336 [15:57:39]quantity*price = 100045 [15:57:39]sum+1 = 100046 [15:57:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 41 09.04.2024 15:58 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26909 ФПД: 101438906551344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T155800&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26909&fm=101438906551344&tin=02508201610067®Number=0000000000091578&sum=100000 [15:57:40]StoreToDocumentArchive [15:57:40]shift 315 fd 26909 [15:57:40]save to /storage/0315/doc_00026909 [15:57:40]save last doc name /storage/0315/doc_00026909 to /storage/kkm_last_doc_name [15:57:40]save OK [15:57:40]Clear old archive folders... [15:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:40]tlvbuf is 00F15410 [15:57:40]SAM_PROTO_ClearQueue [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 09 00 00 [15:57:40]Write to MH i2c: E2 08 00 C1 58 80 09 00 00 00 00 00 00 8B [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 C1 58 00 90 00 8D [15:57:40]RAPDU: 90 00 [15:57:40]wFMCommunicate OK [15:57:40]SAM_PROTO_ClearQueue done [15:57:40]KKMCreateOFDPacket [15:57:40]OFDProtocolAddRootSTLVToBuf [15:57:40]FM_MakeSignedData [15:57:40]FM_MakeSignedData [15:57:40]SAM_PROTO_SignData [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 0D 01 02 [15:57:40]Write to MH i2c: E2 08 00 C2 58 80 0D 01 02 00 00 00 00 93 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 C2 58 00 90 00 8E [15:57:40]RAPDU: 90 00 [15:57:40]wFMCommunicate OK [15:57:40]wFMCommunicate request_size=255 [15:57:40]MH_SAM_APDU [15:57: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 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 88 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 69 00 00 35 04 06 00 5C [15:57:40]Write to MH i2c: E2 02 01 C3 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 88 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 69 00 00 35 04 06 00 5C 00 00 D6 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 C3 58 00 90 00 8F [15:57:40]RAPDU: 90 00 [15:57:40]wFMCommunicate OK [15:57:40]wFMCommunicate request_size=10 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 0D 02 02 05 42 15 FD CC 30 [15:57:40]Write to MH i2c: E2 0D 00 C4 58 80 0D 02 02 05 00 42 15 FD CC 30 00 00 F0 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 03 00 C4 58 00 90 00 90 [15:57:40]RAPDU: 90 00 [15:57:40]wFMCommunicate OK [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 0D 03 02 [15:57:40]Write to MH i2c: E2 08 00 C5 58 80 0D 03 02 00 00 00 00 98 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 0B 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 0B 00 C5 58 00 B8 69 AD 46 A9 56 F8 BA 90 00 5E [15:57:40]RAPDU: B8 69 AD 46 A9 56 F8 BA 90 00 [15:57:40]wFMCommunicate OK [15:57:40]SAM_PROTO_SignData done [15:57:40]FM_MakeSignedData done [15:57:40]CreateOFDProtocolMessage [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 11 00 00 [15:57:40]Write to MH i2c: E2 08 00 C6 58 80 11 00 00 00 00 00 00 98 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 17 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 17 00 C6 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F0 [15:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:57:40]wFMCommunicate OK [15:57:40]CreateOFDProtocolMessage done [15:57:40]OFDSenderStorePacket 26909 [15:57:40]StoreOFDPacket docnum=26909 [15:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 C2 70 07 01 0B DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 88 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 69 00 00 35 04 06 00 5C 42 15 FD CC 30 B8 69 AD 46 A9 56 F8 BA [15:57:40]CheckFolder [15:57:40]dirname=/storage/ofd_packets [15:57:40]CheckFolder done [15:57:40]ProducePacketName [15:57:40]name=ofd_packets/00026909 [15:57:40]NVStorageSaveData ofd_packets/00026909 [15:57:40]File name is /storage/ofd_packets/00026909 [15:57:40]Write 301 bytes [15:57:40]NVStorageSaveData done [15:57:40]OFDSenderStorePacket done [15:57:40]KKMCreateOFDPacket done [15:57:40]NVStorageSaveData kkm_last_timestamp [15:57:40]File name is /storage/kkm_last_timestamp [15:57:40]Write 4 bytes [15:57:40]NVStorageSaveData done [15:57:40]ExternCall_PrintAddStr [15:57:40]wPrintStart [15:57:40]Write to MH i2c: 01 00 00 C7 58 1F [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: 01 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: 01 07 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: 01 07 00 C7 58 00 00 00 00 00 FF 0F 34 [15:57:40]RasterBufferAndPrint [15:57:40]line Счет N : (1)359654 [15:57:40]line ИНН: 02508201610067 [15:57:40]line Контрольно-Кассовый Чек [15:57:40]line ПРОДАЖА [15:57:40]line ТРК (МРК, ГНК) : 51 [15:57:40]line Товар: 2710124130 [15:57:40]line Аи-92-К-5 [15:57:40]line 15.780 * 63.40 [15:57:40]line = 1000.45 [15:57:40]line НДС 12% НСП 1% [15:57:40]line > о реализуемом товаре [15:57:40]line ОКРУГЛЕНИЕ: -0.45 [15:57:40]line ИТОГО: 1000.00 [15:57:40]line Внесено: 1000.00 [15:57:40]line СДАЧА: 0.00 [15:57:40]line НСП 1% : 8.85 [15:57:40]line НДС 12% : 106.24 [15:57:40]line Наличными: 1000.00 [15:57:40]line Безнал.: 0.00 [15:57:40]line Место: АЗС № 122 "Партнер Нефть" [15:57:40]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:57:40]line СНО: Общий режим [15:57:40]line Чек 41 09.04.2024 15:58 [15:57:40]line Смена: 315 ФФД: 1.0 [15:57:40]line ЗНМ: 0300000147 [15:57:40]line РНМ: 0000000000091578 [15:57:40]line Версия ККМ: 001 [15:57:40]line ФМ: 0000000000874657 [15:57:40]line ФД: 26909 [15:57:40]line ФПД: 101438906551344 [15:57:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T155800&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26909&fm=101438906551344&tin=02508201610067®Number=0000000000091578&sum=100000 [15:57:41]OFD Sender: Processing packet 26909 [packets to send 44, broken 43] [15:57:41]ProducePacketName [15:57:41]name=ofd_packets/00026909 [15:57:41]OFD Sender: To server: pG, [15:57:41]CommunicateWithHost lk.salyk.kg:30040 [15:57:41]ConnectInit lk.salyk.kg [15:57:41]written 0, free lines is 4095 [15:57:41]Connected sock=10 [15:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 C2 70 07 01 0B DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 88 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 69 00 00 35 04 06 00 5C 42 15 FD CC 30 B8 69 AD 46 A9 56 F8 BA [15:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 19 46 47 00 C7 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1D 69 00 00 F4 03 04 00 EE 0C 15 66 B6 04 01 00 00 D4 85 7E 87 E5 69 5A 7C [15:57:41]CommunicateWithHost err = 0 [15:57:41]CheckOFDResponse [15:57:41]1017 (14) - 77093643461234 [15:57:41]1041 (16) - 0000000000874657 [15:57:41]1040 (4) - 26909 [15:57:41]1012 (4) - 09.04.2024 09:39 [15:57:41]1206 (1) - 0 [15:57:41]OFD Sender: Remove packet 26909 [15:57:41]ProducePacketName [15:57:41]name=ofd_packets/00026909 [15:57:41]NVStorageDeleteData [15:57:41]Write to MH i2c: 01 00 00 F2 58 4A [15:57:41]Write i2c OK [15:57:41]MH_I2C_Read... [15:57:41]Read from MH i2c: 01 [15:57:41]MH_I2C_Read... [15:57:41]Read from MH i2c: 01 07 00 [15:57:41]MH_I2C_Read... [15:57:41]Read from MH i2c: 01 07 00 F2 58 00 00 00 00 00 77 0C D4 [15:57:41]RasterBufferAndPrint [15:57:41]line [15:57:41]line [15:57:41]line [15:57:41]line [15:57:41]line [15:57:41]written 0, free lines is 3194 [15:57:41]MH_Cut [15:57:41]Write to MH i2c: D1 01 00 F9 58 01 23 [15:57:41]Write i2c OK [15:57:41]MH_I2C_Read... [15:57:41]Read from MH i2c: D1 [15:57:41]MH_I2C_Read... [15:57:41]Read from MH i2c: D1 01 00 [15:57:41]MH_I2C_Read... [15:57:41]Read from MH i2c: D1 01 00 F9 58 00 22 [15:57:41]Write to MH i2c: 01 00 00 FA 58 52 [15:57:41]Write i2c OK [15:57:41]MH_I2C_Read... [15:57:41]OFD Sender: No OFD packet to send [15:57:42]*** Cut start [15:57:42]*** Partial cut [15:57:42]*** CUTSNS_PIN = 1 [15:57:42]*** CUTSNS_PIN = 0 [15:57:42]*** Brake cut motor [15:57:43]Read from MH i2c: 01 [15:57:43]MH_I2C_Read... [15:57:43]*** Stop cut motor [15:57:43]*** Cut end [15:57:43]Read from MH i2c: 01 07 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: 01 07 00 FA 58 00 00 00 00 00 FF 0F 67 [15:57:43]process_action close_receipt done [15:57:43]requested_data is exist [15:57:43]produce_requested_data [15:57:43]requested_item fm.sn is exist - process it [15:57:43]wFMCommunicate request_size=4 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 11 00 00 [15:57:43]Write to MH i2c: E2 08 00 FB 58 80 11 00 00 00 00 00 00 CD [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 17 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 17 00 FB 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 25 [15:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:57:43]wFMCommunicate OK [15:57:43]requested_item fd.num is exist - process it [15:57:43]SAM_PROTO_GetFieldsCounters [15:57:43]wFMCommunicate request_size=4 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 13 00 00 [15:57:43]Write to MH i2c: E2 08 00 FC 58 80 13 00 00 00 00 00 00 D0 [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 62 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 62 00 FC 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1D 69 00 00 0E 04 04 00 3B 01 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 38 [15:57:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1D 69 00 00 0E 04 04 00 3B 01 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 [15:57:43]wFMCommunicate OK [15:57:43]SAM_PROTO_GetFieldsCounters done [15:57:43]requested_item shift.num is exist - process it [15:57:43]requested_item shift.opened is exist - process it [15:57:43]req_shift_opened [15:57:43]FM_GetShiftState [15:57:43]SAM_PROTO_GetShiftState [15:57:43]wFMCommunicate request_size=4 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 13 01 00 [15:57:43]Write to MH i2c: E2 08 00 FD 58 80 13 01 00 00 00 00 00 D2 [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 0E 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 0E 00 FD 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 3D [15:57:43]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:57:43]wFMCommunicate OK [15:57:43]SAM_PROTO_GetShiftState done [15:57:43]FM_GetShiftState done [15:57:43]req_shift_opened done [15:57:43]requested_item shift.open_date is exist - process it [15:57:43]req_shift_open_date [15:57:43]req_shift_open_date done [15:57:43]produce_requested_data done [15:57:43]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26909,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:57:43]process_action_free close_receipt [15:57:43]json_value_free [15:57:43]json_value_free done [15:57:43]process_json_proto returns [15:57:43]Send response to host [15:57:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26909,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:57:43]free response buf [15:57:43]execute_script done [15:57:43]execute_script returns [15:57:43]free content buf [15:57:43]Sock 9.Close socket [15:57:43]Sock 9.Thread stoped [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:10]accept exits with 8 [15:59:10]New connection [15:59:10]New thread 3066871140 created [15:59:10]Thread 3067014500 joined [15:59:10]Waiting for new connection... [15:59:10] Sock 8.Parse request [15:59:10]Sock 8.Check first char [15:59:10]Sock 8.First char is OK [15:59:10]request: POST /json_proto HTTP/1.0 [15:59:10]Method: POST [15:59:10]URL: /json_proto [15:59:10]Method is POST - this is cgi request [15:59:10]url: /json_proto [15:59:10]query_string will be loaded in cgi processing [15:59:10]execute_cgi json_proto POST (null) [15:59:10]execute_cgi path=json_proto method=POST [15:59:10]POST find Content-Length [15:59:10]Host: 172.17.35.3:8080 [15:59:10]Content-Length: 682 [15:59:10]Content-Type: application/json [15:59:10] [15:59:10]POST finish read [15:59:10]Found Content-Length = 682 [15:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:10]execute_script... [15:59:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:10]POST & json_proto [15:59:10]process_json_proto [15:59:10]json parsed OK: [15:59:10]protocol is kg_v1.0 [15:59:10]action value=close_receipt [15:59:10]process_action close_receipt [15:59:10]cmd_close_receipt [15:59:10]MH_GetDate [15:59:10]Write to MH i2c: F0 00 00 FE 58 45 [15:59:10]Write i2c OK [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: F0 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: F0 09 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: F0 09 00 FE 58 00 E3 65 15 66 2B 11 66 64 17 [15:59:10]GetLastDocTimeStamp 1712678280 [15:59:10]current date 1712678371 [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 FF 58 80 13 01 00 00 00 00 00 D4 [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 FF 58 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 3F [15:59:10]RAPDU: 09 00 01 58 8D 14 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]opened in 1712622936 [15:59:10]opened+sec_in_day 1712709336 [15:59:10]quantity*price = 100012 [15:59:10]sum+1 = 100014 [15:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 42 09.04.2024 15:59 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26910 ФПД: 55620093513042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T155931&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26910&fm=55620093513042&tin=02508201610067®Number=0000000000091578&sum=100000 [15:59:11]StoreToDocumentArchive [15:59:11]shift 315 fd 26910 [15:59:11]save to /storage/0315/doc_00026910 [15:59:11]save last doc name /storage/0315/doc_00026910 to /storage/kkm_last_doc_name [15:59:11]save OK [15:59:11]Clear old archive folders... [15:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:11]tlvbuf is B6F67B40 [15:59:11]SAM_PROTO_ClearQueue [15:59:11]wFMCommunicate request_size=4 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 09 00 00 [15:59:11]Write to MH i2c: E2 08 00 0C 59 80 09 00 00 00 00 00 00 D7 [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 03 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 03 00 0C 59 00 90 00 D9 [15:59:11]RAPDU: 90 00 [15:59:11]wFMCommunicate OK [15:59:11]SAM_PROTO_ClearQueue done [15:59:11]KKMCreateOFDPacket [15:59:11]OFDProtocolAddRootSTLVToBuf [15:59:11]FM_MakeSignedData [15:59:11]FM_MakeSignedData [15:59:11]SAM_PROTO_SignData [15:59:11]wFMCommunicate request_size=4 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 0D 01 02 [15:59:11]Write to MH i2c: E2 08 00 0D 59 80 0D 01 02 00 00 00 00 DF [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:12]Read from MH i2c: E2 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 03 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 03 00 0D 59 00 90 00 DA [15:59:12]RAPDU: 90 00 [15:59:12]wFMCommunicate OK [15:59:12]wFMCommunicate request_size=255 [15:59:12]MH_SAM_APDU [15:59:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E3 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 69 00 00 35 04 06 00 32 [15:59:12]Write to MH i2c: E2 02 01 0E 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E3 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 69 00 00 35 04 06 00 32 00 00 37 [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:12]Read from MH i2c: E2 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 03 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 03 00 0E 59 00 90 00 DB [15:59:12]RAPDU: 90 00 [15:59:12]wFMCommunicate OK [15:59:12]wFMCommunicate request_size=10 [15:59:12]MH_SAM_APDU [15:59:12]CAPDU: 80 0D 02 02 05 96 0F EA 8D 52 [15:59:12]Write to MH i2c: E2 0D 00 0F 59 80 0D 02 02 05 00 96 0F EA 8D 52 00 00 5A [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:12]Read from MH i2c: E2 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 03 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 03 00 0F 59 00 90 00 DC [15:59:12]RAPDU: 90 00 [15:59:12]wFMCommunicate OK [15:59:12]wFMCommunicate request_size=4 [15:59:12]MH_SAM_APDU [15:59:12]CAPDU: 80 0D 03 02 [15:59:12]Write to MH i2c: E2 08 00 10 59 80 0D 03 02 00 00 00 00 E4 [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:12]Read from MH i2c: E2 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 0B 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 0B 00 10 59 00 57 84 ED 08 FC A6 61 53 90 00 0B [15:59:12]RAPDU: 57 84 ED 08 FC A6 61 53 90 00 [15:59:12]wFMCommunicate OK [15:59:12]SAM_PROTO_SignData done [15:59:12]FM_MakeSignedData done [15:59:12]CreateOFDProtocolMessage [15:59:12]wFMCommunicate request_size=4 [15:59:12]MH_SAM_APDU [15:59:12]CAPDU: 80 11 00 00 [15:59:12]Write to MH i2c: E2 08 00 11 59 80 11 00 00 00 00 00 00 E4 [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:12]Read from MH i2c: E2 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 17 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: E2 17 00 11 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 3C [15:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:59:12]wFMCommunicate OK [15:59:12]CreateOFDProtocolMessage done [15:59:12]OFDSenderStorePacket 26910 [15:59:12]StoreOFDPacket docnum=26910 [15:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 99 BB 07 01 85 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E3 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 69 00 00 35 04 06 00 32 96 0F EA 8D 52 57 84 ED 08 FC A6 61 53 [15:59:12]CheckFolder [15:59:12]dirname=/storage/ofd_packets [15:59:12]CheckFolder done [15:59:12]ProducePacketName [15:59:12]name=ofd_packets/00026910 [15:59:12]NVStorageSaveData ofd_packets/00026910 [15:59:12]File name is /storage/ofd_packets/00026910 [15:59:12]Write 301 bytes [15:59:12]NVStorageSaveData done [15:59:12]OFDSenderStorePacket done [15:59:12]KKMCreateOFDPacket done [15:59:12]NVStorageSaveData kkm_last_timestamp [15:59:12]File name is /storage/kkm_last_timestamp [15:59:12]Write 4 bytes [15:59:12]NVStorageSaveData done [15:59:12]ExternCall_PrintAddStr [15:59:12]wPrintStart [15:59:12]Write to MH i2c: 01 00 00 12 59 6B [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: 01 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: 01 07 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: 01 07 00 12 59 00 00 00 00 00 FF 0F 80 [15:59:12]RasterBufferAndPrint [15:59:12]line Счет N : (1)359655 [15:59:12]line ИНН: 02508201610067 [15:59:12]line Контрольно-Кассовый Чек [15:59:12]line ПРОДАЖА [15:59:12]line ТРК (МРК, ГНК) : 63 [15:59:12]line Товар: 2710124500 [15:59:12]line Аи-95-К-5 [15:59:12]line 13.910 * 71.90 [15:59:12]line = 1000.13 [15:59:12]line НДС 12% НСП 1% [15:59:12]line > о реализуемом товаре [15:59:12]line ОКРУГЛЕНИЕ: -0.13 [15:59:12]line ИТОГО: 1000.00 [15:59:12]line Внесено: 1000.00 [15:59:12]line СДАЧА: 0.00 [15:59:12]line НСП 1% : 8.85 [15:59:12]line НДС 12% : 106.21 [15:59:12]line Наличными: 1000.00 [15:59:12]line Безнал.: 0.00 [15:59:12]line Место: АЗС № 122 "Партнер Нефть" [15:59:12]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [15:59:12]line СНО: Общий режим [15:59:12]line Чек 42 09.04.2024 15:59 [15:59:12]line Смена: 315 ФФД: 1.0 [15:59:12]line ЗНМ: 0300000147 [15:59:12]line РНМ: 0000000000091578 [15:59:12]line Версия ККМ: 001 [15:59:12]line ФМ: 0000000000874657 [15:59:12]line ФД: 26910 [15:59:12]line ФПД: 55620093513042 [15:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T155931&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26910&fm=55620093513042&tin=02508201610067®Number=0000000000091578&sum=100000 [15:59:12]OFD Sender: Processing packet 26910 [packets to send 44, broken 43] [15:59:12]ProducePacketName [15:59:12]name=ofd_packets/00026910 [15:59:12]OFD Sender: To server: pG, [15:59:12]CommunicateWithHost lk.salyk.kg:30040 [15:59:12]ConnectInit lk.salyk.kg [15:59:12]written 0, free lines is 4095 [15:59:12]Connected sock=10 [15:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 99 BB 07 01 85 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E3 65 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 69 00 00 35 04 06 00 32 96 0F EA 8D 52 57 84 ED 08 FC A6 61 53 [15:59:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F3 11 47 00 E0 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1E 69 00 00 F4 03 04 00 4A 0D 15 66 B6 04 01 00 00 C0 7D D2 14 A2 C2 D7 01 [15:59:13]CommunicateWithHost err = 0 [15:59:13]CheckOFDResponse [15:59:13]1017 (14) - 77093643461234 [15:59:13]1041 (16) - 0000000000874657 [15:59:13]1040 (4) - 26910 [15:59:13]1012 (4) - 09.04.2024 09:41 [15:59:13]1206 (1) - 0 [15:59:13]OFD Sender: Remove packet 26910 [15:59:13]ProducePacketName [15:59:13]name=ofd_packets/00026910 [15:59:13]NVStorageDeleteData [15:59:13]Write to MH i2c: 01 00 00 3D 59 96 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: 01 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: 01 07 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: 01 07 00 3D 59 00 00 00 00 00 75 0C 1E [15:59:13]RasterBufferAndPrint [15:59:13]line [15:59:13]line [15:59:13]line [15:59:13]line [15:59:13]line [15:59:13]written 0, free lines is 3192 [15:59:13]MH_Cut [15:59:13]Write to MH i2c: D1 01 00 44 59 01 6F [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: D1 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: D1 01 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: D1 01 00 44 59 00 6E [15:59:13]Write to MH i2c: 01 00 00 45 59 9E [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]OFD Sender: No OFD packet to send [15:59:14]*** Cut start [15:59:14]*** Partial cut [15:59:14]*** CUTSNS_PIN = 1 [15:59:14]*** CUTSNS_PIN = 0 [15:59:14]*** Brake cut motor [15:59:15]Read from MH i2c: 01 [15:59:15]MH_I2C_Read... [15:59:15]*** Stop cut motor [15:59:15]*** Cut end [15:59:15]Read from MH i2c: 01 07 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: 01 07 00 45 59 00 00 00 00 00 FF 0F B3 [15:59:15]process_action close_receipt done [15:59:15]requested_data is exist [15:59:15]produce_requested_data [15:59:15]requested_item fm.sn is exist - process it [15:59:15]wFMCommunicate request_size=4 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 11 00 00 [15:59:15]Write to MH i2c: E2 08 00 46 59 80 11 00 00 00 00 00 00 19 [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 17 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 17 00 46 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 71 [15:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [15:59:15]wFMCommunicate OK [15:59:15]requested_item fd.num is exist - process it [15:59:15]SAM_PROTO_GetFieldsCounters [15:59:15]wFMCommunicate request_size=4 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 13 00 00 [15:59:15]Write to MH i2c: E2 08 00 47 59 80 13 00 00 00 00 00 00 1C [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 62 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 62 00 47 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1E 69 00 00 0E 04 04 00 3B 01 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 88 [15:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1E 69 00 00 0E 04 04 00 3B 01 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 [15:59:15]wFMCommunicate OK [15:59:15]SAM_PROTO_GetFieldsCounters done [15:59:15]requested_item shift.num is exist - process it [15:59:15]requested_item shift.opened is exist - process it [15:59:15]req_shift_opened [15:59:15]FM_GetShiftState [15:59:15]SAM_PROTO_GetShiftState [15:59:15]wFMCommunicate request_size=4 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 13 01 00 [15:59:15]Write to MH i2c: E2 08 00 48 59 80 13 01 00 00 00 00 00 1E [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0E 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0E 00 48 59 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 89 [15:59:15]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [15:59:15]wFMCommunicate OK [15:59:15]SAM_PROTO_GetShiftState done [15:59:15]FM_GetShiftState done [15:59:15]req_shift_opened done [15:59:15]requested_item shift.open_date is exist - process it [15:59:15]req_shift_open_date [15:59:15]req_shift_open_date done [15:59:15]produce_requested_data done [15:59:15]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26910,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [15:59:15]process_action_free close_receipt [15:59:15]json_value_free [15:59:15]json_value_free done [15:59:15]process_json_proto returns [15:59:15]Send response to host [15:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26910,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [15:59:15]free response buf [15:59:15]execute_script done [15:59:15]execute_script returns [15:59:15]free content buf [15:59:15]Sock 8.Close socket [15:59:15]Sock 8.Thread stoped [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06: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:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:09]accept exits with 9 [16:13:09]New connection [16:13:09]New thread 3067014500 created [16:13:09]Thread 3066871140 joined [16:13:09]Waiting for new connection... [16:13:09] Sock 9.Parse request [16:13:09]Sock 9.Check first char [16:13:09]Sock 9.First char is OK [16:13:09]request: POST /json_proto HTTP/1.0 [16:13:09]Method: POST [16:13:09]URL: /json_proto [16:13:09]Method is POST - this is cgi request [16:13:09]url: /json_proto [16:13:09]query_string will be loaded in cgi processing [16:13:09]execute_cgi json_proto POST (null) [16:13:09]execute_cgi path=json_proto method=POST [16:13:09]POST find Content-Length [16:13:09]Host: 172.17.35.3:8080 [16:13:09]Content-Length: 687 [16:13:09]Content-Type: application/json [16:13:09] [16:13:09]POST finish read [16:13:09]Found Content-Length = 687 [16:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359656", "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" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:09]execute_script... [16:13: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)359656", "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" : 71.80, "quantity" : 13.930, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:09]POST & json_proto [16:13:09]process_json_proto [16:13:09]json parsed OK: [16:13:09]protocol is kg_v1.0 [16:13:09]action value=close_receipt [16:13:09]process_action close_receipt [16:13:09]cmd_close_receipt [16:13:09]MH_GetDate [16:13:09]Write to MH i2c: F0 00 00 49 59 91 [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: F0 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: F0 09 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: F0 09 00 49 59 00 2B 69 15 66 2B 11 66 64 AF [16:13:09]GetLastDocTimeStamp 1712678371 [16:13:09]current date 1712679211 [16:13:09]FM_GetShiftState [16:13:09]SAM_PROTO_GetShiftState [16:13:09]wFMCommunicate request_size=4 [16:13:09]MH_SAM_APDU [16:13:09]CAPDU: 80 13 01 00 [16:13:09]Write to MH i2c: E2 08 00 4A 59 80 13 01 00 00 00 00 00 20 [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:09]Read from MH i2c: E2 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: E2 0E 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: E2 0E 00 4A 59 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 8B [16:13:09]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [16:13:09]wFMCommunicate OK [16:13:09]SAM_PROTO_GetShiftState done [16:13:09]FM_GetShiftState done [16:13:09]opened in 1712622936 [16:13:09]opened+sec_in_day 1712709336 [16:13:09]quantity*price = 100017 [16:13:09]sum+1 = 100018 [16:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 43 09.04.2024 16:13 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26911 ФПД: 60653489935831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T161331&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26911&fm=60653489935831&tin=02508201610067®Number=0000000000091578&sum=100000 [16:13:10]StoreToDocumentArchive [16:13:10]shift 315 fd 26911 [16:13:10]save to /storage/0315/doc_00026911 [16:13:10]save last doc name /storage/0315/doc_00026911 to /storage/kkm_last_doc_name [16:13:10]save OK [16:13:10]Clear old archive folders... [16:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:13:10]tlvbuf is 00E9E840 [16:13:10]SAM_PROTO_ClearQueue [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 09 00 00 [16:13:10]Write to MH i2c: E2 08 00 57 59 80 09 00 00 00 00 00 00 22 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 57 59 00 90 00 24 [16:13:11]RAPDU: 90 00 [16:13:11]wFMCommunicate OK [16:13:11]SAM_PROTO_ClearQueue done [16:13:11]KKMCreateOFDPacket [16:13:11]OFDProtocolAddRootSTLVToBuf [16:13:11]FM_MakeSignedData [16:13:11]FM_MakeSignedData [16:13:11]SAM_PROTO_SignData [16:13:11]wFMCommunicate request_size=4 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 0D 01 02 [16:13:11]Write to MH i2c: E2 08 00 58 59 80 0D 01 02 00 00 00 00 2A [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 58 59 00 90 00 25 [16:13:11]RAPDU: 90 00 [16:13:11]wFMCommunicate OK [16:13:11]wFMCommunicate request_size=255 [16:13:11]MH_SAM_APDU [16:13:11]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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2B 69 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 69 00 00 35 04 06 00 [16:13:11]Write to MH i2c: E2 02 01 59 59 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2B 69 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 69 00 00 35 04 06 00 00 00 E3 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 59 59 00 90 00 26 [16:13:11]RAPDU: 90 00 [16:13:11]wFMCommunicate OK [16:13:11]wFMCommunicate request_size=11 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 0D 02 02 06 37 29 FD B8 D5 D7 [16:13:11]Write to MH i2c: E2 0E 00 5A 59 80 0D 02 02 06 00 37 29 FD B8 D5 D7 00 00 FA [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 03 00 5A 59 00 90 00 27 [16:13:11]RAPDU: 90 00 [16:13:11]wFMCommunicate OK [16:13:11]wFMCommunicate request_size=4 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 0D 03 02 [16:13:11]Write to MH i2c: E2 08 00 5B 59 80 0D 03 02 00 00 00 00 2F [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 0B 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 0B 00 5B 59 00 C3 26 91 A6 93 93 F8 FA 90 00 68 [16:13:11]RAPDU: C3 26 91 A6 93 93 F8 FA 90 00 [16:13:11]wFMCommunicate OK [16:13:11]SAM_PROTO_SignData done [16:13:11]FM_MakeSignedData done [16:13:11]CreateOFDProtocolMessage [16:13:11]wFMCommunicate request_size=4 [16:13:11]MH_SAM_APDU [16:13:11]CAPDU: 80 11 00 00 [16:13:11]Write to MH i2c: E2 08 00 5C 59 80 11 00 00 00 00 00 00 2F [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:11]Read from MH i2c: E2 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 17 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: E2 17 00 5C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 87 [16:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [16:13:11]wFMCommunicate OK [16:13:11]CreateOFDProtocolMessage done [16:13:11]OFDSenderStorePacket 26911 [16:13:11]StoreOFDPacket docnum=26911 [16:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 A1 CF 08 01 9B E0 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2B 69 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 69 00 00 35 04 06 00 37 29 FD B8 D5 D7 C3 26 91 A6 93 93 F8 FA [16:13:11]CheckFolder [16:13:11]dirname=/storage/ofd_packets [16:13:11]CheckFolder done [16:13:11]ProducePacketName [16:13:11]name=ofd_packets/00026911 [16:13:11]NVStorageSaveData ofd_packets/00026911 [16:13:11]File name is /storage/ofd_packets/00026911 [16:13:11]Write 302 bytes [16:13:11]NVStorageSaveData done [16:13:11]OFDSenderStorePacket done [16:13:11]KKMCreateOFDPacket done [16:13:11]NVStorageSaveData kkm_last_timestamp [16:13:11]File name is /storage/kkm_last_timestamp [16:13:11]Write 4 bytes [16:13:11]NVStorageSaveData done [16:13:11]ExternCall_PrintAddStr [16:13:11]wPrintStart [16:13:11]Write to MH i2c: 01 00 00 5D 59 B6 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 07 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 07 00 5D 59 00 00 00 00 00 FF 0F CB [16:13:11]RasterBufferAndPrint [16:13:11]line Счет N : (1)359656 [16:13:11]line ИНН: 02508201610067 [16:13:11]line Контрольно-Кассовый Чек [16:13:11]line ПРОДАЖА [16:13:11]line ТРК (МРК, ГНК) : 11 [16:13:11]line Товар: 2710194210 [16:13:11]line ДТ(л)-К-5 [16:13:11]line 13.930 * 71.80 [16:13:11]line = 1000.17 [16:13:11]line НДС 12% НСП 1% [16:13:11]line > о реализуемом товаре [16:13:11]line ОКРУГЛЕНИЕ: -0.17 [16:13:11]line ИТОГО: 1000.00 [16:13:11]line Внесено: 1000.00 [16:13:11]line СДАЧА: 0.00 [16:13:11]line НСП 1% : 8.85 [16:13:11]line НДС 12% : 106.21 [16:13:11]line Наличными: 1000.00 [16:13:11]line Безнал.: 0.00 [16:13:11]line Место: АЗС № 122 "Партнер Нефть" [16:13:11]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [16:13:11]line СНО: Общий режим [16:13:11]line Чек 43 09.04.2024 16:13 [16:13:11]line Смена: 315 ФФД: 1.0 [16:13:11]line ЗНМ: 0300000147 [16:13:11]line РНМ: 0000000000091578 [16:13:11]line Версия ККМ: 001 [16:13:11]line ФМ: 0000000000874657 [16:13:11]line ФД: 26911 [16:13:11]line ФПД: 60653489935831 [16:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T161331&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26911&fm=60653489935831&tin=02508201610067®Number=0000000000091578&sum=100000 [16:13:11]OFD Sender: Processing packet 26911 [packets to send 44, broken 43] [16:13:11]ProducePacketName [16:13:11]name=ofd_packets/00026911 [16:13:11]OFD Sender: To server: pG, [16:13:11]CommunicateWithHost lk.salyk.kg:30040 [16:13:11]ConnectInit lk.salyk.kg [16:13:11]written 0, free lines is 4095 [16:13:11]Connected sock=11 [16:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 A1 CF 08 01 9B E0 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 6A 36 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 B1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2B 69 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 1F 69 00 00 35 04 06 00 37 29 FD B8 D5 D7 C3 26 91 A6 93 93 F8 FA [16:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F1 F1 47 00 99 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 38 37 34 36 35 37 10 04 04 00 1F 69 00 00 F4 03 04 00 91 10 15 66 B6 04 01 00 00 BB C3 91 94 4C 18 8D 44 [16:13:12]CommunicateWithHost err = 0 [16:13:12]CheckOFDResponse [16:13:12]1017 (14) - 77093643461234 [16:13:12]1041 (16) - 0000000000874657 [16:13:12]1040 (4) - 26911 [16:13:12]1012 (4) - 09.04.2024 09:55 [16:13:12]1206 (1) - 0 [16:13:12]OFD Sender: Remove packet 26911 [16:13:12]ProducePacketName [16:13:12]name=ofd_packets/00026911 [16:13:12]NVStorageDeleteData [16:13:12]Write to MH i2c: 01 00 00 88 59 E1 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 07 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 07 00 88 59 00 00 00 00 00 6E 0C 62 [16:13:12]RasterBufferAndPrint [16:13:12]line [16:13:12]line [16:13:12]line [16:13:12]line [16:13:12]line [16:13:12]written 0, free lines is 3185 [16:13:12]MH_Cut [16:13:12]Write to MH i2c: D1 01 00 8F 59 01 BA [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: D1 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: D1 01 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: D1 01 00 8F 59 00 B9 [16:13:12]Write to MH i2c: 01 00 00 90 59 E9 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]OFD Sender: No OFD packet to send [16:13:13]*** Cut start [16:13:13]*** Partial cut [16:13:13]*** CUTSNS_PIN = 1 [16:13:13]*** CUTSNS_PIN = 0 [16:13:13]*** Brake cut motor [16:13:14]Read from MH i2c: 01 [16:13:14]MH_I2C_Read... [16:13:14]*** Stop cut motor [16:13:14]*** Cut end [16:13:14]Read from MH i2c: 01 07 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: 01 07 00 90 59 00 00 00 00 00 FF 0F FE [16:13:14]process_action close_receipt done [16:13:14]requested_data is exist [16:13:14]produce_requested_data [16:13:14]requested_item fm.sn is exist - process it [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 11 00 00 [16:13:14]Write to MH i2c: E2 08 00 91 59 80 11 00 00 00 00 00 00 64 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 17 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 17 00 91 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 BC [16:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [16:13:14]wFMCommunicate OK [16:13:14]requested_item fd.num is exist - process it [16:13:14]SAM_PROTO_GetFieldsCounters [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 13 00 00 [16:13:14]Write to MH i2c: E2 08 00 92 59 80 13 00 00 00 00 00 00 67 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 62 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 62 00 92 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1F 69 00 00 0E 04 04 00 3B 01 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 D7 [16:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 1F 69 00 00 0E 04 04 00 3B 01 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 [16:13:14]wFMCommunicate OK [16:13:14]SAM_PROTO_GetFieldsCounters done [16:13:14]requested_item shift.num is exist - process it [16:13:14]requested_item shift.opened is exist - process it [16:13:14]req_shift_opened [16:13:14]FM_GetShiftState [16:13:14]SAM_PROTO_GetShiftState [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 13 01 00 [16:13:14]Write to MH i2c: E2 08 00 93 59 80 13 01 00 00 00 00 00 69 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 0E 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 0E 00 93 59 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 D4 [16:13:14]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [16:13:14]wFMCommunicate OK [16:13:14]SAM_PROTO_GetShiftState done [16:13:14]FM_GetShiftState done [16:13:14]req_shift_opened done [16:13:14]requested_item shift.open_date is exist - process it [16:13:14]req_shift_open_date [16:13:14]req_shift_open_date done [16:13:14]produce_requested_data done [16:13:14]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26911,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [16:13:14]process_action_free close_receipt [16:13:14]json_value_free [16:13:14]json_value_free done [16:13:14]process_json_proto returns [16:13:14]Send response to host [16:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26911,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [16:13:14]free response buf [16:13:14]execute_script done [16:13:14]execute_script returns [16:13:14]free content buf [16:13:14]Sock 9.Close socket [16:13:14]Sock 9.Thread stoped [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]accept exits with 8 [16:30:58]New connection [16:30:58]New thread 3066871140 created [16:30:58]Thread 3067014500 joined [16:30:58]Waiting for new connection... [16:30:58] Sock 8.Parse request [16:30:58]Sock 8.Check first char [16:30:58]Sock 8.First char is OK [16:30:58]request: POST /json_proto HTTP/1.0 [16:30:58]Method: POST [16:30:58]URL: /json_proto [16:30:58]Method is POST - this is cgi request [16:30:58]url: /json_proto [16:30:58]query_string will be loaded in cgi processing [16:30:58]execute_cgi json_proto POST (null) [16:30:58]execute_cgi path=json_proto method=POST [16:30:58]POST find Content-Length [16:30:58]Host: 172.17.35.3:8080 [16:30:58]Content-Length: 682 [16:30:58]Content-Type: application/json [16:30:58] [16:30:58]POST finish read [16:30:58]Found Content-Length = 682 [16:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:58]execute_script... [16:30:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:58]POST & json_proto [16:30:58]process_json_proto [16:30:58]json parsed OK: [16:30:58]protocol is kg_v1.0 [16:30:58]action value=close_receipt [16:30:58]process_action close_receipt [16:30:58]cmd_close_receipt [16:30:58]MH_GetDate [16:30:58]Write to MH i2c: F0 00 00 94 59 DC [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: F0 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: F0 09 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: F0 09 00 94 59 00 57 6D 15 66 2B 11 66 64 2A [16:30:58]GetLastDocTimeStamp 1712679211 [16:30:58]current date 1712680279 [16:30:58]FM_GetShiftState [16:30:58]SAM_PROTO_GetShiftState [16:30:58]wFMCommunicate request_size=4 [16:30:58]MH_SAM_APDU [16:30:58]CAPDU: 80 13 01 00 [16:30:58]Write to MH i2c: E2 08 00 95 59 80 13 01 00 00 00 00 00 6B [16:30:58]Write i2c OK [16:30:58]MH_I2C_Read... [16:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:58]Read from MH i2c: E2 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 0E 00 [16:30:58]MH_I2C_Read... [16:30:58]Read from MH i2c: E2 0E 00 95 59 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 D6 [16:30:58]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [16:30:58]wFMCommunicate OK [16:30:58]SAM_PROTO_GetShiftState done [16:30:58]FM_GetShiftState done [16:30:58]opened in 1712622936 [16:30:58]opened+sec_in_day 1712709336 [16:30:58]quantity*price = 100012 [16:30:58]sum+1 = 100014 [16:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 44 09.04.2024 16:31 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26912 ФПД: 125546959193289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T163119&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26912&fm=125546959193289&tin=02508201610067®Number=0000000000091578&sum=100000 [16:30:59]StoreToDocumentArchive [16:30:59]shift 315 fd 26912 [16:30:59]save to /storage/0315/doc_00026912 [16:30:59]save last doc name /storage/0315/doc_00026912 to /storage/kkm_last_doc_name [16:30:59]save OK [16:30:59]Clear old archive folders... [16:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:59]tlvbuf is 00E32D00 [16:30:59]SAM_PROTO_ClearQueue [16:30:59]wFMCommunicate request_size=4 [16:30:59]MH_SAM_APDU [16:30:59]CAPDU: 80 09 00 00 [16:30:59]Write to MH i2c: E2 08 00 A2 59 80 09 00 00 00 00 00 00 6D [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:59]Read from MH i2c: E2 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 A2 59 00 90 00 6F [16:30:59]RAPDU: 90 00 [16:30:59]wFMCommunicate OK [16:30:59]SAM_PROTO_ClearQueue done [16:30:59]KKMCreateOFDPacket [16:30:59]OFDProtocolAddRootSTLVToBuf [16:30:59]FM_MakeSignedData [16:30:59]FM_MakeSignedData [16:30:59]SAM_PROTO_SignData [16:30:59]wFMCommunicate request_size=4 [16:30:59]MH_SAM_APDU [16:30:59]CAPDU: 80 0D 01 02 [16:30:59]Write to MH i2c: E2 08 00 A3 59 80 0D 01 02 00 00 00 00 75 [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:59]Read from MH i2c: E2 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 A3 59 00 90 00 70 [16:30:59]RAPDU: 90 00 [16:30:59]wFMCommunicate OK [16:30:59]wFMCommunicate request_size=255 [16:30:59]MH_SAM_APDU [16:30:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 57 6D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 69 00 00 35 04 06 00 72 [16:30:59]Write to MH i2c: E2 02 01 A4 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 57 6D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 69 00 00 35 04 06 00 72 00 00 8D [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:59]Read from MH i2c: E2 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 A4 59 00 90 00 71 [16:30:59]RAPDU: 90 00 [16:30:59]wFMCommunicate OK [16:30:59]wFMCommunicate request_size=10 [16:30:59]MH_SAM_APDU [16:30:59]CAPDU: 80 0D 02 02 05 2F 2D E7 C4 C9 [16:30:59]Write to MH i2c: E2 0D 00 A5 59 80 0D 02 02 05 00 2F 2D E7 C4 C9 00 00 52 [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:59]Read from MH i2c: E2 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 03 00 A5 59 00 90 00 72 [16:30:59]RAPDU: 90 00 [16:30:59]wFMCommunicate OK [16:30:59]wFMCommunicate request_size=4 [16:30:59]MH_SAM_APDU [16:30:59]CAPDU: 80 0D 03 02 [16:30:59]Write to MH i2c: E2 08 00 A6 59 80 0D 03 02 00 00 00 00 7A [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:59]Read from MH i2c: E2 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 0B 00 [16:30:59]MH_I2C_Read... [16:30:59]Read from MH i2c: E2 0B 00 A6 59 00 9C 20 42 E7 85 97 72 3B 90 00 29 [16:30:59]RAPDU: 9C 20 42 E7 85 97 72 3B 90 00 [16:30:59]wFMCommunicate OK [16:30:59]SAM_PROTO_SignData done [16:30:59]FM_MakeSignedData done [16:30:59]CreateOFDProtocolMessage [16:30:59]wFMCommunicate request_size=4 [16:30:59]MH_SAM_APDU [16:30:59]CAPDU: 80 11 00 00 [16:30:59]Write to MH i2c: E2 08 00 A7 59 80 11 00 00 00 00 00 00 7A [16:30:59]Write i2c OK [16:30:59]MH_I2C_Read... [16:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:00]Read from MH i2c: E2 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 17 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: E2 17 00 A7 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D2 [16:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [16:31:00]wFMCommunicate OK [16:31:00]CreateOFDProtocolMessage done [16:31:00]OFDSenderStorePacket 26912 [16:31:00]StoreOFDPacket docnum=26912 [16:31:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 0E 3B 07 01 2C AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 57 6D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 69 00 00 35 04 06 00 72 2F 2D E7 C4 C9 9C 20 42 E7 85 97 72 3B [16:31:00]CheckFolder [16:31:00]dirname=/storage/ofd_packets [16:31:00]CheckFolder done [16:31:00]ProducePacketName [16:31:00]name=ofd_packets/00026912 [16:31:00]NVStorageSaveData ofd_packets/00026912 [16:31:00]File name is /storage/ofd_packets/00026912 [16:31:00]Write 301 bytes [16:31:00]NVStorageSaveData done [16:31:00]OFDSenderStorePacket done [16:31:00]KKMCreateOFDPacket done [16:31:00]NVStorageSaveData kkm_last_timestamp [16:31:00]File name is /storage/kkm_last_timestamp [16:31:00]Write 4 bytes [16:31:00]NVStorageSaveData done [16:31:00]ExternCall_PrintAddStr [16:31:00]wPrintStart [16:31:00]Write to MH i2c: 01 00 00 A8 59 01 [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: 01 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: 01 07 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: 01 07 00 A8 59 00 00 00 00 00 FF 0F 16 [16:31:00]RasterBufferAndPrint [16:31:00]line Счет N : (1)359657 [16:31:00]line ИНН: 02508201610067 [16:31:00]line Контрольно-Кассовый Чек [16:31:00]line ПРОДАЖА [16:31:00]line ТРК (МРК, ГНК) : 53 [16:31:00]line Товар: 2710124500 [16:31:00]line Аи-95-К-5 [16:31:00]line 13.910 * 71.90 [16:31:00]line = 1000.13 [16:31:00]line НДС 12% НСП 1% [16:31:00]line > о реализуемом товаре [16:31:00]line ОКРУГЛЕНИЕ: -0.13 [16:31:00]line ИТОГО: 1000.00 [16:31:00]line Внесено: 1000.00 [16:31:00]line СДАЧА: 0.00 [16:31:00]line НСП 1% : 8.85 [16:31:00]line НДС 12% : 106.21 [16:31:00]line Наличными: 1000.00 [16:31:00]line Безнал.: 0.00 [16:31:00]line Место: АЗС № 122 "Партнер Нефть" [16:31:00]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [16:31:00]line СНО: Общий режим [16:31:00]line Чек 44 09.04.2024 16:31 [16:31:00]line Смена: 315 ФФД: 1.0 [16:31:00]line ЗНМ: 0300000147 [16:31:00]line РНМ: 0000000000091578 [16:31:00]line Версия ККМ: 001 [16:31:00]line ФМ: 0000000000874657 [16:31:00]line ФД: 26912 [16:31:00]line ФПД: 125546959193289 [16:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T163119&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26912&fm=125546959193289&tin=02508201610067®Number=0000000000091578&sum=100000 [16:31:00]OFD Sender: Processing packet 26912 [packets to send 44, broken 43] [16:31:00]ProducePacketName [16:31:00]name=ofd_packets/00026912 [16:31:00]OFD Sender: To server: pG, [16:31:00]CommunicateWithHost lk.salyk.kg:30040 [16:31:00]ConnectInit lk.salyk.kg [16:31:00]written 0, free lines is 4095 [16:31:00]Connected sock=10 [16:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 0E 3B 07 01 2C AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 57 6D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 69 00 00 35 04 06 00 72 2F 2D E7 C4 C9 9C 20 42 E7 85 97 72 3B [16:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 FA 41 47 00 4C A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 20 69 00 00 F4 03 04 00 BD 14 15 66 B6 04 01 00 00 A9 A6 98 AF C0 FF 88 D1 [16:31:00]CommunicateWithHost err = 0 [16:31:00]CheckOFDResponse [16:31:00]1017 (14) - 77093643461234 [16:31:00]1041 (16) - 0000000000874657 [16:31:00]1040 (4) - 26912 [16:31:00]1012 (4) - 09.04.2024 10:13 [16:31:00]1206 (1) - 0 [16:31:00]OFD Sender: Remove packet 26912 [16:31:00]ProducePacketName [16:31:00]name=ofd_packets/00026912 [16:31:00]NVStorageDeleteData [16:31:00]Write to MH i2c: 01 00 00 D3 59 2C [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: 01 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: 01 07 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: 01 07 00 D3 59 00 00 00 00 00 76 0C B5 [16:31:00]RasterBufferAndPrint [16:31:00]line [16:31:00]line [16:31:00]line [16:31:00]line [16:31:00]line [16:31:00]written 0, free lines is 3193 [16:31:00]MH_Cut [16:31:00]Write to MH i2c: D1 01 00 DA 59 01 05 [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: D1 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: D1 01 00 [16:31:00]MH_I2C_Read... [16:31:00]Read from MH i2c: D1 01 00 DA 59 00 04 [16:31:00]Write to MH i2c: 01 00 00 DB 59 34 [16:31:00]Write i2c OK [16:31:00]MH_I2C_Read... [16:31:01]OFD Sender: No OFD packet to send [16:31:01]*** Cut start [16:31:01]*** Partial cut [16:31:01]*** CUTSNS_PIN = 1 [16:31:02]*** CUTSNS_PIN = 0 [16:31:02]*** Brake cut motor [16:31:02]Read from MH i2c: 01 [16:31:02]MH_I2C_Read... [16:31:02]*** Stop cut motor [16:31:02]*** Cut end [16:31:02]Read from MH i2c: 01 07 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: 01 07 00 DB 59 00 00 00 00 00 FF 0F 49 [16:31:02]process_action close_receipt done [16:31:02]requested_data is exist [16:31:02]produce_requested_data [16:31:02]requested_item fm.sn is exist - process it [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 11 00 00 [16:31:02]Write to MH i2c: E2 08 00 DC 59 80 11 00 00 00 00 00 00 AF [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 17 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 17 00 DC 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 07 [16:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [16:31:02]wFMCommunicate OK [16:31:02]requested_item fd.num is exist - process it [16:31:02]SAM_PROTO_GetFieldsCounters [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 13 00 00 [16:31:02]Write to MH i2c: E2 08 00 DD 59 80 13 00 00 00 00 00 00 B2 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 62 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 62 00 DD 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 20 69 00 00 0E 04 04 00 3B 01 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 26 [16:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 20 69 00 00 0E 04 04 00 3B 01 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 [16:31:02]wFMCommunicate OK [16:31:02]SAM_PROTO_GetFieldsCounters done [16:31:02]requested_item shift.num is exist - process it [16:31:02]requested_item shift.opened is exist - process it [16:31:02]req_shift_opened [16:31:02]FM_GetShiftState [16:31:02]SAM_PROTO_GetShiftState [16:31:02]wFMCommunicate request_size=4 [16:31:02]MH_SAM_APDU [16:31:02]CAPDU: 80 13 01 00 [16:31:02]Write to MH i2c: E2 08 00 DE 59 80 13 01 00 00 00 00 00 B4 [16:31:02]Write i2c OK [16:31:02]MH_I2C_Read... [16:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:02]Read from MH i2c: E2 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 0E 00 [16:31:02]MH_I2C_Read... [16:31:02]Read from MH i2c: E2 0E 00 DE 59 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 1F [16:31:02]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [16:31:02]wFMCommunicate OK [16:31:02]SAM_PROTO_GetShiftState done [16:31:02]FM_GetShiftState done [16:31:02]req_shift_opened done [16:31:02]requested_item shift.open_date is exist - process it [16:31:02]req_shift_open_date [16:31:02]req_shift_open_date done [16:31:02]produce_requested_data done [16:31:02]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26912,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [16:31:02]process_action_free close_receipt [16:31:02]json_value_free [16:31:02]json_value_free done [16:31:02]process_json_proto returns [16:31:02]Send response to host [16:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26912,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [16:31:02]free response buf [16:31:02]execute_script done [16:31:02]execute_script returns [16:31:02]free content buf [16:31:02]Sock 8.Close socket [16:31:02]Sock 8.Thread stoped [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:39:57]accept exits with 9 [16:39:57]New connection [16:39:57]New thread 3067014500 created [16:39:57]Thread 3066871140 joined [16:39:57]Waiting for new connection... [16:39:57] Sock 9.Parse request [16:39:57]Sock 9.Check first char [16:39:57]Sock 9.First char is OK [16:39:57]request: POST /json_proto HTTP/1.0 [16:39:57]Method: POST [16:39:57]URL: /json_proto [16:39:57]Method is POST - this is cgi request [16:39:57]url: /json_proto [16:39:57]query_string will be loaded in cgi processing [16:39:57]execute_cgi json_proto POST (null) [16:39:57]execute_cgi path=json_proto method=POST [16:39:57]POST find Content-Length [16:39:57]Host: 172.17.35.3:8080 [16:39:57]Content-Length: 808 [16:39:57]Content-Type: application/json [16:39:57] [16:39:57]POST finish read [16:39:57]Found Content-Length = 808 [16:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 16.650, "sum" : 1195.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1195.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:57]execute_script... [16:39:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 16.650, "sum" : 1195.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1195.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:57]POST & json_proto [16:39:57]process_json_proto [16:39:57]json parsed OK: [16:39:57]protocol is kg_v1.0 [16:39:57]action value=close_receipt [16:39:57]process_action close_receipt [16:39:57]cmd_close_receipt [16:39:57]MH_GetDate [16:39:57]Write to MH i2c: F0 00 00 DF 59 27 [16:39:57]Write i2c OK [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: F0 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: F0 09 00 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: F0 09 00 DF 59 00 73 6F 15 66 2B 11 66 64 93 [16:39:57]GetLastDocTimeStamp 1712680279 [16:39:57]current date 1712680819 [16:39:57]FM_GetShiftState [16:39:57]SAM_PROTO_GetShiftState [16:39:57]wFMCommunicate request_size=4 [16:39:57]MH_SAM_APDU [16:39:57]CAPDU: 80 13 01 00 [16:39:57]Write to MH i2c: E2 08 00 E0 59 80 13 01 00 00 00 00 00 B6 [16:39:57]Write i2c OK [16:39:57]MH_I2C_Read... [16:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:57]Read from MH i2c: E2 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 0E 00 [16:39:57]MH_I2C_Read... [16:39:57]Read from MH i2c: E2 0E 00 E0 59 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 21 [16:39:57]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [16:39:57]wFMCommunicate OK [16:39:57]SAM_PROTO_GetShiftState done [16:39:57]FM_GetShiftState done [16:39:57]opened in 1712622936 [16:39:57]opened+sec_in_day 1712709336 [16:39:57]quantity*price = 119547 [16:39:57]sum+1 = 119548 [16:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1195.47 НСП 1% : 10.58 НДС 12% : 126.95 Наличными: 0.00 Безнал.: 1195.47 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 45 09.04.2024 16:40 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26913 ФПД: 201246738165631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T164019&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26913&fm=201246738165631&tin=02508201610067®Number=0000000000091578&sum=119547 [16:39:58]StoreToDocumentArchive [16:39:58]shift 315 fd 26913 [16:39:58]save to /storage/0315/doc_00026913 [16:39:58]save last doc name /storage/0315/doc_00026913 to /storage/kkm_last_doc_name [16:39:58]save OK [16:39:58]Clear old archive folders... [16:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:39:58]tlvbuf is 00E842D0 [16:39:58]SAM_PROTO_ClearQueue [16:39:58]wFMCommunicate request_size=4 [16:39:58]MH_SAM_APDU [16:39:58]CAPDU: 80 09 00 00 [16:39:58]Write to MH i2c: E2 08 00 ED 59 80 09 00 00 00 00 00 00 B8 [16:39:58]Write i2c OK [16:39:58]MH_I2C_Read... [16:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:58]Read from MH i2c: E2 [16:39:58]MH_I2C_Read... [16:39:58]Read from MH i2c: E2 03 00 [16:39:58]MH_I2C_Read... [16:39:58]Read from MH i2c: E2 03 00 ED 59 00 90 00 BA [16:39:58]RAPDU: 90 00 [16:39:58]wFMCommunicate OK [16:39:58]SAM_PROTO_ClearQueue done [16:39:58]KKMCreateOFDPacket [16:39:58]OFDProtocolAddRootSTLVToBuf [16:39:58]FM_MakeSignedData [16:39:58]FM_MakeSignedData [16:39:58]SAM_PROTO_SignData [16:39:58]wFMCommunicate request_size=4 [16:39:58]MH_SAM_APDU [16:39:58]CAPDU: 80 0D 01 02 [16:39:58]Write to MH i2c: E2 08 00 EE 59 80 0D 01 02 00 00 00 00 C0 [16:39:58]Write i2c OK [16:39:58]MH_I2C_Read... [16:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:58]Read from MH i2c: E2 [16:39:58]MH_I2C_Read... [16:39:58]Read from MH i2c: E2 03 00 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 03 00 EE 59 00 90 00 BB [16:39:59]RAPDU: 90 00 [16:39:59]wFMCommunicate OK [16:39:59]wFMCommunicate request_size=255 [16:39:59]MH_SAM_APDU [16:39:59]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 0A 41 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 FB D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 73 6F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 69 00 00 35 04 06 00 [16:39:59]Write to MH i2c: E2 02 01 EF 59 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 0A 41 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 FB D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 73 6F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 69 00 00 35 04 06 00 00 00 2A [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:59]Read from MH i2c: E2 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 03 00 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 03 00 EF 59 00 90 00 BC [16:39:59]RAPDU: 90 00 [16:39:59]wFMCommunicate OK [16:39:59]wFMCommunicate request_size=11 [16:39:59]MH_SAM_APDU [16:39:59]CAPDU: 80 0D 02 02 06 B7 08 68 57 2F 7F [16:39:59]Write to MH i2c: E2 0E 00 F0 59 80 0D 02 02 06 00 B7 08 68 57 2F 7F 00 00 FB [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:59]Read from MH i2c: E2 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 03 00 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 03 00 F0 59 00 90 00 BD [16:39:59]RAPDU: 90 00 [16:39:59]wFMCommunicate OK [16:39:59]wFMCommunicate request_size=4 [16:39:59]MH_SAM_APDU [16:39:59]CAPDU: 80 0D 03 02 [16:39:59]Write to MH i2c: E2 08 00 F1 59 80 0D 03 02 00 00 00 00 C5 [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:59]Read from MH i2c: E2 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 0B 00 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 0B 00 F1 59 00 5A DF 38 C0 7A 49 51 DA 90 00 E5 [16:39:59]RAPDU: 5A DF 38 C0 7A 49 51 DA 90 00 [16:39:59]wFMCommunicate OK [16:39:59]SAM_PROTO_SignData done [16:39:59]FM_MakeSignedData done [16:39:59]CreateOFDProtocolMessage [16:39:59]wFMCommunicate request_size=4 [16:39:59]MH_SAM_APDU [16:39:59]CAPDU: 80 11 00 00 [16:39:59]Write to MH i2c: E2 08 00 F2 59 80 11 00 00 00 00 00 00 C5 [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:59]Read from MH i2c: E2 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 17 00 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: E2 17 00 F2 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 1D [16:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [16:39:59]wFMCommunicate OK [16:39:59]CreateOFDProtocolMessage done [16:39:59]OFDSenderStorePacket 26913 [16:39:59]StoreOFDPacket docnum=26913 [16:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 0D 0F 08 01 11 58 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 0A 41 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 FB D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 73 6F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 69 00 00 35 04 06 00 B7 08 68 57 2F 7F 5A DF 38 C0 7A 49 51 DA [16:39:59]CheckFolder [16:39:59]dirname=/storage/ofd_packets [16:39:59]CheckFolder done [16:39:59]ProducePacketName [16:39:59]name=ofd_packets/00026913 [16:39:59]NVStorageSaveData ofd_packets/00026913 [16:39:59]File name is /storage/ofd_packets/00026913 [16:39:59]Write 302 bytes [16:39:59]NVStorageSaveData done [16:39:59]OFDSenderStorePacket done [16:39:59]KKMCreateOFDPacket done [16:39:59]NVStorageSaveData kkm_last_timestamp [16:39:59]File name is /storage/kkm_last_timestamp [16:39:59]Write 4 bytes [16:39:59]NVStorageSaveData done [16:39:59]ExternCall_PrintAddStr [16:39:59]wPrintStart [16:39:59]Write to MH i2c: 01 00 00 F3 59 4C [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: 01 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: 01 07 00 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: 01 07 00 F3 59 00 00 00 00 00 FF 0F 61 [16:39:59]RasterBufferAndPrint [16:39:59]line Счет N : (1)359658 [16:39:59]line ИНН: 02508201610067 [16:39:59]line Контрольно-Кассовый Чек [16:39:59]line ПРОДАЖА [16:39:59]line ТРК (МРК, ГНК) : 21 [16:39:59]line Товар: 2710194210 [16:39:59]line ДТ(л)-К-5 [16:39:59]line 16.650 * 71.80 [16:39:59]line = 1195.47 [16:39:59]line НДС 12% НСП 1% [16:39:59]line > о реализуемом товаре [16:39:59]line ИТОГО: 1195.47 [16:39:59]line НСП 1% : 10.58 [16:39:59]line НДС 12% : 126.95 [16:39:59]line Наличными: 0.00 [16:39:59]line Безнал.: 1195.47 [16:39:59]line Место: АЗС № 122 "Партнер Нефть" [16:39:59]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [16:39:59]line СНО: Общий режим [16:39:59]line Чек 45 09.04.2024 16:40 [16:39:59]line Смена: 315 ФФД: 1.0 [16:39:59]line ЗНМ: 0300000147 [16:39:59]line РНМ: 0000000000091578 [16:39:59]line Версия ККМ: 001 [16:39:59]line Платежная система: O! деньги [16:39:59]line ФМ: 0000000000874657 [16:39:59]line ФД: 26913 [16:39:59]line ФПД: 201246738165631 [16:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T164019&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26913&fm=201246738165631&tin=02508201610067®Number=0000000000091578&sum=119547 [16:39:59]OFD Sender: Processing packet 26913 [packets to send 44, broken 43] [16:39:59]ProducePacketName [16:39:59]name=ofd_packets/00026913 [16:39:59]OFD Sender: To server: pG, [16:39:59]CommunicateWithHost lk.salyk.kg:30040 [16:39:59]ConnectInit lk.salyk.kg [16:39:59]written 0, free lines is 4095 [16:39:59]Connected sock=10 [16:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 0D 0F 08 01 11 58 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 0A 41 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 FB D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB D2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 73 6F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 69 00 00 35 04 06 00 B7 08 68 57 2F 7F 5A DF 38 C0 7A 49 51 DA [16:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 D6 FE 47 00 91 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 21 69 00 00 F4 03 04 00 D9 16 15 66 B6 04 01 00 00 9C 36 99 0D 29 3D 77 88 [16:40:00]CommunicateWithHost err = 0 [16:40:00]CheckOFDResponse [16:40:00]1017 (14) - 77093643461234 [16:40:00]1041 (16) - 0000000000874657 [16:40:00]1040 (4) - 26913 [16:40:00]1012 (4) - 09.04.2024 10:22 [16:40:00]1206 (1) - 0 [16:40:00]OFD Sender: Remove packet 26913 [16:40:00]ProducePacketName [16:40:00]name=ofd_packets/00026913 [16:40:00]NVStorageDeleteData [16:40:00]Write to MH i2c: 01 00 00 1D 5A 77 [16:40:00]Write i2c OK [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: 01 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: 01 07 00 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: 01 07 00 1D 5A 00 00 00 00 00 8C 0C 16 [16:40:00]RasterBufferAndPrint [16:40:00]line [16:40:00]line [16:40:00]line [16:40:00]line [16:40:00]line [16:40:00]written 0, free lines is 3216 [16:40:00]MH_Cut [16:40:00]Write to MH i2c: D1 01 00 24 5A 01 50 [16:40:00]Write i2c OK [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: D1 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: D1 01 00 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: D1 01 00 24 5A 00 4F [16:40:00]Write to MH i2c: 01 00 00 25 5A 7F [16:40:00]Write i2c OK [16:40:00]MH_I2C_Read... [16:40:00]OFD Sender: No OFD packet to send [16:40:01]*** Cut start [16:40:01]*** Partial cut [16:40:01]*** CUTSNS_PIN = 1 [16:40:01]*** CUTSNS_PIN = 0 [16:40:01]*** Brake cut motor [16:40:01]Read from MH i2c: 01 [16:40:01]MH_I2C_Read... [16:40:01]*** Stop cut motor [16:40:01]*** Cut end [16:40:01]Read from MH i2c: 01 07 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 25 5A 00 00 00 00 00 FF 0F 94 [16:40:01]process_action close_receipt done [16:40:01]requested_data is exist [16:40:01]produce_requested_data [16:40:01]requested_item fm.sn is exist - process it [16:40:01]wFMCommunicate request_size=4 [16:40:01]MH_SAM_APDU [16:40:01]CAPDU: 80 11 00 00 [16:40:01]Write to MH i2c: E2 08 00 26 5A 80 11 00 00 00 00 00 00 FA [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:02]Read from MH i2c: E2 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: E2 17 00 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: E2 17 00 26 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 52 [16:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [16:40:02]wFMCommunicate OK [16:40:02]requested_item fd.num is exist - process it [16:40:02]SAM_PROTO_GetFieldsCounters [16:40:02]wFMCommunicate request_size=4 [16:40:02]MH_SAM_APDU [16:40:02]CAPDU: 80 13 00 00 [16:40:02]Write to MH i2c: E2 08 00 27 5A 80 13 00 00 00 00 00 00 FD [16:40:02]Write i2c OK [16:40:02]MH_I2C_Read... [16:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:02]Read from MH i2c: E2 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: E2 62 00 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: E2 62 00 27 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 69 00 00 0E 04 04 00 3B 01 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 75 [16:40:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 21 69 00 00 0E 04 04 00 3B 01 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 [16:40:02]wFMCommunicate OK [16:40:02]SAM_PROTO_GetFieldsCounters done [16:40:02]requested_item shift.num is exist - process it [16:40:02]requested_item shift.opened is exist - process it [16:40:02]req_shift_opened [16:40:02]FM_GetShiftState [16:40:02]SAM_PROTO_GetShiftState [16:40:02]wFMCommunicate request_size=4 [16:40:02]MH_SAM_APDU [16:40:02]CAPDU: 80 13 01 00 [16:40:02]Write to MH i2c: E2 08 00 28 5A 80 13 01 00 00 00 00 00 FF [16:40:02]Write i2c OK [16:40:02]MH_I2C_Read... [16:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:02]Read from MH i2c: E2 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: E2 0E 00 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: E2 0E 00 28 5A 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 6A [16:40:02]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [16:40:02]wFMCommunicate OK [16:40:02]SAM_PROTO_GetShiftState done [16:40:02]FM_GetShiftState done [16:40:02]req_shift_opened done [16:40:02]requested_item shift.open_date is exist - process it [16:40:02]req_shift_open_date [16:40:02]req_shift_open_date done [16:40:02]produce_requested_data done [16:40:02]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26913,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [16:40:02]process_action_free close_receipt [16:40:02]json_value_free [16:40:02]json_value_free done [16:40:02]process_json_proto returns [16:40:02]Send response to host [16:40:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26913,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [16:40:02]free response buf [16:40:02]execute_script done [16:40:02]execute_script returns [16:40:02]free content buf [16:40:02]Sock 9.Close socket [16:40:02]Sock 9.Thread stoped [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]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:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:09]accept exits with 8 [17:09:09]New connection [17:09:09]New thread 3066871140 created [17:09:09]Thread 3067014500 joined [17:09:09]Waiting for new connection... [17:09:09] Sock 8.Parse request [17:09:09]Sock 8.Check first char [17:09:09]Sock 8.First char is OK [17:09:09]request: POST /json_proto HTTP/1.0 [17:09:09]Method: POST [17:09:09]URL: /json_proto [17:09:09]Method is POST - this is cgi request [17:09:09]url: /json_proto [17:09:09]query_string will be loaded in cgi processing [17:09:09]execute_cgi json_proto POST (null) [17:09:09]execute_cgi path=json_proto method=POST [17:09:09]POST find Content-Length [17:09:09]Host: 172.17.35.3:8080 [17:09:09]Content-Length: 682 [17:09:09]Content-Type: application/json [17:09:09] [17:09:09]POST finish read [17:09:09]Found Content-Length = 682 [17:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "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:09:09]execute_script... [17:09: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)359659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "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:09:09]POST & json_proto [17:09:09]process_json_proto [17:09:09]json parsed OK: [17:09:09]protocol is kg_v1.0 [17:09:09]action value=close_receipt [17:09:09]process_action close_receipt [17:09:09]cmd_close_receipt [17:09:09]MH_GetDate [17:09:09]Write to MH i2c: F0 00 00 29 5A 72 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: F0 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: F0 09 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: F0 09 00 29 5A 00 4A 76 15 66 2B 11 66 64 BC [17:09:09]GetLastDocTimeStamp 1712680819 [17:09:09]current date 1712682570 [17:09:09]FM_GetShiftState [17:09:09]SAM_PROTO_GetShiftState [17:09:09]wFMCommunicate request_size=4 [17:09:09]MH_SAM_APDU [17:09:09]CAPDU: 80 13 01 00 [17:09:09]Write to MH i2c: E2 08 00 2A 5A 80 13 01 00 00 00 00 00 01 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:09]Read from MH i2c: E2 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 0E 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 0E 00 2A 5A 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 6C [17:09:09]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:09:09]wFMCommunicate OK [17:09:09]SAM_PROTO_GetShiftState done [17:09:09]FM_GetShiftState done [17:09:09]opened in 1712622936 [17:09:09]opened+sec_in_day 1712709336 [17:09:09]quantity*price = 100045 [17:09:09]sum+1 = 100046 [17:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 46 09.04.2024 17:09 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26914 ФПД: 133191467397366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T170930&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26914&fm=133191467397366&tin=02508201610067®Number=0000000000091578&sum=100000 [17:09:10]StoreToDocumentArchive [17:09:10]shift 315 fd 26914 [17:09:10]save to /storage/0315/doc_00026914 [17:09:10]save last doc name /storage/0315/doc_00026914 to /storage/kkm_last_doc_name [17:09:10]save OK [17:09:10]Clear old archive folders... [17:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:10]tlvbuf is 00F680E0 [17:09:10]SAM_PROTO_ClearQueue [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 09 00 00 [17:09:10]Write to MH i2c: E2 08 00 37 5A 80 09 00 00 00 00 00 00 03 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 37 5A 00 90 00 05 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_ClearQueue done [17:09:10]KKMCreateOFDPacket [17:09:10]OFDProtocolAddRootSTLVToBuf [17:09:10]FM_MakeSignedData [17:09:10]FM_MakeSignedData [17:09:10]SAM_PROTO_SignData [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 0D 01 02 [17:09:10]Write to MH i2c: E2 08 00 38 5A 80 0D 01 02 00 00 00 00 0B [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 38 5A 00 90 00 06 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]wFMCommunicate request_size=255 [17:09:10]MH_SAM_APDU [17:09: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 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 4A 76 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 22 69 00 00 35 04 06 00 79 [17:09:10]Write to MH i2c: E2 02 01 39 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 4A 76 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 22 69 00 00 35 04 06 00 79 00 00 48 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 39 5A 00 90 00 07 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]wFMCommunicate request_size=10 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 0D 02 02 05 23 0E 19 F0 F6 [17:09:10]Write to MH i2c: E2 0D 00 3A 5A 80 0D 02 02 05 00 23 0E 19 F0 F6 00 00 48 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 3A 5A 00 90 00 08 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 0D 03 02 [17:09:10]Write to MH i2c: E2 08 00 3B 5A 80 0D 03 02 00 00 00 00 10 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0B 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0B 00 3B 5A 00 74 F5 1D E4 A6 A4 DC AE 90 00 4F [17:09:10]RAPDU: 74 F5 1D E4 A6 A4 DC AE 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_SignData done [17:09:10]FM_MakeSignedData done [17:09:10]CreateOFDProtocolMessage [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 11 00 00 [17:09:10]Write to MH i2c: E2 08 00 3C 5A 80 11 00 00 00 00 00 00 10 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 3C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 68 [17:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:09:10]wFMCommunicate OK [17:09:10]CreateOFDProtocolMessage done [17:09:10]OFDSenderStorePacket 26914 [17:09:10]StoreOFDPacket docnum=26914 [17:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A5 DD 07 01 49 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 4A 76 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 22 69 00 00 35 04 06 00 79 23 0E 19 F0 F6 74 F5 1D E4 A6 A4 DC AE [17:09:10]CheckFolder [17:09:10]dirname=/storage/ofd_packets [17:09:10]CheckFolder done [17:09:10]ProducePacketName [17:09:10]name=ofd_packets/00026914 [17:09:10]NVStorageSaveData ofd_packets/00026914 [17:09:10]File name is /storage/ofd_packets/00026914 [17:09:10]Write 301 bytes [17:09:10]NVStorageSaveData done [17:09:10]OFDSenderStorePacket done [17:09:10]KKMCreateOFDPacket done [17:09:10]NVStorageSaveData kkm_last_timestamp [17:09:10]File name is /storage/kkm_last_timestamp [17:09:10]Write 4 bytes [17:09:10]NVStorageSaveData done [17:09:10]ExternCall_PrintAddStr [17:09:10]wPrintStart [17:09:10]Write to MH i2c: 01 00 00 3D 5A 97 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 07 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 07 00 3D 5A 00 00 00 00 00 FF 0F AC [17:09:10]RasterBufferAndPrint [17:09:10]line Счет N : (1)359659 [17:09:10]line ИНН: 02508201610067 [17:09:10]line Контрольно-Кассовый Чек [17:09:10]line ПРОДАЖА [17:09:10]line ТРК (МРК, ГНК) : 61 [17:09:10]line Товар: 2710124130 [17:09:10]line Аи-92-К-5 [17:09:10]line 15.780 * 63.40 [17:09:10]line = 1000.45 [17:09:10]line НДС 12% НСП 1% [17:09:10]line > о реализуемом товаре [17:09:10]line ОКРУГЛЕНИЕ: -0.45 [17:09:10]line ИТОГО: 1000.00 [17:09:10]line Внесено: 1000.00 [17:09:10]line СДАЧА: 0.00 [17:09:10]line НСП 1% : 8.85 [17:09:10]line НДС 12% : 106.24 [17:09:10]line Наличными: 1000.00 [17:09:10]line Безнал.: 0.00 [17:09:10]line Место: АЗС № 122 "Партнер Нефть" [17:09:10]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [17:09:10]line СНО: Общий режим [17:09:10]line Чек 46 09.04.2024 17:09 [17:09:10]line Смена: 315 ФФД: 1.0 [17:09:10]line ЗНМ: 0300000147 [17:09:10]line РНМ: 0000000000091578 [17:09:10]line Версия ККМ: 001 [17:09:10]line ФМ: 0000000000874657 [17:09:10]line ФД: 26914 [17:09:10]line ФПД: 133191467397366 [17:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T170930&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26914&fm=133191467397366&tin=02508201610067®Number=0000000000091578&sum=100000 [17:09:11]OFD Sender: Processing packet 26914 [packets to send 44, broken 43] [17:09:11]ProducePacketName [17:09:11]name=ofd_packets/00026914 [17:09:11]OFD Sender: To server: pG, [17:09:11]CommunicateWithHost lk.salyk.kg:30040 [17:09:11]ConnectInit lk.salyk.kg [17:09:11]written 0, free lines is 4095 [17:09:11]Connected sock=10 [17:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 A5 DD 07 01 49 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 4A 76 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 22 69 00 00 35 04 06 00 79 23 0E 19 F0 F6 74 F5 1D E4 A6 A4 DC AE [17:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 2C 29 47 00 04 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 22 69 00 00 F4 03 04 00 B0 1D 15 66 B6 04 01 00 00 70 C5 57 A0 5C DB D1 36 [17:09:11]CommunicateWithHost err = 0 [17:09:11]CheckOFDResponse [17:09:11]1017 (14) - 77093643461234 [17:09:11]1041 (16) - 0000000000874657 [17:09:11]1040 (4) - 26914 [17:09:11]1012 (4) - 09.04.2024 10:51 [17:09:11]1206 (1) - 0 [17:09:11]OFD Sender: Remove packet 26914 [17:09:11]ProducePacketName [17:09:11]name=ofd_packets/00026914 [17:09:11]NVStorageDeleteData [17:09:11]Write to MH i2c: 01 00 00 68 5A C2 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: 01 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: 01 07 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: 01 07 00 68 5A 00 00 00 00 00 7B 0C 50 [17:09:11]RasterBufferAndPrint [17:09:11]line [17:09:11]line [17:09:11]line [17:09:11]line [17:09:11]line [17:09:11]written 0, free lines is 3198 [17:09:11]MH_Cut [17:09:11]Write to MH i2c: D1 01 00 6F 5A 01 9B [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: D1 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: D1 01 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: D1 01 00 6F 5A 00 9A [17:09:11]Write to MH i2c: 01 00 00 70 5A CA [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]OFD Sender: No OFD packet to send [17:09:12]*** Cut start [17:09:12]*** Partial cut [17:09:12]*** CUTSNS_PIN = 1 [17:09:12]*** CUTSNS_PIN = 0 [17:09:13]*** Brake cut motor [17:09:13]Read from MH i2c: 01 [17:09:13]MH_I2C_Read... [17:09:13]*** Stop cut motor [17:09:13]*** Cut end [17:09:13]Read from MH i2c: 01 07 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: 01 07 00 70 5A 00 00 00 00 00 FF 0F DF [17:09:13]process_action close_receipt done [17:09:13]requested_data is exist [17:09:13]produce_requested_data [17:09:13]requested_item fm.sn is exist - process it [17:09:13]wFMCommunicate request_size=4 [17:09:13]MH_SAM_APDU [17:09:13]CAPDU: 80 11 00 00 [17:09:13]Write to MH i2c: E2 08 00 71 5A 80 11 00 00 00 00 00 00 45 [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 17 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 17 00 71 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 9D [17:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:09:13]wFMCommunicate OK [17:09:13]requested_item fd.num is exist - process it [17:09:13]SAM_PROTO_GetFieldsCounters [17:09:13]wFMCommunicate request_size=4 [17:09:13]MH_SAM_APDU [17:09:13]CAPDU: 80 13 00 00 [17:09:13]Write to MH i2c: E2 08 00 72 5A 80 13 00 00 00 00 00 00 48 [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 62 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 62 00 72 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 22 69 00 00 0E 04 04 00 3B 01 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 C4 [17:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 22 69 00 00 0E 04 04 00 3B 01 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 [17:09:13]wFMCommunicate OK [17:09:13]SAM_PROTO_GetFieldsCounters done [17:09:13]requested_item shift.num is exist - process it [17:09:13]requested_item shift.opened is exist - process it [17:09:13]req_shift_opened [17:09:13]FM_GetShiftState [17:09:13]SAM_PROTO_GetShiftState [17:09:13]wFMCommunicate request_size=4 [17:09:13]MH_SAM_APDU [17:09:13]CAPDU: 80 13 01 00 [17:09:13]Write to MH i2c: E2 08 00 73 5A 80 13 01 00 00 00 00 00 4A [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 73 5A 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 B5 [17:09:13]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:09:13]wFMCommunicate OK [17:09:13]SAM_PROTO_GetShiftState done [17:09:13]FM_GetShiftState done [17:09:13]req_shift_opened done [17:09:13]requested_item shift.open_date is exist - process it [17:09:13]req_shift_open_date [17:09:13]req_shift_open_date done [17:09:13]produce_requested_data done [17:09:13]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26914,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [17:09:13]process_action_free close_receipt [17:09:13]json_value_free [17:09:13]json_value_free done [17:09:13]process_json_proto returns [17:09:13]Send response to host [17:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26914,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [17:09:13]free response buf [17:09:13]execute_script done [17:09:13]execute_script returns [17:09:13]free content buf [17:09:13]Sock 8.Close socket [17:09:13]Sock 8.Thread stoped [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:53]accept exits with 9 [17:12:53]New connection [17:12:53]New thread 3067014500 created [17:12:53]Thread 3066871140 joined [17:12:53]Waiting for new connection... [17:12:53] Sock 9.Parse request [17:12:53]Sock 9.Check first char [17:12:53]Sock 9.First char is OK [17:12:53]request: POST /json_proto HTTP/1.0 [17:12:53]Method: POST [17:12:53]URL: /json_proto [17:12:53]Method is POST - this is cgi request [17:12:53]url: /json_proto [17:12:53]query_string will be loaded in cgi processing [17:12:53]execute_cgi json_proto POST (null) [17:12:53]execute_cgi path=json_proto method=POST [17:12:53]POST find Content-Length [17:12:53]Host: 172.17.35.3:8080 [17:12:53]Content-Length: 677 [17:12:53]Content-Type: application/json [17:12:53] [17:12:53]POST finish read [17:12:53]Found Content-Length = 677 [17:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:53]execute_script... [17:12:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:53]POST & json_proto [17:12:53]process_json_proto [17:12:53]json parsed OK: [17:12:53]protocol is kg_v1.0 [17:12:53]action value=close_receipt [17:12:53]process_action close_receipt [17:12:53]cmd_close_receipt [17:12:53]MH_GetDate [17:12:53]Write to MH i2c: F0 00 00 74 5A BD [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: F0 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: F0 09 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: F0 09 00 74 5A 00 2B 77 15 66 2B 11 66 64 E9 [17:12:53]GetLastDocTimeStamp 1712682570 [17:12:53]current date 1712682795 [17:12:53]FM_GetShiftState [17:12:53]SAM_PROTO_GetShiftState [17:12:53]wFMCommunicate request_size=4 [17:12:53]MH_SAM_APDU [17:12:53]CAPDU: 80 13 01 00 [17:12:53]Write to MH i2c: E2 08 00 75 5A 80 13 01 00 00 00 00 00 4C [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:53]Read from MH i2c: E2 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 0E 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 0E 00 75 5A 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 B7 [17:12:53]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:12:53]wFMCommunicate OK [17:12:53]SAM_PROTO_GetShiftState done [17:12:53]FM_GetShiftState done [17:12:53]opened in 1712622936 [17:12:53]opened+sec_in_day 1712709336 [17:12:53]quantity*price = 50022 [17:12:53]sum+1 = 50024 [17:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 47 09.04.2024 17:13 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26915 ФПД: 183374651484776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T171315&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26915&fm=183374651484776&tin=02508201610067®Number=0000000000091578&sum=50000 [17:12:54]StoreToDocumentArchive [17:12:54]shift 315 fd 26915 [17:12:54]save to /storage/0315/doc_00026915 [17:12:54]save last doc name /storage/0315/doc_00026915 to /storage/kkm_last_doc_name [17:12:54]save OK [17:12:54]Clear old archive folders... [17:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:54]tlvbuf is 00F307A0 [17:12:54]SAM_PROTO_ClearQueue [17:12:54]wFMCommunicate request_size=4 [17:12:54]MH_SAM_APDU [17:12:54]CAPDU: 80 09 00 00 [17:12:54]Write to MH i2c: E2 08 00 82 5A 80 09 00 00 00 00 00 00 4E [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:54]Read from MH i2c: E2 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 03 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 03 00 82 5A 00 90 00 50 [17:12:54]RAPDU: 90 00 [17:12:54]wFMCommunicate OK [17:12:54]SAM_PROTO_ClearQueue done [17:12:54]KKMCreateOFDPacket [17:12:54]OFDProtocolAddRootSTLVToBuf [17:12:54]FM_MakeSignedData [17:12:54]FM_MakeSignedData [17:12:54]SAM_PROTO_SignData [17:12:54]wFMCommunicate request_size=4 [17:12:54]MH_SAM_APDU [17:12:54]CAPDU: 80 0D 01 02 [17:12:54]Write to MH i2c: E2 08 00 83 5A 80 0D 01 02 00 00 00 00 56 [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:54]Read from MH i2c: E2 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 03 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 03 00 83 5A 00 90 00 51 [17:12:54]RAPDU: 90 00 [17:12:54]wFMCommunicate OK [17:12:54]wFMCommunicate request_size=255 [17:12:54]MH_SAM_APDU [17:12:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 2B 77 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 23 69 00 00 35 04 06 00 A6 [17:12:54]Write to MH i2c: E2 02 01 84 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 2B 77 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 23 69 00 00 35 04 06 00 A6 00 00 D0 [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 03 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 03 00 84 5A 00 90 00 52 [17:12:55]RAPDU: 90 00 [17:12:55]wFMCommunicate OK [17:12:55]wFMCommunicate request_size=10 [17:12:55]MH_SAM_APDU [17:12:55]CAPDU: 80 0D 02 02 05 C7 3C F6 6A 68 [17:12:55]Write to MH i2c: E2 0D 00 85 5A 80 0D 02 02 05 00 C7 3C F6 6A 68 00 00 2E [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 03 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 03 00 85 5A 00 90 00 53 [17:12:55]RAPDU: 90 00 [17:12:55]wFMCommunicate OK [17:12:55]wFMCommunicate request_size=4 [17:12:55]MH_SAM_APDU [17:12:55]CAPDU: 80 0D 03 02 [17:12:55]Write to MH i2c: E2 08 00 86 5A 80 0D 03 02 00 00 00 00 5B [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 0B 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 0B 00 86 5A 00 14 69 77 1A FC F6 04 A2 90 00 02 [17:12:55]RAPDU: 14 69 77 1A FC F6 04 A2 90 00 [17:12:55]wFMCommunicate OK [17:12:55]SAM_PROTO_SignData done [17:12:55]FM_MakeSignedData done [17:12:55]CreateOFDProtocolMessage [17:12:55]wFMCommunicate request_size=4 [17:12:55]MH_SAM_APDU [17:12:55]CAPDU: 80 11 00 00 [17:12:55]Write to MH i2c: E2 08 00 87 5A 80 11 00 00 00 00 00 00 5B [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 17 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 17 00 87 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B3 [17:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:12:55]wFMCommunicate OK [17:12:55]CreateOFDProtocolMessage done [17:12:55]OFDSenderStorePacket 26915 [17:12:55]StoreOFDPacket docnum=26915 [17:12:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D1 5C 07 01 BA 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 2B 77 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 23 69 00 00 35 04 06 00 A6 C7 3C F6 6A 68 14 69 77 1A FC F6 04 A2 [17:12:55]CheckFolder [17:12:55]dirname=/storage/ofd_packets [17:12:55]CheckFolder done [17:12:55]ProducePacketName [17:12:55]name=ofd_packets/00026915 [17:12:55]NVStorageSaveData ofd_packets/00026915 [17:12:55]File name is /storage/ofd_packets/00026915 [17:12:55]Write 301 bytes [17:12:55]NVStorageSaveData done [17:12:55]OFDSenderStorePacket done [17:12:55]KKMCreateOFDPacket done [17:12:55]NVStorageSaveData kkm_last_timestamp [17:12:55]File name is /storage/kkm_last_timestamp [17:12:55]Write 4 bytes [17:12:55]NVStorageSaveData done [17:12:55]ExternCall_PrintAddStr [17:12:55]wPrintStart [17:12:55]Write to MH i2c: 01 00 00 88 5A E2 [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: 01 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: 01 07 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: 01 07 00 88 5A 00 00 00 00 00 FF 0F F7 [17:12:55]RasterBufferAndPrint [17:12:55]line Счет N : (1)359660 [17:12:55]line ИНН: 02508201610067 [17:12:55]line Контрольно-Кассовый Чек [17:12:55]line ПРОДАЖА [17:12:55]line ТРК (МРК, ГНК) : 51 [17:12:55]line Товар: 2710124130 [17:12:55]line Аи-92-К-5 [17:12:55]line 7.890 * 63.40 [17:12:55]line = 500.23 [17:12:55]line НДС 12% НСП 1% [17:12:55]line > о реализуемом товаре [17:12:55]line ОКРУГЛЕНИЕ: -0.23 [17:12:55]line ИТОГО: 500.00 [17:12:55]line Внесено: 500.00 [17:12:55]line СДАЧА: 0.00 [17:12:55]line НСП 1% : 4.43 [17:12:55]line НДС 12% : 53.12 [17:12:55]line Наличными: 500.00 [17:12:55]line Безнал.: 0.00 [17:12:55]line Место: АЗС № 122 "Партнер Нефть" [17:12:55]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [17:12:55]line СНО: Общий режим [17:12:55]line Чек 47 09.04.2024 17:13 [17:12:55]line Смена: 315 ФФД: 1.0 [17:12:55]line ЗНМ: 0300000147 [17:12:55]line РНМ: 0000000000091578 [17:12:55]line Версия ККМ: 001 [17:12:55]line ФМ: 0000000000874657 [17:12:55]line ФД: 26915 [17:12:55]line ФПД: 183374651484776 [17:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T171315&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26915&fm=183374651484776&tin=02508201610067®Number=0000000000091578&sum=50000 [17:12:55]OFD Sender: Processing packet 26915 [packets to send 44, broken 43] [17:12:55]ProducePacketName [17:12:55]name=ofd_packets/00026915 [17:12:55]OFD Sender: To server: pG, [17:12:55]CommunicateWithHost lk.salyk.kg:30040 [17:12:55]ConnectInit lk.salyk.kg [17:12:55]written 0, free lines is 4095 [17:12:55]Connected sock=10 [17:12:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D1 5C 07 01 BA 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 2B 77 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 23 69 00 00 35 04 06 00 A6 C7 3C F6 6A 68 14 69 77 1A FC F6 04 A2 [17:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 B1 39 47 00 2F 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 23 69 00 00 F4 03 04 00 91 1E 15 66 B6 04 01 00 00 39 12 5B 6C B0 43 DA 5B [17:12:55]CommunicateWithHost err = 0 [17:12:55]CheckOFDResponse [17:12:55]1017 (14) - 77093643461234 [17:12:55]1041 (16) - 0000000000874657 [17:12:55]1040 (4) - 26915 [17:12:55]1012 (4) - 09.04.2024 10:55 [17:12:55]1206 (1) - 0 [17:12:55]OFD Sender: Remove packet 26915 [17:12:55]ProducePacketName [17:12:55]name=ofd_packets/00026915 [17:12:55]NVStorageDeleteData [17:12:56]Write to MH i2c: 01 00 00 B3 5A 0D [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: 01 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: 01 07 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: 01 07 00 B3 5A 00 00 00 00 00 74 0C 94 [17:12:56]RasterBufferAndPrint [17:12:56]line [17:12:56]line [17:12:56]line [17:12:56]line [17:12:56]line [17:12:56]written 0, free lines is 3192 [17:12:56]MH_Cut [17:12:56]Write to MH i2c: D1 01 00 BA 5A 01 E6 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: D1 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: D1 01 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: D1 01 00 BA 5A 00 E5 [17:12:56]Write to MH i2c: 01 00 00 BB 5A 15 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]OFD Sender: No OFD packet to send [17:12:57]*** Cut start [17:12:57]*** Partial cut [17:12:57]*** CUTSNS_PIN = 1 [17:12:57]*** CUTSNS_PIN = 0 [17:12:57]*** Brake cut motor [17:12:57]Read from MH i2c: 01 [17:12:57]MH_I2C_Read... [17:12:57]*** Stop cut motor [17:12:57]*** Cut end [17:12:57]Read from MH i2c: 01 07 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 BB 5A 00 00 00 00 00 FF 0F 2A [17:12:57]process_action close_receipt done [17:12:57]requested_data is exist [17:12:57]produce_requested_data [17:12:57]requested_item fm.sn is exist - process it [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 11 00 00 [17:12:57]Write to MH i2c: E2 08 00 BC 5A 80 11 00 00 00 00 00 00 90 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 BC 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E8 [17:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:12:57]wFMCommunicate OK [17:12:57]requested_item fd.num is exist - process it [17:12:57]SAM_PROTO_GetFieldsCounters [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 13 00 00 [17:12:57]Write to MH i2c: E2 08 00 BD 5A 80 13 00 00 00 00 00 00 93 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:58]Read from MH i2c: E2 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 62 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 62 00 BD 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 23 69 00 00 0E 04 04 00 3B 01 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 13 [17:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 23 69 00 00 0E 04 04 00 3B 01 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 [17:12:58]wFMCommunicate OK [17:12:58]SAM_PROTO_GetFieldsCounters done [17:12:58]requested_item shift.num is exist - process it [17:12:58]requested_item shift.opened is exist - process it [17:12:58]req_shift_opened [17:12:58]FM_GetShiftState [17:12:58]SAM_PROTO_GetShiftState [17:12:58]wFMCommunicate request_size=4 [17:12:58]MH_SAM_APDU [17:12:58]CAPDU: 80 13 01 00 [17:12:58]Write to MH i2c: E2 08 00 BE 5A 80 13 01 00 00 00 00 00 95 [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:58]Read from MH i2c: E2 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 0E 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: E2 0E 00 BE 5A 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 00 [17:12:58]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:12:58]wFMCommunicate OK [17:12:58]SAM_PROTO_GetShiftState done [17:12:58]FM_GetShiftState done [17:12:58]req_shift_opened done [17:12:58]requested_item shift.open_date is exist - process it [17:12:58]req_shift_open_date [17:12:58]req_shift_open_date done [17:12:58]produce_requested_data done [17:12:58]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26915,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [17:12:58]process_action_free close_receipt [17:12:58]json_value_free [17:12:58]json_value_free done [17:12:58]process_json_proto returns [17:12:58]Send response to host [17:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26915,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [17:12:58]free response buf [17:12:58]execute_script done [17:12:58]execute_script returns [17:12:58]free content buf [17:12:58]Sock 9.Close socket [17:12:58]Sock 9.Thread stoped [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:33]accept exits with 8 [17:16:33]New connection [17:16:33]New thread 3066871140 created [17:16:33]Thread 3067014500 joined [17:16:33]Waiting for new connection... [17:16:33] Sock 8.Parse request [17:16:33]Sock 8.Check first char [17:16:33]Sock 8.First char is OK [17:16:33]request: POST /json_proto HTTP/1.0 [17:16:33]Method: POST [17:16:33]URL: /json_proto [17:16:33]Method is POST - this is cgi request [17:16:33]url: /json_proto [17:16:33]query_string will be loaded in cgi processing [17:16:33]execute_cgi json_proto POST (null) [17:16:33]execute_cgi path=json_proto method=POST [17:16:33]POST find Content-Length [17:16:33]Host: 172.17.35.3:8080 [17:16:33]Content-Length: 677 [17:16:33]Content-Type: application/json [17:16:33] [17:16:33]POST finish read [17:16:33]Found Content-Length = 677 [17:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:33]execute_script... [17:16:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:33]POST & json_proto [17:16:33]process_json_proto [17:16:33]json parsed OK: [17:16:33]protocol is kg_v1.0 [17:16:33]action value=close_receipt [17:16:33]process_action close_receipt [17:16:33]cmd_close_receipt [17:16:33]MH_GetDate [17:16:33]Write to MH i2c: F0 00 00 BF 5A 08 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: F0 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: F0 09 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: F0 09 00 BF 5A 00 06 78 15 66 2B 11 66 64 10 [17:16:33]GetLastDocTimeStamp 1712682795 [17:16:33]current date 1712683014 [17:16:33]FM_GetShiftState [17:16:33]SAM_PROTO_GetShiftState [17:16:33]wFMCommunicate request_size=4 [17:16:33]MH_SAM_APDU [17:16:33]CAPDU: 80 13 01 00 [17:16:33]Write to MH i2c: E2 08 00 C0 5A 80 13 01 00 00 00 00 00 97 [17:16:33]Write i2c OK [17:16:33]MH_I2C_Read... [17:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:33]Read from MH i2c: E2 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 0E 00 [17:16:33]MH_I2C_Read... [17:16:33]Read from MH i2c: E2 0E 00 C0 5A 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 02 [17:16:33]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:16:33]wFMCommunicate OK [17:16:33]SAM_PROTO_GetShiftState done [17:16:33]FM_GetShiftState done [17:16:33]opened in 1712622936 [17:16:33]opened+sec_in_day 1712709336 [17:16:33]quantity*price = 50042 [17:16:33]sum+1 = 50043 [17:16:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 48 09.04.2024 17:16 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26916 ФПД: 78276351517054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T171654&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26916&fm=78276351517054&tin=02508201610067®Number=0000000000091578&sum=50000 [17:16:34]StoreToDocumentArchive [17:16:34]shift 315 fd 26916 [17:16:34]save to /storage/0315/doc_00026916 [17:16:34]save last doc name /storage/0315/doc_00026916 to /storage/kkm_last_doc_name [17:16:34]save OK [17:16:34]Clear old archive folders... [17:16:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:34]tlvbuf is 00F75570 [17:16:34]SAM_PROTO_ClearQueue [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 09 00 00 [17:16:34]Write to MH i2c: E2 08 00 CD 5A 80 09 00 00 00 00 00 00 99 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 CD 5A 00 90 00 9B [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]SAM_PROTO_ClearQueue done [17:16:34]KKMCreateOFDPacket [17:16:34]OFDProtocolAddRootSTLVToBuf [17:16:34]FM_MakeSignedData [17:16:34]FM_MakeSignedData [17:16:34]SAM_PROTO_SignData [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 01 02 [17:16:34]Write to MH i2c: E2 08 00 CE 5A 80 0D 01 02 00 00 00 00 A1 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 CE 5A 00 90 00 9C [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]wFMCommunicate request_size=255 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 06 78 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 24 69 00 00 35 04 06 00 47 [17:16:34]Write to MH i2c: E2 02 01 CF 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 06 78 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 24 69 00 00 35 04 06 00 47 00 00 64 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 CF 5A 00 90 00 9D [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]wFMCommunicate request_size=10 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 02 02 05 31 22 20 61 7E [17:16:34]Write to MH i2c: E2 0D 00 D0 5A 80 0D 02 02 05 00 31 22 20 61 7E 00 00 00 [17:16:34]Write i2c OK [17:16:34]MH_I2C_Read... [17:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:34]Read from MH i2c: E2 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 [17:16:34]MH_I2C_Read... [17:16:34]Read from MH i2c: E2 03 00 D0 5A 00 90 00 9E [17:16:34]RAPDU: 90 00 [17:16:34]wFMCommunicate OK [17:16:34]wFMCommunicate request_size=4 [17:16:34]MH_SAM_APDU [17:16:34]CAPDU: 80 0D 03 02 [17:16:34]Write to MH i2c: E2 08 00 D1 5A 80 0D 03 02 00 00 00 00 A6 [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:35]Read from MH i2c: E2 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: E2 0B 00 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: E2 0B 00 D1 5A 00 A1 13 6C 52 0D 45 1D 83 90 00 0B [17:16:35]RAPDU: A1 13 6C 52 0D 45 1D 83 90 00 [17:16:35]wFMCommunicate OK [17:16:35]SAM_PROTO_SignData done [17:16:35]FM_MakeSignedData done [17:16:35]CreateOFDProtocolMessage [17:16:35]wFMCommunicate request_size=4 [17:16:35]MH_SAM_APDU [17:16:35]CAPDU: 80 11 00 00 [17:16:35]Write to MH i2c: E2 08 00 D2 5A 80 11 00 00 00 00 00 00 A6 [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:35]Read from MH i2c: E2 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: E2 17 00 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: E2 17 00 D2 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 FE [17:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:16:35]wFMCommunicate OK [17:16:35]CreateOFDProtocolMessage done [17:16:35]OFDSenderStorePacket 26916 [17:16:35]StoreOFDPacket docnum=26916 [17:16:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DC C7 07 01 99 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 06 78 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 24 69 00 00 35 04 06 00 47 31 22 20 61 7E A1 13 6C 52 0D 45 1D 83 [17:16:35]CheckFolder [17:16:35]dirname=/storage/ofd_packets [17:16:35]CheckFolder done [17:16:35]ProducePacketName [17:16:35]name=ofd_packets/00026916 [17:16:35]NVStorageSaveData ofd_packets/00026916 [17:16:35]File name is /storage/ofd_packets/00026916 [17:16:35]Write 301 bytes [17:16:35]NVStorageSaveData done [17:16:35]OFDSenderStorePacket done [17:16:35]KKMCreateOFDPacket done [17:16:35]NVStorageSaveData kkm_last_timestamp [17:16:35]File name is /storage/kkm_last_timestamp [17:16:35]Write 4 bytes [17:16:35]NVStorageSaveData done [17:16:35]ExternCall_PrintAddStr [17:16:35]wPrintStart [17:16:35]Write to MH i2c: 01 00 00 D3 5A 2D [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 07 00 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 07 00 D3 5A 00 00 00 00 00 FF 0F 42 [17:16:35]RasterBufferAndPrint [17:16:35]line Счет N : (1)359661 [17:16:35]line ИНН: 02508201610067 [17:16:35]line Контрольно-Кассовый Чек [17:16:35]line ПРОДАЖА [17:16:35]line ТРК (МРК, ГНК) : 63 [17:16:35]line Товар: 2710124500 [17:16:35]line Аи-95-К-5 [17:16:35]line 6.960 * 71.90 [17:16:35]line = 500.42 [17:16:35]line НДС 12% НСП 1% [17:16:35]line > о реализуемом товаре [17:16:35]line ОКРУГЛЕНИЕ: -0.42 [17:16:35]line ИТОГО: 500.00 [17:16:35]line Внесено: 500.00 [17:16:35]line СДАЧА: 0.00 [17:16:35]line НСП 1% : 4.43 [17:16:35]line НДС 12% : 53.14 [17:16:35]line Наличными: 500.00 [17:16:35]line Безнал.: 0.00 [17:16:35]line Место: АЗС № 122 "Партнер Нефть" [17:16:35]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [17:16:35]line СНО: Общий режим [17:16:35]line Чек 48 09.04.2024 17:16 [17:16:35]line Смена: 315 ФФД: 1.0 [17:16:35]line ЗНМ: 0300000147 [17:16:35]line РНМ: 0000000000091578 [17:16:35]line Версия ККМ: 001 [17:16:35]line ФМ: 0000000000874657 [17:16:35]line ФД: 26916 [17:16:35]line ФПД: 78276351517054 [17:16:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T171654&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26916&fm=78276351517054&tin=02508201610067®Number=0000000000091578&sum=50000 [17:16:35]OFD Sender: Processing packet 26916 [packets to send 44, broken 43] [17:16:35]ProducePacketName [17:16:35]name=ofd_packets/00026916 [17:16:35]OFD Sender: To server: pG, [17:16:35]CommunicateWithHost lk.salyk.kg:30040 [17:16:35]ConnectInit lk.salyk.kg [17:16:35]written 0, free lines is 4095 [17:16:35]Write to MH i2c: 01 00 00 FE 5A 58 [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 07 00 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: 01 07 00 FE 5A 00 00 00 00 00 73 0C DE [17:16:35]RasterBufferAndPrint [17:16:35]line [17:16:35]line [17:16:35]line [17:16:35]line [17:16:35]line [17:16:35]written 0, free lines is 3190 [17:16:35]MH_Cut [17:16:35]Write to MH i2c: D1 01 00 05 5B 01 32 [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: D1 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: D1 01 00 [17:16:35]MH_I2C_Read... [17:16:35]Read from MH i2c: D1 01 00 05 5B 00 31 [17:16:35]Write to MH i2c: 01 00 00 06 5B 61 [17:16:35]Write i2c OK [17:16:35]MH_I2C_Read... [17:16:37]*** Cut start [17:16:37]*** Partial cut [17:16:37]*** CUTSNS_PIN = 1 [17:16:37]*** CUTSNS_PIN = 0 [17:16:37]*** Brake cut motor [17:16:37]Read from MH i2c: 01 [17:16:37]MH_I2C_Read... [17:16:37]*** Stop cut motor [17:16:37]*** Cut end [17:16:37]Read from MH i2c: 01 07 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: 01 07 00 06 5B 00 00 00 00 00 FF 0F 76 [17:16:37]process_action close_receipt done [17:16:37]requested_data is exist [17:16:37]produce_requested_data [17:16:37]requested_item fm.sn is exist - process it [17:16:37]wFMCommunicate request_size=4 [17:16:37]MH_SAM_APDU [17:16:37]CAPDU: 80 11 00 00 [17:16:37]Write to MH i2c: E2 08 00 07 5B 80 11 00 00 00 00 00 00 DC [17:16:37]Write i2c OK [17:16:37]MH_I2C_Read... [17:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:37]Read from MH i2c: E2 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 17 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 17 00 07 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 34 [17:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:16:37]wFMCommunicate OK [17:16:37]requested_item fd.num is exist - process it [17:16:37]SAM_PROTO_GetFieldsCounters [17:16:37]wFMCommunicate request_size=4 [17:16:37]MH_SAM_APDU [17:16:37]CAPDU: 80 13 00 00 [17:16:37]Write to MH i2c: E2 08 00 08 5B 80 13 00 00 00 00 00 00 DF [17:16:37]Write i2c OK [17:16:37]MH_I2C_Read... [17:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:37]Read from MH i2c: E2 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 62 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 62 00 08 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 24 69 00 00 0E 04 04 00 3B 01 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 63 [17:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 24 69 00 00 0E 04 04 00 3B 01 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 [17:16:37]wFMCommunicate OK [17:16:37]SAM_PROTO_GetFieldsCounters done [17:16:37]requested_item shift.num is exist - process it [17:16:37]requested_item shift.opened is exist - process it [17:16:37]req_shift_opened [17:16:37]FM_GetShiftState [17:16:37]SAM_PROTO_GetShiftState [17:16:37]wFMCommunicate request_size=4 [17:16:37]MH_SAM_APDU [17:16:37]CAPDU: 80 13 01 00 [17:16:37]Write to MH i2c: E2 08 00 09 5B 80 13 01 00 00 00 00 00 E1 [17:16:37]Write i2c OK [17:16:37]MH_I2C_Read... [17:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:37]Read from MH i2c: E2 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 0E 00 [17:16:37]MH_I2C_Read... [17:16:37]Read from MH i2c: E2 0E 00 09 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 4C [17:16:37]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:16:37]wFMCommunicate OK [17:16:37]SAM_PROTO_GetShiftState done [17:16:37]FM_GetShiftState done [17:16:37]req_shift_opened done [17:16:37]requested_item shift.open_date is exist - process it [17:16:37]req_shift_open_date [17:16:37]req_shift_open_date done [17:16:37]produce_requested_data done [17:16:37]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26916,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [17:16:37]process_action_free close_receipt [17:16:37]json_value_free [17:16:37]json_value_free done [17:16:37]process_json_proto returns [17:16:37]Send response to host [17:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26916,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [17:16:37]free response buf [17:16:37]execute_script done [17:16:37]execute_script returns [17:16:37]free content buf [17:16:37]Sock 8.Close socket [17:16:37]Sock 8.Thread stoped [17:18:47]ConnectInit Can't connect to host [17:18:47]CommunicateWithHost connect error [17:18:47]CommunicateWithHost err = -1 [17:18:47]OFD Sender: Server communicate error [17:18:52]OFD Sender: Processing packet 26916 [packets to send 44, broken 43] [17:18:52]ProducePacketName [17:18:52]name=ofd_packets/00026916 [17:18:52]OFD Sender: To server: pG, [17:18:52]CommunicateWithHost lk.salyk.kg:30040 [17:18:52]ConnectInit lk.salyk.kg [17:18:52]Connected sock=8 [17:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DC C7 07 01 99 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 30 00 00 00 F4 03 04 00 06 78 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 24 69 00 00 35 04 06 00 47 31 22 20 61 7E A1 13 6C 52 0D 45 1D 83 [17:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 6B F1 47 00 FB 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 24 69 00 00 F4 03 04 00 F6 1F 15 66 B6 04 01 00 00 5E A9 BD 8A 18 63 18 AF [17:18:52]CommunicateWithHost err = 0 [17:18:52]CheckOFDResponse [17:18:52]1017 (14) - 77093643461234 [17:18:52]1041 (16) - 0000000000874657 [17:18:52]1040 (4) - 26916 [17:18:52]1012 (4) - 09.04.2024 11:01 [17:18:52]1206 (1) - 0 [17:18:52]OFD Sender: Remove packet 26916 [17:18:52]ProducePacketName [17:18:52]name=ofd_packets/00026916 [17:18:52]NVStorageDeleteData [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:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:45]accept exits with 9 [17:38:45]New connection [17:38:45]New thread 3067014500 created [17:38:45]Thread 3066871140 joined [17:38:45]Waiting for new connection... [17:38:45] Sock 9.Parse request [17:38:45]Sock 9.Check first char [17:38:45]Sock 9.First char is OK [17:38:45]request: POST /json_proto HTTP/1.0 [17:38:45]Method: POST [17:38:45]URL: /json_proto [17:38:45]Method is POST - this is cgi request [17:38:45]url: /json_proto [17:38:45]query_string will be loaded in cgi processing [17:38:45]execute_cgi json_proto POST (null) [17:38:45]execute_cgi path=json_proto method=POST [17:38:45]POST find Content-Length [17:38:45]Host: 172.17.35.3:8080 [17:38:45]Content-Length: 677 [17:38:45]Content-Type: application/json [17:38:45] [17:38:45]POST finish read [17:38:45]Found Content-Length = 677 [17:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:45]execute_script... [17:38:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:45]POST & json_proto [17:38:45]process_json_proto [17:38:45]json parsed OK: [17:38:45]protocol is kg_v1.0 [17:38:45]action value=close_receipt [17:38:45]process_action close_receipt [17:38:45]cmd_close_receipt [17:38:45]MH_GetDate [17:38:45]Write to MH i2c: F0 00 00 0A 5B 54 [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: F0 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: F0 09 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: F0 09 00 0A 5B 00 3A 7D 15 66 2B 11 66 64 95 [17:38:45]GetLastDocTimeStamp 1712683014 [17:38:45]current date 1712684346 [17:38:45]FM_GetShiftState [17:38:45]SAM_PROTO_GetShiftState [17:38:45]wFMCommunicate request_size=4 [17:38:45]MH_SAM_APDU [17:38:45]CAPDU: 80 13 01 00 [17:38:45]Write to MH i2c: E2 08 00 0B 5B 80 13 01 00 00 00 00 00 E3 [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:45]Read from MH i2c: E2 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 0E 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: E2 0E 00 0B 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 4E [17:38:45]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:38:45]wFMCommunicate OK [17:38:45]SAM_PROTO_GetShiftState done [17:38:45]FM_GetShiftState done [17:38:45]opened in 1712622936 [17:38:45]opened+sec_in_day 1712709336 [17:38:45]quantity*price = 50022 [17:38:45]sum+1 = 50024 [17:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 49 09.04.2024 17:39 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26917 ФПД: 197391316951205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T173906&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26917&fm=197391316951205&tin=02508201610067®Number=0000000000091578&sum=50000 [17:38:46]StoreToDocumentArchive [17:38:46]shift 315 fd 26917 [17:38:46]save to /storage/0315/doc_00026917 [17:38:46]save last doc name /storage/0315/doc_00026917 to /storage/kkm_last_doc_name [17:38:46]save OK [17:38:46]Clear old archive folders... [17:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:46]tlvbuf is 00EC8B50 [17:38:46]SAM_PROTO_ClearQueue [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 09 00 00 [17:38:46]Write to MH i2c: E2 08 00 18 5B 80 09 00 00 00 00 00 00 E5 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 18 5B 00 90 00 E7 [17:38:46]RAPDU: 90 00 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_ClearQueue done [17:38:46]KKMCreateOFDPacket [17:38:46]OFDProtocolAddRootSTLVToBuf [17:38:46]FM_MakeSignedData [17:38:46]FM_MakeSignedData [17:38:46]SAM_PROTO_SignData [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 0D 01 02 [17:38:46]Write to MH i2c: E2 08 00 19 5B 80 0D 01 02 00 00 00 00 ED [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 19 5B 00 90 00 E8 [17:38:46]RAPDU: 90 00 [17:38:46]wFMCommunicate OK [17:38:46]wFMCommunicate request_size=255 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3A 7D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 25 69 00 00 35 04 06 00 B3 [17:38:46]Write to MH i2c: E2 02 01 1A 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3A 7D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 25 69 00 00 35 04 06 00 B3 00 00 8D [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 1A 5B 00 90 00 E9 [17:38:46]RAPDU: 90 00 [17:38:46]wFMCommunicate OK [17:38:46]wFMCommunicate request_size=10 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 0D 02 02 05 86 BF 54 20 A5 [17:38:46]Write to MH i2c: E2 0D 00 1B 5B 80 0D 02 02 05 00 86 BF 54 20 A5 00 00 58 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 03 00 1B 5B 00 90 00 EA [17:38:46]RAPDU: 90 00 [17:38:46]wFMCommunicate OK [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 0D 03 02 [17:38:46]Write to MH i2c: E2 08 00 1C 5B 80 0D 03 02 00 00 00 00 F2 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0B 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0B 00 1C 5B 00 60 63 BA 63 AB 56 96 68 90 00 D2 [17:38:46]RAPDU: 60 63 BA 63 AB 56 96 68 90 00 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_SignData done [17:38:46]FM_MakeSignedData done [17:38:46]CreateOFDProtocolMessage [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 11 00 00 [17:38:46]Write to MH i2c: E2 08 00 1D 5B 80 11 00 00 00 00 00 00 F2 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 17 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 17 00 1D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 4A [17:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:38:46]wFMCommunicate OK [17:38:46]CreateOFDProtocolMessage done [17:38:46]OFDSenderStorePacket 26917 [17:38:46]StoreOFDPacket docnum=26917 [17:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 92 19 07 01 5A 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3A 7D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 25 69 00 00 35 04 06 00 B3 86 BF 54 20 A5 60 63 BA 63 AB 56 96 68 [17:38:46]CheckFolder [17:38:46]dirname=/storage/ofd_packets [17:38:46]CheckFolder done [17:38:46]ProducePacketName [17:38:46]name=ofd_packets/00026917 [17:38:46]NVStorageSaveData ofd_packets/00026917 [17:38:46]File name is /storage/ofd_packets/00026917 [17:38:46]Write 301 bytes [17:38:46]NVStorageSaveData done [17:38:46]OFDSenderStorePacket done [17:38:46]KKMCreateOFDPacket done [17:38:46]NVStorageSaveData kkm_last_timestamp [17:38:46]File name is /storage/kkm_last_timestamp [17:38:46]Write 4 bytes [17:38:46]NVStorageSaveData done [17:38:46]ExternCall_PrintAddStr [17:38:46]wPrintStart [17:38:46]Write to MH i2c: 01 00 00 1E 5B 79 [17:38:46]OFD Sender: Processing packet 26917 [packets to send 44, broken 43] [17:38:46]ProducePacketName [17:38:46]name=ofd_packets/00026917 [17:38:46]OFD Sender: To server: pG, [17:38:46]CommunicateWithHost lk.salyk.kg:30040 [17:38:46]ConnectInit lk.salyk.kg [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 07 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 07 00 1E 5B 00 00 00 00 00 FF 0F 8E [17:38:46]RasterBufferAndPrint [17:38:46]line Счет N : (1)359662 [17:38:46]line ИНН: 02508201610067 [17:38:46]line Контрольно-Кассовый Чек [17:38:46]line ПРОДАЖА [17:38:46]line ТРК (МРК, ГНК) : 51 [17:38:46]line Товар: 2710124130 [17:38:46]line Аи-92-К-5 [17:38:46]line 7.890 * 63.40 [17:38:46]line = 500.23 [17:38:46]line НДС 12% НСП 1% [17:38:46]line > о реализуемом товаре [17:38:46]line ОКРУГЛЕНИЕ: -0.23 [17:38:46]line ИТОГО: 500.00 [17:38:46]line Внесено: 500.00 [17:38:46]line СДАЧА: 0.00 [17:38:46]line НСП 1% : 4.43 [17:38:46]line НДС 12% : 53.12 [17:38:46]line Наличными: 500.00 [17:38:46]line Безнал.: 0.00 [17:38:46]line Место: АЗС № 122 "Партнер Нефть" [17:38:46]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [17:38:46]line СНО: Общий режим [17:38:46]line Чек 49 09.04.2024 17:39 [17:38:46]line Смена: 315 ФФД: 1.0 [17:38:46]line ЗНМ: 0300000147 [17:38:46]line РНМ: 0000000000091578 [17:38:46]line Версия ККМ: 001 [17:38:46]line ФМ: 0000000000874657 [17:38:46]line ФД: 26917 [17:38:46]line ФПД: 197391316951205 [17:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T173906&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26917&fm=197391316951205&tin=02508201610067®Number=0000000000091578&sum=50000 [17:38:47]Connected sock=10 [17:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 92 19 07 01 5A 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3A 7D 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 25 69 00 00 35 04 06 00 B3 86 BF 54 20 A5 60 63 BA 63 AB 56 96 68 [17:38:47]written 0, free lines is 4095 [17:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 14 21 47 00 75 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 25 69 00 00 F4 03 04 00 A0 24 15 66 B6 04 01 00 00 73 92 2E 97 21 CC 0B 5C [17:38:47]CommunicateWithHost err = 0 [17:38:47]CheckOFDResponse [17:38:47]1017 (14) - 77093643461234 [17:38:47]1041 (16) - 0000000000874657 [17:38:47]1040 (4) - 26917 [17:38:47]1012 (4) - 09.04.2024 11:21 [17:38:47]1206 (1) - 0 [17:38:47]OFD Sender: Remove packet 26917 [17:38:47]ProducePacketName [17:38:47]name=ofd_packets/00026917 [17:38:47]NVStorageDeleteData [17:38:47]Write to MH i2c: 01 00 00 49 5B A4 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: 01 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: 01 07 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: 01 07 00 49 5B 00 00 00 00 00 75 0C 2C [17:38:47]RasterBufferAndPrint [17:38:47]line [17:38:47]line [17:38:47]line [17:38:47]line [17:38:47]line [17:38:47]written 0, free lines is 3193 [17:38:47]MH_Cut [17:38:47]Write to MH i2c: D1 01 00 50 5B 01 7D [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: D1 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: D1 01 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: D1 01 00 50 5B 00 7C [17:38:47]Write to MH i2c: 01 00 00 51 5B AC [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]OFD Sender: No OFD packet to send [17:38:48]*** Cut start [17:38:48]*** Partial cut [17:38:48]*** CUTSNS_PIN = 1 [17:38:48]*** CUTSNS_PIN = 0 [17:38:49]*** Brake cut motor [17:38:49]Read from MH i2c: 01 [17:38:49]MH_I2C_Read... [17:38:49]*** Stop cut motor [17:38:49]*** Cut end [17:38:49]Read from MH i2c: 01 07 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: 01 07 00 51 5B 00 00 00 00 00 FF 0F C1 [17:38:49]process_action close_receipt done [17:38:49]requested_data is exist [17:38:49]produce_requested_data [17:38:49]requested_item fm.sn is exist - process it [17:38:49]wFMCommunicate request_size=4 [17:38:49]MH_SAM_APDU [17:38:49]CAPDU: 80 11 00 00 [17:38:49]Write to MH i2c: E2 08 00 52 5B 80 11 00 00 00 00 00 00 27 [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:49]Read from MH i2c: E2 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 17 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 17 00 52 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 7F [17:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:38:49]wFMCommunicate OK [17:38:49]requested_item fd.num is exist - process it [17:38:49]SAM_PROTO_GetFieldsCounters [17:38:49]wFMCommunicate request_size=4 [17:38:49]MH_SAM_APDU [17:38:49]CAPDU: 80 13 00 00 [17:38:49]Write to MH i2c: E2 08 00 53 5B 80 13 00 00 00 00 00 00 2A [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:49]Read from MH i2c: E2 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 62 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 62 00 53 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 25 69 00 00 0E 04 04 00 3B 01 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 B2 [17:38:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 25 69 00 00 0E 04 04 00 3B 01 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 [17:38:49]wFMCommunicate OK [17:38:49]SAM_PROTO_GetFieldsCounters done [17:38:49]requested_item shift.num is exist - process it [17:38:49]requested_item shift.opened is exist - process it [17:38:49]req_shift_opened [17:38:49]FM_GetShiftState [17:38:49]SAM_PROTO_GetShiftState [17:38:49]wFMCommunicate request_size=4 [17:38:49]MH_SAM_APDU [17:38:49]CAPDU: 80 13 01 00 [17:38:49]Write to MH i2c: E2 08 00 54 5B 80 13 01 00 00 00 00 00 2C [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:49]Read from MH i2c: E2 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 0E 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 0E 00 54 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 97 [17:38:49]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:38:49]wFMCommunicate OK [17:38:49]SAM_PROTO_GetShiftState done [17:38:49]FM_GetShiftState done [17:38:49]req_shift_opened done [17:38:49]requested_item shift.open_date is exist - process it [17:38:49]req_shift_open_date [17:38:49]req_shift_open_date done [17:38:49]produce_requested_data done [17:38:49]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26917,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [17:38:49]process_action_free close_receipt [17:38:49]json_value_free [17:38:49]json_value_free done [17:38:49]process_json_proto returns [17:38:49]Send response to host [17:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26917,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [17:38:49]free response buf [17:38:49]execute_script done [17:38:49]execute_script returns [17:38:49]free content buf [17:38:49]Sock 9.Close socket [17:38:49]Sock 9.Thread stoped [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]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:03]OFD Sender: No OFD packet to send [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:38]accept exits with 8 [17:46:38]New connection [17:46:38]New thread 3066871140 created [17:46:38]Thread 3067014500 joined [17:46:38]Waiting for new connection... [17:46:38] Sock 8.Parse request [17:46:38]Sock 8.Check first char [17:46:38]Sock 8.First char is OK [17:46:38]request: POST /json_proto HTTP/1.0 [17:46:38]Method: POST [17:46:38]URL: /json_proto [17:46:38]Method is POST - this is cgi request [17:46:38]url: /json_proto [17:46:38]query_string will be loaded in cgi processing [17:46:38]execute_cgi json_proto POST (null) [17:46:38]execute_cgi path=json_proto method=POST [17:46:38]POST find Content-Length [17:46:38]Host: 172.17.35.3:8080 [17:46:38]Content-Length: 803 [17:46:38]Content-Type: application/json [17:46:38] [17:46:38]POST finish read [17:46:38]Found Content-Length = 803 [17:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 31.550, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:38]execute_script... [17:46: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)359663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 31.550, "sum" : 2000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:38]POST & json_proto [17:46:38]process_json_proto [17:46:38]json parsed OK: [17:46:38]protocol is kg_v1.0 [17:46:38]action value=close_receipt [17:46:38]process_action close_receipt [17:46:38]cmd_close_receipt [17:46:38]MH_GetDate [17:46:38]Write to MH i2c: F0 00 00 55 5B 9F [17:46:38]Write i2c OK [17:46:38]MH_I2C_Read... [17:46:38]Read from MH i2c: F0 [17:46:38]MH_I2C_Read... [17:46:38]Read from MH i2c: F0 09 00 [17:46:38]MH_I2C_Read... [17:46:38]Read from MH i2c: F0 09 00 55 5B 00 14 7F 15 66 2B 11 66 64 BC [17:46:38]GetLastDocTimeStamp 1712684346 [17:46:38]current date 1712684820 [17:46:38]FM_GetShiftState [17:46:38]SAM_PROTO_GetShiftState [17:46:38]wFMCommunicate request_size=4 [17:46:38]MH_SAM_APDU [17:46:38]CAPDU: 80 13 01 00 [17:46:38]Write to MH i2c: E2 08 00 56 5B 80 13 01 00 00 00 00 00 2E [17:46:38]Write i2c OK [17:46:38]MH_I2C_Read... [17:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:38]Read from MH i2c: E2 [17:46:38]MH_I2C_Read... [17:46:38]Read from MH i2c: E2 0E 00 [17:46:38]MH_I2C_Read... [17:46:38]Read from MH i2c: E2 0E 00 56 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 99 [17:46:38]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:46:38]wFMCommunicate OK [17:46:38]SAM_PROTO_GetShiftState done [17:46:38]FM_GetShiftState done [17:46:38]opened in 1712622936 [17:46:38]opened+sec_in_day 1712709336 [17:46:38]quantity*price = 200027 [17:46:38]sum+1 = 200028 [17:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.27 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.27 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 50 09.04.2024 17:47 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26918 ФПД: 53637978589098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T174700&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26918&fm=53637978589098&tin=02508201610067®Number=0000000000091578&sum=200027 [17:46:39]StoreToDocumentArchive [17:46:39]shift 315 fd 26918 [17:46:39]save to /storage/0315/doc_00026918 [17:46:39]save last doc name /storage/0315/doc_00026918 to /storage/kkm_last_doc_name [17:46:39]save OK [17:46:39]Clear old archive folders... [17:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:39]tlvbuf is 01030AF0 [17:46:39]SAM_PROTO_ClearQueue [17:46:39]wFMCommunicate request_size=4 [17:46:39]MH_SAM_APDU [17:46:39]CAPDU: 80 09 00 00 [17:46:39]Write to MH i2c: E2 08 00 63 5B 80 09 00 00 00 00 00 00 30 [17:46:39]Write i2c OK [17:46:39]MH_I2C_Read... [17:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:39]Read from MH i2c: E2 [17:46:39]MH_I2C_Read... [17:46:39]Read from MH i2c: E2 03 00 [17:46:39]MH_I2C_Read... [17:46:39]Read from MH i2c: E2 03 00 63 5B 00 90 00 32 [17:46:39]RAPDU: 90 00 [17:46:39]wFMCommunicate OK [17:46:39]SAM_PROTO_ClearQueue done [17:46:39]KKMCreateOFDPacket [17:46:39]OFDProtocolAddRootSTLVToBuf [17:46:39]FM_MakeSignedData [17:46:39]FM_MakeSignedData [17:46:39]SAM_PROTO_SignData [17:46:39]wFMCommunicate request_size=4 [17:46:39]MH_SAM_APDU [17:46:39]CAPDU: 80 0D 01 02 [17:46:39]Write to MH i2c: E2 08 00 64 5B 80 0D 01 02 00 00 00 00 38 [17:46:39]Write i2c OK [17:46:39]MH_I2C_Read... [17:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:39]Read from MH i2c: E2 [17:46:39]MH_I2C_Read... [17:46:39]Read from MH i2c: E2 03 00 [17:46:39]MH_I2C_Read... [17:46:39]Read from MH i2c: E2 03 00 64 5B 00 90 00 33 [17:46:39]RAPDU: 90 00 [17:46:39]wFMCommunicate OK [17:46:39]wFMCommunicate request_size=255 [17:46:39]MH_SAM_APDU [17:46:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 14 7F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 26 69 00 00 35 04 06 00 30 [17:46:39]Write to MH i2c: E2 02 01 65 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 14 7F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 26 69 00 00 35 04 06 00 30 00 00 99 [17:46:39]Write i2c OK [17:46:39]MH_I2C_Read... [17:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:40]Read from MH i2c: E2 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 03 00 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 03 00 65 5B 00 90 00 34 [17:46:40]RAPDU: 90 00 [17:46:40]wFMCommunicate OK [17:46:40]wFMCommunicate request_size=10 [17:46:40]MH_SAM_APDU [17:46:40]CAPDU: 80 0D 02 02 05 C8 90 A9 07 AA [17:46:40]Write to MH i2c: E2 0D 00 66 5B 80 0D 02 02 05 00 C8 90 A9 07 AA 00 00 F7 [17:46:40]Write i2c OK [17:46:40]MH_I2C_Read... [17:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:40]Read from MH i2c: E2 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 03 00 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 03 00 66 5B 00 90 00 35 [17:46:40]RAPDU: 90 00 [17:46:40]wFMCommunicate OK [17:46:40]wFMCommunicate request_size=4 [17:46:40]MH_SAM_APDU [17:46:40]CAPDU: 80 0D 03 02 [17:46:40]Write to MH i2c: E2 08 00 67 5B 80 0D 03 02 00 00 00 00 3D [17:46:40]Write i2c OK [17:46:40]MH_I2C_Read... [17:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:40]Read from MH i2c: E2 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 0B 00 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 0B 00 67 5B 00 2C 21 86 75 B1 27 4D 4F 90 00 FA [17:46:40]RAPDU: 2C 21 86 75 B1 27 4D 4F 90 00 [17:46:40]wFMCommunicate OK [17:46:40]SAM_PROTO_SignData done [17:46:40]FM_MakeSignedData done [17:46:40]CreateOFDProtocolMessage [17:46:40]wFMCommunicate request_size=4 [17:46:40]MH_SAM_APDU [17:46:40]CAPDU: 80 11 00 00 [17:46:40]Write to MH i2c: E2 08 00 68 5B 80 11 00 00 00 00 00 00 3D [17:46:40]Write i2c OK [17:46:40]MH_I2C_Read... [17:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:40]Read from MH i2c: E2 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 17 00 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: E2 17 00 68 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 95 [17:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:46:40]wFMCommunicate OK [17:46:40]CreateOFDProtocolMessage done [17:46:40]OFDSenderStorePacket 26918 [17:46:40]StoreOFDPacket docnum=26918 [17:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AC B2 07 01 36 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 14 7F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 26 69 00 00 35 04 06 00 30 C8 90 A9 07 AA 2C 21 86 75 B1 27 4D 4F [17:46:40]CheckFolder [17:46:40]dirname=/storage/ofd_packets [17:46:40]CheckFolder done [17:46:40]ProducePacketName [17:46:40]name=ofd_packets/00026918 [17:46:40]NVStorageSaveData ofd_packets/00026918 [17:46:40]File name is /storage/ofd_packets/00026918 [17:46:40]Write 301 bytes [17:46:40]NVStorageSaveData done [17:46:40]OFDSenderStorePacket done [17:46:40]KKMCreateOFDPacket done [17:46:40]NVStorageSaveData kkm_last_timestamp [17:46:40]File name is /storage/kkm_last_timestamp [17:46:40]Write 4 bytes [17:46:40]NVStorageSaveData done [17:46:40]ExternCall_PrintAddStr [17:46:40]wPrintStart [17:46:40]Write to MH i2c: 01 00 00 69 5B C4 [17:46:40]Write i2c OK [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: 01 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: 01 07 00 [17:46:40]MH_I2C_Read... [17:46:40]Read from MH i2c: 01 07 00 69 5B 00 00 00 00 00 FF 0F D9 [17:46:40]RasterBufferAndPrint [17:46:40]line Счет N : (1)359663 [17:46:40]line ИНН: 02508201610067 [17:46:40]line Контрольно-Кассовый Чек [17:46:40]line ПРОДАЖА [17:46:40]line ТРК (МРК, ГНК) : 51 [17:46:40]line Товар: 2710124130 [17:46:40]line Аи-92-К-5 [17:46:40]line 31.550 * 63.40 [17:46:40]line = 2000.27 [17:46:40]line НДС 12% НСП 1% [17:46:40]line > о реализуемом товаре [17:46:40]line ИТОГО: 2000.27 [17:46:40]line НСП 1% : 17.70 [17:46:40]line НДС 12% : 212.42 [17:46:40]line Наличными: 0.00 [17:46:40]line Безнал.: 2000.27 [17:46:40]line Место: АЗС № 122 "Партнер Нефть" [17:46:40]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [17:46:40]line СНО: Общий режим [17:46:40]line Чек 50 09.04.2024 17:47 [17:46:40]line Смена: 315 ФФД: 1.0 [17:46:40]line ЗНМ: 0300000147 [17:46:40]line РНМ: 0000000000091578 [17:46:40]line Версия ККМ: 001 [17:46:40]line Платежная система: O! деньги [17:46:40]line ФМ: 0000000000874657 [17:46:40]line ФД: 26918 [17:46:40]line ФПД: 53637978589098 [17:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T174700&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26918&fm=53637978589098&tin=02508201610067®Number=0000000000091578&sum=200027 [17:46:40]OFD Sender: Processing packet 26918 [packets to send 44, broken 43] [17:46:40]ProducePacketName [17:46:40]name=ofd_packets/00026918 [17:46:40]OFD Sender: To server: pG, [17:46:40]CommunicateWithHost lk.salyk.kg:30040 [17:46:40]ConnectInit lk.salyk.kg [17:46:40]written 0, free lines is 4095 [17:46:40]Connected sock=10 [17:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AC B2 07 01 36 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 5B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 14 7F 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 26 69 00 00 35 04 06 00 30 C8 90 A9 07 AA 2C 21 86 75 B1 27 4D 4F [17:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 83 2A 47 00 20 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 38 37 34 36 35 37 10 04 04 00 26 69 00 00 F4 03 04 00 7A 26 15 66 B6 04 01 00 00 74 40 3A 77 1D 52 7A 9E [17:46:41]CommunicateWithHost err = 0 [17:46:41]CheckOFDResponse [17:46:41]1017 (14) - 77093643461234 [17:46:41]1041 (16) - 0000000000874657 [17:46:41]1040 (4) - 26918 [17:46:41]1012 (4) - 09.04.2024 11:28 [17:46:41]1206 (1) - 0 [17:46:41]OFD Sender: Remove packet 26918 [17:46:41]ProducePacketName [17:46:41]name=ofd_packets/00026918 [17:46:41]NVStorageDeleteData [17:46:41]Write to MH i2c: 01 00 00 93 5B EE [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: 01 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: 01 07 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: 01 07 00 93 5B 00 00 00 00 00 92 0C 93 [17:46:41]RasterBufferAndPrint [17:46:41]line [17:46:41]line [17:46:41]line [17:46:41]line [17:46:41]line [17:46:41]written 0, free lines is 3222 [17:46:41]MH_Cut [17:46:41]Write to MH i2c: D1 01 00 9A 5B 01 C7 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: D1 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: D1 01 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: D1 01 00 9A 5B 00 C6 [17:46:41]Write to MH i2c: 01 00 00 9B 5B F6 [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]OFD Sender: No OFD packet to send [17:46:42]*** Cut start [17:46:42]*** Partial cut [17:46:42]*** CUTSNS_PIN = 1 [17:46:42]*** CUTSNS_PIN = 0 [17:46:42]*** Brake cut motor [17:46:43]Read from MH i2c: 01 [17:46:43]MH_I2C_Read... [17:46:43]*** Stop cut motor [17:46:43]*** Cut end [17:46:43]Read from MH i2c: 01 07 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: 01 07 00 9B 5B 00 00 00 00 00 FF 0F 0B [17:46:43]process_action close_receipt done [17:46:43]requested_data is exist [17:46:43]produce_requested_data [17:46:43]requested_item fm.sn is exist - process it [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 11 00 00 [17:46:43]Write to MH i2c: E2 08 00 9C 5B 80 11 00 00 00 00 00 00 71 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 17 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 17 00 9C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C9 [17:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [17:46:43]wFMCommunicate OK [17:46:43]requested_item fd.num is exist - process it [17:46:43]SAM_PROTO_GetFieldsCounters [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 13 00 00 [17:46:43]Write to MH i2c: E2 08 00 9D 5B 80 13 00 00 00 00 00 00 74 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 62 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 62 00 9D 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 26 69 00 00 0E 04 04 00 3B 01 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 00 [17:46:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 26 69 00 00 0E 04 04 00 3B 01 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 [17:46:43]wFMCommunicate OK [17:46:43]SAM_PROTO_GetFieldsCounters done [17:46:43]requested_item shift.num is exist - process it [17:46:43]requested_item shift.opened is exist - process it [17:46:43]req_shift_opened [17:46:43]FM_GetShiftState [17:46:43]SAM_PROTO_GetShiftState [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 13 01 00 [17:46:43]Write to MH i2c: E2 08 00 9E 5B 80 13 01 00 00 00 00 00 76 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0E 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0E 00 9E 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 E1 [17:46:43]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [17:46:43]wFMCommunicate OK [17:46:43]SAM_PROTO_GetShiftState done [17:46:43]FM_GetShiftState done [17:46:43]req_shift_opened done [17:46:43]requested_item shift.open_date is exist - process it [17:46:43]req_shift_open_date [17:46:43]req_shift_open_date done [17:46:43]produce_requested_data done [17:46:43]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26918,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [17:46:43]process_action_free close_receipt [17:46:43]json_value_free [17:46:43]json_value_free done [17:46:43]process_json_proto returns [17:46:43]Send response to host [17:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26918,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [17:46:43]free response buf [17:46:43]execute_script done [17:46:43]execute_script returns [17:46:43]free content buf [17:46:43]Sock 8.Close socket [17:46:43]Sock 8.Thread stoped [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:50]accept exits with 9 [18:02:50]New connection [18:02:50]New thread 3067014500 created [18:02:50]Thread 3066871140 joined [18:02:50]Waiting for new connection... [18:02:50] Sock 9.Parse request [18:02:50]Sock 9.Check first char [18:02:50]Sock 9.First char is OK [18:02:50]request: POST /json_proto HTTP/1.0 [18:02:50]Method: POST [18:02:50]URL: /json_proto [18:02:50]Method is POST - this is cgi request [18:02:50]url: /json_proto [18:02:50]query_string will be loaded in cgi processing [18:02:50]execute_cgi json_proto POST (null) [18:02:50]execute_cgi path=json_proto method=POST [18:02:50]POST find Content-Length [18:02:50]Host: 172.17.35.3:8080 [18:02:50]Content-Length: 682 [18:02:50]Content-Type: application/json [18:02:50] [18:02:50]POST finish read [18:02:50]Found Content-Length = 682 [18:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359664", "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" : 71.80, "quantity" : 6.970, "sum" : 500.45, "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:02:50]execute_script... [18:02:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359664", "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" : 71.80, "quantity" : 6.970, "sum" : 500.45, "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:02:50]POST & json_proto [18:02:50]process_json_proto [18:02:50]json parsed OK: [18:02:50]protocol is kg_v1.0 [18:02:50]action value=close_receipt [18:02:50]process_action close_receipt [18:02:50]cmd_close_receipt [18:02:50]MH_GetDate [18:02:50]Write to MH i2c: F0 00 00 9F 5B E9 [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: F0 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: F0 09 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: F0 09 00 9F 5B 00 E0 82 15 66 2B 11 66 64 D5 [18:02:50]GetLastDocTimeStamp 1712684820 [18:02:50]current date 1712685792 [18:02:50]FM_GetShiftState [18:02:50]SAM_PROTO_GetShiftState [18:02:50]wFMCommunicate request_size=4 [18:02:50]MH_SAM_APDU [18:02:50]CAPDU: 80 13 01 00 [18:02:50]Write to MH i2c: E2 08 00 A0 5B 80 13 01 00 00 00 00 00 78 [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:50]Read from MH i2c: E2 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 0E 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 0E 00 A0 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 E3 [18:02:50]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [18:02:50]wFMCommunicate OK [18:02:50]SAM_PROTO_GetShiftState done [18:02:50]FM_GetShiftState done [18:02:50]opened in 1712622936 [18:02:50]opened+sec_in_day 1712709336 [18:02:50]quantity*price = 50044 [18:02:50]sum+1 = 50046 [18:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 51 09.04.2024 18:03 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26919 ФПД: 109362681951722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T180312&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26919&fm=109362681951722&tin=02508201610067®Number=0000000000091578&sum=50000 [18:02:51]StoreToDocumentArchive [18:02:51]shift 315 fd 26919 [18:02:51]save to /storage/0315/doc_00026919 [18:02:51]save last doc name /storage/0315/doc_00026919 to /storage/kkm_last_doc_name [18:02:51]save OK [18:02:51]Clear old archive folders... [18:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:02:51]tlvbuf is B6EE9540 [18:02:51]SAM_PROTO_ClearQueue [18:02:51]wFMCommunicate request_size=4 [18:02:51]MH_SAM_APDU [18:02:51]CAPDU: 80 09 00 00 [18:02:51]Write to MH i2c: E2 08 00 AD 5B 80 09 00 00 00 00 00 00 7A [18:02:51]Write i2c OK [18:02:51]MH_I2C_Read... [18:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:51]Read from MH i2c: E2 [18:02:51]MH_I2C_Read... [18:02:51]Read from MH i2c: E2 03 00 [18:02:51]MH_I2C_Read... [18:02:51]Read from MH i2c: E2 03 00 AD 5B 00 90 00 7C [18:02:51]RAPDU: 90 00 [18:02:51]wFMCommunicate OK [18:02:51]SAM_PROTO_ClearQueue done [18:02:51]KKMCreateOFDPacket [18:02:51]OFDProtocolAddRootSTLVToBuf [18:02:51]FM_MakeSignedData [18:02:51]FM_MakeSignedData [18:02:51]SAM_PROTO_SignData [18:02:51]wFMCommunicate request_size=4 [18:02:51]MH_SAM_APDU [18:02:51]CAPDU: 80 0D 01 02 [18:02:51]Write to MH i2c: E2 08 00 AE 5B 80 0D 01 02 00 00 00 00 82 [18:02:51]Write i2c OK [18:02:51]MH_I2C_Read... [18:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:51]Read from MH i2c: E2 [18:02:51]MH_I2C_Read... [18:02:51]Read from MH i2c: E2 03 00 [18:02:51]MH_I2C_Read... [18:02:51]Read from MH i2c: E2 03 00 AE 5B 00 90 00 7D [18:02:51]RAPDU: 90 00 [18:02:51]wFMCommunicate OK [18:02:51]wFMCommunicate request_size=255 [18:02:51]MH_SAM_APDU [18:02:51]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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 E0 82 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 27 69 00 00 35 04 06 00 [18:02:51]Write to MH i2c: E2 02 01 AF 5B 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 E0 82 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 27 69 00 00 35 04 06 00 00 00 22 [18:02:51]Write i2c OK [18:02:51]MH_I2C_Read... [18:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:52]Read from MH i2c: E2 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 03 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 03 00 AF 5B 00 90 00 7E [18:02:52]RAPDU: 90 00 [18:02:52]wFMCommunicate OK [18:02:52]wFMCommunicate request_size=11 [18:02:52]MH_SAM_APDU [18:02:52]CAPDU: 80 0D 02 02 06 63 76 FB CF 35 EA [18:02:52]Write to MH i2c: E2 0E 00 B0 5B 80 0D 02 02 06 00 63 76 FB CF 35 EA 00 00 53 [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:52]Read from MH i2c: E2 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 03 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 03 00 B0 5B 00 90 00 7F [18:02:52]RAPDU: 90 00 [18:02:52]wFMCommunicate OK [18:02:52]wFMCommunicate request_size=4 [18:02:52]MH_SAM_APDU [18:02:52]CAPDU: 80 0D 03 02 [18:02:52]Write to MH i2c: E2 08 00 B1 5B 80 0D 03 02 00 00 00 00 87 [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:52]Read from MH i2c: E2 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 0B 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 0B 00 B1 5B 00 F3 D3 9D E4 0B 06 46 EC 90 00 12 [18:02:52]RAPDU: F3 D3 9D E4 0B 06 46 EC 90 00 [18:02:52]wFMCommunicate OK [18:02:52]SAM_PROTO_SignData done [18:02:52]FM_MakeSignedData done [18:02:52]CreateOFDProtocolMessage [18:02:52]wFMCommunicate request_size=4 [18:02:52]MH_SAM_APDU [18:02:52]CAPDU: 80 11 00 00 [18:02:52]Write to MH i2c: E2 08 00 B2 5B 80 11 00 00 00 00 00 00 87 [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:52]Read from MH i2c: E2 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 17 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 17 00 B2 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 DF [18:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [18:02:52]wFMCommunicate OK [18:02:52]CreateOFDProtocolMessage done [18:02:52]OFDSenderStorePacket 26919 [18:02:52]StoreOFDPacket docnum=26919 [18:02:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 A4 F5 08 01 72 E6 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 E0 82 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 27 69 00 00 35 04 06 00 63 76 FB CF 35 EA F3 D3 9D E4 0B 06 46 EC [18:02:52]CheckFolder [18:02:52]dirname=/storage/ofd_packets [18:02:52]CheckFolder done [18:02:52]ProducePacketName [18:02:52]name=ofd_packets/00026919 [18:02:52]NVStorageSaveData ofd_packets/00026919 [18:02:52]File name is /storage/ofd_packets/00026919 [18:02:52]Write 302 bytes [18:02:52]NVStorageSaveData done [18:02:52]OFDSenderStorePacket done [18:02:52]KKMCreateOFDPacket done [18:02:52]NVStorageSaveData kkm_last_timestamp [18:02:52]File name is /storage/kkm_last_timestamp [18:02:52]Write 4 bytes [18:02:52]NVStorageSaveData done [18:02:52]ExternCall_PrintAddStr [18:02:52]wPrintStart [18:02:52]Write to MH i2c: 01 00 00 B3 5B 0E [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: 01 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: 01 07 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: 01 07 00 B3 5B 00 00 00 00 00 FF 0F 23 [18:02:52]RasterBufferAndPrint [18:02:52]line Счет N : (1)359664 [18:02:52]line ИНН: 02508201610067 [18:02:52]line Контрольно-Кассовый Чек [18:02:52]line ПРОДАЖА [18:02:52]line ТРК (МРК, ГНК) : 11 [18:02:52]line Товар: 2710194210 [18:02:52]line ДТ(л)-К-5 [18:02:52]line 6.970 * 71.80 [18:02:52]line = 500.45 [18:02:52]line НДС 12% НСП 1% [18:02:52]line > о реализуемом товаре [18:02:52]line ОКРУГЛЕНИЕ: -0.45 [18:02:52]line ИТОГО: 500.00 [18:02:52]line Внесено: 500.00 [18:02:52]line СДАЧА: 0.00 [18:02:52]line НСП 1% : 4.43 [18:02:52]line НДС 12% : 53.14 [18:02:52]line Наличными: 500.00 [18:02:52]line Безнал.: 0.00 [18:02:52]line Место: АЗС № 122 "Партнер Нефть" [18:02:52]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [18:02:52]line СНО: Общий режим [18:02:52]line Чек 51 09.04.2024 18:03 [18:02:52]line Смена: 315 ФФД: 1.0 [18:02:52]line ЗНМ: 0300000147 [18:02:52]line РНМ: 0000000000091578 [18:02:52]line Версия ККМ: 001 [18:02:52]line ФМ: 0000000000874657 [18:02:52]line ФД: 26919 [18:02:52]line ФПД: 109362681951722 [18:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T180312&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26919&fm=109362681951722&tin=02508201610067®Number=0000000000091578&sum=50000 [18:02:52]OFD Sender: Processing packet 26919 [packets to send 44, broken 43] [18:02:52]ProducePacketName [18:02:52]name=ofd_packets/00026919 [18:02:52]OFD Sender: To server: pG, [18:02:52]CommunicateWithHost lk.salyk.kg:30040 [18:02:52]ConnectInit lk.salyk.kg [18:02:52]written 0, free lines is 4095 [18:02:52]Connected sock=10 [18:02:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 A4 F5 08 01 72 E6 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 E0 82 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 27 69 00 00 35 04 06 00 63 76 FB CF 35 EA F3 D3 9D E4 0B 06 46 EC [18:02:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 9D E6 47 00 2A C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 27 69 00 00 F4 03 04 00 46 2A 15 66 B6 04 01 00 00 F8 0D B1 A5 9C D6 6E 70 [18:02:52]CommunicateWithHost err = 0 [18:02:52]CheckOFDResponse [18:02:52]1017 (14) - 77093643461234 [18:02:52]1041 (16) - 0000000000874657 [18:02:52]1040 (4) - 26919 [18:02:52]1012 (4) - 09.04.2024 11:45 [18:02:52]1206 (1) - 0 [18:02:52]OFD Sender: Remove packet 26919 [18:02:52]ProducePacketName [18:02:52]name=ofd_packets/00026919 [18:02:52]NVStorageDeleteData [18:02:52]Write to MH i2c: 01 00 00 DE 5B 39 [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: 01 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: 01 07 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: 01 07 00 DE 5B 00 00 00 00 00 74 0C C0 [18:02:52]RasterBufferAndPrint [18:02:52]line [18:02:52]line [18:02:52]line [18:02:52]line [18:02:52]line [18:02:52]written 0, free lines is 3192 [18:02:52]MH_Cut [18:02:52]Write to MH i2c: D1 01 00 E5 5B 01 12 [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: D1 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: D1 01 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: D1 01 00 E5 5B 00 11 [18:02:52]Write to MH i2c: 01 00 00 E6 5B 41 [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:53]OFD Sender: No OFD packet to send [18:02:54]*** Cut start [18:02:54]*** Partial cut [18:02:54]*** CUTSNS_PIN = 1 [18:02:54]*** CUTSNS_PIN = 0 [18:02:54]*** Brake cut motor [18:02:54]Read from MH i2c: 01 [18:02:54]MH_I2C_Read... [18:02:54]*** Stop cut motor [18:02:54]*** Cut end [18:02:54]Read from MH i2c: 01 07 00 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: 01 07 00 E6 5B 00 00 00 00 00 FF 0F 56 [18:02:54]process_action close_receipt done [18:02:54]requested_data is exist [18:02:54]produce_requested_data [18:02:54]requested_item fm.sn is exist - process it [18:02:54]wFMCommunicate request_size=4 [18:02:54]MH_SAM_APDU [18:02:54]CAPDU: 80 11 00 00 [18:02:54]Write to MH i2c: E2 08 00 E7 5B 80 11 00 00 00 00 00 00 BC [18:02:54]Write i2c OK [18:02:54]MH_I2C_Read... [18:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:54]Read from MH i2c: E2 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 17 00 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 17 00 E7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 14 [18:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [18:02:54]wFMCommunicate OK [18:02:54]requested_item fd.num is exist - process it [18:02:54]SAM_PROTO_GetFieldsCounters [18:02:54]wFMCommunicate request_size=4 [18:02:54]MH_SAM_APDU [18:02:54]CAPDU: 80 13 00 00 [18:02:54]Write to MH i2c: E2 08 00 E8 5B 80 13 00 00 00 00 00 00 BF [18:02:54]Write i2c OK [18:02:54]MH_I2C_Read... [18:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:54]Read from MH i2c: E2 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 62 00 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 62 00 E8 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 27 69 00 00 0E 04 04 00 3B 01 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 4F [18:02:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 27 69 00 00 0E 04 04 00 3B 01 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 [18:02:54]wFMCommunicate OK [18:02:54]SAM_PROTO_GetFieldsCounters done [18:02:54]requested_item shift.num is exist - process it [18:02:54]requested_item shift.opened is exist - process it [18:02:54]req_shift_opened [18:02:54]FM_GetShiftState [18:02:54]SAM_PROTO_GetShiftState [18:02:54]wFMCommunicate request_size=4 [18:02:54]MH_SAM_APDU [18:02:54]CAPDU: 80 13 01 00 [18:02:54]Write to MH i2c: E2 08 00 E9 5B 80 13 01 00 00 00 00 00 C1 [18:02:54]Write i2c OK [18:02:54]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 0E 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 0E 00 E9 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 2C [18:02:55]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [18:02:55]wFMCommunicate OK [18:02:55]SAM_PROTO_GetShiftState done [18:02:55]FM_GetShiftState done [18:02:55]req_shift_opened done [18:02:55]requested_item shift.open_date is exist - process it [18:02:55]req_shift_open_date [18:02:55]req_shift_open_date done [18:02:55]produce_requested_data done [18:02:55]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26919,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [18:02:55]process_action_free close_receipt [18:02:55]json_value_free [18:02:55]json_value_free done [18:02:55]process_json_proto returns [18:02:55]Send response to host [18:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26919,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [18:02:55]free response buf [18:02:55]execute_script done [18:02:55]execute_script returns [18:02:55]free content buf [18:02:55]Sock 9.Close socket [18:02:55]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48: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:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]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:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [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:21]accept exits with 8 [19:20:21]New connection [19:20:21]New thread 3066871140 created [19:20:21]Thread 3067014500 joined [19:20:21]Waiting for new connection... [19:20:21] Sock 8.Parse request [19:20:21]Sock 8.Check first char [19:20:21]Sock 8.First char is OK [19:20:21]request: POST /json_proto HTTP/1.0 [19:20:21]Method: POST [19:20:21]URL: /json_proto [19:20:21]Method is POST - this is cgi request [19:20:21]url: /json_proto [19:20:21]query_string will be loaded in cgi processing [19:20:21]execute_cgi json_proto POST (null) [19:20:21]execute_cgi path=json_proto method=POST [19:20:21]POST find Content-Length [19:20:21]Host: 172.17.35.3:8080 [19:20:21]Content-Length: 677 [19:20:21]Content-Type: application/json [19:20:21] [19:20:21]POST finish read [19:20:21]Found Content-Length = 677 [19:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:21]execute_script... [19:20:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:21]POST & json_proto [19:20:21]process_json_proto [19:20:21]json parsed OK: [19:20:21]protocol is kg_v1.0 [19:20:21]action value=close_receipt [19:20:21]process_action close_receipt [19:20:21]cmd_close_receipt [19:20:21]MH_GetDate [19:20:21]Write to MH i2c: F0 00 00 EA 5B 34 [19:20:21]Write i2c OK [19:20:21]MH_I2C_Read... [19:20:21]Read from MH i2c: F0 [19:20:21]MH_I2C_Read... [19:20:21]Read from MH i2c: F0 09 00 [19:20:21]MH_I2C_Read... [19:20:21]Read from MH i2c: F0 09 00 EA 5B 00 0B 95 15 66 2B 11 66 64 5E [19:20:21]GetLastDocTimeStamp 1712685792 [19:20:21]current date 1712690443 [19:20:21]FM_GetShiftState [19:20:21]SAM_PROTO_GetShiftState [19:20:21]wFMCommunicate request_size=4 [19:20:21]MH_SAM_APDU [19:20:21]CAPDU: 80 13 01 00 [19:20:21]Write to MH i2c: E2 08 00 EB 5B 80 13 01 00 00 00 00 00 C3 [19:20:21]Write i2c OK [19:20:21]MH_I2C_Read... [19:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:21]Read from MH i2c: E2 [19:20:21]MH_I2C_Read... [19:20:21]Read from MH i2c: E2 0E 00 [19:20:21]MH_I2C_Read... [19:20:21]Read from MH i2c: E2 0E 00 EB 5B 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 2E [19:20:21]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:20:21]wFMCommunicate OK [19:20:21]SAM_PROTO_GetShiftState done [19:20:21]FM_GetShiftState done [19:20:21]opened in 1712622936 [19:20:21]opened+sec_in_day 1712709336 [19:20:21]quantity*price = 60036 [19:20:21]sum+1 = 60038 [19:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 52 09.04.2024 19:20 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26920 ФПД: 240032166346675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T192043&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26920&fm=240032166346675&tin=02508201610067®Number=0000000000091578&sum=60000 [19:20:22]StoreToDocumentArchive [19:20:22]shift 315 fd 26920 [19:20:22]save to /storage/0315/doc_00026920 [19:20:22]save last doc name /storage/0315/doc_00026920 to /storage/kkm_last_doc_name [19:20:22]save OK [19:20:22]Clear old archive folders... [19:20:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:22]tlvbuf is 00E83E90 [19:20:22]SAM_PROTO_ClearQueue [19:20:22]wFMCommunicate request_size=4 [19:20:22]MH_SAM_APDU [19:20:22]CAPDU: 80 09 00 00 [19:20:22]Write to MH i2c: E2 08 00 F8 5B 80 09 00 00 00 00 00 00 C5 [19:20:22]Write i2c OK [19:20:22]MH_I2C_Read... [19:20:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:22]OFD Sender: No OFD packet to send [19:20:22]Read from MH i2c: E2 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 F8 5B 00 90 00 C7 [19:20:22]RAPDU: 90 00 [19:20:22]wFMCommunicate OK [19:20:22]SAM_PROTO_ClearQueue done [19:20:22]KKMCreateOFDPacket [19:20:22]OFDProtocolAddRootSTLVToBuf [19:20:22]FM_MakeSignedData [19:20:22]FM_MakeSignedData [19:20:22]SAM_PROTO_SignData [19:20:22]wFMCommunicate request_size=4 [19:20:22]MH_SAM_APDU [19:20:22]CAPDU: 80 0D 01 02 [19:20:22]Write to MH i2c: E2 08 00 F9 5B 80 0D 01 02 00 00 00 00 CD [19:20:22]Write i2c OK [19:20:22]MH_I2C_Read... [19:20:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:22]Read from MH i2c: E2 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 F9 5B 00 90 00 C8 [19:20:22]RAPDU: 90 00 [19:20:22]wFMCommunicate OK [19:20:22]wFMCommunicate request_size=255 [19:20:22]MH_SAM_APDU [19:20:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 28 69 00 00 35 04 06 00 DA [19:20:22]Write to MH i2c: E2 02 01 FA 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 28 69 00 00 35 04 06 00 DA 00 00 E3 [19:20:22]Write i2c OK [19:20:22]MH_I2C_Read... [19:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:22]Read from MH i2c: E2 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 FA 5B 00 90 00 C9 [19:20:22]RAPDU: 90 00 [19:20:22]wFMCommunicate OK [19:20:22]wFMCommunicate request_size=10 [19:20:22]MH_SAM_APDU [19:20:22]CAPDU: 80 0D 02 02 05 4E D8 02 7F B3 [19:20:22]Write to MH i2c: E2 0D 00 FB 5B 80 0D 02 02 05 00 4E D8 02 7F B3 00 00 34 [19:20:22]Write i2c OK [19:20:22]MH_I2C_Read... [19:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:22]Read from MH i2c: E2 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 03 00 FB 5B 00 90 00 CA [19:20:22]RAPDU: 90 00 [19:20:22]wFMCommunicate OK [19:20:22]wFMCommunicate request_size=4 [19:20:22]MH_SAM_APDU [19:20:22]CAPDU: 80 0D 03 02 [19:20:22]Write to MH i2c: E2 08 00 FC 5B 80 0D 03 02 00 00 00 00 D2 [19:20:22]Write i2c OK [19:20:22]MH_I2C_Read... [19:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:22]Read from MH i2c: E2 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 0B 00 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 0B 00 FC 5B 00 CE 9C 0B 19 E5 25 2F B5 90 00 4F [19:20:22]RAPDU: CE 9C 0B 19 E5 25 2F B5 90 00 [19:20:22]wFMCommunicate OK [19:20:22]SAM_PROTO_SignData done [19:20:22]FM_MakeSignedData done [19:20:22]CreateOFDProtocolMessage [19:20:22]wFMCommunicate request_size=4 [19:20:22]MH_SAM_APDU [19:20:22]CAPDU: 80 11 00 00 [19:20:22]Write to MH i2c: E2 08 00 FD 5B 80 11 00 00 00 00 00 00 D2 [19:20:22]Write i2c OK [19:20:22]MH_I2C_Read... [19:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:22]Read from MH i2c: E2 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 17 00 [19:20:22]MH_I2C_Read... [19:20:22]Read from MH i2c: E2 17 00 FD 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 2A [19:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:20:22]wFMCommunicate OK [19:20:22]CreateOFDProtocolMessage done [19:20:22]OFDSenderStorePacket 26920 [19:20:22]StoreOFDPacket docnum=26920 [19:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 94 B6 07 01 92 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 28 69 00 00 35 04 06 00 DA 4E D8 02 7F B3 CE 9C 0B 19 E5 25 2F B5 [19:20:22]CheckFolder [19:20:22]dirname=/storage/ofd_packets [19:20:22]CheckFolder done [19:20:22]ProducePacketName [19:20:22]name=ofd_packets/00026920 [19:20:22]NVStorageSaveData ofd_packets/00026920 [19:20:22]File name is /storage/ofd_packets/00026920 [19:20:22]Write 301 bytes [19:20:22]NVStorageSaveData done [19:20:22]OFDSenderStorePacket done [19:20:22]KKMCreateOFDPacket done [19:20:22]NVStorageSaveData kkm_last_timestamp [19:20:22]File name is /storage/kkm_last_timestamp [19:20:22]Write 4 bytes [19:20:22]NVStorageSaveData done [19:20:23]ExternCall_PrintAddStr [19:20:23]wPrintStart [19:20:23]Write to MH i2c: 01 00 00 FE 5B 59 [19:20:23]Write i2c OK [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: 01 [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: 01 07 00 [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: 01 07 00 FE 5B 00 00 00 00 00 FF 0F 6E [19:20:23]RasterBufferAndPrint [19:20:23]line Счет N : (1)359665 [19:20:23]line ИНН: 02508201610067 [19:20:23]line Контрольно-Кассовый Чек [19:20:23]line ПРОДАЖА [19:20:23]line ТРК (МРК, ГНК) : 63 [19:20:23]line Товар: 2710124500 [19:20:23]line Аи-95-К-5 [19:20:23]line 8.350 * 71.90 [19:20:23]line = 600.37 [19:20:23]line НДС 12% НСП 1% [19:20:23]line > о реализуемом товаре [19:20:23]line ОКРУГЛЕНИЕ: -0.37 [19:20:23]line ИТОГО: 600.00 [19:20:23]line Внесено: 600.00 [19:20:23]line СДАЧА: 0.00 [19:20:23]line НСП 1% : 5.31 [19:20:23]line НДС 12% : 63.76 [19:20:23]line Наличными: 600.00 [19:20:23]line Безнал.: 0.00 [19:20:23]line Место: АЗС № 122 "Партнер Нефть" [19:20:23]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [19:20:23]line СНО: Общий режим [19:20:23]line Чек 52 09.04.2024 19:20 [19:20:23]line Смена: 315 ФФД: 1.0 [19:20:23]line ЗНМ: 0300000147 [19:20:23]line РНМ: 0000000000091578 [19:20:23]line Версия ККМ: 001 [19:20:23]line ФМ: 0000000000874657 [19:20:23]line ФД: 26920 [19:20:23]line ФПД: 240032166346675 [19:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T192043&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26920&fm=240032166346675&tin=02508201610067®Number=0000000000091578&sum=60000 [19:20:23]OFD Sender: Processing packet 26920 [packets to send 44, broken 43] [19:20:23]ProducePacketName [19:20:23]name=ofd_packets/00026920 [19:20:23]OFD Sender: To server: pG, [19:20:23]CommunicateWithHost lk.salyk.kg:30040 [19:20:23]ConnectInit lk.salyk.kg [19:20:23]written 0, free lines is 4095 [19:20:23]Connected sock=10 [19:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 94 B6 07 01 92 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 28 69 00 00 35 04 06 00 DA 4E D8 02 7F B3 CE 9C 0B 19 E5 25 2F B5 [19:20:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 E4 78 47 00 86 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 38 37 34 36 35 37 10 04 04 00 28 69 00 00 F4 03 04 00 71 3C 15 66 B6 04 01 00 00 99 CA 37 B0 BF F7 34 C2 [19:20:23]CommunicateWithHost err = 0 [19:20:23]CheckOFDResponse [19:20:23]1017 (14) - 77093643461234 [19:20:23]1041 (16) - 0000000000874657 [19:20:23]1040 (4) - 26920 [19:20:23]1012 (4) - 09.04.2024 13:02 [19:20:23]1206 (1) - 0 [19:20:23]OFD Sender: Remove packet 26920 [19:20:23]ProducePacketName [19:20:23]name=ofd_packets/00026920 [19:20:23]NVStorageDeleteData [19:20:23]Write to MH i2c: 01 00 00 29 5C 85 [19:20:23]Write i2c OK [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: 01 [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: 01 07 00 [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: 01 07 00 29 5C 00 00 00 00 00 73 0C 0B [19:20:23]RasterBufferAndPrint [19:20:23]line [19:20:23]line [19:20:23]line [19:20:23]line [19:20:23]line [19:20:23]written 0, free lines is 3189 [19:20:23]MH_Cut [19:20:23]Write to MH i2c: D1 01 00 30 5C 01 5E [19:20:23]Write i2c OK [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: D1 [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: D1 01 00 [19:20:23]MH_I2C_Read... [19:20:23]Read from MH i2c: D1 01 00 30 5C 00 5D [19:20:23]Write to MH i2c: 01 00 00 31 5C 8D [19:20:23]Write i2c OK [19:20:23]MH_I2C_Read... [19:20:24]OFD Sender: No OFD packet to send [19:20:24]*** Cut start [19:20:24]*** Partial cut [19:20:24]*** CUTSNS_PIN = 1 [19:20:24]*** CUTSNS_PIN = 0 [19:20:25]*** Brake cut motor [19:20:25]Read from MH i2c: 01 [19:20:25]MH_I2C_Read... [19:20:25]*** Stop cut motor [19:20:25]*** Cut end [19:20:25]Read from MH i2c: 01 07 00 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: 01 07 00 31 5C 00 00 00 00 00 FF 0F A2 [19:20:25]process_action close_receipt done [19:20:25]requested_data is exist [19:20:25]produce_requested_data [19:20:25]requested_item fm.sn is exist - process it [19:20:25]wFMCommunicate request_size=4 [19:20:25]MH_SAM_APDU [19:20:25]CAPDU: 80 11 00 00 [19:20:25]Write to MH i2c: E2 08 00 32 5C 80 11 00 00 00 00 00 00 08 [19:20:25]Write i2c OK [19:20:25]MH_I2C_Read... [19:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:25]Read from MH i2c: E2 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 17 00 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 17 00 32 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 60 [19:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:20:25]wFMCommunicate OK [19:20:25]requested_item fd.num is exist - process it [19:20:25]SAM_PROTO_GetFieldsCounters [19:20:25]wFMCommunicate request_size=4 [19:20:25]MH_SAM_APDU [19:20:25]CAPDU: 80 13 00 00 [19:20:25]Write to MH i2c: E2 08 00 33 5C 80 13 00 00 00 00 00 00 0B [19:20:25]Write i2c OK [19:20:25]MH_I2C_Read... [19:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:25]Read from MH i2c: E2 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 62 00 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 62 00 33 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 28 69 00 00 0E 04 04 00 3B 01 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 9F [19:20:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 28 69 00 00 0E 04 04 00 3B 01 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 [19:20:25]wFMCommunicate OK [19:20:25]SAM_PROTO_GetFieldsCounters done [19:20:25]requested_item shift.num is exist - process it [19:20:25]requested_item shift.opened is exist - process it [19:20:25]req_shift_opened [19:20:25]FM_GetShiftState [19:20:25]SAM_PROTO_GetShiftState [19:20:25]wFMCommunicate request_size=4 [19:20:25]MH_SAM_APDU [19:20:25]CAPDU: 80 13 01 00 [19:20:25]Write to MH i2c: E2 08 00 34 5C 80 13 01 00 00 00 00 00 0D [19:20:25]Write i2c OK [19:20:25]MH_I2C_Read... [19:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:25]Read from MH i2c: E2 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 0E 00 [19:20:25]MH_I2C_Read... [19:20:25]Read from MH i2c: E2 0E 00 34 5C 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 78 [19:20:25]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:20:25]wFMCommunicate OK [19:20:25]SAM_PROTO_GetShiftState done [19:20:25]FM_GetShiftState done [19:20:25]req_shift_opened done [19:20:25]requested_item shift.open_date is exist - process it [19:20:25]req_shift_open_date [19:20:25]req_shift_open_date done [19:20:25]produce_requested_data done [19:20:25]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26920,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [19:20:25]process_action_free close_receipt [19:20:25]json_value_free [19:20:25]json_value_free done [19:20:25]process_json_proto returns [19:20:25]Send response to host [19:20:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26920,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [19:20:25]free response buf [19:20:25]execute_script done [19:20:25]execute_script returns [19:20:25]free content buf [19:20:25]Sock 8.Close socket [19:20:25]Sock 8.Thread stoped [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:32]accept exits with 9 [19:23:32]New connection [19:23:32]New thread 3067014500 created [19:23:32]Thread 3066871140 joined [19:23:32]Waiting for new connection... [19:23:32] Sock 9.Parse request [19:23:32]Sock 9.Check first char [19:23:32]Sock 9.First char is OK [19:23:32]request: POST /json_proto HTTP/1.0 [19:23:32]Method: POST [19:23:32]URL: /json_proto [19:23:32]Method is POST - this is cgi request [19:23:32]url: /json_proto [19:23:32]query_string will be loaded in cgi processing [19:23:32]execute_cgi json_proto POST (null) [19:23:32]execute_cgi path=json_proto method=POST [19:23:32]POST find Content-Length [19:23:32]Host: 172.17.35.3:8080 [19:23:32]Content-Length: 677 [19:23:32]Content-Type: application/json [19:23:32] [19:23:32]POST finish read [19:23:32]Found Content-Length = 677 [19:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.160, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:32]execute_script... [19:23: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)359666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.160, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:32]POST & json_proto [19:23:32]process_json_proto [19:23:32]json parsed OK: [19:23:32]protocol is kg_v1.0 [19:23:32]action value=close_receipt [19:23:32]process_action close_receipt [19:23:32]cmd_close_receipt [19:23:32]MH_GetDate [19:23:32]Write to MH i2c: F0 00 00 35 5C 80 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: F0 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: F0 09 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: F0 09 00 35 5C 00 CA 95 15 66 2B 11 66 64 69 [19:23:32]GetLastDocTimeStamp 1712690443 [19:23:32]current date 1712690634 [19:23:32]FM_GetShiftState [19:23:32]SAM_PROTO_GetShiftState [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 13 01 00 [19:23:32]Write to MH i2c: E2 08 00 36 5C 80 13 01 00 00 00 00 00 0F [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0E 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0E 00 36 5C 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 7A [19:23:32]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:23:32]wFMCommunicate OK [19:23:32]SAM_PROTO_GetShiftState done [19:23:32]FM_GetShiftState done [19:23:32]opened in 1712622936 [19:23:32]opened+sec_in_day 1712709336 [19:23:32]quantity*price = 20034 [19:23:32]sum+1 = 20035 [19:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 53 09.04.2024 19:23 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26921 ФПД: 268194569703991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T192354&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26921&fm=268194569703991&tin=02508201610067®Number=0000000000091578&sum=20000 [19:23:33]StoreToDocumentArchive [19:23:33]shift 315 fd 26921 [19:23:33]save to /storage/0315/doc_00026921 [19:23:33]save last doc name /storage/0315/doc_00026921 to /storage/kkm_last_doc_name [19:23:33]save OK [19:23:33]Clear old archive folders... [19:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:33]tlvbuf is 00E29D10 [19:23:33]SAM_PROTO_ClearQueue [19:23:33]wFMCommunicate request_size=4 [19:23:33]MH_SAM_APDU [19:23:33]CAPDU: 80 09 00 00 [19:23:33]Write to MH i2c: E2 08 00 43 5C 80 09 00 00 00 00 00 00 11 [19:23:33]Write i2c OK [19:23:33]MH_I2C_Read... [19:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:33]Read from MH i2c: E2 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: E2 03 00 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: E2 03 00 43 5C 00 90 00 13 [19:23:33]RAPDU: 90 00 [19:23:33]wFMCommunicate OK [19:23:33]SAM_PROTO_ClearQueue done [19:23:33]KKMCreateOFDPacket [19:23:33]OFDProtocolAddRootSTLVToBuf [19:23:33]FM_MakeSignedData [19:23:33]FM_MakeSignedData [19:23:33]SAM_PROTO_SignData [19:23:33]wFMCommunicate request_size=4 [19:23:33]MH_SAM_APDU [19:23:33]CAPDU: 80 0D 01 02 [19:23:33]Write to MH i2c: E2 08 00 44 5C 80 0D 01 02 00 00 00 00 19 [19:23:33]Write i2c OK [19:23:33]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 44 5C 00 90 00 14 [19:23:34]RAPDU: 90 00 [19:23:34]wFMCommunicate OK [19:23:34]wFMCommunicate request_size=255 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 CA 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 29 69 00 00 35 04 06 00 F3 [19:23:34]Write to MH i2c: E2 02 01 45 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 CA 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 29 69 00 00 35 04 06 00 F3 00 00 B1 [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 45 5C 00 90 00 15 [19:23:34]RAPDU: 90 00 [19:23:34]wFMCommunicate OK [19:23:34]wFMCommunicate request_size=10 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 0D 02 02 05 EB EA 0E D2 37 [19:23:34]Write to MH i2c: E2 0D 00 46 5C 80 0D 02 02 05 00 EB EA 0E D2 37 00 00 12 [19:23:34]OFD Sender: No OFD packet to send [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 46 5C 00 90 00 16 [19:23:34]RAPDU: 90 00 [19:23:34]wFMCommunicate OK [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 0D 03 02 [19:23:34]Write to MH i2c: E2 08 00 47 5C 80 0D 03 02 00 00 00 00 1E [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 0B 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 0B 00 47 5C 00 7D D1 C2 2C 1E 63 FA 70 90 00 46 [19:23:34]RAPDU: 7D D1 C2 2C 1E 63 FA 70 90 00 [19:23:34]wFMCommunicate OK [19:23:34]SAM_PROTO_SignData done [19:23:34]FM_MakeSignedData done [19:23:34]CreateOFDProtocolMessage [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 11 00 00 [19:23:34]Write to MH i2c: E2 08 00 48 5C 80 11 00 00 00 00 00 00 1E [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 17 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 17 00 48 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 76 [19:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:23:34]wFMCommunicate OK [19:23:34]CreateOFDProtocolMessage done [19:23:34]OFDSenderStorePacket 26921 [19:23:34]StoreOFDPacket docnum=26921 [19:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 88 FC 07 01 55 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 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 CA 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 29 69 00 00 35 04 06 00 F3 EB EA 0E D2 37 7D D1 C2 2C 1E 63 FA 70 [19:23:34]CheckFolder [19:23:34]dirname=/storage/ofd_packets [19:23:34]CheckFolder done [19:23:34]ProducePacketName [19:23:34]name=ofd_packets/00026921 [19:23:34]NVStorageSaveData ofd_packets/00026921 [19:23:34]File name is /storage/ofd_packets/00026921 [19:23:34]Write 301 bytes [19:23:34]NVStorageSaveData done [19:23:34]OFDSenderStorePacket done [19:23:34]KKMCreateOFDPacket done [19:23:34]NVStorageSaveData kkm_last_timestamp [19:23:34]File name is /storage/kkm_last_timestamp [19:23:34]Write 4 bytes [19:23:34]NVStorageSaveData done [19:23:34]ExternCall_PrintAddStr [19:23:34]wPrintStart [19:23:34]Write to MH i2c: 01 00 00 49 5C A5 [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: 01 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: 01 07 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: 01 07 00 49 5C 00 00 00 00 00 FF 0F BA [19:23:34]RasterBufferAndPrint [19:23:34]line Счет N : (1)359666 [19:23:34]line ИНН: 02508201610067 [19:23:34]line Контрольно-Кассовый Чек [19:23:34]line ПРОДАЖА [19:23:34]line ТРК (МРК, ГНК) : 61 [19:23:34]line Товар: 2710124130 [19:23:34]line Аи-92-К-5 [19:23:34]line 3.160 * 63.40 [19:23:34]line = 200.34 [19:23:34]line НДС 12% НСП 1% [19:23:34]line > о реализуемом товаре [19:23:34]line ОКРУГЛЕНИЕ: -0.34 [19:23:34]line ИТОГО: 200.00 [19:23:34]line Внесено: 200.00 [19:23:34]line СДАЧА: 0.00 [19:23:34]line НСП 1% : 1.77 [19:23:34]line НДС 12% : 21.27 [19:23:34]line Наличными: 200.00 [19:23:34]line Безнал.: 0.00 [19:23:34]line Место: АЗС № 122 "Партнер Нефть" [19:23:34]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [19:23:34]line СНО: Общий режим [19:23:34]line Чек 53 09.04.2024 19:23 [19:23:34]line Смена: 315 ФФД: 1.0 [19:23:34]line ЗНМ: 0300000147 [19:23:34]line РНМ: 0000000000091578 [19:23:34]line Версия ККМ: 001 [19:23:34]line ФМ: 0000000000874657 [19:23:34]line ФД: 26921 [19:23:34]line ФПД: 268194569703991 [19:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T192354&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26921&fm=268194569703991&tin=02508201610067®Number=0000000000091578&sum=20000 [19:23:34]OFD Sender: Processing packet 26921 [packets to send 44, broken 43] [19:23:34]ProducePacketName [19:23:34]name=ofd_packets/00026921 [19:23:34]OFD Sender: To server: pG, [19:23:34]CommunicateWithHost lk.salyk.kg:30040 [19:23:34]ConnectInit lk.salyk.kg [19:23:34]written 0, free lines is 4095 [19:23:34]Connected sock=10 [19:23:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 88 FC 07 01 55 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 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 CA 95 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 29 69 00 00 35 04 06 00 F3 EB EA 0E D2 37 7D D1 C2 2C 1E 63 FA 70 [19:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 A1 07 47 00 4E C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 29 69 00 00 F4 03 04 00 30 3D 15 66 B6 04 01 00 00 01 83 BD 58 9C 6C 20 BA [19:23:35]CommunicateWithHost err = 0 [19:23:35]CheckOFDResponse [19:23:35]1017 (14) - 77093643461234 [19:23:35]1041 (16) - 0000000000874657 [19:23:35]1040 (4) - 26921 [19:23:35]1012 (4) - 09.04.2024 13:05 [19:23:35]1206 (1) - 0 [19:23:35]OFD Sender: Remove packet 26921 [19:23:35]ProducePacketName [19:23:35]name=ofd_packets/00026921 [19:23:35]NVStorageDeleteData [19:23:35]Write to MH i2c: 01 00 00 74 5C D0 [19:23:35]Write i2c OK [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: 01 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: 01 07 00 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: 01 07 00 74 5C 00 00 00 00 00 78 0C 5B [19:23:35]RasterBufferAndPrint [19:23:35]line [19:23:35]line [19:23:35]line [19:23:35]line [19:23:35]line [19:23:35]written 0, free lines is 3196 [19:23:35]MH_Cut [19:23:35]Write to MH i2c: D1 01 00 7B 5C 01 A9 [19:23:35]Write i2c OK [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: D1 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: D1 01 00 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: D1 01 00 7B 5C 00 A8 [19:23:35]Write to MH i2c: 01 00 00 7C 5C D8 [19:23:35]Write i2c OK [19:23:35]MH_I2C_Read... [19:23:35]OFD Sender: No OFD packet to send [19:23:36]*** Cut start [19:23:36]*** Partial cut [19:23:36]*** CUTSNS_PIN = 1 [19:23:36]*** CUTSNS_PIN = 0 [19:23:36]*** Brake cut motor [19:23:37]Read from MH i2c: 01 [19:23:37]MH_I2C_Read... [19:23:37]*** Stop cut motor [19:23:37]*** Cut end [19:23:37]Read from MH i2c: 01 07 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: 01 07 00 7C 5C 00 00 00 00 00 FF 0F ED [19:23:37]process_action close_receipt done [19:23:37]requested_data is exist [19:23:37]produce_requested_data [19:23:37]requested_item fm.sn is exist - process it [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 11 00 00 [19:23:37]Write to MH i2c: E2 08 00 7D 5C 80 11 00 00 00 00 00 00 53 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 17 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 17 00 7D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AB [19:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:23:37]wFMCommunicate OK [19:23:37]requested_item fd.num is exist - process it [19:23:37]SAM_PROTO_GetFieldsCounters [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 13 00 00 [19:23:37]Write to MH i2c: E2 08 00 7E 5C 80 13 00 00 00 00 00 00 56 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 62 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 62 00 7E 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 29 69 00 00 0E 04 04 00 3B 01 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 EE [19:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 29 69 00 00 0E 04 04 00 3B 01 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 [19:23:37]wFMCommunicate OK [19:23:37]SAM_PROTO_GetFieldsCounters done [19:23:37]requested_item shift.num is exist - process it [19:23:37]requested_item shift.opened is exist - process it [19:23:37]req_shift_opened [19:23:37]FM_GetShiftState [19:23:37]SAM_PROTO_GetShiftState [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 13 01 00 [19:23:37]Write to MH i2c: E2 08 00 7F 5C 80 13 01 00 00 00 00 00 58 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 7F 5C 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C3 [19:23:37]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:23:37]wFMCommunicate OK [19:23:37]SAM_PROTO_GetShiftState done [19:23:37]FM_GetShiftState done [19:23:37]req_shift_opened done [19:23:37]requested_item shift.open_date is exist - process it [19:23:37]req_shift_open_date [19:23:37]req_shift_open_date done [19:23:37]produce_requested_data done [19:23:37]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26921,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [19:23:37]process_action_free close_receipt [19:23:37]json_value_free [19:23:37]json_value_free done [19:23:37]process_json_proto returns [19:23:37]Send response to host [19:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26921,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [19:23:37]free response buf [19:23:37]execute_script done [19:23:37]execute_script returns [19:23:37]free content buf [19:23:37]Sock 9.Close socket [19:23:37]Sock 9.Thread stoped [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:42]accept exits with 8 [19:39:42]New connection [19:39:42]New thread 3066871140 created [19:39:42]Thread 3067014500 joined [19:39:42]Waiting for new connection... [19:39:42] Sock 8.Parse request [19:39:42]Sock 8.Check first char [19:39:42]Sock 8.First char is OK [19:39:42]request: POST /json_proto HTTP/1.0 [19:39:42]Method: POST [19:39:42]URL: /json_proto [19:39:42]Method is POST - this is cgi request [19:39:42]url: /json_proto [19:39:42]query_string will be loaded in cgi processing [19:39:42]execute_cgi json_proto POST (null) [19:39:42]execute_cgi path=json_proto method=POST [19:39:42]POST find Content-Length [19:39:42]Host: 172.17.35.3:8080 [19:39:42]Content-Length: 639 [19:39:42]Content-Type: application/json [19:39:42] [19:39:42]POST finish read [19:39:42]Found Content-Length = 639 [19:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 5.000, "sum" : 317.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 317.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:42]execute_script... [19:39: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)359667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 5.000, "sum" : 317.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 317.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:42]POST & json_proto [19:39:42]process_json_proto [19:39:42]json parsed OK: [19:39:42]protocol is kg_v1.0 [19:39:42]action value=close_receipt [19:39:42]process_action close_receipt [19:39:42]cmd_close_receipt [19:39:42]MH_GetDate [19:39:42]Write to MH i2c: F0 00 00 80 5C CB [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: F0 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: F0 09 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: F0 09 00 80 5C 00 94 99 15 66 2B 11 66 64 82 [19:39:42]GetLastDocTimeStamp 1712690634 [19:39:42]current date 1712691604 [19:39:42]FM_GetShiftState [19:39:42]SAM_PROTO_GetShiftState [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 13 01 00 [19:39:42]Write to MH i2c: E2 08 00 81 5C 80 13 01 00 00 00 00 00 5A [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0E 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0E 00 81 5C 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 C5 [19:39:42]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:39:42]wFMCommunicate OK [19:39:42]SAM_PROTO_GetShiftState done [19:39:42]FM_GetShiftState done [19:39:42]opened in 1712622936 [19:39:42]opened+sec_in_day 1712709336 [19:39:42]quantity*price = 31700 [19:39:42]sum+1 = 31701 [19:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 317.00 НСП 1% : 2.80 НДС 12% : 33.66 Наличными: 317.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 54 09.04.2024 19:40 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26922 ФПД: 277965227153921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T194004&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26922&fm=277965227153921&tin=02508201610067®Number=0000000000091578&sum=31700 [19:39:44]StoreToDocumentArchive [19:39:44]shift 315 fd 26922 [19:39:44]save to /storage/0315/doc_00026922 [19:39:44]save last doc name /storage/0315/doc_00026922 to /storage/kkm_last_doc_name [19:39:44]save OK [19:39:44]Clear old archive folders... [19:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:44]tlvbuf is 00F88440 [19:39:44]SAM_PROTO_ClearQueue [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 09 00 00 [19:39:44]Write to MH i2c: E2 08 00 8E 5C 80 09 00 00 00 00 00 00 5C [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 8E 5C 00 90 00 5E [19:39:44]RAPDU: 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_ClearQueue done [19:39:44]KKMCreateOFDPacket [19:39:44]OFDProtocolAddRootSTLVToBuf [19:39:44]FM_MakeSignedData [19:39:44]FM_MakeSignedData [19:39:44]SAM_PROTO_SignData [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 0D 01 02 [19:39:44]Write to MH i2c: E2 08 00 8F 5C 80 0D 01 02 00 00 00 00 64 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:44]Read from MH i2c: E2 03 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 8F 5C 00 90 00 5F [19:39:44]RAPDU: 90 00 [19:39:44]wFMCommunicate OK [19:39:44]wFMCommunicate request_size=255 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 7B 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 94 99 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2A 69 00 00 35 04 06 00 FC [19:39:44]Write to MH i2c: E2 02 01 90 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 7B 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 94 99 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2A 69 00 00 35 04 06 00 FC 00 00 D1 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 90 5C 00 90 00 60 [19:39:44]RAPDU: 90 00 [19:39:44]wFMCommunicate OK [19:39:44]wFMCommunicate request_size=10 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 0D 02 02 05 CE D2 9F DA 01 [19:39:44]Write to MH i2c: E2 0D 00 91 5C 80 0D 02 02 05 00 CE D2 9F DA 01 00 00 8B [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 03 00 91 5C 00 90 00 61 [19:39:44]RAPDU: 90 00 [19:39:44]wFMCommunicate OK [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 0D 03 02 [19:39:44]Write to MH i2c: E2 08 00 92 5C 80 0D 03 02 00 00 00 00 69 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0B 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0B 00 92 5C 00 11 CE CE 22 05 94 D1 18 90 00 BB [19:39:44]RAPDU: 11 CE CE 22 05 94 D1 18 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_SignData done [19:39:44]FM_MakeSignedData done [19:39:44]CreateOFDProtocolMessage [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 11 00 00 [19:39:44]Write to MH i2c: E2 08 00 93 5C 80 11 00 00 00 00 00 00 69 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 17 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 17 00 93 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C1 [19:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:39:44]wFMCommunicate OK [19:39:44]CreateOFDProtocolMessage done [19:39:44]OFDSenderStorePacket 26922 [19:39:44]StoreOFDPacket docnum=26922 [19:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 67 7A 07 01 1B F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 7B 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 94 99 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2A 69 00 00 35 04 06 00 FC CE D2 9F DA 01 11 CE CE 22 05 94 D1 18 [19:39:44]CheckFolder [19:39:44]dirname=/storage/ofd_packets [19:39:44]CheckFolder done [19:39:44]ProducePacketName [19:39:44]name=ofd_packets/00026922 [19:39:44]NVStorageSaveData ofd_packets/00026922 [19:39:44]File name is /storage/ofd_packets/00026922 [19:39:44]Write 301 bytes [19:39:44]NVStorageSaveData done [19:39:44]OFDSenderStorePacket done [19:39:44]KKMCreateOFDPacket done [19:39:44]NVStorageSaveData kkm_last_timestamp [19:39:44]File name is /storage/kkm_last_timestamp [19:39:44]Write 4 bytes [19:39:44]NVStorageSaveData done [19:39:44]ExternCall_PrintAddStr [19:39:44]wPrintStart [19:39:44]Write to MH i2c: 01 00 00 94 5C F0 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 94 5C 00 00 00 00 00 FF 0F 05 [19:39:44]RasterBufferAndPrint [19:39:44]line Счет N : (1)359667 [19:39:44]line ИНН: 02508201610067 [19:39:44]line Контрольно-Кассовый Чек [19:39:44]line ПРОДАЖА [19:39:44]line ТРК (МРК, ГНК) : 51 [19:39:44]line Товар: 2710124130 [19:39:44]line Аи-92-К-5 [19:39:44]line 5.000 * 63.40 [19:39:44]line = 317.00 [19:39:44]line НДС 12% НСП 1% [19:39:44]line > о реализуемом товаре [19:39:44]line ИТОГО: 317.00 [19:39:44]line НСП 1% : 2.80 [19:39:44]line НДС 12% : 33.66 [19:39:44]line Наличными: 317.00 [19:39:44]line Безнал.: 0.00 [19:39:44]line Место: АЗС № 122 "Партнер Нефть" [19:39:44]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [19:39:44]line СНО: Общий режим [19:39:44]line Чек 54 09.04.2024 19:40 [19:39:44]line Смена: 315 ФФД: 1.0 [19:39:44]line ЗНМ: 0300000147 [19:39:44]line РНМ: 0000000000091578 [19:39:44]line Версия ККМ: 001 [19:39:44]line ФМ: 0000000000874657 [19:39:44]line ФД: 26922 [19:39:44]line ФПД: 277965227153921 [19:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T194004&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26922&fm=277965227153921&tin=02508201610067®Number=0000000000091578&sum=31700 [19:39:44]OFD Sender: Processing packet 26922 [packets to send 44, broken 43] [19:39:44]ProducePacketName [19:39:44]name=ofd_packets/00026922 [19:39:44]OFD Sender: To server: pG, [19:39:44]CommunicateWithHost lk.salyk.kg:30040 [19:39:44]ConnectInit lk.salyk.kg [19:39:44]written 0, free lines is 4095 [19:39:44]Connected sock=10 [19:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 67 7A 07 01 1B F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 D4 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0D 00 00 00 00 07 04 06 00 D4 7B 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 94 99 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2A 69 00 00 35 04 06 00 FC CE D2 9F DA 01 11 CE CE 22 05 94 D1 18 [19:39:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 F2 40 47 00 64 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2A 69 00 00 F4 03 04 00 FA 40 15 66 B6 04 01 00 00 46 7A AE 72 E2 F6 00 09 [19:39:45]CommunicateWithHost err = 0 [19:39:45]CheckOFDResponse [19:39:45]1017 (14) - 77093643461234 [19:39:45]1041 (16) - 0000000000874657 [19:39:45]1040 (4) - 26922 [19:39:45]1012 (4) - 09.04.2024 13:22 [19:39:45]1206 (1) - 0 [19:39:45]OFD Sender: Remove packet 26922 [19:39:45]ProducePacketName [19:39:45]name=ofd_packets/00026922 [19:39:45]NVStorageDeleteData [19:39:45]Write to MH i2c: 01 00 00 BC 5C 18 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 07 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 07 00 BC 5C 00 00 00 00 00 B7 0C E2 [19:39:45]RasterBufferAndPrint [19:39:45]line [19:39:45]line [19:39:45]line [19:39:45]line [19:39:45]line [19:39:45]written 0, free lines is 3259 [19:39:45]MH_Cut [19:39:45]Write to MH i2c: D1 01 00 C3 5C 01 F1 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: D1 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: D1 01 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: D1 01 00 C3 5C 00 F0 [19:39:45]Write to MH i2c: 01 00 00 C4 5C 20 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]OFD Sender: No OFD packet to send [19:39:46]*** Cut start [19:39:46]*** Partial cut [19:39:46]*** CUTSNS_PIN = 1 [19:39:46]*** CUTSNS_PIN = 0 [19:39:46]*** Brake cut motor [19:39:47]Read from MH i2c: 01 [19:39:47]MH_I2C_Read... [19:39:47]*** Stop cut motor [19:39:47]*** Cut end [19:39:47]Read from MH i2c: 01 07 00 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: 01 07 00 C4 5C 00 00 00 00 00 FF 0F 35 [19:39:47]process_action close_receipt done [19:39:47]requested_data is exist [19:39:47]produce_requested_data [19:39:47]requested_item fm.sn is exist - process it [19:39:47]wFMCommunicate request_size=4 [19:39:47]MH_SAM_APDU [19:39:47]CAPDU: 80 11 00 00 [19:39:47]Write to MH i2c: E2 08 00 C5 5C 80 11 00 00 00 00 00 00 9B [19:39:47]Write i2c OK [19:39:47]MH_I2C_Read... [19:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:47]Read from MH i2c: E2 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 17 00 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 17 00 C5 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F3 [19:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:39:47]wFMCommunicate OK [19:39:47]requested_item fd.num is exist - process it [19:39:47]SAM_PROTO_GetFieldsCounters [19:39:47]wFMCommunicate request_size=4 [19:39:47]MH_SAM_APDU [19:39:47]CAPDU: 80 13 00 00 [19:39:47]Write to MH i2c: E2 08 00 C6 5C 80 13 00 00 00 00 00 00 9E [19:39:47]Write i2c OK [19:39:47]MH_I2C_Read... [19:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:47]Read from MH i2c: E2 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 62 00 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 62 00 C6 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2A 69 00 00 0E 04 04 00 3B 01 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 3A [19:39:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2A 69 00 00 0E 04 04 00 3B 01 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 [19:39:47]wFMCommunicate OK [19:39:47]SAM_PROTO_GetFieldsCounters done [19:39:47]requested_item shift.num is exist - process it [19:39:47]requested_item shift.opened is exist - process it [19:39:47]req_shift_opened [19:39:47]FM_GetShiftState [19:39:47]SAM_PROTO_GetShiftState [19:39:47]wFMCommunicate request_size=4 [19:39:47]MH_SAM_APDU [19:39:47]CAPDU: 80 13 01 00 [19:39:47]Write to MH i2c: E2 08 00 C7 5C 80 13 01 00 00 00 00 00 A0 [19:39:47]Write i2c OK [19:39:47]MH_I2C_Read... [19:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:47]Read from MH i2c: E2 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 0E 00 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 0E 00 C7 5C 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 0B [19:39:47]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:39:47]wFMCommunicate OK [19:39:47]SAM_PROTO_GetShiftState done [19:39:47]FM_GetShiftState done [19:39:47]req_shift_opened done [19:39:47]requested_item shift.open_date is exist - process it [19:39:47]req_shift_open_date [19:39:47]req_shift_open_date done [19:39:47]produce_requested_data done [19:39:47]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26922,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [19:39:47]process_action_free close_receipt [19:39:47]json_value_free [19:39:47]json_value_free done [19:39:47]process_json_proto returns [19:39:47]Send response to host [19:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26922,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [19:39:47]free response buf [19:39:47]execute_script done [19:39:47]execute_script returns [19:39:47]free content buf [19:39:47]Sock 8.Close socket [19:39:47]Sock 8.Thread stoped [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:42]accept exits with 9 [19:42:42]New connection [19:42:42]New thread 3067014500 created [19:42:42]Thread 3066871140 joined [19:42:42]Waiting for new connection... [19:42:42] Sock 9.Parse request [19:42:42]Sock 9.Check first char [19:42:42]Sock 9.First char is OK [19:42:42]request: POST /json_proto HTTP/1.0 [19:42:42]Method: POST [19:42:42]URL: /json_proto [19:42:42]Method is POST - this is cgi request [19:42:42]url: /json_proto [19:42:42]query_string will be loaded in cgi processing [19:42:42]execute_cgi json_proto POST (null) [19:42:42]execute_cgi path=json_proto method=POST [19:42:42]POST find Content-Length [19:42:42]Host: 172.17.35.3:8080 [19:42:42]Content-Length: 808 [19:42:42]Content-Type: application/json [19:42:42] [19:42:42]POST finish read [19:42:42]Found Content-Length = 808 [19:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 20.900, "sum" : 1500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:42]execute_script... [19:42: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)359668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 20.900, "sum" : 1500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:42]POST & json_proto [19:42:42]process_json_proto [19:42:42]json parsed OK: [19:42:42]protocol is kg_v1.0 [19:42:42]action value=close_receipt [19:42:42]process_action close_receipt [19:42:42]cmd_close_receipt [19:42:42]MH_GetDate [19:42:42]Write to MH i2c: F0 00 00 C8 5C 13 [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: F0 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: F0 09 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: F0 09 00 C8 5C 00 48 9A 15 66 2B 11 66 64 7F [19:42:42]GetLastDocTimeStamp 1712691604 [19:42:42]current date 1712691784 [19:42:42]FM_GetShiftState [19:42:42]SAM_PROTO_GetShiftState [19:42:42]wFMCommunicate request_size=4 [19:42:42]MH_SAM_APDU [19:42:42]CAPDU: 80 13 01 00 [19:42:42]Write to MH i2c: E2 08 00 C9 5C 80 13 01 00 00 00 00 00 A2 [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:42]Read from MH i2c: E2 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 0E 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 0E 00 C9 5C 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 0D [19:42:42]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:42:42]wFMCommunicate OK [19:42:42]SAM_PROTO_GetShiftState done [19:42:42]FM_GetShiftState done [19:42:42]opened in 1712622936 [19:42:42]opened+sec_in_day 1712709336 [19:42:42]quantity*price = 150062 [19:42:42]sum+1 = 150063 [19:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.62 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.62 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 55 09.04.2024 19:43 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26923 ФПД: 2076112069516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T194304&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26923&fm=2076112069516&tin=02508201610067®Number=0000000000091578&sum=150062 [19:42:43]StoreToDocumentArchive [19:42:43]shift 315 fd 26923 [19:42:43]save to /storage/0315/doc_00026923 [19:42:43]save last doc name /storage/0315/doc_00026923 to /storage/kkm_last_doc_name [19:42:43]save OK [19:42:43]Clear old archive folders... [19:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:42:43]tlvbuf is 00EF4750 [19:42:43]SAM_PROTO_ClearQueue [19:42:43]wFMCommunicate request_size=4 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 09 00 00 [19:42:43]Write to MH i2c: E2 08 00 D6 5C 80 09 00 00 00 00 00 00 A4 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 D6 5C 00 90 00 A6 [19:42:43]RAPDU: 90 00 [19:42:43]wFMCommunicate OK [19:42:43]SAM_PROTO_ClearQueue done [19:42:43]KKMCreateOFDPacket [19:42:43]OFDProtocolAddRootSTLVToBuf [19:42:43]FM_MakeSignedData [19:42:43]FM_MakeSignedData [19:42:43]SAM_PROTO_SignData [19:42:43]wFMCommunicate request_size=4 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 0D 01 02 [19:42:43]Write to MH i2c: E2 08 00 D7 5C 80 0D 01 02 00 00 00 00 AC [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 D7 5C 00 90 00 A7 [19:42:43]RAPDU: 90 00 [19:42:43]wFMCommunicate OK [19:42:43]wFMCommunicate request_size=255 [19:42:43]MH_SAM_APDU [19:42:43]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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 48 9A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2B 69 00 00 35 04 06 00 [19:42:43]Write to MH i2c: E2 02 01 D8 5C 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 48 9A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2B 69 00 00 35 04 06 00 00 00 9D [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 D8 5C 00 90 00 A8 [19:42:43]RAPDU: 90 00 [19:42:43]wFMCommunicate OK [19:42:43]wFMCommunicate request_size=11 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 0D 02 02 06 01 E3 61 EC 23 8C [19:42:43]Write to MH i2c: E2 0E 00 D9 5C 80 0D 02 02 06 00 01 E3 61 EC 23 8C 00 00 9B [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 03 00 D9 5C 00 90 00 A9 [19:42:43]RAPDU: 90 00 [19:42:43]wFMCommunicate OK [19:42:43]wFMCommunicate request_size=4 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 0D 03 02 [19:42:43]Write to MH i2c: E2 08 00 DA 5C 80 0D 03 02 00 00 00 00 B1 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0B 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0B 00 DA 5C 00 BB 8B DB B5 1C C2 FC 99 90 00 FB [19:42:43]RAPDU: BB 8B DB B5 1C C2 FC 99 90 00 [19:42:43]wFMCommunicate OK [19:42:43]SAM_PROTO_SignData done [19:42:43]FM_MakeSignedData done [19:42:43]CreateOFDProtocolMessage [19:42:43]wFMCommunicate request_size=4 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 11 00 00 [19:42:43]Write to MH i2c: E2 08 00 DB 5C 80 11 00 00 00 00 00 00 B1 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 17 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 17 00 DB 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 09 [19:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:42:43]wFMCommunicate OK [19:42:43]CreateOFDProtocolMessage done [19:42:43]OFDSenderStorePacket 26923 [19:42:43]StoreOFDPacket docnum=26923 [19:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 9C 15 08 01 48 4E 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 48 9A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2B 69 00 00 35 04 06 00 01 E3 61 EC 23 8C BB 8B DB B5 1C C2 FC 99 [19:42:43]CheckFolder [19:42:43]dirname=/storage/ofd_packets [19:42:43]CheckFolder done [19:42:43]ProducePacketName [19:42:43]name=ofd_packets/00026923 [19:42:43]NVStorageSaveData ofd_packets/00026923 [19:42:43]File name is /storage/ofd_packets/00026923 [19:42:43]Write 302 bytes [19:42:43]NVStorageSaveData done [19:42:43]OFDSenderStorePacket done [19:42:43]KKMCreateOFDPacket done [19:42:43]NVStorageSaveData kkm_last_timestamp [19:42:43]File name is /storage/kkm_last_timestamp [19:42:43]Write 4 bytes [19:42:43]NVStorageSaveData done [19:42:43]ExternCall_PrintAddStr [19:42:43]wPrintStart [19:42:43]Write to MH i2c: 01 00 00 DC 5C 38 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: 01 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: 01 07 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: 01 07 00 DC 5C 00 00 00 00 00 FF 0F 4D [19:42:43]RasterBufferAndPrint [19:42:43]line Счет N : (1)359668 [19:42:43]line ИНН: 02508201610067 [19:42:43]line Контрольно-Кассовый Чек [19:42:43]line ПРОДАЖА [19:42:43]line ТРК (МРК, ГНК) : 21 [19:42:43]line Товар: 2710194210 [19:42:43]line ДТ(л)-К-5 [19:42:43]line 20.900 * 71.80 [19:42:43]line = 1500.62 [19:42:43]line НДС 12% НСП 1% [19:42:43]line > о реализуемом товаре [19:42:43]line ИТОГО: 1500.62 [19:42:43]line НСП 1% : 13.28 [19:42:43]line НДС 12% : 159.36 [19:42:43]line Наличными: 0.00 [19:42:43]line Безнал.: 1500.62 [19:42:43]line Место: АЗС № 122 "Партнер Нефть" [19:42:43]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [19:42:43]line СНО: Общий режим [19:42:43]line Чек 55 09.04.2024 19:43 [19:42:43]line Смена: 315 ФФД: 1.0 [19:42:43]line ЗНМ: 0300000147 [19:42:43]line РНМ: 0000000000091578 [19:42:43]line Версия ККМ: 001 [19:42:43]line Платежная система: O! деньги [19:42:43]line ФМ: 0000000000874657 [19:42:43]line ФД: 26923 [19:42:43]line ФПД: 2076112069516 [19:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T194304&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26923&fm=2076112069516&tin=02508201610067®Number=0000000000091578&sum=150062 [19:42:44]OFD Sender: Processing packet 26923 [packets to send 44, broken 43] [19:42:44]ProducePacketName [19:42:44]name=ofd_packets/00026923 [19:42:44]OFD Sender: To server: pG, [19:42:44]CommunicateWithHost lk.salyk.kg:30040 [19:42:44]ConnectInit lk.salyk.kg [19:42:44]written 0, free lines is 4095 [19:42:44]Connected sock=10 [19:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 9C 15 08 01 48 4E 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 48 9A 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2B 69 00 00 35 04 06 00 01 E3 61 EC 23 8C BB 8B DB B5 1C C2 FC 99 [19:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 12 00 47 00 26 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2B 69 00 00 F4 03 04 00 AE 41 15 66 B6 04 01 00 00 CA EE A7 B8 9F 3B F3 DA [19:42:44]CommunicateWithHost err = 0 [19:42:44]CheckOFDResponse [19:42:44]1017 (14) - 77093643461234 [19:42:44]1041 (16) - 0000000000874657 [19:42:44]1040 (4) - 26923 [19:42:44]1012 (4) - 09.04.2024 13:25 [19:42:44]1206 (1) - 0 [19:42:44]OFD Sender: Remove packet 26923 [19:42:44]ProducePacketName [19:42:44]name=ofd_packets/00026923 [19:42:44]NVStorageDeleteData [19:42:44]Write to MH i2c: 01 00 00 06 5D 63 [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: 01 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: 01 07 00 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: 01 07 00 06 5D 00 00 00 00 00 91 0C 07 [19:42:44]RasterBufferAndPrint [19:42:44]line [19:42:44]line [19:42:44]line [19:42:44]line [19:42:44]line [19:42:44]written 0, free lines is 3220 [19:42:44]MH_Cut [19:42:44]Write to MH i2c: D1 01 00 0D 5D 01 3C [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: D1 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: D1 01 00 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: D1 01 00 0D 5D 00 3B [19:42:44]Write to MH i2c: 01 00 00 0E 5D 6B [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]OFD Sender: No OFD packet to send [19:42:45]*** Cut start [19:42:45]*** Partial cut [19:42:45]*** CUTSNS_PIN = 1 [19:42:45]*** CUTSNS_PIN = 0 [19:42:46]*** Brake cut motor [19:42:46]Read from MH i2c: 01 [19:42:46]MH_I2C_Read... [19:42:46]*** Stop cut motor [19:42:46]*** Cut end [19:42:46]Read from MH i2c: 01 07 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: 01 07 00 0E 5D 00 00 00 00 00 FF 0F 80 [19:42:46]process_action close_receipt done [19:42:46]requested_data is exist [19:42:46]produce_requested_data [19:42:46]requested_item fm.sn is exist - process it [19:42:46]wFMCommunicate request_size=4 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 11 00 00 [19:42:46]Write to MH i2c: E2 08 00 0F 5D 80 11 00 00 00 00 00 00 E6 [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 17 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 17 00 0F 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 3E [19:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [19:42:46]wFMCommunicate OK [19:42:46]requested_item fd.num is exist - process it [19:42:46]SAM_PROTO_GetFieldsCounters [19:42:46]wFMCommunicate request_size=4 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 13 00 00 [19:42:46]Write to MH i2c: E2 08 00 10 5D 80 13 00 00 00 00 00 00 E9 [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 62 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 62 00 10 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2B 69 00 00 0E 04 04 00 3B 01 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 89 [19:42:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2B 69 00 00 0E 04 04 00 3B 01 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 [19:42:46]wFMCommunicate OK [19:42:46]SAM_PROTO_GetFieldsCounters done [19:42:46]requested_item shift.num is exist - process it [19:42:46]requested_item shift.opened is exist - process it [19:42:46]req_shift_opened [19:42:46]FM_GetShiftState [19:42:46]SAM_PROTO_GetShiftState [19:42:46]wFMCommunicate request_size=4 [19:42:46]MH_SAM_APDU [19:42:46]CAPDU: 80 13 01 00 [19:42:46]Write to MH i2c: E2 08 00 11 5D 80 13 01 00 00 00 00 00 EB [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:46]Read from MH i2c: E2 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 0E 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: E2 0E 00 11 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 56 [19:42:46]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [19:42:46]wFMCommunicate OK [19:42:46]SAM_PROTO_GetShiftState done [19:42:46]FM_GetShiftState done [19:42:46]req_shift_opened done [19:42:46]requested_item shift.open_date is exist - process it [19:42:46]req_shift_open_date [19:42:46]req_shift_open_date done [19:42:46]produce_requested_data done [19:42:46]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26923,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [19:42:46]process_action_free close_receipt [19:42:46]json_value_free [19:42:46]json_value_free done [19:42:46]process_json_proto returns [19:42:46]Send response to host [19:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26923,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [19:42:46]free response buf [19:42:46]execute_script done [19:42:46]execute_script returns [19:42:46]free content buf [19:42:46]Sock 9.Close socket [19:42:46]Sock 9.Thread stoped [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:42]accept exits with 8 [20:12:42]New connection [20:12:42]New thread 3066871140 created [20:12:42]Thread 3067014500 joined [20:12:42]Waiting for new connection... [20:12:42] Sock 8.Parse request [20:12:42]Sock 8.Check first char [20:12:42]Sock 8.First char is OK [20:12:42]request: POST /json_proto HTTP/1.0 [20:12:42]Method: POST [20:12:42]URL: /json_proto [20:12:42]Method is POST - this is cgi request [20:12:42]url: /json_proto [20:12:42]query_string will be loaded in cgi processing [20:12:42]execute_cgi json_proto POST (null) [20:12:42]execute_cgi path=json_proto method=POST [20:12:42]POST find Content-Length [20:12:42]Host: 172.17.35.3:8080 [20:12:42]Content-Length: 682 [20:12:42]Content-Type: application/json [20:12:42] [20:12:42]POST finish read [20:12:42]Found Content-Length = 682 [20:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:42]execute_script... [20:12: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)359669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:42]POST & json_proto [20:12:42]process_json_proto [20:12:42]json parsed OK: [20:12:42]protocol is kg_v1.0 [20:12:42]action value=close_receipt [20:12:42]process_action close_receipt [20:12:42]cmd_close_receipt [20:12:42]MH_GetDate [20:12:42]Write to MH i2c: F0 00 00 12 5D 5E [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: F0 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: F0 09 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: F0 09 00 12 5D 00 51 A1 15 66 2B 11 66 64 DA [20:12:42]GetLastDocTimeStamp 1712691784 [20:12:42]current date 1712693585 [20:12:42]FM_GetShiftState [20:12:42]SAM_PROTO_GetShiftState [20:12:42]wFMCommunicate request_size=4 [20:12:42]MH_SAM_APDU [20:12:42]CAPDU: 80 13 01 00 [20:12:42]Write to MH i2c: E2 08 00 13 5D 80 13 01 00 00 00 00 00 ED [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:42]Read from MH i2c: E2 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 0E 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 0E 00 13 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 58 [20:12:42]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [20:12:42]wFMCommunicate OK [20:12:42]SAM_PROTO_GetShiftState done [20:12:42]FM_GetShiftState done [20:12:42]opened in 1712622936 [20:12:42]opened+sec_in_day 1712709336 [20:12:42]quantity*price = 100012 [20:12:42]sum+1 = 100014 [20:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 56 09.04.2024 20:13 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26924 ФПД: 206539737926305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T201305&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26924&fm=206539737926305&tin=02508201610067®Number=0000000000091578&sum=100000 [20:12:44]StoreToDocumentArchive [20:12:44]shift 315 fd 26924 [20:12:44]save to /storage/0315/doc_00026924 [20:12:44]save last doc name /storage/0315/doc_00026924 to /storage/kkm_last_doc_name [20:12:44]save OK [20:12:44]Clear old archive folders... [20:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:44]tlvbuf is 00F754A0 [20:12:44]SAM_PROTO_ClearQueue [20:12:44]wFMCommunicate request_size=4 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 09 00 00 [20:12:44]Write to MH i2c: E2 08 00 20 5D 80 09 00 00 00 00 00 00 EF [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 20 5D 00 90 00 F1 [20:12:44]RAPDU: 90 00 [20:12:44]wFMCommunicate OK [20:12:44]SAM_PROTO_ClearQueue done [20:12:44]KKMCreateOFDPacket [20:12:44]OFDProtocolAddRootSTLVToBuf [20:12:44]FM_MakeSignedData [20:12:44]FM_MakeSignedData [20:12:44]SAM_PROTO_SignData [20:12:44]wFMCommunicate request_size=4 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 0D 01 02 [20:12:44]Write to MH i2c: E2 08 00 21 5D 80 0D 01 02 00 00 00 00 F7 [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 21 5D 00 90 00 F2 [20:12:44]RAPDU: 90 00 [20:12:44]wFMCommunicate OK [20:12:44]wFMCommunicate request_size=255 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 A1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2C 69 00 00 35 04 06 00 BB [20:12:44]Write to MH i2c: E2 02 01 22 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 A1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2C 69 00 00 35 04 06 00 BB 00 00 9E [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 22 5D 00 90 00 F3 [20:12:44]RAPDU: 90 00 [20:12:44]wFMCommunicate OK [20:12:44]wFMCommunicate request_size=10 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 0D 02 02 05 D8 C7 B6 0A A1 [20:12:44]Write to MH i2c: E2 0D 00 23 5D 80 0D 02 02 05 00 D8 C7 B6 0A A1 00 00 04 [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 03 00 23 5D 00 90 00 F4 [20:12:44]RAPDU: 90 00 [20:12:44]wFMCommunicate OK [20:12:44]wFMCommunicate request_size=4 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 0D 03 02 [20:12:44]Write to MH i2c: E2 08 00 24 5D 80 0D 03 02 00 00 00 00 FC [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 0B 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 0B 00 24 5D 00 48 0C CE 9C 27 AB 20 FA 90 00 A7 [20:12:44]RAPDU: 48 0C CE 9C 27 AB 20 FA 90 00 [20:12:44]wFMCommunicate OK [20:12:44]SAM_PROTO_SignData done [20:12:44]FM_MakeSignedData done [20:12:44]CreateOFDProtocolMessage [20:12:44]wFMCommunicate request_size=4 [20:12:44]MH_SAM_APDU [20:12:44]CAPDU: 80 11 00 00 [20:12:44]Write to MH i2c: E2 08 00 25 5D 80 11 00 00 00 00 00 00 FC [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:44]Read from MH i2c: E2 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 17 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: E2 17 00 25 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 54 [20:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [20:12:44]wFMCommunicate OK [20:12:44]CreateOFDProtocolMessage done [20:12:44]OFDSenderStorePacket 26924 [20:12:44]StoreOFDPacket docnum=26924 [20:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 C3 2E 07 01 46 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 A1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2C 69 00 00 35 04 06 00 BB D8 C7 B6 0A A1 48 0C CE 9C 27 AB 20 FA [20:12:44]CheckFolder [20:12:44]dirname=/storage/ofd_packets [20:12:44]CheckFolder done [20:12:44]ProducePacketName [20:12:44]name=ofd_packets/00026924 [20:12:44]NVStorageSaveData ofd_packets/00026924 [20:12:44]File name is /storage/ofd_packets/00026924 [20:12:44]Write 301 bytes [20:12:44]NVStorageSaveData done [20:12:44]OFDSenderStorePacket done [20:12:44]KKMCreateOFDPacket done [20:12:44]NVStorageSaveData kkm_last_timestamp [20:12:44]File name is /storage/kkm_last_timestamp [20:12:44]Write 4 bytes [20:12:44]NVStorageSaveData done [20:12:44]ExternCall_PrintAddStr [20:12:44]wPrintStart [20:12:44]Write to MH i2c: 01 00 00 26 5D 83 [20:12:44]Write i2c OK [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 [20:12:44]MH_I2C_Read... [20:12:44]Read from MH i2c: 01 07 00 26 5D 00 00 00 00 00 FF 0F 98 [20:12:44]RasterBufferAndPrint [20:12:44]line Счет N : (1)359669 [20:12:44]line ИНН: 02508201610067 [20:12:44]line Контрольно-Кассовый Чек [20:12:44]line ПРОДАЖА [20:12:44]line ТРК (МРК, ГНК) : 53 [20:12:44]line Товар: 2710124500 [20:12:44]line Аи-95-К-5 [20:12:44]line 13.910 * 71.90 [20:12:44]line = 1000.13 [20:12:44]line НДС 12% НСП 1% [20:12:44]line > о реализуемом товаре [20:12:44]line ОКРУГЛЕНИЕ: -0.13 [20:12:44]line ИТОГО: 1000.00 [20:12:44]line Внесено: 1000.00 [20:12:44]line СДАЧА: 0.00 [20:12:44]line НСП 1% : 8.85 [20:12:44]line НДС 12% : 106.21 [20:12:44]line Наличными: 1000.00 [20:12:44]line Безнал.: 0.00 [20:12:44]line Место: АЗС № 122 "Партнер Нефть" [20:12:44]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [20:12:44]line СНО: Общий режим [20:12:44]line Чек 56 09.04.2024 20:13 [20:12:44]line Смена: 315 ФФД: 1.0 [20:12:44]line ЗНМ: 0300000147 [20:12:44]line РНМ: 0000000000091578 [20:12:44]line Версия ККМ: 001 [20:12:44]line ФМ: 0000000000874657 [20:12:44]line ФД: 26924 [20:12:44]line ФПД: 206539737926305 [20:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T201305&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26924&fm=206539737926305&tin=02508201610067®Number=0000000000091578&sum=100000 [20:12:44]OFD Sender: Processing packet 26924 [packets to send 44, broken 43] [20:12:44]ProducePacketName [20:12:44]name=ofd_packets/00026924 [20:12:44]OFD Sender: To server: pG, [20:12:44]CommunicateWithHost lk.salyk.kg:30040 [20:12:44]ConnectInit lk.salyk.kg [20:12:44]written 0, free lines is 4095 [20:12:44]Connected sock=10 [20:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 C3 2E 07 01 46 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 A1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2C 69 00 00 35 04 06 00 BB D8 C7 B6 0A A1 48 0C CE 9C 27 AB 20 FA [20:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 93 74 47 00 99 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2C 69 00 00 F4 03 04 00 B6 48 15 66 B6 04 01 00 00 7D 82 7D BA 9B D0 F9 2C [20:12:45]CommunicateWithHost err = 0 [20:12:45]CheckOFDResponse [20:12:45]1017 (14) - 77093643461234 [20:12:45]1041 (16) - 0000000000874657 [20:12:45]1040 (4) - 26924 [20:12:45]1012 (4) - 09.04.2024 13:55 [20:12:45]1206 (1) - 0 [20:12:45]OFD Sender: Remove packet 26924 [20:12:45]ProducePacketName [20:12:45]name=ofd_packets/00026924 [20:12:45]NVStorageDeleteData [20:12:45]Write to MH i2c: 01 00 00 51 5D AE [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: 01 07 00 51 5D 00 00 00 00 00 76 0C 37 [20:12:45]RasterBufferAndPrint [20:12:45]line [20:12:45]line [20:12:45]line [20:12:45]line [20:12:45]line [20:12:45]written 0, free lines is 3192 [20:12:45]MH_Cut [20:12:45]Write to MH i2c: D1 01 00 58 5D 01 87 [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: D1 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: D1 01 00 [20:12:45]MH_I2C_Read... [20:12:45]Read from MH i2c: D1 01 00 58 5D 00 86 [20:12:45]Write to MH i2c: 01 00 00 59 5D B6 [20:12:45]Write i2c OK [20:12:45]MH_I2C_Read... [20:12:45]OFD Sender: No OFD packet to send [20:12:46]*** Cut start [20:12:46]*** Partial cut [20:12:46]*** CUTSNS_PIN = 1 [20:12:46]*** CUTSNS_PIN = 0 [20:12:46]*** Brake cut motor [20:12:47]Read from MH i2c: 01 [20:12:47]MH_I2C_Read... [20:12:47]*** Stop cut motor [20:12:47]*** Cut end [20:12:47]Read from MH i2c: 01 07 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: 01 07 00 59 5D 00 00 00 00 00 FF 0F CB [20:12:47]process_action close_receipt done [20:12:47]requested_data is exist [20:12:47]produce_requested_data [20:12:47]requested_item fm.sn is exist - process it [20:12:47]wFMCommunicate request_size=4 [20:12:47]MH_SAM_APDU [20:12:47]CAPDU: 80 11 00 00 [20:12:47]Write to MH i2c: E2 08 00 5A 5D 80 11 00 00 00 00 00 00 31 [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:47]Read from MH i2c: E2 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 17 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 17 00 5A 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 89 [20:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [20:12:47]wFMCommunicate OK [20:12:47]requested_item fd.num is exist - process it [20:12:47]SAM_PROTO_GetFieldsCounters [20:12:47]wFMCommunicate request_size=4 [20:12:47]MH_SAM_APDU [20:12:47]CAPDU: 80 13 00 00 [20:12:47]Write to MH i2c: E2 08 00 5B 5D 80 13 00 00 00 00 00 00 34 [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:47]Read from MH i2c: E2 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 62 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 62 00 5B 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2C 69 00 00 0E 04 04 00 3B 01 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 D8 [20:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2C 69 00 00 0E 04 04 00 3B 01 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 [20:12:47]wFMCommunicate OK [20:12:47]SAM_PROTO_GetFieldsCounters done [20:12:47]requested_item shift.num is exist - process it [20:12:47]requested_item shift.opened is exist - process it [20:12:47]req_shift_opened [20:12:47]FM_GetShiftState [20:12:47]SAM_PROTO_GetShiftState [20:12:47]wFMCommunicate request_size=4 [20:12:47]MH_SAM_APDU [20:12:47]CAPDU: 80 13 01 00 [20:12:47]Write to MH i2c: E2 08 00 5C 5D 80 13 01 00 00 00 00 00 36 [20:12:47]Write i2c OK [20:12:47]MH_I2C_Read... [20:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:47]Read from MH i2c: E2 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 0E 00 [20:12:47]MH_I2C_Read... [20:12:47]Read from MH i2c: E2 0E 00 5C 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 A1 [20:12:47]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [20:12:47]wFMCommunicate OK [20:12:47]SAM_PROTO_GetShiftState done [20:12:47]FM_GetShiftState done [20:12:47]req_shift_opened done [20:12:47]requested_item shift.open_date is exist - process it [20:12:47]req_shift_open_date [20:12:47]req_shift_open_date done [20:12:47]produce_requested_data done [20:12:47]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26924,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [20:12:47]process_action_free close_receipt [20:12:47]json_value_free [20:12:47]json_value_free done [20:12:47]process_json_proto returns [20:12:47]Send response to host [20:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26924,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [20:12:47]free response buf [20:12:47]execute_script done [20:12:47]execute_script returns [20:12:47]free content buf [20:12:47]Sock 8.Close socket [20:12:47]Sock 8.Thread stoped [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]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:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]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:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:19]accept exits with 9 [20:53:19]New connection [20:53:19]New thread 3067014500 created [20:53:19]Thread 3066871140 joined [20:53:19]Waiting for new connection... [20:53:19] Sock 9.Parse request [20:53:19]Sock 9.Check first char [20:53:19]Sock 9.First char is OK [20:53:19]request: POST /json_proto HTTP/1.0 [20:53:19]Method: POST [20:53:19]URL: /json_proto [20:53:19]Method is POST - this is cgi request [20:53:19]url: /json_proto [20:53:19]query_string will be loaded in cgi processing [20:53:19]execute_cgi json_proto POST (null) [20:53:19]execute_cgi path=json_proto method=POST [20:53:19]POST find Content-Length [20:53:19]Host: 172.17.35.3:8080 [20:53:19]Content-Length: 682 [20:53:19]Content-Type: application/json [20:53:19] [20:53:19]POST finish read [20:53:19]Found Content-Length = 682 [20:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:19]execute_script... [20:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 6.970, "sum" : 500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:19]POST & json_proto [20:53:19]process_json_proto [20:53:19]json parsed OK: [20:53:19]protocol is kg_v1.0 [20:53:19]action value=close_receipt [20:53:19]process_action close_receipt [20:53:19]cmd_close_receipt [20:53:19]MH_GetDate [20:53:19]Write to MH i2c: F0 00 00 5D 5D A9 [20:53:19]Write i2c OK [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: F0 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: F0 09 00 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: F0 09 00 5D 5D 00 D5 AA 15 66 2B 11 66 64 B2 [20:53:19]GetLastDocTimeStamp 1712693585 [20:53:19]current date 1712696021 [20:53:19]FM_GetShiftState [20:53:19]SAM_PROTO_GetShiftState [20:53:19]wFMCommunicate request_size=4 [20:53:19]MH_SAM_APDU [20:53:19]CAPDU: 80 13 01 00 [20:53:19]Write to MH i2c: E2 08 00 5E 5D 80 13 01 00 00 00 00 00 38 [20:53:19]Write i2c OK [20:53:19]MH_I2C_Read... [20:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:19]Read from MH i2c: E2 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 0E 00 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 0E 00 5E 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 A3 [20:53:19]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [20:53:19]wFMCommunicate OK [20:53:19]SAM_PROTO_GetShiftState done [20:53:19]FM_GetShiftState done [20:53:19]opened in 1712622936 [20:53:19]opened+sec_in_day 1712709336 [20:53:19]quantity*price = 50044 [20:53:19]sum+1 = 50046 [20:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 57 09.04.2024 20:53 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26925 ФПД: 181376960727744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T205341&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26925&fm=181376960727744&tin=02508201610067®Number=0000000000091578&sum=50000 [20:53:20]StoreToDocumentArchive [20:53:20]shift 315 fd 26925 [20:53:20]save to /storage/0315/doc_00026925 [20:53:20]save last doc name /storage/0315/doc_00026925 to /storage/kkm_last_doc_name [20:53:20]save OK [20:53:20]Clear old archive folders... [20:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:53:20]tlvbuf is 00F88560 [20:53:20]SAM_PROTO_ClearQueue [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 09 00 00 [20:53:20]Write to MH i2c: E2 08 00 6B 5D 80 09 00 00 00 00 00 00 3A [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 6B 5D 00 90 00 3C [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]SAM_PROTO_ClearQueue done [20:53:20]KKMCreateOFDPacket [20:53:20]OFDProtocolAddRootSTLVToBuf [20:53:20]FM_MakeSignedData [20:53:20]FM_MakeSignedData [20:53:20]SAM_PROTO_SignData [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 01 02 [20:53:20]Write to MH i2c: E2 08 00 6C 5D 80 0D 01 02 00 00 00 00 42 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 6C 5D 00 90 00 3D [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]wFMCommunicate request_size=255 [20:53:20]MH_SAM_APDU [20:53:20]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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 D5 AA 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2D 69 00 00 35 04 06 00 [20:53:20]Write to MH i2c: E2 02 01 6D 5D 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 D5 AA 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2D 69 00 00 35 04 06 00 00 00 0B [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 6D 5D 00 90 00 3E [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]wFMCommunicate request_size=11 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 02 02 06 A4 F6 1D 50 8A C0 [20:53:20]Write to MH i2c: E2 0E 00 6E 5D 80 0D 02 02 06 00 A4 F6 1D 50 8A C0 00 00 A2 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 6E 5D 00 90 00 3F [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 03 02 [20:53:20]Write to MH i2c: E2 08 00 6F 5D 80 0D 03 02 00 00 00 00 47 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 0B 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 0B 00 6F 5D 00 77 53 E8 86 FD 9D 40 39 90 00 93 [20:53:20]RAPDU: 77 53 E8 86 FD 9D 40 39 90 00 [20:53:20]wFMCommunicate OK [20:53:20]SAM_PROTO_SignData done [20:53:20]FM_MakeSignedData done [20:53:20]CreateOFDProtocolMessage [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 11 00 00 [20:53:20]Write to MH i2c: E2 08 00 70 5D 80 11 00 00 00 00 00 00 47 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 17 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 17 00 70 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 9F [20:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [20:53:20]wFMCommunicate OK [20:53:20]CreateOFDProtocolMessage done [20:53:20]OFDSenderStorePacket 26925 [20:53:20]StoreOFDPacket docnum=26925 [20:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 A4 AF 08 01 FE F0 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 D5 AA 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2D 69 00 00 35 04 06 00 A4 F6 1D 50 8A C0 77 53 E8 86 FD 9D 40 39 [20:53:20]CheckFolder [20:53:20]dirname=/storage/ofd_packets [20:53:20]CheckFolder done [20:53:20]ProducePacketName [20:53:20]name=ofd_packets/00026925 [20:53:20]NVStorageSaveData ofd_packets/00026925 [20:53:20]File name is /storage/ofd_packets/00026925 [20:53:20]Write 302 bytes [20:53:20]NVStorageSaveData done [20:53:20]OFDSenderStorePacket done [20:53:20]KKMCreateOFDPacket done [20:53:20]NVStorageSaveData kkm_last_timestamp [20:53:20]File name is /storage/kkm_last_timestamp [20:53:20]Write 4 bytes [20:53:20]NVStorageSaveData done [20:53:20]ExternCall_PrintAddStr [20:53:20]wPrintStart [20:53:20]Write to MH i2c: 01 00 00 71 5D CE [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: 01 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: 01 07 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: 01 07 00 71 5D 00 00 00 00 00 FF 0F E3 [20:53:20]RasterBufferAndPrint [20:53:20]line Счет N : (1)359670 [20:53:20]line ИНН: 02508201610067 [20:53:20]line Контрольно-Кассовый Чек [20:53:20]line ПРОДАЖА [20:53:20]line ТРК (МРК, ГНК) : 21 [20:53:20]line Товар: 2710194210 [20:53:20]line ДТ(л)-К-5 [20:53:21]line 6.970 * 71.80 [20:53:21]line = 500.45 [20:53:21]line НДС 12% НСП 1% [20:53:21]line > о реализуемом товаре [20:53:21]line ОКРУГЛЕНИЕ: -0.45 [20:53:21]line ИТОГО: 500.00 [20:53:21]line Внесено: 500.00 [20:53:21]line СДАЧА: 0.00 [20:53:21]line НСП 1% : 4.43 [20:53:21]line НДС 12% : 53.14 [20:53:21]line Наличными: 500.00 [20:53:21]line Безнал.: 0.00 [20:53:21]line Место: АЗС № 122 "Партнер Нефть" [20:53:21]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [20:53:21]line СНО: Общий режим [20:53:21]line Чек 57 09.04.2024 20:53 [20:53:21]line Смена: 315 ФФД: 1.0 [20:53:21]line ЗНМ: 0300000147 [20:53:21]line РНМ: 0000000000091578 [20:53:21]line Версия ККМ: 001 [20:53:21]line ФМ: 0000000000874657 [20:53:21]line ФД: 26925 [20:53:21]line ФПД: 181376960727744 [20:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T205341&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26925&fm=181376960727744&tin=02508201610067®Number=0000000000091578&sum=50000 [20:53:21]OFD Sender: Processing packet 26925 [packets to send 44, broken 43] [20:53:21]ProducePacketName [20:53:21]name=ofd_packets/00026925 [20:53:21]OFD Sender: To server: pG, [20:53:21]CommunicateWithHost lk.salyk.kg:30040 [20:53:21]ConnectInit lk.salyk.kg [20:53:21]written 0, free lines is 4095 [20:53:21]Connected sock=10 [20:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 A4 AF 08 01 FE F0 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 3A 1B 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 7D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 39 00 00 00 F4 03 04 00 D5 AA 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2D 69 00 00 35 04 06 00 A4 F6 1D 50 8A C0 77 53 E8 86 FD 9D 40 39 [20:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 D6 D5 47 00 3F 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2D 69 00 00 F4 03 04 00 3B 52 15 66 B6 04 01 00 00 59 34 9D 3B 21 50 26 3F [20:53:21]CommunicateWithHost err = 0 [20:53:21]CheckOFDResponse [20:53:21]1017 (14) - 77093643461234 [20:53:21]1041 (16) - 0000000000874657 [20:53:21]1040 (4) - 26925 [20:53:21]1012 (4) - 09.04.2024 14:35 [20:53:21]1206 (1) - 0 [20:53:21]OFD Sender: Remove packet 26925 [20:53:21]ProducePacketName [20:53:21]name=ofd_packets/00026925 [20:53:21]NVStorageDeleteData [20:53:21]Write to MH i2c: 01 00 00 9C 5D F9 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 9C 5D 00 00 00 00 00 70 0C 7C [20:53:21]RasterBufferAndPrint [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]written 0, free lines is 3186 [20:53:21]MH_Cut [20:53:21]Write to MH i2c: D1 01 00 A3 5D 01 D2 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: D1 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: D1 01 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: D1 01 00 A3 5D 00 D1 [20:53:21]Write to MH i2c: 01 00 00 A4 5D 01 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:22]OFD Sender: No OFD packet to send [20:53:22]*** Cut start [20:53:22]*** Partial cut [20:53:22]*** CUTSNS_PIN = 1 [20:53:22]*** CUTSNS_PIN = 0 [20:53:23]*** Brake cut motor [20:53:23]Read from MH i2c: 01 [20:53:23]MH_I2C_Read... [20:53:23]*** Stop cut motor [20:53:23]*** Cut end [20:53:23]Read from MH i2c: 01 07 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: 01 07 00 A4 5D 00 00 00 00 00 FF 0F 16 [20:53:23]process_action close_receipt done [20:53:23]requested_data is exist [20:53:23]produce_requested_data [20:53:23]requested_item fm.sn is exist - process it [20:53:23]wFMCommunicate request_size=4 [20:53:23]MH_SAM_APDU [20:53:23]CAPDU: 80 11 00 00 [20:53:23]Write to MH i2c: E2 08 00 A5 5D 80 11 00 00 00 00 00 00 7C [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:23]Read from MH i2c: E2 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 17 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 17 00 A5 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D4 [20:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [20:53:23]wFMCommunicate OK [20:53:23]requested_item fd.num is exist - process it [20:53:23]SAM_PROTO_GetFieldsCounters [20:53:23]wFMCommunicate request_size=4 [20:53:23]MH_SAM_APDU [20:53:23]CAPDU: 80 13 00 00 [20:53:23]Write to MH i2c: E2 08 00 A6 5D 80 13 00 00 00 00 00 00 7F [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:23]Read from MH i2c: E2 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 62 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 62 00 A6 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2D 69 00 00 0E 04 04 00 3B 01 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 27 [20:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2D 69 00 00 0E 04 04 00 3B 01 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 [20:53:23]wFMCommunicate OK [20:53:23]SAM_PROTO_GetFieldsCounters done [20:53:23]requested_item shift.num is exist - process it [20:53:23]requested_item shift.opened is exist - process it [20:53:23]req_shift_opened [20:53:23]FM_GetShiftState [20:53:23]SAM_PROTO_GetShiftState [20:53:23]wFMCommunicate request_size=4 [20:53:23]MH_SAM_APDU [20:53:23]CAPDU: 80 13 01 00 [20:53:23]Write to MH i2c: E2 08 00 A7 5D 80 13 01 00 00 00 00 00 81 [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:23]Read from MH i2c: E2 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 0E 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 0E 00 A7 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 EC [20:53:23]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [20:53:23]wFMCommunicate OK [20:53:23]SAM_PROTO_GetShiftState done [20:53:23]FM_GetShiftState done [20:53:23]req_shift_opened done [20:53:23]requested_item shift.open_date is exist - process it [20:53:23]req_shift_open_date [20:53:23]req_shift_open_date done [20:53:23]produce_requested_data done [20:53:23]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26925,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [20:53:23]process_action_free close_receipt [20:53:23]json_value_free [20:53:23]json_value_free done [20:53:23]process_json_proto returns [20:53:23]Send response to host [20:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26925,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [20:53:23]free response buf [20:53:23]execute_script done [20:53:23]execute_script returns [20:53:23]free content buf [20:53:23]Sock 9.Close socket [20:53:23]Sock 9.Thread stoped [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:41]accept exits with 8 [20:54:41]New connection [20:54:41]New thread 3066871140 created [20:54:41]Thread 3067014500 joined [20:54:41]Waiting for new connection... [20:54:41] Sock 8.Parse request [20:54:41]Sock 8.Check first char [20:54:41]Sock 8.First char is OK [20:54:41]request: POST /json_proto HTTP/1.0 [20:54:41]Method: POST [20:54:41]URL: /json_proto [20:54:41]Method is POST - this is cgi request [20:54:41]url: /json_proto [20:54:41]query_string will be loaded in cgi processing [20:54:41]execute_cgi json_proto POST (null) [20:54:41]execute_cgi path=json_proto method=POST [20:54:41]POST find Content-Length [20:54:41]Host: 172.17.35.3:8080 [20:54:41]Content-Length: 677 [20:54:41]Content-Type: application/json [20:54:41] [20:54:41]POST finish read [20:54:41]Found Content-Length = 677 [20:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 6.990, "sum" : 443.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 443.00, "total" : 443.00, "payments": [ { "type": 0, "sum" : 443.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:41]execute_script... [20:54:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 6.990, "sum" : 443.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 443.00, "total" : 443.00, "payments": [ { "type": 0, "sum" : 443.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:41]POST & json_proto [20:54:41]process_json_proto [20:54:41]json parsed OK: [20:54:41]protocol is kg_v1.0 [20:54:41]action value=close_receipt [20:54:41]process_action close_receipt [20:54:41]cmd_close_receipt [20:54:41]MH_GetDate [20:54:41]Write to MH i2c: F0 00 00 A8 5D F4 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: F0 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: F0 09 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: F0 09 00 A8 5D 00 28 AB 15 66 2B 11 66 64 51 [20:54:41]GetLastDocTimeStamp 1712696021 [20:54:41]current date 1712696104 [20:54:41]FM_GetShiftState [20:54:41]SAM_PROTO_GetShiftState [20:54:41]wFMCommunicate request_size=4 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 13 01 00 [20:54:41]Write to MH i2c: E2 08 00 A9 5D 80 13 01 00 00 00 00 00 83 [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0E 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0E 00 A9 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 EE [20:54:41]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [20:54:41]wFMCommunicate OK [20:54:41]SAM_PROTO_GetShiftState done [20:54:41]FM_GetShiftState done [20:54:41]opened in 1712622936 [20:54:41]opened+sec_in_day 1712709336 [20:54:41]quantity*price = 44316 [20:54:41]sum+1 = 44318 [20:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 443.00 Внесено: 443.00 СДАЧА: 0.00 НСП 1% : 3.92 НДС 12% : 47.06 Наличными: 443.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 58 09.04.2024 20:55 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26926 ФПД: 120274116511149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T205504&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26926&fm=120274116511149&tin=02508201610067®Number=0000000000091578&sum=44300 [20:54:43]StoreToDocumentArchive [20:54:43]shift 315 fd 26926 [20:54:43]save to /storage/0315/doc_00026926 [20:54:43]save last doc name /storage/0315/doc_00026926 to /storage/kkm_last_doc_name [20:54:43]save OK [20:54:43]Clear old archive folders... [20:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:43]tlvbuf is 00EEB810 [20:54:43]SAM_PROTO_ClearQueue [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 09 00 00 [20:54:43]Write to MH i2c: E2 08 00 B6 5D 80 09 00 00 00 00 00 00 85 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 B6 5D 00 90 00 87 [20:54:43]RAPDU: 90 00 [20:54:43]wFMCommunicate OK [20:54:43]SAM_PROTO_ClearQueue done [20:54:43]KKMCreateOFDPacket [20:54:43]OFDProtocolAddRootSTLVToBuf [20:54:43]FM_MakeSignedData [20:54:43]FM_MakeSignedData [20:54:43]SAM_PROTO_SignData [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 0D 01 02 [20:54:43]Write to MH i2c: E2 08 00 B7 5D 80 0D 01 02 00 00 00 00 8D [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 B7 5D 00 90 00 88 [20:54:43]RAPDU: 90 00 [20:54:43]wFMCommunicate OK [20:54:43]wFMCommunicate request_size=255 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 1B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 1D AD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 12 00 00 00 00 07 04 06 00 0C AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 28 AB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2E 69 00 00 35 04 06 00 6D [20:54:43]Write to MH i2c: E2 02 01 B8 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 1B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 1D AD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 12 00 00 00 00 07 04 06 00 0C AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 28 AB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2E 69 00 00 35 04 06 00 6D 00 00 E7 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 B8 5D 00 90 00 89 [20:54:43]RAPDU: 90 00 [20:54:43]wFMCommunicate OK [20:54:43]wFMCommunicate request_size=10 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 0D 02 02 05 63 7F FD 85 AD [20:54:43]Write to MH i2c: E2 0D 00 B9 5D 80 0D 02 02 05 00 63 7F FD 85 AD 00 00 AB [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 03 00 B9 5D 00 90 00 8A [20:54:43]RAPDU: 90 00 [20:54:43]wFMCommunicate OK [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 0D 03 02 [20:54:43]Write to MH i2c: E2 08 00 BA 5D 80 0D 03 02 00 00 00 00 92 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 0B 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 0B 00 BA 5D 00 59 32 22 5D CE 0F 6B 6B 90 00 50 [20:54:43]RAPDU: 59 32 22 5D CE 0F 6B 6B 90 00 [20:54:43]wFMCommunicate OK [20:54:43]SAM_PROTO_SignData done [20:54:43]FM_MakeSignedData done [20:54:43]CreateOFDProtocolMessage [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 11 00 00 [20:54:43]Write to MH i2c: E2 08 00 BB 5D 80 11 00 00 00 00 00 00 92 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 17 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 17 00 BB 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 EA [20:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [20:54:43]wFMCommunicate OK [20:54:43]CreateOFDProtocolMessage done [20:54:43]OFDSenderStorePacket 26926 [20:54:43]StoreOFDPacket docnum=26926 [20:54:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B1 CF 07 01 02 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 1B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 1D AD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 12 00 00 00 00 07 04 06 00 0C AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 28 AB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2E 69 00 00 35 04 06 00 6D 63 7F FD 85 AD 59 32 22 5D CE 0F 6B 6B [20:54:43]CheckFolder [20:54:43]dirname=/storage/ofd_packets [20:54:43]CheckFolder done [20:54:43]ProducePacketName [20:54:43]name=ofd_packets/00026926 [20:54:43]NVStorageSaveData ofd_packets/00026926 [20:54:43]File name is /storage/ofd_packets/00026926 [20:54:43]Write 301 bytes [20:54:43]NVStorageSaveData done [20:54:43]OFDSenderStorePacket done [20:54:43]KKMCreateOFDPacket done [20:54:43]NVStorageSaveData kkm_last_timestamp [20:54:43]File name is /storage/kkm_last_timestamp [20:54:43]Write 4 bytes [20:54:43]NVStorageSaveData done [20:54:43]ExternCall_PrintAddStr [20:54:43]wPrintStart [20:54:43]Write to MH i2c: 01 00 00 BC 5D 19 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 BC 5D 00 00 00 00 00 FF 0F 2E [20:54:43]RasterBufferAndPrint [20:54:43]line Счет N : (1)359671 [20:54:43]line ИНН: 02508201610067 [20:54:43]line Контрольно-Кассовый Чек [20:54:43]line ПРОДАЖА [20:54:43]line ТРК (МРК, ГНК) : 51 [20:54:43]line Товар: 2710124130 [20:54:43]line Аи-92-К-5 [20:54:43]line 6.990 * 63.40 [20:54:43]line = 443.17 [20:54:43]line НДС 12% НСП 1% [20:54:43]line > о реализуемом товаре [20:54:43]line ОКРУГЛЕНИЕ: -0.17 [20:54:43]line ИТОГО: 443.00 [20:54:43]line Внесено: 443.00 [20:54:43]line СДАЧА: 0.00 [20:54:43]line НСП 1% : 3.92 [20:54:43]line НДС 12% : 47.06 [20:54:43]line Наличными: 443.00 [20:54:43]line Безнал.: 0.00 [20:54:43]line Место: АЗС № 122 "Партнер Нефть" [20:54:43]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [20:54:43]line СНО: Общий режим [20:54:43]line Чек 58 09.04.2024 20:55 [20:54:43]line Смена: 315 ФФД: 1.0 [20:54:43]line ЗНМ: 0300000147 [20:54:43]line РНМ: 0000000000091578 [20:54:43]line Версия ККМ: 001 [20:54:43]line ФМ: 0000000000874657 [20:54:43]line ФД: 26926 [20:54:43]line ФПД: 120274116511149 [20:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T205504&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26926&fm=120274116511149&tin=02508201610067®Number=0000000000091578&sum=44300 [20:54:43]OFD Sender: Processing packet 26926 [packets to send 44, broken 43] [20:54:43]ProducePacketName [20:54:43]name=ofd_packets/00026926 [20:54:43]OFD Sender: To server: pG, [20:54:43]CommunicateWithHost lk.salyk.kg:30040 [20:54:43]ConnectInit lk.salyk.kg [20:54:43]written 0, free lines is 4095 [20:54:43]Connected sock=10 [20:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 B1 CF 07 01 02 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 1B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 1D AD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C AD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 12 00 00 00 00 07 04 06 00 0C AD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 28 AB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2E 69 00 00 35 04 06 00 6D 63 7F FD 85 AD 59 32 22 5D CE 0F 6B 6B [20:54:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 BE 6C 47 00 F4 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2E 69 00 00 F4 03 04 00 8D 52 15 66 B6 04 01 00 00 C7 27 3D 45 EC DA DA 64 [20:54:44]CommunicateWithHost err = 0 [20:54:44]CheckOFDResponse [20:54:44]1017 (14) - 77093643461234 [20:54:44]1041 (16) - 0000000000874657 [20:54:44]1040 (4) - 26926 [20:54:44]1012 (4) - 09.04.2024 14:37 [20:54:44]1206 (1) - 0 [20:54:44]OFD Sender: Remove packet 26926 [20:54:44]ProducePacketName [20:54:44]name=ofd_packets/00026926 [20:54:44]NVStorageDeleteData [20:54:44]Write to MH i2c: 01 00 00 E7 5D 44 [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: 01 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: 01 07 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: 01 07 00 E7 5D 00 00 00 00 00 76 0C CD [20:54:44]RasterBufferAndPrint [20:54:44]line [20:54:44]line [20:54:44]line [20:54:44]line [20:54:44]line [20:54:44]written 0, free lines is 3193 [20:54:44]MH_Cut [20:54:44]Write to MH i2c: D1 01 00 EE 5D 01 1D [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: D1 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: D1 01 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: D1 01 00 EE 5D 00 1C [20:54:44]Write to MH i2c: 01 00 00 EF 5D 4C [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]OFD Sender: No OFD packet to send [20:54:45]*** Cut start [20:54:45]*** Partial cut [20:54:45]*** CUTSNS_PIN = 1 [20:54:45]*** CUTSNS_PIN = 0 [20:54:45]*** Brake cut motor [20:54:46]Read from MH i2c: 01 [20:54:46]MH_I2C_Read... [20:54:46]*** Stop cut motor [20:54:46]*** Cut end [20:54:46]Read from MH i2c: 01 07 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: 01 07 00 EF 5D 00 00 00 00 00 FF 0F 61 [20:54:46]process_action close_receipt done [20:54:46]requested_data is exist [20:54:46]produce_requested_data [20:54:46]requested_item fm.sn is exist - process it [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 11 00 00 [20:54:46]Write to MH i2c: E2 08 00 F0 5D 80 11 00 00 00 00 00 00 C7 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 17 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 17 00 F0 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 1F [20:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [20:54:46]wFMCommunicate OK [20:54:46]requested_item fd.num is exist - process it [20:54:46]SAM_PROTO_GetFieldsCounters [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 13 00 00 [20:54:46]Write to MH i2c: E2 08 00 F1 5D 80 13 00 00 00 00 00 00 CA [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 62 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 62 00 F1 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2E 69 00 00 0E 04 04 00 3B 01 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 76 [20:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2E 69 00 00 0E 04 04 00 3B 01 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 [20:54:46]wFMCommunicate OK [20:54:46]SAM_PROTO_GetFieldsCounters done [20:54:46]requested_item shift.num is exist - process it [20:54:46]requested_item shift.opened is exist - process it [20:54:46]req_shift_opened [20:54:46]FM_GetShiftState [20:54:46]SAM_PROTO_GetShiftState [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 13 01 00 [20:54:46]Write to MH i2c: E2 08 00 F2 5D 80 13 01 00 00 00 00 00 CC [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 0E 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 0E 00 F2 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 37 [20:54:46]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [20:54:46]wFMCommunicate OK [20:54:46]SAM_PROTO_GetShiftState done [20:54:46]FM_GetShiftState done [20:54:46]req_shift_opened done [20:54:46]requested_item shift.open_date is exist - process it [20:54:46]req_shift_open_date [20:54:46]req_shift_open_date done [20:54:46]produce_requested_data done [20:54:46]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26926,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [20:54:46]process_action_free close_receipt [20:54:46]json_value_free [20:54:46]json_value_free done [20:54:46]process_json_proto returns [20:54:46]Send response to host [20:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26926,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [20:54:46]free response buf [20:54:46]execute_script done [20:54:46]execute_script returns [20:54:46]free content buf [20:54:46]Sock 8.Close socket [20:54:46]Sock 8.Thread stoped [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:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]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:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]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:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:53]accept exits with 9 [21:15:53]New connection [21:15:53]New thread 3067014500 created [21:15:53]Thread 3066871140 joined [21:15:53]Waiting for new connection... [21:15:53] Sock 9.Parse request [21:15:53]Sock 9.Check first char [21:15:53]Sock 9.First char is OK [21:15:53]request: POST /json_proto HTTP/1.0 [21:15:53]Method: POST [21:15:53]URL: /json_proto [21:15:53]Method is POST - this is cgi request [21:15:53]url: /json_proto [21:15:53]query_string will be loaded in cgi processing [21:15:53]execute_cgi json_proto POST (null) [21:15:53]execute_cgi path=json_proto method=POST [21:15:53]POST find Content-Length [21:15:53]Host: 172.17.35.3:8080 [21:15:53]Content-Length: 682 [21:15:53]Content-Type: application/json [21:15:53] [21:15:53]POST finish read [21:15:53]Found Content-Length = 682 [21:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:53]execute_script... [21:15:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:53]POST & json_proto [21:15:53]process_json_proto [21:15:53]json parsed OK: [21:15:53]protocol is kg_v1.0 [21:15:53]action value=close_receipt [21:15:53]process_action close_receipt [21:15:53]cmd_close_receipt [21:15:53]MH_GetDate [21:15:53]Write to MH i2c: F0 00 00 F3 5D 3F [21:15:53]Write i2c OK [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: F0 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: F0 09 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: F0 09 00 F3 5D 00 1F B0 15 66 2B 11 66 64 98 [21:15:53]GetLastDocTimeStamp 1712696104 [21:15:53]current date 1712697375 [21:15:53]FM_GetShiftState [21:15:53]SAM_PROTO_GetShiftState [21:15:53]wFMCommunicate request_size=4 [21:15:53]MH_SAM_APDU [21:15:53]CAPDU: 80 13 01 00 [21:15:53]Write to MH i2c: E2 08 00 F4 5D 80 13 01 00 00 00 00 00 CE [21:15:53]Write i2c OK [21:15:53]MH_I2C_Read... [21:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:53]Read from MH i2c: E2 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 0E 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 0E 00 F4 5D 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 39 [21:15:53]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:15:53]wFMCommunicate OK [21:15:53]SAM_PROTO_GetShiftState done [21:15:53]FM_GetShiftState done [21:15:53]opened in 1712622936 [21:15:53]opened+sec_in_day 1712709336 [21:15:53]quantity*price = 400051 [21:15:53]sum+1 = 400053 [21:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 59 09.04.2024 21:16 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26927 ФПД: 137862603244505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T211615&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26927&fm=137862603244505&tin=02508201610067®Number=0000000000091578&sum=400000 [21:15:54]StoreToDocumentArchive [21:15:54]shift 315 fd 26927 [21:15:54]save to /storage/0315/doc_00026927 [21:15:54]save last doc name /storage/0315/doc_00026927 to /storage/kkm_last_doc_name [21:15:54]save OK [21:15:54]Clear old archive folders... [21:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:54]tlvbuf is 00EDB6D0 [21:15:54]SAM_PROTO_ClearQueue [21:15:54]wFMCommunicate request_size=4 [21:15:54]MH_SAM_APDU [21:15:54]CAPDU: 80 09 00 00 [21:15:54]Write to MH i2c: E2 08 00 01 5E 80 09 00 00 00 00 00 00 D1 [21:15:54]Write i2c OK [21:15:54]MH_I2C_Read... [21:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:54]Read from MH i2c: E2 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 01 5E 00 90 00 D3 [21:15:54]RAPDU: 90 00 [21:15:54]wFMCommunicate OK [21:15:54]SAM_PROTO_ClearQueue done [21:15:54]KKMCreateOFDPacket [21:15:54]OFDProtocolAddRootSTLVToBuf [21:15:54]FM_MakeSignedData [21:15:54]FM_MakeSignedData [21:15:54]SAM_PROTO_SignData [21:15:54]wFMCommunicate request_size=4 [21:15:54]MH_SAM_APDU [21:15:54]CAPDU: 80 0D 01 02 [21:15:54]Write to MH i2c: E2 08 00 02 5E 80 0D 01 02 00 00 00 00 D9 [21:15:54]Write i2c OK [21:15:54]MH_I2C_Read... [21:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:54]Read from MH i2c: E2 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 02 5E 00 90 00 D4 [21:15:54]RAPDU: 90 00 [21:15:54]wFMCommunicate OK [21:15:54]wFMCommunicate request_size=255 [21:15:54]MH_SAM_APDU [21:15:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F B0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2F 69 00 00 35 04 06 00 7D [21:15:54]Write to MH i2c: E2 02 01 03 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F B0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2F 69 00 00 35 04 06 00 7D 00 00 B7 [21:15:54]Write i2c OK [21:15:54]MH_I2C_Read... [21:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:54]Read from MH i2c: E2 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 03 5E 00 90 00 D5 [21:15:54]RAPDU: 90 00 [21:15:54]wFMCommunicate OK [21:15:54]wFMCommunicate request_size=10 [21:15:54]MH_SAM_APDU [21:15:54]CAPDU: 80 0D 02 02 05 62 A3 7E 83 D9 [21:15:54]Write to MH i2c: E2 0D 00 04 5E 80 0D 02 02 05 00 62 A3 7E 83 D9 00 00 C5 [21:15:54]Write i2c OK [21:15:54]MH_I2C_Read... [21:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:54]Read from MH i2c: E2 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 03 00 04 5E 00 90 00 D6 [21:15:54]RAPDU: 90 00 [21:15:54]wFMCommunicate OK [21:15:54]wFMCommunicate request_size=4 [21:15:54]MH_SAM_APDU [21:15:54]CAPDU: 80 0D 03 02 [21:15:54]Write to MH i2c: E2 08 00 05 5E 80 0D 03 02 00 00 00 00 DE [21:15:54]Write i2c OK [21:15:54]MH_I2C_Read... [21:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:54]Read from MH i2c: E2 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 0B 00 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 0B 00 05 5E 00 0A CE 69 5B E6 43 3E 7B 90 00 5D [21:15:54]RAPDU: 0A CE 69 5B E6 43 3E 7B 90 00 [21:15:54]wFMCommunicate OK [21:15:54]SAM_PROTO_SignData done [21:15:54]FM_MakeSignedData done [21:15:54]CreateOFDProtocolMessage [21:15:54]wFMCommunicate request_size=4 [21:15:54]MH_SAM_APDU [21:15:54]CAPDU: 80 11 00 00 [21:15:54]Write to MH i2c: E2 08 00 06 5E 80 11 00 00 00 00 00 00 DE [21:15:54]Write i2c OK [21:15:54]MH_I2C_Read... [21:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:54]Read from MH i2c: E2 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 17 00 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: E2 17 00 06 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 36 [21:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:15:54]wFMCommunicate OK [21:15:54]CreateOFDProtocolMessage done [21:15:54]OFDSenderStorePacket 26927 [21:15:54]StoreOFDPacket docnum=26927 [21:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 1F 19 07 01 91 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F B0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2F 69 00 00 35 04 06 00 7D 62 A3 7E 83 D9 0A CE 69 5B E6 43 3E 7B [21:15:54]CheckFolder [21:15:54]dirname=/storage/ofd_packets [21:15:54]CheckFolder done [21:15:54]ProducePacketName [21:15:54]name=ofd_packets/00026927 [21:15:54]NVStorageSaveData ofd_packets/00026927 [21:15:54]File name is /storage/ofd_packets/00026927 [21:15:54]Write 301 bytes [21:15:54]NVStorageSaveData done [21:15:54]OFDSenderStorePacket done [21:15:54]KKMCreateOFDPacket done [21:15:54]NVStorageSaveData kkm_last_timestamp [21:15:54]File name is /storage/kkm_last_timestamp [21:15:54]Write 4 bytes [21:15:54]NVStorageSaveData done [21:15:54]ExternCall_PrintAddStr [21:15:54]wPrintStart [21:15:54]Write to MH i2c: 01 00 00 07 5E 65 [21:15:54]Write i2c OK [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: 01 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: 01 07 00 [21:15:54]MH_I2C_Read... [21:15:54]Read from MH i2c: 01 07 00 07 5E 00 00 00 00 00 FF 0F 7A [21:15:54]RasterBufferAndPrint [21:15:54]line Счет N : (1)359672 [21:15:54]line ИНН: 02508201610067 [21:15:54]line Контрольно-Кассовый Чек [21:15:54]line ПРОДАЖА [21:15:54]line ТРК (МРК, ГНК) : 63 [21:15:54]line Товар: 2710124500 [21:15:54]line Аи-95-К-5 [21:15:54]line 55.640 * 71.90 [21:15:54]line = 4000.52 [21:15:54]line НДС 12% НСП 1% [21:15:54]line > о реализуемом товаре [21:15:54]line ОКРУГЛЕНИЕ: -0.52 [21:15:54]line ИТОГО: 4000.00 [21:15:54]line Внесено: 4000.00 [21:15:54]line СДАЧА: 0.00 [21:15:54]line НСП 1% : 35.40 [21:15:54]line НДС 12% : 424.83 [21:15:54]line Наличными: 4000.00 [21:15:54]line Безнал.: 0.00 [21:15:54]line Место: АЗС № 122 "Партнер Нефть" [21:15:54]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [21:15:54]line СНО: Общий режим [21:15:54]line Чек 59 09.04.2024 21:16 [21:15:54]line Смена: 315 ФФД: 1.0 [21:15:54]line ЗНМ: 0300000147 [21:15:54]line РНМ: 0000000000091578 [21:15:54]line Версия ККМ: 001 [21:15:54]line ФМ: 0000000000874657 [21:15:54]line ФД: 26927 [21:15:54]line ФПД: 137862603244505 [21:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T211615&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26927&fm=137862603244505&tin=02508201610067®Number=0000000000091578&sum=400000 [21:15:55]OFD Sender: Processing packet 26927 [packets to send 44, broken 43] [21:15:55]ProducePacketName [21:15:55]name=ofd_packets/00026927 [21:15:55]OFD Sender: To server: pG, [21:15:55]CommunicateWithHost lk.salyk.kg:30040 [21:15:55]ConnectInit lk.salyk.kg [21:15:55]written 0, free lines is 4095 [21:15:55]Write to MH i2c: 01 00 00 32 5E 90 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: 01 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: 01 07 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: 01 07 00 32 5E 00 00 00 00 00 70 0C 13 [21:15:55]RasterBufferAndPrint [21:15:55]line [21:15:55]line [21:15:55]line [21:15:55]line [21:15:55]line [21:15:55]written 0, free lines is 3186 [21:15:55]MH_Cut [21:15:55]Write to MH i2c: D1 01 00 39 5E 01 69 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: D1 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: D1 01 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: D1 01 00 39 5E 00 68 [21:15:55]Write to MH i2c: 01 00 00 3A 5E 98 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:56]*** Cut start [21:15:56]*** Partial cut [21:15:56]*** CUTSNS_PIN = 1 [21:15:56]*** CUTSNS_PIN = 0 [21:15:57]*** Brake cut motor [21:15:57]Read from MH i2c: 01 [21:15:57]MH_I2C_Read... [21:15:57]*** Stop cut motor [21:15:57]*** Cut end [21:15:57]Read from MH i2c: 01 07 00 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: 01 07 00 3A 5E 00 00 00 00 00 FF 0F AD [21:15:57]process_action close_receipt done [21:15:57]requested_data is exist [21:15:57]produce_requested_data [21:15:57]requested_item fm.sn is exist - process it [21:15:57]wFMCommunicate request_size=4 [21:15:57]MH_SAM_APDU [21:15:57]CAPDU: 80 11 00 00 [21:15:57]Write to MH i2c: E2 08 00 3B 5E 80 11 00 00 00 00 00 00 13 [21:15:57]Write i2c OK [21:15:57]MH_I2C_Read... [21:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:57]Read from MH i2c: E2 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: E2 17 00 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: E2 17 00 3B 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 6B [21:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:15:57]wFMCommunicate OK [21:15:57]requested_item fd.num is exist - process it [21:15:57]SAM_PROTO_GetFieldsCounters [21:15:57]wFMCommunicate request_size=4 [21:15:57]MH_SAM_APDU [21:15:57]CAPDU: 80 13 00 00 [21:15:57]Write to MH i2c: E2 08 00 3C 5E 80 13 00 00 00 00 00 00 16 [21:15:57]Write i2c OK [21:15:57]MH_I2C_Read... [21:15:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:57]Read from MH i2c: E2 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: E2 62 00 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: E2 62 00 3C 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2F 69 00 00 0E 04 04 00 3B 01 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 C6 [21:15:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 2F 69 00 00 0E 04 04 00 3B 01 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 [21:15:57]wFMCommunicate OK [21:15:57]SAM_PROTO_GetFieldsCounters done [21:15:57]requested_item shift.num is exist - process it [21:15:57]requested_item shift.opened is exist - process it [21:15:57]req_shift_opened [21:15:57]FM_GetShiftState [21:15:57]SAM_PROTO_GetShiftState [21:15:57]wFMCommunicate request_size=4 [21:15:57]MH_SAM_APDU [21:15:57]CAPDU: 80 13 01 00 [21:15:57]Write to MH i2c: E2 08 00 3D 5E 80 13 01 00 00 00 00 00 18 [21:15:57]Write i2c OK [21:15:57]MH_I2C_Read... [21:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:57]Read from MH i2c: E2 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: E2 0E 00 [21:15:57]MH_I2C_Read... [21:15:57]Read from MH i2c: E2 0E 00 3D 5E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 83 [21:15:57]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:15:57]wFMCommunicate OK [21:15:57]SAM_PROTO_GetShiftState done [21:15:57]FM_GetShiftState done [21:15:57]req_shift_opened done [21:15:57]requested_item shift.open_date is exist - process it [21:15:57]req_shift_open_date [21:15:57]req_shift_open_date done [21:15:57]produce_requested_data done [21:15:57]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26927,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [21:15:57]process_action_free close_receipt [21:15:57]json_value_free [21:15:57]json_value_free done [21:15:57]process_json_proto returns [21:15:57]Send response to host [21:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26927,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [21:15:57]free response buf [21:15:57]execute_script done [21:15:57]execute_script returns [21:15:57]free content buf [21:15:57]Sock 9.Close socket [21:15:57]Sock 9.Thread stoped [21:18:09]ConnectInit Can't connect to host [21:18:09]CommunicateWithHost connect error [21:18:09]CommunicateWithHost err = -1 [21:18:09]OFD Sender: Server communicate error [21:18:14]OFD Sender: Processing packet 26927 [packets to send 44, broken 43] [21:18:14]ProducePacketName [21:18:14]name=ofd_packets/00026927 [21:18:14]OFD Sender: To server: pG, [21:18:14]CommunicateWithHost lk.salyk.kg:30040 [21:18:14]ConnectInit lk.salyk.kg [21:18:14]Connected sock=9 [21:18:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 1F 19 07 01 91 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1F B0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 2F 69 00 00 35 04 06 00 7D 62 A3 7E 83 D9 0A CE 69 5B E6 43 3E 7B [21:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 73 AE 47 00 6A 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 38 37 34 36 35 37 10 04 04 00 2F 69 00 00 F4 03 04 00 10 58 15 66 B6 04 01 00 00 B5 06 AB D9 DD 17 BC 18 [21:18:14]CommunicateWithHost err = 0 [21:18:14]CheckOFDResponse [21:18:14]1017 (14) - 77093643461234 [21:18:14]1041 (16) - 0000000000874657 [21:18:14]1040 (4) - 26927 [21:18:14]1012 (4) - 09.04.2024 15:00 [21:18:14]1206 (1) - 0 [21:18:14]OFD Sender: Remove packet 26927 [21:18:14]ProducePacketName [21:18:14]name=ofd_packets/00026927 [21:18:14]NVStorageDeleteData [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]accept exits with 8 [21:20:29]New connection [21:20:29]New thread 3066871140 created [21:20:29]Thread 3067014500 joined [21:20:29]Waiting for new connection... [21:20:29] Sock 8.Parse request [21:20:29]Sock 8.Check first char [21:20:29]Sock 8.First char is OK [21:20:29]request: POST /json_proto HTTP/1.0 [21:20:29]Method: POST [21:20:29]URL: /json_proto [21:20:29]Method is POST - this is cgi request [21:20:29]url: /json_proto [21:20:29]query_string will be loaded in cgi processing [21:20:29]execute_cgi json_proto POST (null) [21:20:29]execute_cgi path=json_proto method=POST [21:20:29]POST find Content-Length [21:20:29]Host: 172.17.35.3:8080 [21:20:29]Content-Length: 803 [21:20:29]Content-Type: application/json [21:20:29] [21:20:29]POST finish read [21:20:29]Found Content-Length = 803 [21:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 37.000, "sum" : 2660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2660.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:29]execute_script... [21:20: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)359673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 37.000, "sum" : 2660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2660.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:29]POST & json_proto [21:20:29]process_json_proto [21:20:29]json parsed OK: [21:20:29]protocol is kg_v1.0 [21:20:29]action value=close_receipt [21:20:29]process_action close_receipt [21:20:29]cmd_close_receipt [21:20:29]MH_GetDate [21:20:29]Write to MH i2c: F0 00 00 3E 5E 8B [21:20:29]Write i2c OK [21:20:29]MH_I2C_Read... [21:20:29]Read from MH i2c: F0 [21:20:29]MH_I2C_Read... [21:20:29]Read from MH i2c: F0 09 00 [21:20:29]MH_I2C_Read... [21:20:29]Read from MH i2c: F0 09 00 3E 5E 00 33 B1 15 66 2B 11 66 64 F9 [21:20:29]GetLastDocTimeStamp 1712697375 [21:20:29]current date 1712697651 [21:20:29]FM_GetShiftState [21:20:29]SAM_PROTO_GetShiftState [21:20:29]wFMCommunicate request_size=4 [21:20:29]MH_SAM_APDU [21:20:29]CAPDU: 80 13 01 00 [21:20:29]Write to MH i2c: E2 08 00 3F 5E 80 13 01 00 00 00 00 00 1A [21:20:29]Write i2c OK [21:20:29]MH_I2C_Read... [21:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:29]Read from MH i2c: E2 [21:20:29]MH_I2C_Read... [21:20:29]Read from MH i2c: E2 0E 00 [21:20:29]MH_I2C_Read... [21:20:29]Read from MH i2c: E2 0E 00 3F 5E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 85 [21:20:29]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:20:29]wFMCommunicate OK [21:20:29]SAM_PROTO_GetShiftState done [21:20:29]FM_GetShiftState done [21:20:29]opened in 1712622936 [21:20:29]opened+sec_in_day 1712709336 [21:20:29]quantity*price = 266030 [21:20:29]sum+1 = 266031 [21:20:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2660.30 НСП 1% : 23.54 НДС 12% : 282.51 Наличными: 0.00 Безнал.: 2660.30 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 60 09.04.2024 21:20 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26928 ФПД: 160923009003771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T212051&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26928&fm=160923009003771&tin=02508201610067®Number=0000000000091578&sum=266030 [21:20:30]StoreToDocumentArchive [21:20:30]shift 315 fd 26928 [21:20:30]save to /storage/0315/doc_00026928 [21:20:30]save last doc name /storage/0315/doc_00026928 to /storage/kkm_last_doc_name [21:20:30]save OK [21:20:30]Clear old archive folders... [21:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:30]tlvbuf is B6EE9540 [21:20:30]SAM_PROTO_ClearQueue [21:20:30]wFMCommunicate request_size=4 [21:20:30]MH_SAM_APDU [21:20:30]CAPDU: 80 09 00 00 [21:20:30]Write to MH i2c: E2 08 00 4C 5E 80 09 00 00 00 00 00 00 1C [21:20:30]Write i2c OK [21:20:30]MH_I2C_Read... [21:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:30]Read from MH i2c: E2 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 4C 5E 00 90 00 1E [21:20:30]RAPDU: 90 00 [21:20:30]wFMCommunicate OK [21:20:30]SAM_PROTO_ClearQueue done [21:20:30]KKMCreateOFDPacket [21:20:30]OFDProtocolAddRootSTLVToBuf [21:20:30]FM_MakeSignedData [21:20:30]FM_MakeSignedData [21:20:30]SAM_PROTO_SignData [21:20:30]wFMCommunicate request_size=4 [21:20:30]MH_SAM_APDU [21:20:30]CAPDU: 80 0D 01 02 [21:20:30]Write to MH i2c: E2 08 00 4D 5E 80 0D 01 02 00 00 00 00 24 [21:20:30]Write i2c OK [21:20:30]MH_I2C_Read... [21:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:30]Read from MH i2c: E2 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 4D 5E 00 90 00 1F [21:20:30]RAPDU: 90 00 [21:20:30]wFMCommunicate OK [21:20:30]wFMCommunicate request_size=255 [21:20:30]MH_SAM_APDU [21:20:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 B1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 30 69 00 00 35 04 06 00 92 [21:20:30]Write to MH i2c: E2 02 01 4E 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 B1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 30 69 00 00 35 04 06 00 92 00 00 4F [21:20:30]Write i2c OK [21:20:30]MH_I2C_Read... [21:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:30]Read from MH i2c: E2 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 4E 5E 00 90 00 20 [21:20:30]RAPDU: 90 00 [21:20:30]wFMCommunicate OK [21:20:30]wFMCommunicate request_size=10 [21:20:30]MH_SAM_APDU [21:20:30]CAPDU: 80 0D 02 02 05 5B CE C9 B0 FB [21:20:30]Write to MH i2c: E2 0D 00 4F 5E 80 0D 02 02 05 00 5B CE C9 B0 FB 00 00 CE [21:20:30]Write i2c OK [21:20:30]MH_I2C_Read... [21:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:30]Read from MH i2c: E2 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 03 00 4F 5E 00 90 00 21 [21:20:30]RAPDU: 90 00 [21:20:30]wFMCommunicate OK [21:20:30]wFMCommunicate request_size=4 [21:20:30]MH_SAM_APDU [21:20:30]CAPDU: 80 0D 03 02 [21:20:30]Write to MH i2c: E2 08 00 50 5E 80 0D 03 02 00 00 00 00 29 [21:20:30]Write i2c OK [21:20:30]MH_I2C_Read... [21:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:30]Read from MH i2c: E2 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 0B 00 [21:20:30]MH_I2C_Read... [21:20:30]Read from MH i2c: E2 0B 00 50 5E 00 A6 98 33 81 E2 F1 F5 85 90 00 69 [21:20:30]RAPDU: A6 98 33 81 E2 F1 F5 85 90 00 [21:20:30]wFMCommunicate OK [21:20:30]SAM_PROTO_SignData done [21:20:30]FM_MakeSignedData done [21:20:30]CreateOFDProtocolMessage [21:20:30]wFMCommunicate request_size=4 [21:20:30]MH_SAM_APDU [21:20:30]CAPDU: 80 11 00 00 [21:20:30]Write to MH i2c: E2 08 00 51 5E 80 11 00 00 00 00 00 00 29 [21:20:30]Write i2c OK [21:20:30]MH_I2C_Read... [21:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:31]Read from MH i2c: E2 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: E2 17 00 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: E2 17 00 51 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 81 [21:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:20:31]wFMCommunicate OK [21:20:31]CreateOFDProtocolMessage done [21:20:31]OFDSenderStorePacket 26928 [21:20:31]StoreOFDPacket docnum=26928 [21:20:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DB 00 07 01 52 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 B1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 30 69 00 00 35 04 06 00 92 5B CE C9 B0 FB A6 98 33 81 E2 F1 F5 85 [21:20:31]CheckFolder [21:20:31]dirname=/storage/ofd_packets [21:20:31]CheckFolder done [21:20:31]ProducePacketName [21:20:31]name=ofd_packets/00026928 [21:20:31]NVStorageSaveData ofd_packets/00026928 [21:20:31]File name is /storage/ofd_packets/00026928 [21:20:31]Write 301 bytes [21:20:31]NVStorageSaveData done [21:20:31]OFDSenderStorePacket done [21:20:31]KKMCreateOFDPacket done [21:20:31]NVStorageSaveData kkm_last_timestamp [21:20:31]File name is /storage/kkm_last_timestamp [21:20:31]Write 4 bytes [21:20:31]NVStorageSaveData done [21:20:31]ExternCall_PrintAddStr [21:20:31]wPrintStart [21:20:31]Write to MH i2c: 01 00 00 52 5E B0 [21:20:31]Write i2c OK [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: 01 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: 01 07 00 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: 01 07 00 52 5E 00 00 00 00 00 FF 0F C5 [21:20:31]RasterBufferAndPrint [21:20:31]line Счет N : (1)359673 [21:20:31]line ИНН: 02508201610067 [21:20:31]line Контрольно-Кассовый Чек [21:20:31]line ПРОДАЖА [21:20:31]line ТРК (МРК, ГНК) : 63 [21:20:31]line Товар: 2710124500 [21:20:31]line Аи-95-К-5 [21:20:31]line 37.000 * 71.90 [21:20:31]line = 2660.30 [21:20:31]line НДС 12% НСП 1% [21:20:31]line > о реализуемом товаре [21:20:31]line ИТОГО: 2660.30 [21:20:31]line НСП 1% : 23.54 [21:20:31]line НДС 12% : 282.51 [21:20:31]line Наличными: 0.00 [21:20:31]line Безнал.: 2660.30 [21:20:31]line Место: АЗС № 122 "Партнер Нефть" [21:20:31]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [21:20:31]line СНО: Общий режим [21:20:31]line Чек 60 09.04.2024 21:20 [21:20:31]line Смена: 315 ФФД: 1.0 [21:20:31]line ЗНМ: 0300000147 [21:20:31]line РНМ: 0000000000091578 [21:20:31]line Версия ККМ: 001 [21:20:31]line Платежная система: O! деньги [21:20:31]line ФМ: 0000000000874657 [21:20:31]line ФД: 26928 [21:20:31]line ФПД: 160923009003771 [21:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T212051&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26928&fm=160923009003771&tin=02508201610067®Number=0000000000091578&sum=266030 [21:20:31]OFD Sender: Processing packet 26928 [packets to send 44, broken 43] [21:20:31]ProducePacketName [21:20:31]name=ofd_packets/00026928 [21:20:31]OFD Sender: To server: pG, [21:20:31]CommunicateWithHost lk.salyk.kg:30040 [21:20:31]ConnectInit lk.salyk.kg [21:20:31]written 0, free lines is 4095 [21:20:31]Connected sock=10 [21:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 DB 00 07 01 52 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 0F 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 B1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 30 69 00 00 35 04 06 00 92 5B CE C9 B0 FB A6 98 33 81 E2 F1 F5 85 [21:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 B8 CF 47 00 03 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 38 37 34 36 35 37 10 04 04 00 30 69 00 00 F4 03 04 00 99 58 15 66 B6 04 01 00 00 4F FB 25 A6 1B 77 E6 95 [21:20:31]CommunicateWithHost err = 0 [21:20:31]CheckOFDResponse [21:20:31]1017 (14) - 77093643461234 [21:20:31]1041 (16) - 0000000000874657 [21:20:31]1040 (4) - 26928 [21:20:31]1012 (4) - 09.04.2024 15:02 [21:20:31]1206 (1) - 0 [21:20:31]OFD Sender: Remove packet 26928 [21:20:31]ProducePacketName [21:20:31]name=ofd_packets/00026928 [21:20:31]NVStorageDeleteData [21:20:31]Write to MH i2c: 01 00 00 7C 5E DA [21:20:31]Write i2c OK [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: 01 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: 01 07 00 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: 01 07 00 7C 5E 00 00 00 00 00 8A 0C 77 [21:20:31]RasterBufferAndPrint [21:20:31]line [21:20:31]line [21:20:31]line [21:20:31]line [21:20:31]line [21:20:31]written 0, free lines is 3214 [21:20:31]MH_Cut [21:20:31]Write to MH i2c: D1 01 00 83 5E 01 B3 [21:20:31]Write i2c OK [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: D1 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: D1 01 00 [21:20:31]MH_I2C_Read... [21:20:31]Read from MH i2c: D1 01 00 83 5E 00 B2 [21:20:31]Write to MH i2c: 01 00 00 84 5E E2 [21:20:31]Write i2c OK [21:20:31]MH_I2C_Read... [21:20:32]OFD Sender: No OFD packet to send [21:20:32]*** Cut start [21:20:32]*** Partial cut [21:20:32]*** CUTSNS_PIN = 1 [21:20:33]*** CUTSNS_PIN = 0 [21:20:33]*** Brake cut motor [21:20:33]Read from MH i2c: 01 [21:20:33]MH_I2C_Read... [21:20:33]*** Stop cut motor [21:20:33]*** Cut end [21:20:33]Read from MH i2c: 01 07 00 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: 01 07 00 84 5E 00 00 00 00 00 FF 0F F7 [21:20:33]process_action close_receipt done [21:20:33]requested_data is exist [21:20:33]produce_requested_data [21:20:33]requested_item fm.sn is exist - process it [21:20:33]wFMCommunicate request_size=4 [21:20:33]MH_SAM_APDU [21:20:33]CAPDU: 80 11 00 00 [21:20:33]Write to MH i2c: E2 08 00 85 5E 80 11 00 00 00 00 00 00 5D [21:20:33]Write i2c OK [21:20:33]MH_I2C_Read... [21:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:33]Read from MH i2c: E2 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: E2 17 00 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: E2 17 00 85 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 B5 [21:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:20:33]wFMCommunicate OK [21:20:33]requested_item fd.num is exist - process it [21:20:33]SAM_PROTO_GetFieldsCounters [21:20:33]wFMCommunicate request_size=4 [21:20:33]MH_SAM_APDU [21:20:33]CAPDU: 80 13 00 00 [21:20:33]Write to MH i2c: E2 08 00 86 5E 80 13 00 00 00 00 00 00 60 [21:20:33]Write i2c OK [21:20:33]MH_I2C_Read... [21:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:33]Read from MH i2c: E2 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: E2 62 00 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: E2 62 00 86 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 30 69 00 00 0E 04 04 00 3B 01 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 14 [21:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 30 69 00 00 0E 04 04 00 3B 01 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 [21:20:33]wFMCommunicate OK [21:20:33]SAM_PROTO_GetFieldsCounters done [21:20:33]requested_item shift.num is exist - process it [21:20:33]requested_item shift.opened is exist - process it [21:20:33]req_shift_opened [21:20:33]FM_GetShiftState [21:20:33]SAM_PROTO_GetShiftState [21:20:33]wFMCommunicate request_size=4 [21:20:33]MH_SAM_APDU [21:20:33]CAPDU: 80 13 01 00 [21:20:33]Write to MH i2c: E2 08 00 87 5E 80 13 01 00 00 00 00 00 62 [21:20:33]Write i2c OK [21:20:33]MH_I2C_Read... [21:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:33]Read from MH i2c: E2 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: E2 0E 00 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: E2 0E 00 87 5E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 CD [21:20:33]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:20:33]wFMCommunicate OK [21:20:33]SAM_PROTO_GetShiftState done [21:20:33]FM_GetShiftState done [21:20:33]req_shift_opened done [21:20:33]requested_item shift.open_date is exist - process it [21:20:33]req_shift_open_date [21:20:33]req_shift_open_date done [21:20:33]produce_requested_data done [21:20:33]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26928,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [21:20:33]process_action_free close_receipt [21:20:33]json_value_free [21:20:33]json_value_free done [21:20:33]process_json_proto returns [21:20:33]Send response to host [21:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26928,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [21:20:33]free response buf [21:20:33]execute_script done [21:20:33]execute_script returns [21:20:33]free content buf [21:20:33]Sock 8.Close socket [21:20:33]Sock 8.Thread stoped [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]accept exits with 9 [21:27:42]New connection [21:27:42]New thread 3067014500 created [21:27:42]Thread 3066871140 joined [21:27:42]Waiting for new connection... [21:27:42] Sock 9.Parse request [21:27:42]Sock 9.Check first char [21:27:42]Sock 9.First char is OK [21:27:42]request: POST /json_proto HTTP/1.0 [21:27:42]Method: POST [21:27:42]URL: /json_proto [21:27:42]Method is POST - this is cgi request [21:27:42]url: /json_proto [21:27:42]query_string will be loaded in cgi processing [21:27:42]execute_cgi json_proto POST (null) [21:27:42]execute_cgi path=json_proto method=POST [21:27:42]POST find Content-Length [21:27:42]Host: 172.17.35.3:8080 [21:27:42]Content-Length: 678 [21:27:42]Content-Type: application/json [21:27:42] [21:27:42]POST finish read [21:27:42]Found Content-Length = 678 [21:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 11.050, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:42]execute_script... [21:27: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)359674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 11.050, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:42]POST & json_proto [21:27:42]process_json_proto [21:27:42]json parsed OK: [21:27:42]protocol is kg_v1.0 [21:27:42]action value=close_receipt [21:27:42]process_action close_receipt [21:27:42]cmd_close_receipt [21:27:42]MH_GetDate [21:27:42]Write to MH i2c: F0 00 00 88 5E D5 [21:27:42]Write i2c OK [21:27:42]MH_I2C_Read... [21:27:42]Read from MH i2c: F0 [21:27:42]MH_I2C_Read... [21:27:42]Read from MH i2c: F0 09 00 [21:27:42]MH_I2C_Read... [21:27:42]Read from MH i2c: F0 09 00 88 5E 00 E4 B2 15 66 2B 11 66 64 F5 [21:27:42]GetLastDocTimeStamp 1712697651 [21:27:42]current date 1712698084 [21:27:42]FM_GetShiftState [21:27:42]SAM_PROTO_GetShiftState [21:27:42]wFMCommunicate request_size=4 [21:27:42]MH_SAM_APDU [21:27:42]CAPDU: 80 13 01 00 [21:27:42]Write to MH i2c: E2 08 00 89 5E 80 13 01 00 00 00 00 00 64 [21:27:42]Write i2c OK [21:27:42]MH_I2C_Read... [21:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:42]Read from MH i2c: E2 [21:27:42]MH_I2C_Read... [21:27:42]Read from MH i2c: E2 0E 00 [21:27:42]MH_I2C_Read... [21:27:42]Read from MH i2c: E2 0E 00 89 5E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 CF [21:27:42]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:27:42]wFMCommunicate OK [21:27:42]SAM_PROTO_GetShiftState done [21:27:42]FM_GetShiftState done [21:27:42]opened in 1712622936 [21:27:42]opened+sec_in_day 1712709336 [21:27:42]quantity*price = 70057 [21:27:42]sum+1 = 70058 [21:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 61 09.04.2024 21:28 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26929 ФПД: 97748639216651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T212804&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26929&fm=97748639216651&tin=02508201610067®Number=0000000000091578&sum=70000 [21:27:43]StoreToDocumentArchive [21:27:43]shift 315 fd 26929 [21:27:43]save to /storage/0315/doc_00026929 [21:27:43]save last doc name /storage/0315/doc_00026929 to /storage/kkm_last_doc_name [21:27:43]save OK [21:27:43]Clear old archive folders... [21:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:43]tlvbuf is 00EE3350 [21:27:43]SAM_PROTO_ClearQueue [21:27:43]wFMCommunicate request_size=4 [21:27:43]MH_SAM_APDU [21:27:43]CAPDU: 80 09 00 00 [21:27:43]Write to MH i2c: E2 08 00 96 5E 80 09 00 00 00 00 00 00 66 [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:43]Read from MH i2c: E2 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 96 5E 00 90 00 68 [21:27:43]RAPDU: 90 00 [21:27:43]wFMCommunicate OK [21:27:43]SAM_PROTO_ClearQueue done [21:27:43]KKMCreateOFDPacket [21:27:43]OFDProtocolAddRootSTLVToBuf [21:27:43]FM_MakeSignedData [21:27:43]FM_MakeSignedData [21:27:43]SAM_PROTO_SignData [21:27:43]wFMCommunicate request_size=4 [21:27:43]MH_SAM_APDU [21:27:43]CAPDU: 80 0D 01 02 [21:27:43]Write to MH i2c: E2 08 00 97 5E 80 0D 01 02 00 00 00 00 6E [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:43]Read from MH i2c: E2 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 97 5E 00 90 00 69 [21:27:43]RAPDU: 90 00 [21:27:43]wFMCommunicate OK [21:27:43]wFMCommunicate request_size=255 [21:27:43]MH_SAM_APDU [21:27:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E4 B2 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 31 69 00 00 35 04 06 00 58 [21:27:43]Write to MH i2c: E2 02 01 98 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E4 B2 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 31 69 00 00 35 04 06 00 58 00 00 89 [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:43]Read from MH i2c: E2 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 98 5E 00 90 00 6A [21:27:43]RAPDU: 90 00 [21:27:43]wFMCommunicate OK [21:27:43]wFMCommunicate request_size=10 [21:27:43]MH_SAM_APDU [21:27:43]CAPDU: 80 0D 02 02 05 E6 E0 EA F4 0B [21:27:43]Write to MH i2c: E2 0D 00 99 5E 80 0D 02 02 05 00 E6 E0 EA F4 0B 00 00 2A [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:43]Read from MH i2c: E2 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 03 00 99 5E 00 90 00 6B [21:27:43]RAPDU: 90 00 [21:27:43]wFMCommunicate OK [21:27:43]wFMCommunicate request_size=4 [21:27:43]MH_SAM_APDU [21:27:43]CAPDU: 80 0D 03 02 [21:27:43]Write to MH i2c: E2 08 00 9A 5E 80 0D 03 02 00 00 00 00 73 [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:43]Read from MH i2c: E2 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 0B 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 0B 00 9A 5E 00 12 69 DF FE E5 F0 B2 67 90 00 BA [21:27:43]RAPDU: 12 69 DF FE E5 F0 B2 67 90 00 [21:27:43]wFMCommunicate OK [21:27:43]SAM_PROTO_SignData done [21:27:43]FM_MakeSignedData done [21:27:43]CreateOFDProtocolMessage [21:27:43]wFMCommunicate request_size=4 [21:27:43]MH_SAM_APDU [21:27:43]CAPDU: 80 11 00 00 [21:27:43]Write to MH i2c: E2 08 00 9B 5E 80 11 00 00 00 00 00 00 73 [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:43]Read from MH i2c: E2 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 17 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: E2 17 00 9B 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 CB [21:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:27:43]wFMCommunicate OK [21:27:43]CreateOFDProtocolMessage done [21:27:43]OFDSenderStorePacket 26929 [21:27:43]StoreOFDPacket docnum=26929 [21:27:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 47 C5 07 01 81 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E4 B2 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 31 69 00 00 35 04 06 00 58 E6 E0 EA F4 0B 12 69 DF FE E5 F0 B2 67 [21:27:43]CheckFolder [21:27:43]dirname=/storage/ofd_packets [21:27:43]CheckFolder done [21:27:43]ProducePacketName [21:27:43]name=ofd_packets/00026929 [21:27:43]NVStorageSaveData ofd_packets/00026929 [21:27:43]File name is /storage/ofd_packets/00026929 [21:27:43]Write 301 bytes [21:27:43]NVStorageSaveData done [21:27:43]OFDSenderStorePacket done [21:27:43]KKMCreateOFDPacket done [21:27:43]NVStorageSaveData kkm_last_timestamp [21:27:43]File name is /storage/kkm_last_timestamp [21:27:43]Write 4 bytes [21:27:43]NVStorageSaveData done [21:27:43]ExternCall_PrintAddStr [21:27:43]wPrintStart [21:27:43]Write to MH i2c: 01 00 00 9C 5E FA [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: 01 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: 01 07 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: 01 07 00 9C 5E 00 00 00 00 00 FF 0F 0F [21:27:43]RasterBufferAndPrint [21:27:43]line Счет N : (1)359674 [21:27:43]line ИНН: 02508201610067 [21:27:43]line Контрольно-Кассовый Чек [21:27:43]line ПРОДАЖА [21:27:43]line ТРК (МРК, ГНК) : 61 [21:27:43]line Товар: 2710124130 [21:27:43]line Аи-92-К-5 [21:27:43]line 11.050 * 63.40 [21:27:43]line = 700.57 [21:27:43]line НДС 12% НСП 1% [21:27:43]line > о реализуемом товаре [21:27:43]line ОКРУГЛЕНИЕ: -0.57 [21:27:43]line ИТОГО: 700.00 [21:27:43]line Внесено: 700.00 [21:27:43]line СДАЧА: 0.00 [21:27:43]line НСП 1% : 6.20 [21:27:43]line НДС 12% : 74.40 [21:27:43]line Наличными: 700.00 [21:27:43]line Безнал.: 0.00 [21:27:43]line Место: АЗС № 122 "Партнер Нефть" [21:27:43]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [21:27:43]line СНО: Общий режим [21:27:43]line Чек 61 09.04.2024 21:28 [21:27:43]line Смена: 315 ФФД: 1.0 [21:27:43]line ЗНМ: 0300000147 [21:27:43]line РНМ: 0000000000091578 [21:27:43]line Версия ККМ: 001 [21:27:43]line ФМ: 0000000000874657 [21:27:43]line ФД: 26929 [21:27:43]line ФПД: 97748639216651 [21:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T212804&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26929&fm=97748639216651&tin=02508201610067®Number=0000000000091578&sum=70000 [21:27:44]OFD Sender: Processing packet 26929 [packets to send 44, broken 43] [21:27:44]ProducePacketName [21:27:44]name=ofd_packets/00026929 [21:27:44]OFD Sender: To server: pG, [21:27:44]CommunicateWithHost lk.salyk.kg:30040 [21:27:44]ConnectInit lk.salyk.kg [21:27:44]written 0, free lines is 4095 [21:27:44]Connected sock=10 [21:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 47 C5 07 01 81 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E4 B2 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 31 69 00 00 35 04 06 00 58 E6 E0 EA F4 0B 12 69 DF FE E5 F0 B2 67 [21:27:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 23 57 47 00 37 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 31 69 00 00 F4 03 04 00 4A 5A 15 66 B6 04 01 00 00 EC 29 92 43 EF D3 EF 23 [21:27:44]CommunicateWithHost err = 0 [21:27:44]CheckOFDResponse [21:27:44]1017 (14) - 77093643461234 [21:27:44]1041 (16) - 0000000000874657 [21:27:44]1040 (4) - 26929 [21:27:44]1012 (4) - 09.04.2024 15:10 [21:27:44]1206 (1) - 0 [21:27:44]OFD Sender: Remove packet 26929 [21:27:44]ProducePacketName [21:27:44]name=ofd_packets/00026929 [21:27:44]NVStorageDeleteData [21:27:44]Write to MH i2c: 01 00 00 C7 5E 25 [21:27:44]Write i2c OK [21:27:44]MH_I2C_Read... [21:27:44]Read from MH i2c: 01 [21:27:44]MH_I2C_Read... [21:27:44]Read from MH i2c: 01 07 00 [21:27:44]MH_I2C_Read... [21:27:44]Read from MH i2c: 01 07 00 C7 5E 00 00 00 00 00 6E 0C A6 [21:27:44]RasterBufferAndPrint [21:27:44]line [21:27:44]line [21:27:44]line [21:27:44]line [21:27:44]line [21:27:44]written 0, free lines is 3185 [21:27:44]MH_Cut [21:27:44]Write to MH i2c: D1 01 00 CE 5E 01 FE [21:27:44]Write i2c OK [21:27:44]MH_I2C_Read... [21:27:44]Read from MH i2c: D1 [21:27:44]MH_I2C_Read... [21:27:44]Read from MH i2c: D1 01 00 [21:27:44]MH_I2C_Read... [21:27:44]Read from MH i2c: D1 01 00 CE 5E 00 FD [21:27:44]Write to MH i2c: 01 00 00 CF 5E 2D [21:27:44]Write i2c OK [21:27:44]MH_I2C_Read... [21:27:44]OFD Sender: No OFD packet to send [21:27:45]*** Cut start [21:27:45]*** Partial cut [21:27:45]*** CUTSNS_PIN = 1 [21:27:45]*** CUTSNS_PIN = 0 [21:27:46]*** Brake cut motor [21:27:46]Read from MH i2c: 01 [21:27:46]MH_I2C_Read... [21:27:46]*** Stop cut motor [21:27:46]*** Cut end [21:27:46]Read from MH i2c: 01 07 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: 01 07 00 CF 5E 00 00 00 00 00 FF 0F 42 [21:27:46]process_action close_receipt done [21:27:46]requested_data is exist [21:27:46]produce_requested_data [21:27:46]requested_item fm.sn is exist - process it [21:27:46]wFMCommunicate request_size=4 [21:27:46]MH_SAM_APDU [21:27:46]CAPDU: 80 11 00 00 [21:27:46]Write to MH i2c: E2 08 00 D0 5E 80 11 00 00 00 00 00 00 A8 [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:46]Read from MH i2c: E2 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 17 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 17 00 D0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 00 [21:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:27:46]wFMCommunicate OK [21:27:46]requested_item fd.num is exist - process it [21:27:46]SAM_PROTO_GetFieldsCounters [21:27:46]wFMCommunicate request_size=4 [21:27:46]MH_SAM_APDU [21:27:46]CAPDU: 80 13 00 00 [21:27:46]Write to MH i2c: E2 08 00 D1 5E 80 13 00 00 00 00 00 00 AB [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:46]Read from MH i2c: E2 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 62 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 62 00 D1 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 31 69 00 00 0E 04 04 00 3B 01 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 63 [21:27:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 31 69 00 00 0E 04 04 00 3B 01 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 [21:27:46]wFMCommunicate OK [21:27:46]SAM_PROTO_GetFieldsCounters done [21:27:46]requested_item shift.num is exist - process it [21:27:46]requested_item shift.opened is exist - process it [21:27:46]req_shift_opened [21:27:46]FM_GetShiftState [21:27:46]SAM_PROTO_GetShiftState [21:27:46]wFMCommunicate request_size=4 [21:27:46]MH_SAM_APDU [21:27:46]CAPDU: 80 13 01 00 [21:27:46]Write to MH i2c: E2 08 00 D2 5E 80 13 01 00 00 00 00 00 AD [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:46]Read from MH i2c: E2 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 0E 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 0E 00 D2 5E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 18 [21:27:46]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:27:46]wFMCommunicate OK [21:27:46]SAM_PROTO_GetShiftState done [21:27:46]FM_GetShiftState done [21:27:46]req_shift_opened done [21:27:46]requested_item shift.open_date is exist - process it [21:27:46]req_shift_open_date [21:27:46]req_shift_open_date done [21:27:46]produce_requested_data done [21:27:46]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26929,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [21:27:46]process_action_free close_receipt [21:27:46]json_value_free [21:27:46]json_value_free done [21:27:46]process_json_proto returns [21:27:46]Send response to host [21:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26929,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [21:27:46]free response buf [21:27:46]execute_script done [21:27:46]execute_script returns [21:27:46]free content buf [21:27:46]Sock 9.Close socket [21:27:46]Sock 9.Thread stoped [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]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:20]OFD Sender: No OFD packet to send [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]accept exits with 8 [21:46:40]New connection [21:46:40]New thread 3066871140 created [21:46:40]Thread 3067014500 joined [21:46:40]Waiting for new connection... [21:46:40] Sock 8.Parse request [21:46:40]Sock 8.Check first char [21:46:40]Sock 8.First char is OK [21:46:40]request: POST /json_proto HTTP/1.0 [21:46:40]Method: POST [21:46:40]URL: /json_proto [21:46:40]Method is POST - this is cgi request [21:46:40]url: /json_proto [21:46:40]query_string will be loaded in cgi processing [21:46:40]execute_cgi json_proto POST (null) [21:46:40]execute_cgi path=json_proto method=POST [21:46:40]POST find Content-Length [21:46:40]Host: 172.17.35.3:8080 [21:46:40]Content-Length: 803 [21:46:40]Content-Type: application/json [21:46:40] [21:46:40]POST finish read [21:46:40]Found Content-Length = 803 [21:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:40]execute_script... [21:46:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 41.730, "sum" : 3000.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:40]POST & json_proto [21:46:40]process_json_proto [21:46:40]json parsed OK: [21:46:40]protocol is kg_v1.0 [21:46:40]action value=close_receipt [21:46:40]process_action close_receipt [21:46:40]cmd_close_receipt [21:46:40]MH_GetDate [21:46:40]Write to MH i2c: F0 00 00 D3 5E 20 [21:46:40]Write i2c OK [21:46:40]MH_I2C_Read... [21:46:40]Read from MH i2c: F0 [21:46:40]MH_I2C_Read... [21:46:40]Read from MH i2c: F0 09 00 [21:46:40]MH_I2C_Read... [21:46:40]Read from MH i2c: F0 09 00 D3 5E 00 57 B7 15 66 2B 11 66 64 B8 [21:46:40]GetLastDocTimeStamp 1712698084 [21:46:40]current date 1712699223 [21:46:40]FM_GetShiftState [21:46:40]SAM_PROTO_GetShiftState [21:46:40]wFMCommunicate request_size=4 [21:46:40]MH_SAM_APDU [21:46:40]CAPDU: 80 13 01 00 [21:46:40]Write to MH i2c: E2 08 00 D4 5E 80 13 01 00 00 00 00 00 AF [21:46:40]Write i2c OK [21:46:40]MH_I2C_Read... [21:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:40]Read from MH i2c: E2 [21:46:40]MH_I2C_Read... [21:46:40]Read from MH i2c: E2 0E 00 [21:46:40]MH_I2C_Read... [21:46:40]Read from MH i2c: E2 0E 00 D4 5E 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 1A [21:46:40]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:46:40]wFMCommunicate OK [21:46:40]SAM_PROTO_GetShiftState done [21:46:40]FM_GetShiftState done [21:46:40]opened in 1712622936 [21:46:40]opened+sec_in_day 1712709336 [21:46:40]quantity*price = 300038 [21:46:40]sum+1 = 300040 [21:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.39 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.39 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 62 09.04.2024 21:47 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26930 ФПД: 271058125503001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T214703&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26930&fm=271058125503001&tin=02508201610067®Number=0000000000091578&sum=300039 [21:46:41]StoreToDocumentArchive [21:46:41]shift 315 fd 26930 [21:46:41]save to /storage/0315/doc_00026930 [21:46:41]save last doc name /storage/0315/doc_00026930 to /storage/kkm_last_doc_name [21:46:41]save OK [21:46:41]Clear old archive folders... [21:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:41]tlvbuf is 00EF6E70 [21:46:41]SAM_PROTO_ClearQueue [21:46:41]wFMCommunicate request_size=4 [21:46:41]MH_SAM_APDU [21:46:41]CAPDU: 80 09 00 00 [21:46:41]Write to MH i2c: E2 08 00 E1 5E 80 09 00 00 00 00 00 00 B1 [21:46:41]Write i2c OK [21:46:41]MH_I2C_Read... [21:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:41]Read from MH i2c: E2 [21:46:41]MH_I2C_Read... [21:46:41]Read from MH i2c: E2 03 00 [21:46:41]MH_I2C_Read... [21:46:41]Read from MH i2c: E2 03 00 E1 5E 00 90 00 B3 [21:46:41]RAPDU: 90 00 [21:46:41]wFMCommunicate OK [21:46:41]SAM_PROTO_ClearQueue done [21:46:41]KKMCreateOFDPacket [21:46:41]OFDProtocolAddRootSTLVToBuf [21:46:41]FM_MakeSignedData [21:46:41]FM_MakeSignedData [21:46:41]SAM_PROTO_SignData [21:46:41]wFMCommunicate request_size=4 [21:46:41]MH_SAM_APDU [21:46:41]CAPDU: 80 0D 01 02 [21:46:41]Write to MH i2c: E2 08 00 E2 5E 80 0D 01 02 00 00 00 00 B9 [21:46:41]Write i2c OK [21:46:41]MH_I2C_Read... [21:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:41]Read from MH i2c: E2 [21:46:41]MH_I2C_Read... [21:46:41]Read from MH i2c: E2 03 00 [21:46:41]MH_I2C_Read... [21:46:41]Read from MH i2c: E2 03 00 E2 5E 00 90 00 B4 [21:46:41]RAPDU: 90 00 [21:46:41]wFMCommunicate OK [21:46:41]wFMCommunicate request_size=255 [21:46:41]MH_SAM_APDU [21:46:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 32 69 00 00 35 04 06 00 F6 [21:46:41]Write to MH i2c: E2 02 01 E3 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 32 69 00 00 35 04 06 00 F6 00 00 74 [21:46:41]Write i2c OK [21:46:41]MH_I2C_Read... [21:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:42]Read from MH i2c: E2 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 03 00 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 03 00 E3 5E 00 90 00 B5 [21:46:42]RAPDU: 90 00 [21:46:42]wFMCommunicate OK [21:46:42]wFMCommunicate request_size=10 [21:46:42]MH_SAM_APDU [21:46:42]CAPDU: 80 0D 02 02 05 86 A3 48 BA 19 [21:46:42]Write to MH i2c: E2 0D 00 E4 5E 80 0D 02 02 05 00 86 A3 48 BA 19 00 00 0A [21:46:42]Write i2c OK [21:46:42]MH_I2C_Read... [21:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:42]Read from MH i2c: E2 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 03 00 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 03 00 E4 5E 00 90 00 B6 [21:46:42]RAPDU: 90 00 [21:46:42]wFMCommunicate OK [21:46:42]wFMCommunicate request_size=4 [21:46:42]MH_SAM_APDU [21:46:42]CAPDU: 80 0D 03 02 [21:46:42]Write to MH i2c: E2 08 00 E5 5E 80 0D 03 02 00 00 00 00 BE [21:46:42]Write i2c OK [21:46:42]MH_I2C_Read... [21:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:42]Read from MH i2c: E2 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 0B 00 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 0B 00 E5 5E 00 F5 5A 73 D0 48 B2 AA 5A 90 00 4F [21:46:42]RAPDU: F5 5A 73 D0 48 B2 AA 5A 90 00 [21:46:42]wFMCommunicate OK [21:46:42]SAM_PROTO_SignData done [21:46:42]FM_MakeSignedData done [21:46:42]CreateOFDProtocolMessage [21:46:42]wFMCommunicate request_size=4 [21:46:42]MH_SAM_APDU [21:46:42]CAPDU: 80 11 00 00 [21:46:42]Write to MH i2c: E2 08 00 E6 5E 80 11 00 00 00 00 00 00 BE [21:46:42]Write i2c OK [21:46:42]MH_I2C_Read... [21:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:42]Read from MH i2c: E2 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 17 00 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: E2 17 00 E6 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 16 [21:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:46:42]wFMCommunicate OK [21:46:42]CreateOFDProtocolMessage done [21:46:42]OFDSenderStorePacket 26930 [21:46:42]StoreOFDPacket docnum=26930 [21:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D2 FA 07 01 07 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 32 69 00 00 35 04 06 00 F6 86 A3 48 BA 19 F5 5A 73 D0 48 B2 AA 5A [21:46:42]CheckFolder [21:46:42]dirname=/storage/ofd_packets [21:46:42]CheckFolder done [21:46:42]ProducePacketName [21:46:42]name=ofd_packets/00026930 [21:46:42]NVStorageSaveData ofd_packets/00026930 [21:46:42]File name is /storage/ofd_packets/00026930 [21:46:42]Write 301 bytes [21:46:42]NVStorageSaveData done [21:46:42]OFDSenderStorePacket done [21:46:42]KKMCreateOFDPacket done [21:46:42]NVStorageSaveData kkm_last_timestamp [21:46:42]File name is /storage/kkm_last_timestamp [21:46:42]Write 4 bytes [21:46:42]NVStorageSaveData done [21:46:42]ExternCall_PrintAddStr [21:46:42]wPrintStart [21:46:42]Write to MH i2c: 01 00 00 E7 5E 45 [21:46:42]Write i2c OK [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: 01 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: 01 07 00 [21:46:42]MH_I2C_Read... [21:46:42]Read from MH i2c: 01 07 00 E7 5E 00 00 00 00 00 FF 0F 5A [21:46:42]RasterBufferAndPrint [21:46:42]line Счет N : (1)359675 [21:46:42]line ИНН: 02508201610067 [21:46:42]line Контрольно-Кассовый Чек [21:46:42]line ПРОДАЖА [21:46:42]line ТРК (МРК, ГНК) : 53 [21:46:42]line Товар: 2710124500 [21:46:42]line Аи-95-К-5 [21:46:42]line 41.730 * 71.90 [21:46:42]line = 3000.39 [21:46:42]line НДС 12% НСП 1% [21:46:42]line > о реализуемом товаре [21:46:42]line ИТОГО: 3000.39 [21:46:42]line НСП 1% : 26.55 [21:46:42]line НДС 12% : 318.62 [21:46:42]line Наличными: 0.00 [21:46:42]line Безнал.: 3000.39 [21:46:42]line Место: АЗС № 122 "Партнер Нефть" [21:46:42]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [21:46:42]line СНО: Общий режим [21:46:42]line Чек 62 09.04.2024 21:47 [21:46:42]line Смена: 315 ФФД: 1.0 [21:46:42]line ЗНМ: 0300000147 [21:46:42]line РНМ: 0000000000091578 [21:46:42]line Версия ККМ: 001 [21:46:42]line Платежная система: O! деньги [21:46:42]line ФМ: 0000000000874657 [21:46:42]line ФД: 26930 [21:46:42]line ФПД: 271058125503001 [21:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T214703&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26930&fm=271058125503001&tin=02508201610067®Number=0000000000091578&sum=300039 [21:46:42]OFD Sender: Processing packet 26930 [packets to send 44, broken 43] [21:46:42]ProducePacketName [21:46:42]name=ofd_packets/00026930 [21:46:42]OFD Sender: To server: pG, [21:46:42]CommunicateWithHost lk.salyk.kg:30040 [21:46:42]written 0, free lines is 4095 [21:46:42]ConnectInit lk.salyk.kg [21:46:42]Connected sock=10 [21:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D2 FA 07 01 07 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 02 A3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 07 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 57 B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 32 69 00 00 35 04 06 00 F6 86 A3 48 BA 19 F5 5A 73 D0 48 B2 AA 5A [21:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 2B 7E 47 00 03 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 32 69 00 00 F4 03 04 00 BC 5E 15 66 B6 04 01 00 00 82 F2 FD 57 6A 06 F7 9D [21:46:42]CommunicateWithHost err = 0 [21:46:42]CheckOFDResponse [21:46:42]1017 (14) - 77093643461234 [21:46:42]1041 (16) - 0000000000874657 [21:46:42]1040 (4) - 26930 [21:46:42]1012 (4) - 09.04.2024 15:29 [21:46:42]1206 (1) - 0 [21:46:42]OFD Sender: Remove packet 26930 [21:46:42]ProducePacketName [21:46:42]name=ofd_packets/00026930 [21:46:42]NVStorageDeleteData [21:46:42]Write to MH i2c: 01 00 00 11 5F 70 [21:46:42]Write i2c OK [21:46:42]MH_I2C_Read... [21:46:43]Read from MH i2c: 01 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: 01 07 00 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: 01 07 00 11 5F 00 00 00 00 00 88 0C 0B [21:46:43]RasterBufferAndPrint [21:46:43]line [21:46:43]line [21:46:43]line [21:46:43]line [21:46:43]line [21:46:43]written 0, free lines is 3212 [21:46:43]MH_Cut [21:46:43]Write to MH i2c: D1 01 00 18 5F 01 49 [21:46:43]Write i2c OK [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: D1 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: D1 01 00 [21:46:43]MH_I2C_Read... [21:46:43]Read from MH i2c: D1 01 00 18 5F 00 48 [21:46:43]Write to MH i2c: 01 00 00 19 5F 78 [21:46:43]Write i2c OK [21:46:43]MH_I2C_Read... [21:46:43]OFD Sender: No OFD packet to send [21:46:44]*** Cut start [21:46:44]*** Partial cut [21:46:44]*** CUTSNS_PIN = 1 [21:46:44]*** CUTSNS_PIN = 0 [21:46:44]*** Brake cut motor [21:46:44]Read from MH i2c: 01 [21:46:44]MH_I2C_Read... [21:46:44]*** Stop cut motor [21:46:44]*** Cut end [21:46:44]Read from MH i2c: 01 07 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: 01 07 00 19 5F 00 00 00 00 00 FF 0F 8D [21:46:44]process_action close_receipt done [21:46:44]requested_data is exist [21:46:44]produce_requested_data [21:46:44]requested_item fm.sn is exist - process it [21:46:44]wFMCommunicate request_size=4 [21:46:44]MH_SAM_APDU [21:46:44]CAPDU: 80 11 00 00 [21:46:44]Write to MH i2c: E2 08 00 1A 5F 80 11 00 00 00 00 00 00 F3 [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:44]Read from MH i2c: E2 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 17 00 [21:46:44]MH_I2C_Read... [21:46:44]Read from MH i2c: E2 17 00 1A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 4B [21:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:46:44]wFMCommunicate OK [21:46:44]requested_item fd.num is exist - process it [21:46:44]SAM_PROTO_GetFieldsCounters [21:46:44]wFMCommunicate request_size=4 [21:46:44]MH_SAM_APDU [21:46:44]CAPDU: 80 13 00 00 [21:46:44]Write to MH i2c: E2 08 00 1B 5F 80 13 00 00 00 00 00 00 F6 [21:46:44]Write i2c OK [21:46:44]MH_I2C_Read... [21:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:45]Read from MH i2c: E2 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 62 00 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 62 00 1B 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 32 69 00 00 0E 04 04 00 3B 01 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 B2 [21:46:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 32 69 00 00 0E 04 04 00 3B 01 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 [21:46:45]wFMCommunicate OK [21:46:45]SAM_PROTO_GetFieldsCounters done [21:46:45]requested_item shift.num is exist - process it [21:46:45]requested_item shift.opened is exist - process it [21:46:45]req_shift_opened [21:46:45]FM_GetShiftState [21:46:45]SAM_PROTO_GetShiftState [21:46:45]wFMCommunicate request_size=4 [21:46:45]MH_SAM_APDU [21:46:45]CAPDU: 80 13 01 00 [21:46:45]Write to MH i2c: E2 08 00 1C 5F 80 13 01 00 00 00 00 00 F8 [21:46:45]Write i2c OK [21:46:45]MH_I2C_Read... [21:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:45]Read from MH i2c: E2 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 0E 00 [21:46:45]MH_I2C_Read... [21:46:45]Read from MH i2c: E2 0E 00 1C 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 63 [21:46:45]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:46:45]wFMCommunicate OK [21:46:45]SAM_PROTO_GetShiftState done [21:46:45]FM_GetShiftState done [21:46:45]req_shift_opened done [21:46:45]requested_item shift.open_date is exist - process it [21:46:45]req_shift_open_date [21:46:45]req_shift_open_date done [21:46:45]produce_requested_data done [21:46:45]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26930,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [21:46:45]process_action_free close_receipt [21:46:45]json_value_free [21:46:45]json_value_free done [21:46:45]process_json_proto returns [21:46:45]Send response to host [21:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26930,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [21:46:45]free response buf [21:46:45]execute_script done [21:46:45]execute_script returns [21:46:45]free content buf [21:46:45]Sock 8.Close socket [21:46:45]Sock 8.Thread stoped [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:24]accept exits with 9 [21:48:24]New connection [21:48:24]New thread 3067014500 created [21:48:24]Thread 3066871140 joined [21:48:24]Waiting for new connection... [21:48:24] Sock 9.Parse request [21:48:24]Sock 9.Check first char [21:48:24]Sock 9.First char is OK [21:48:24]request: POST /json_proto HTTP/1.0 [21:48:24]Method: POST [21:48:24]URL: /json_proto [21:48:24]Method is POST - this is cgi request [21:48:24]url: /json_proto [21:48:24]query_string will be loaded in cgi processing [21:48:24]execute_cgi json_proto POST (null) [21:48:24]execute_cgi path=json_proto method=POST [21:48:24]POST find Content-Length [21:48:24]Host: 172.17.35.3:8080 [21:48:24]Content-Length: 678 [21:48:24]Content-Type: application/json [21:48:24] [21:48:24]POST finish read [21:48:24]Found Content-Length = 678 [21:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 10.100, "sum" : 640.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:24]execute_script... [21:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 10.100, "sum" : 640.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:24]POST & json_proto [21:48:24]process_json_proto [21:48:24]json parsed OK: [21:48:24]protocol is kg_v1.0 [21:48:24]action value=close_receipt [21:48:24]process_action close_receipt [21:48:24]cmd_close_receipt [21:48:24]MH_GetDate [21:48:24]Write to MH i2c: F0 00 00 1D 5F 6B [21:48:24]Write i2c OK [21:48:24]MH_I2C_Read... [21:48:24]Read from MH i2c: F0 [21:48:24]MH_I2C_Read... [21:48:24]Read from MH i2c: F0 09 00 [21:48:24]MH_I2C_Read... [21:48:24]Read from MH i2c: F0 09 00 1D 5F 00 BE B7 15 66 2B 11 66 64 6A [21:48:24]GetLastDocTimeStamp 1712699223 [21:48:24]current date 1712699326 [21:48:24]FM_GetShiftState [21:48:24]SAM_PROTO_GetShiftState [21:48:24]wFMCommunicate request_size=4 [21:48:24]MH_SAM_APDU [21:48:24]CAPDU: 80 13 01 00 [21:48:24]Write to MH i2c: E2 08 00 1E 5F 80 13 01 00 00 00 00 00 FA [21:48:24]Write i2c OK [21:48:24]MH_I2C_Read... [21:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:24]Read from MH i2c: E2 [21:48:24]MH_I2C_Read... [21:48:24]Read from MH i2c: E2 0E 00 [21:48:24]MH_I2C_Read... [21:48:24]Read from MH i2c: E2 0E 00 1E 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 65 [21:48:24]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:48:24]wFMCommunicate OK [21:48:24]SAM_PROTO_GetShiftState done [21:48:24]FM_GetShiftState done [21:48:24]opened in 1712622936 [21:48:24]opened+sec_in_day 1712709336 [21:48:24]quantity*price = 64034 [21:48:24]sum+1 = 64035 [21:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.00 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 63 09.04.2024 21:48 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26931 ФПД: 263371833382125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T214846&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26931&fm=263371833382125&tin=02508201610067®Number=0000000000091578&sum=64000 [21:48:25]StoreToDocumentArchive [21:48:25]shift 315 fd 26931 [21:48:25]save to /storage/0315/doc_00026931 [21:48:25]save last doc name /storage/0315/doc_00026931 to /storage/kkm_last_doc_name [21:48:25]save OK [21:48:25]Clear old archive folders... [21:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:25]tlvbuf is 01013BA0 [21:48:25]SAM_PROTO_ClearQueue [21:48:25]wFMCommunicate request_size=4 [21:48:25]MH_SAM_APDU [21:48:25]CAPDU: 80 09 00 00 [21:48:25]Write to MH i2c: E2 08 00 2B 5F 80 09 00 00 00 00 00 00 FC [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:25]Read from MH i2c: E2 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 2B 5F 00 90 00 FE [21:48:25]RAPDU: 90 00 [21:48:25]wFMCommunicate OK [21:48:25]SAM_PROTO_ClearQueue done [21:48:25]KKMCreateOFDPacket [21:48:25]OFDProtocolAddRootSTLVToBuf [21:48:25]FM_MakeSignedData [21:48:25]FM_MakeSignedData [21:48:25]SAM_PROTO_SignData [21:48:25]wFMCommunicate request_size=4 [21:48:25]MH_SAM_APDU [21:48:25]CAPDU: 80 0D 01 02 [21:48:25]Write to MH i2c: E2 08 00 2C 5F 80 0D 01 02 00 00 00 00 04 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:25]Read from MH i2c: E2 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 2C 5F 00 90 00 FF [21:48:25]RAPDU: 90 00 [21:48:25]wFMCommunicate OK [21:48:25]wFMCommunicate request_size=255 [21:48:25]MH_SAM_APDU [21:48:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 22 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BE B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 33 69 00 00 35 04 06 00 EF [21:48:25]Write to MH i2c: E2 02 01 2D 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 22 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BE B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 33 69 00 00 35 04 06 00 EF 00 00 78 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:25]Read from MH i2c: E2 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 2D 5F 00 90 00 00 [21:48:25]RAPDU: 90 00 [21:48:25]wFMCommunicate OK [21:48:25]wFMCommunicate request_size=10 [21:48:25]MH_SAM_APDU [21:48:25]CAPDU: 80 0D 02 02 05 89 08 92 94 ED [21:48:25]Write to MH i2c: E2 0D 00 2E 5F 80 0D 02 02 05 00 89 08 92 94 ED 00 00 B5 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:25]Read from MH i2c: E2 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 03 00 2E 5F 00 90 00 01 [21:48:25]RAPDU: 90 00 [21:48:25]wFMCommunicate OK [21:48:25]wFMCommunicate request_size=4 [21:48:25]MH_SAM_APDU [21:48:25]CAPDU: 80 0D 03 02 [21:48:25]Write to MH i2c: E2 08 00 2F 5F 80 0D 03 02 00 00 00 00 09 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:25]Read from MH i2c: E2 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 0B 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 0B 00 2F 5F 00 A7 CB FB 40 7F 00 5C FB 90 00 8D [21:48:25]RAPDU: A7 CB FB 40 7F 00 5C FB 90 00 [21:48:25]wFMCommunicate OK [21:48:25]SAM_PROTO_SignData done [21:48:25]FM_MakeSignedData done [21:48:25]CreateOFDProtocolMessage [21:48:25]wFMCommunicate request_size=4 [21:48:25]MH_SAM_APDU [21:48:25]CAPDU: 80 11 00 00 [21:48:25]Write to MH i2c: E2 08 00 30 5F 80 11 00 00 00 00 00 00 09 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:25]Read from MH i2c: E2 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 17 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 17 00 30 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 61 [21:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:48:25]wFMCommunicate OK [21:48:25]CreateOFDProtocolMessage done [21:48:25]OFDSenderStorePacket 26931 [21:48:25]StoreOFDPacket docnum=26931 [21:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D3 01 07 01 95 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 22 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BE B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 33 69 00 00 35 04 06 00 EF 89 08 92 94 ED A7 CB FB 40 7F 00 5C FB [21:48:25]CheckFolder [21:48:25]dirname=/storage/ofd_packets [21:48:25]CheckFolder done [21:48:25]ProducePacketName [21:48:25]name=ofd_packets/00026931 [21:48:25]NVStorageSaveData ofd_packets/00026931 [21:48:25]File name is /storage/ofd_packets/00026931 [21:48:25]Write 301 bytes [21:48:25]NVStorageSaveData done [21:48:25]OFDSenderStorePacket done [21:48:25]KKMCreateOFDPacket done [21:48:25]NVStorageSaveData kkm_last_timestamp [21:48:25]File name is /storage/kkm_last_timestamp [21:48:25]Write 4 bytes [21:48:25]NVStorageSaveData done [21:48:25]ExternCall_PrintAddStr [21:48:25]wPrintStart [21:48:25]Write to MH i2c: 01 00 00 31 5F 90 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: 01 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: 01 07 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: 01 07 00 31 5F 00 00 00 00 00 FF 0F A5 [21:48:25]RasterBufferAndPrint [21:48:25]line Счет N : (1)359676 [21:48:25]line ИНН: 02508201610067 [21:48:25]line Контрольно-Кассовый Чек [21:48:25]line ПРОДАЖА [21:48:25]line ТРК (МРК, ГНК) : 61 [21:48:25]line Товар: 2710124130 [21:48:25]line Аи-92-К-5 [21:48:25]line 10.100 * 63.40 [21:48:25]line = 640.34 [21:48:25]line НДС 12% НСП 1% [21:48:25]line > о реализуемом товаре [21:48:25]line ОКРУГЛЕНИЕ: -0.34 [21:48:25]line ИТОГО: 640.00 [21:48:25]line Внесено: 640.00 [21:48:25]line СДАЧА: 0.00 [21:48:25]line НСП 1% : 5.67 [21:48:25]line НДС 12% : 68.00 [21:48:25]line Наличными: 640.00 [21:48:25]line Безнал.: 0.00 [21:48:25]line Место: АЗС № 122 "Партнер Нефть" [21:48:25]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [21:48:25]line СНО: Общий режим [21:48:25]line Чек 63 09.04.2024 21:48 [21:48:25]line Смена: 315 ФФД: 1.0 [21:48:25]line ЗНМ: 0300000147 [21:48:25]line РНМ: 0000000000091578 [21:48:25]line Версия ККМ: 001 [21:48:25]line ФМ: 0000000000874657 [21:48:25]line ФД: 26931 [21:48:25]line ФПД: 263371833382125 [21:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T214846&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26931&fm=263371833382125&tin=02508201610067®Number=0000000000091578&sum=64000 [21:48:25]written 0, free lines is 4095 [21:48:25]OFD Sender: Processing packet 26931 [packets to send 44, broken 43] [21:48:25]ProducePacketName [21:48:25]name=ofd_packets/00026931 [21:48:25]OFD Sender: To server: pG, [21:48:25]CommunicateWithHost lk.salyk.kg:30040 [21:48:25]ConnectInit lk.salyk.kg [21:48:25]Connected sock=10 [21:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D3 01 07 01 95 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 22 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BE B7 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 33 69 00 00 35 04 06 00 EF 89 08 92 94 ED A7 CB FB 40 7F 00 5C FB [21:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 CC 5A 47 00 BB 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 33 69 00 00 F4 03 04 00 23 5F 15 66 B6 04 01 00 00 7E 88 1E 85 F7 4C EB C0 [21:48:26]CommunicateWithHost err = 0 [21:48:26]CheckOFDResponse [21:48:26]1017 (14) - 77093643461234 [21:48:26]1041 (16) - 0000000000874657 [21:48:26]1040 (4) - 26931 [21:48:26]1012 (4) - 09.04.2024 15:30 [21:48:26]1206 (1) - 0 [21:48:26]OFD Sender: Remove packet 26931 [21:48:26]ProducePacketName [21:48:26]name=ofd_packets/00026931 [21:48:26]NVStorageDeleteData [21:48:26]Write to MH i2c: 01 00 00 5C 5F BB [21:48:26]Write i2c OK [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: 01 [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: 01 07 00 [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: 01 07 00 5C 5F 00 00 00 00 00 78 0C 46 [21:48:26]RasterBufferAndPrint [21:48:26]line [21:48:26]line [21:48:26]line [21:48:26]line [21:48:26]line [21:48:26]written 0, free lines is 3196 [21:48:26]MH_Cut [21:48:26]Write to MH i2c: D1 01 00 63 5F 01 94 [21:48:26]Write i2c OK [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: D1 [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: D1 01 00 [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: D1 01 00 63 5F 00 93 [21:48:26]Write to MH i2c: 01 00 00 64 5F C3 [21:48:26]Write i2c OK [21:48:26]MH_I2C_Read... [21:48:26]OFD Sender: No OFD packet to send [21:48:27]*** Cut start [21:48:27]*** Partial cut [21:48:27]*** CUTSNS_PIN = 1 [21:48:27]*** CUTSNS_PIN = 0 [21:48:27]*** Brake cut motor [21:48:28]Read from MH i2c: 01 [21:48:28]MH_I2C_Read... [21:48:28]*** Stop cut motor [21:48:28]*** Cut end [21:48:28]Read from MH i2c: 01 07 00 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: 01 07 00 64 5F 00 00 00 00 00 FF 0F D8 [21:48:28]process_action close_receipt done [21:48:28]requested_data is exist [21:48:28]produce_requested_data [21:48:28]requested_item fm.sn is exist - process it [21:48:28]wFMCommunicate request_size=4 [21:48:28]MH_SAM_APDU [21:48:28]CAPDU: 80 11 00 00 [21:48:28]Write to MH i2c: E2 08 00 65 5F 80 11 00 00 00 00 00 00 3E [21:48:28]Write i2c OK [21:48:28]MH_I2C_Read... [21:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:28]Read from MH i2c: E2 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: E2 17 00 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: E2 17 00 65 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 96 [21:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:48:28]wFMCommunicate OK [21:48:28]requested_item fd.num is exist - process it [21:48:28]SAM_PROTO_GetFieldsCounters [21:48:28]wFMCommunicate request_size=4 [21:48:28]MH_SAM_APDU [21:48:28]CAPDU: 80 13 00 00 [21:48:28]Write to MH i2c: E2 08 00 66 5F 80 13 00 00 00 00 00 00 41 [21:48:28]Write i2c OK [21:48:28]MH_I2C_Read... [21:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:28]Read from MH i2c: E2 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: E2 62 00 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: E2 62 00 66 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 33 69 00 00 0E 04 04 00 3B 01 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 01 [21:48:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 33 69 00 00 0E 04 04 00 3B 01 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 [21:48:28]wFMCommunicate OK [21:48:28]SAM_PROTO_GetFieldsCounters done [21:48:28]requested_item shift.num is exist - process it [21:48:28]requested_item shift.opened is exist - process it [21:48:28]req_shift_opened [21:48:28]FM_GetShiftState [21:48:28]SAM_PROTO_GetShiftState [21:48:28]wFMCommunicate request_size=4 [21:48:28]MH_SAM_APDU [21:48:28]CAPDU: 80 13 01 00 [21:48:28]Write to MH i2c: E2 08 00 67 5F 80 13 01 00 00 00 00 00 43 [21:48:28]Write i2c OK [21:48:28]MH_I2C_Read... [21:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:28]Read from MH i2c: E2 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: E2 0E 00 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: E2 0E 00 67 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 AE [21:48:28]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:48:28]wFMCommunicate OK [21:48:28]SAM_PROTO_GetShiftState done [21:48:28]FM_GetShiftState done [21:48:28]req_shift_opened done [21:48:28]requested_item shift.open_date is exist - process it [21:48:28]req_shift_open_date [21:48:28]req_shift_open_date done [21:48:28]produce_requested_data done [21:48:28]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26931,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [21:48:28]process_action_free close_receipt [21:48:28]json_value_free [21:48:28]json_value_free done [21:48:28]process_json_proto returns [21:48:28]Send response to host [21:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26931,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [21:48:28]free response buf [21:48:28]execute_script done [21:48:28]execute_script returns [21:48:28]free content buf [21:48:28]Sock 9.Close socket [21:48:28]Sock 9.Thread stoped [21:48:31]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:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:49]accept exits with 8 [21:56:49]New connection [21:56:49]New thread 3066871140 created [21:56:49]Thread 3067014500 joined [21:56:49]Waiting for new connection... [21:56:49] Sock 8.Parse request [21:56:49]Sock 8.Check first char [21:56:49]Sock 8.First char is OK [21:56:49]request: POST /json_proto HTTP/1.0 [21:56:49]Method: POST [21:56:49]URL: /json_proto [21:56:49]Method is POST - this is cgi request [21:56:49]url: /json_proto [21:56:49]query_string will be loaded in cgi processing [21:56:49]execute_cgi json_proto POST (null) [21:56:49]execute_cgi path=json_proto method=POST [21:56:49]POST find Content-Length [21:56:49]Host: 172.17.35.3:8080 [21:56:49]Content-Length: 677 [21:56:49]Content-Type: application/json [21:56:49] [21:56:49]POST finish read [21:56:49]Found Content-Length = 677 [21:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 6.310, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:49]execute_script... [21:56:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 6.310, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:49]POST & json_proto [21:56:49]process_json_proto [21:56:49]json parsed OK: [21:56:49]protocol is kg_v1.0 [21:56:49]action value=close_receipt [21:56:49]process_action close_receipt [21:56:49]cmd_close_receipt [21:56:49]MH_GetDate [21:56:49]Write to MH i2c: F0 00 00 68 5F B6 [21:56:49]Write i2c OK [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: F0 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: F0 09 00 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: F0 09 00 68 5F 00 B7 B9 15 66 2B 11 66 64 B0 [21:56:49]GetLastDocTimeStamp 1712699326 [21:56:49]current date 1712699831 [21:56:49]FM_GetShiftState [21:56:49]SAM_PROTO_GetShiftState [21:56:49]wFMCommunicate request_size=4 [21:56:49]MH_SAM_APDU [21:56:49]CAPDU: 80 13 01 00 [21:56:49]Write to MH i2c: E2 08 00 69 5F 80 13 01 00 00 00 00 00 45 [21:56:49]Write i2c OK [21:56:49]MH_I2C_Read... [21:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:49]Read from MH i2c: E2 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: E2 0E 00 [21:56:49]MH_I2C_Read... [21:56:49]Read from MH i2c: E2 0E 00 69 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 B0 [21:56:49]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:56:49]wFMCommunicate OK [21:56:49]SAM_PROTO_GetShiftState done [21:56:49]FM_GetShiftState done [21:56:49]opened in 1712622936 [21:56:49]opened+sec_in_day 1712709336 [21:56:49]quantity*price = 40005 [21:56:49]sum+1 = 40006 [21:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 64 09.04.2024 21:57 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26932 ФПД: 195010127052659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T215711&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26932&fm=195010127052659&tin=02508201610067®Number=0000000000091578&sum=40000 [21:56:50]StoreToDocumentArchive [21:56:50]shift 315 fd 26932 [21:56:50]save to /storage/0315/doc_00026932 [21:56:50]save last doc name /storage/0315/doc_00026932 to /storage/kkm_last_doc_name [21:56:50]save OK [21:56:50]Clear old archive folders... [21:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:50]tlvbuf is 00E84010 [21:56:50]SAM_PROTO_ClearQueue [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 09 00 00 [21:56:50]Write to MH i2c: E2 08 00 76 5F 80 09 00 00 00 00 00 00 47 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 76 5F 00 90 00 49 [21:56:50]RAPDU: 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_ClearQueue done [21:56:50]KKMCreateOFDPacket [21:56:50]OFDProtocolAddRootSTLVToBuf [21:56:50]FM_MakeSignedData [21:56:50]FM_MakeSignedData [21:56:50]SAM_PROTO_SignData [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 0D 01 02 [21:56:50]Write to MH i2c: E2 08 00 77 5F 80 0D 01 02 00 00 00 00 4F [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 77 5F 00 90 00 4A [21:56:50]RAPDU: 90 00 [21:56:50]wFMCommunicate OK [21:56:50]wFMCommunicate request_size=255 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B7 B9 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 34 69 00 00 35 04 06 00 B1 [21:56:50]Write to MH i2c: E2 02 01 78 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B7 B9 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 34 69 00 00 35 04 06 00 B1 00 00 56 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 78 5F 00 90 00 4B [21:56:50]RAPDU: 90 00 [21:56:50]wFMCommunicate OK [21:56:50]wFMCommunicate request_size=10 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 0D 02 02 05 5C 55 59 BF 73 [21:56:50]Write to MH i2c: E2 0D 00 79 5F 80 0D 02 02 05 00 5C 55 59 BF 73 00 00 98 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 03 00 79 5F 00 90 00 4C [21:56:50]RAPDU: 90 00 [21:56:50]wFMCommunicate OK [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 0D 03 02 [21:56:50]Write to MH i2c: E2 08 00 7A 5F 80 0D 03 02 00 00 00 00 54 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0B 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 0B 00 7A 5F 00 D4 0C E7 0E 7A 98 90 31 90 00 FD [21:56:50]RAPDU: D4 0C E7 0E 7A 98 90 31 90 00 [21:56:50]wFMCommunicate OK [21:56:50]SAM_PROTO_SignData done [21:56:50]FM_MakeSignedData done [21:56:50]CreateOFDProtocolMessage [21:56:50]wFMCommunicate request_size=4 [21:56:50]MH_SAM_APDU [21:56:50]CAPDU: 80 11 00 00 [21:56:50]Write to MH i2c: E2 08 00 7B 5F 80 11 00 00 00 00 00 00 54 [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:50]Read from MH i2c: E2 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 17 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: E2 17 00 7B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 AC [21:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:56:50]wFMCommunicate OK [21:56:50]CreateOFDProtocolMessage done [21:56:50]OFDSenderStorePacket 26932 [21:56:50]StoreOFDPacket docnum=26932 [21:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AD 29 07 01 EB 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B7 B9 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 34 69 00 00 35 04 06 00 B1 5C 55 59 BF 73 D4 0C E7 0E 7A 98 90 31 [21:56:50]CheckFolder [21:56:50]dirname=/storage/ofd_packets [21:56:50]CheckFolder done [21:56:50]ProducePacketName [21:56:50]name=ofd_packets/00026932 [21:56:50]NVStorageSaveData ofd_packets/00026932 [21:56:50]File name is /storage/ofd_packets/00026932 [21:56:50]Write 301 bytes [21:56:50]NVStorageSaveData done [21:56:50]OFDSenderStorePacket done [21:56:50]KKMCreateOFDPacket done [21:56:50]NVStorageSaveData kkm_last_timestamp [21:56:50]File name is /storage/kkm_last_timestamp [21:56:50]Write 4 bytes [21:56:50]NVStorageSaveData done [21:56:50]ExternCall_PrintAddStr [21:56:50]wPrintStart [21:56:50]Write to MH i2c: 01 00 00 7C 5F DB [21:56:50]Write i2c OK [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: 01 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: 01 07 00 [21:56:50]MH_I2C_Read... [21:56:50]Read from MH i2c: 01 07 00 7C 5F 00 00 00 00 00 FF 0F F0 [21:56:50]RasterBufferAndPrint [21:56:50]line Счет N : (1)359677 [21:56:50]line ИНН: 02508201610067 [21:56:50]line Контрольно-Кассовый Чек [21:56:50]line ПРОДАЖА [21:56:50]line ТРК (МРК, ГНК) : 61 [21:56:50]line Товар: 2710124130 [21:56:50]line Аи-92-К-5 [21:56:50]line 6.310 * 63.40 [21:56:50]line = 400.05 [21:56:50]line НДС 12% НСП 1% [21:56:50]line > о реализуемом товаре [21:56:50]line ОКРУГЛЕНИЕ: -0.05 [21:56:50]line ИТОГО: 400.00 [21:56:50]line Внесено: 400.00 [21:56:50]line СДАЧА: 0.00 [21:56:50]line НСП 1% : 3.54 [21:56:50]line НДС 12% : 42.48 [21:56:50]line Наличными: 400.00 [21:56:50]line Безнал.: 0.00 [21:56:50]line Место: АЗС № 122 "Партнер Нефть" [21:56:50]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [21:56:50]line СНО: Общий режим [21:56:50]line Чек 64 09.04.2024 21:57 [21:56:50]line Смена: 315 ФФД: 1.0 [21:56:50]line ЗНМ: 0300000147 [21:56:50]line РНМ: 0000000000091578 [21:56:50]line Версия ККМ: 001 [21:56:50]line ФМ: 0000000000874657 [21:56:50]line ФД: 26932 [21:56:50]line ФПД: 195010127052659 [21:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T215711&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26932&fm=195010127052659&tin=02508201610067®Number=0000000000091578&sum=40000 [21:56:51]OFD Sender: Processing packet 26932 [packets to send 44, broken 43] [21:56:51]ProducePacketName [21:56:51]name=ofd_packets/00026932 [21:56:51]OFD Sender: To server: pG, [21:56:51]CommunicateWithHost lk.salyk.kg:30040 [21:56:51]ConnectInit lk.salyk.kg [21:56:51]written 0, free lines is 4095 [21:56:51]Connected sock=10 [21:56:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 AD 29 07 01 EB 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 18 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 B7 B9 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 34 69 00 00 35 04 06 00 B1 5C 55 59 BF 73 D4 0C E7 0E 7A 98 90 31 [21:56:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 73 89 47 00 BA 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 34 69 00 00 F4 03 04 00 1D 61 15 66 B6 04 01 00 00 C3 C7 59 0F 07 BB 7B 6E [21:56:51]CommunicateWithHost err = 0 [21:56:51]CheckOFDResponse [21:56:51]1017 (14) - 77093643461234 [21:56:51]1041 (16) - 0000000000874657 [21:56:51]1040 (4) - 26932 [21:56:51]1012 (4) - 09.04.2024 15:39 [21:56:51]1206 (1) - 0 [21:56:51]OFD Sender: Remove packet 26932 [21:56:51]ProducePacketName [21:56:51]name=ofd_packets/00026932 [21:56:51]NVStorageDeleteData [21:56:51]Write to MH i2c: 01 00 00 A7 5F 06 [21:56:51]Write i2c OK [21:56:51]MH_I2C_Read... [21:56:51]Read from MH i2c: 01 [21:56:51]MH_I2C_Read... [21:56:51]Read from MH i2c: 01 07 00 [21:56:51]MH_I2C_Read... [21:56:51]Read from MH i2c: 01 07 00 A7 5F 00 00 00 00 00 78 0C 91 [21:56:51]RasterBufferAndPrint [21:56:51]line [21:56:51]line [21:56:51]line [21:56:51]line [21:56:51]line [21:56:51]written 0, free lines is 3195 [21:56:51]MH_Cut [21:56:51]Write to MH i2c: D1 01 00 AE 5F 01 DF [21:56:51]Write i2c OK [21:56:51]MH_I2C_Read... [21:56:51]Read from MH i2c: D1 [21:56:51]MH_I2C_Read... [21:56:51]Read from MH i2c: D1 01 00 [21:56:51]MH_I2C_Read... [21:56:51]Read from MH i2c: D1 01 00 AE 5F 00 DE [21:56:51]Write to MH i2c: 01 00 00 AF 5F 0E [21:56:51]Write i2c OK [21:56:51]MH_I2C_Read... [21:56:51]OFD Sender: No OFD packet to send [21:56:52]*** Cut start [21:56:52]*** Partial cut [21:56:52]*** CUTSNS_PIN = 1 [21:56:52]*** CUTSNS_PIN = 0 [21:56:53]*** Brake cut motor [21:56:53]Read from MH i2c: 01 [21:56:53]MH_I2C_Read... [21:56:53]*** Stop cut motor [21:56:53]*** Cut end [21:56:53]Read from MH i2c: 01 07 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: 01 07 00 AF 5F 00 00 00 00 00 FF 0F 23 [21:56:53]process_action close_receipt done [21:56:53]requested_data is exist [21:56:53]produce_requested_data [21:56:53]requested_item fm.sn is exist - process it [21:56:53]wFMCommunicate request_size=4 [21:56:53]MH_SAM_APDU [21:56:53]CAPDU: 80 11 00 00 [21:56:53]Write to MH i2c: E2 08 00 B0 5F 80 11 00 00 00 00 00 00 89 [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:53]Read from MH i2c: E2 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 17 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 17 00 B0 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 E1 [21:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [21:56:53]wFMCommunicate OK [21:56:53]requested_item fd.num is exist - process it [21:56:53]SAM_PROTO_GetFieldsCounters [21:56:53]wFMCommunicate request_size=4 [21:56:53]MH_SAM_APDU [21:56:53]CAPDU: 80 13 00 00 [21:56:53]Write to MH i2c: E2 08 00 B1 5F 80 13 00 00 00 00 00 00 8C [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:53]Read from MH i2c: E2 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 62 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 62 00 B1 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 34 69 00 00 0E 04 04 00 3B 01 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 50 [21:56:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 34 69 00 00 0E 04 04 00 3B 01 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 [21:56:53]wFMCommunicate OK [21:56:53]SAM_PROTO_GetFieldsCounters done [21:56:53]requested_item shift.num is exist - process it [21:56:53]requested_item shift.opened is exist - process it [21:56:53]req_shift_opened [21:56:53]FM_GetShiftState [21:56:53]SAM_PROTO_GetShiftState [21:56:53]wFMCommunicate request_size=4 [21:56:53]MH_SAM_APDU [21:56:53]CAPDU: 80 13 01 00 [21:56:53]Write to MH i2c: E2 08 00 B2 5F 80 13 01 00 00 00 00 00 8E [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:53]Read from MH i2c: E2 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 B2 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 F9 [21:56:53]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [21:56:53]wFMCommunicate OK [21:56:53]SAM_PROTO_GetShiftState done [21:56:53]FM_GetShiftState done [21:56:53]req_shift_opened done [21:56:53]requested_item shift.open_date is exist - process it [21:56:53]req_shift_open_date [21:56:53]req_shift_open_date done [21:56:53]produce_requested_data done [21:56:53]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26932,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [21:56:53]process_action_free close_receipt [21:56:53]json_value_free [21:56:53]json_value_free done [21:56:53]process_json_proto returns [21:56:53]Send response to host [21:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26932,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [21:56:53]free response buf [21:56:53]execute_script done [21:56:53]execute_script returns [21:56:53]free content buf [21:56:53]Sock 8.Close socket [21:56:53]Sock 8.Thread stoped [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:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:42]accept exits with 9 [22:05:42]New connection [22:05:42]New thread 3067014500 created [22:05:42]Thread 3066871140 joined [22:05:42]Waiting for new connection... [22:05:42] Sock 9.Parse request [22:05:42]Sock 9.Check first char [22:05:42]Sock 9.First char is OK [22:05:42]request: POST /json_proto HTTP/1.0 [22:05:42]Method: POST [22:05:42]URL: /json_proto [22:05:42]Method is POST - this is cgi request [22:05:42]url: /json_proto [22:05:42]query_string will be loaded in cgi processing [22:05:42]execute_cgi json_proto POST (null) [22:05:42]execute_cgi path=json_proto method=POST [22:05:42]POST find Content-Length [22:05:42]Host: 172.17.35.3:8080 [22:05:42]Content-Length: 808 [22:05:42]Content-Type: application/json [22:05:42] [22:05:42]POST finish read [22:05:42]Found Content-Length = 808 [22:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 20.900, "sum" : 1500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:42]execute_script... [22:05: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)359678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.80, "quantity" : 20.900, "sum" : 1500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:42]POST & json_proto [22:05:42]process_json_proto [22:05:42]json parsed OK: [22:05:42]protocol is kg_v1.0 [22:05:42]action value=close_receipt [22:05:42]process_action close_receipt [22:05:42]cmd_close_receipt [22:05:42]MH_GetDate [22:05:42]Write to MH i2c: F0 00 00 B3 5F 01 [22:05:42]Write i2c OK [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: F0 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: F0 09 00 [22:05:42]MH_I2C_Read... [22:05:42]Read from MH i2c: F0 09 00 B3 5F 00 CD BB 15 66 2B 11 66 64 13 [22:05:42]GetLastDocTimeStamp 1712699831 [22:05:42]current date 1712700365 [22:05:42]FM_GetShiftState [22:05:42]SAM_PROTO_GetShiftState [22:05:42]wFMCommunicate request_size=4 [22:05:42]MH_SAM_APDU [22:05:42]CAPDU: 80 13 01 00 [22:05:42]Write to MH i2c: E2 08 00 B4 5F 80 13 01 00 00 00 00 00 90 [22:05:42]Write i2c OK [22:05:42]MH_I2C_Read... [22:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:43]Read from MH i2c: E2 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 0E 00 [22:05:43]MH_I2C_Read... [22:05:43]Read from MH i2c: E2 0E 00 B4 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 FB [22:05:43]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:05:43]wFMCommunicate OK [22:05:43]SAM_PROTO_GetShiftState done [22:05:43]FM_GetShiftState done [22:05:43]opened in 1712622936 [22:05:43]opened+sec_in_day 1712709336 [22:05:43]quantity*price = 150062 [22:05:43]sum+1 = 150063 [22:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.62 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.62 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 65 09.04.2024 22:06 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26933 ФПД: 149906937786771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T220605&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26933&fm=149906937786771&tin=02508201610067®Number=0000000000091578&sum=150062 [22:05:44]StoreToDocumentArchive [22:05:44]shift 315 fd 26933 [22:05:44]save to /storage/0315/doc_00026933 [22:05:44]save last doc name /storage/0315/doc_00026933 to /storage/kkm_last_doc_name [22:05:44]save OK [22:05:44]Clear old archive folders... [22:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:05:44]tlvbuf is 00EF6C60 [22:05:44]SAM_PROTO_ClearQueue [22:05:44]wFMCommunicate request_size=4 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 09 00 00 [22:05:44]Write to MH i2c: E2 08 00 C1 5F 80 09 00 00 00 00 00 00 92 [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 C1 5F 00 90 00 94 [22:05:44]RAPDU: 90 00 [22:05:44]wFMCommunicate OK [22:05:44]SAM_PROTO_ClearQueue done [22:05:44]KKMCreateOFDPacket [22:05:44]OFDProtocolAddRootSTLVToBuf [22:05:44]FM_MakeSignedData [22:05:44]FM_MakeSignedData [22:05:44]SAM_PROTO_SignData [22:05:44]wFMCommunicate request_size=4 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 0D 01 02 [22:05:44]Write to MH i2c: E2 08 00 C2 5F 80 0D 01 02 00 00 00 00 9A [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 C2 5F 00 90 00 95 [22:05:44]RAPDU: 90 00 [22:05:44]wFMCommunicate OK [22:05:44]wFMCommunicate request_size=255 [22:05:44]MH_SAM_APDU [22:05: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 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD BB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 35 69 00 00 35 04 06 00 [22:05:44]Write to MH i2c: E2 02 01 C3 5F 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD BB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 35 69 00 00 35 04 06 00 00 00 45 [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 C3 5F 00 90 00 96 [22:05:44]RAPDU: 90 00 [22:05:44]wFMCommunicate OK [22:05:44]wFMCommunicate request_size=11 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 0D 02 02 06 88 56 ED C6 B1 93 [22:05:44]Write to MH i2c: E2 0E 00 C4 5F 80 0D 02 02 06 00 88 56 ED C6 B1 93 00 00 7E [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 03 00 C4 5F 00 90 00 97 [22:05:44]RAPDU: 90 00 [22:05:44]wFMCommunicate OK [22:05:44]wFMCommunicate request_size=4 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 0D 03 02 [22:05:44]Write to MH i2c: E2 08 00 C5 5F 80 0D 03 02 00 00 00 00 9F [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 0B 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 0B 00 C5 5F 00 A3 E1 6B 17 09 1A 2D D1 90 00 C7 [22:05:44]RAPDU: A3 E1 6B 17 09 1A 2D D1 90 00 [22:05:44]wFMCommunicate OK [22:05:44]SAM_PROTO_SignData done [22:05:44]FM_MakeSignedData done [22:05:44]CreateOFDProtocolMessage [22:05:44]wFMCommunicate request_size=4 [22:05:44]MH_SAM_APDU [22:05:44]CAPDU: 80 11 00 00 [22:05:44]Write to MH i2c: E2 08 00 C6 5F 80 11 00 00 00 00 00 00 9F [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:44]Read from MH i2c: E2 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 17 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: E2 17 00 C6 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 F7 [22:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:05:44]wFMCommunicate OK [22:05:44]CreateOFDProtocolMessage done [22:05:44]OFDSenderStorePacket 26933 [22:05:44]StoreOFDPacket docnum=26933 [22:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 05 15 08 01 CB 2B 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD BB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 35 69 00 00 35 04 06 00 88 56 ED C6 B1 93 A3 E1 6B 17 09 1A 2D D1 [22:05:44]CheckFolder [22:05:44]dirname=/storage/ofd_packets [22:05:44]CheckFolder done [22:05:44]ProducePacketName [22:05:44]name=ofd_packets/00026933 [22:05:44]NVStorageSaveData ofd_packets/00026933 [22:05:44]File name is /storage/ofd_packets/00026933 [22:05:44]Write 302 bytes [22:05:44]NVStorageSaveData done [22:05:44]OFDSenderStorePacket done [22:05:44]KKMCreateOFDPacket done [22:05:44]NVStorageSaveData kkm_last_timestamp [22:05:44]File name is /storage/kkm_last_timestamp [22:05:44]Write 4 bytes [22:05:44]NVStorageSaveData done [22:05:44]ExternCall_PrintAddStr [22:05:44]wPrintStart [22:05:44]Write to MH i2c: 01 00 00 C7 5F 26 [22:05:44]Write i2c OK [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: 01 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: 01 07 00 [22:05:44]MH_I2C_Read... [22:05:44]Read from MH i2c: 01 07 00 C7 5F 00 00 00 00 00 FF 0F 3B [22:05:44]RasterBufferAndPrint [22:05:44]line Счет N : (1)359678 [22:05:44]line ИНН: 02508201610067 [22:05:44]line Контрольно-Кассовый Чек [22:05:44]line ПРОДАЖА [22:05:44]line ТРК (МРК, ГНК) : 21 [22:05:44]line Товар: 2710194210 [22:05:44]line ДТ(л)-К-5 [22:05:44]line 20.900 * 71.80 [22:05:44]line = 1500.62 [22:05:44]line НДС 12% НСП 1% [22:05:44]line > о реализуемом товаре [22:05:44]line ИТОГО: 1500.62 [22:05:44]line НСП 1% : 13.28 [22:05:44]line НДС 12% : 159.36 [22:05:44]line Наличными: 0.00 [22:05:44]line Безнал.: 1500.62 [22:05:44]line Место: АЗС № 122 "Партнер Нефть" [22:05:44]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [22:05:44]line СНО: Общий режим [22:05:44]line Чек 65 09.04.2024 22:06 [22:05:44]line Смена: 315 ФФД: 1.0 [22:05:44]line ЗНМ: 0300000147 [22:05:44]line РНМ: 0000000000091578 [22:05:44]line Версия ККМ: 001 [22:05:44]line Платежная система: O! деньги [22:05:44]line ФМ: 0000000000874657 [22:05:44]line ФД: 26933 [22:05:44]line ФПД: 149906937786771 [22:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T220605&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26933&fm=149906937786771&tin=02508201610067®Number=0000000000091578&sum=150062 [22:05:44]OFD Sender: Processing packet 26933 [packets to send 44, broken 43] [22:05:44]ProducePacketName [22:05:44]name=ofd_packets/00026933 [22:05:45]OFD Sender: To server: pG, [22:05:45]CommunicateWithHost lk.salyk.kg:30040 [22:05:45]ConnectInit lk.salyk.kg [22:05:45]written 0, free lines is 4095 [22:05:45]Connected sock=10 [22:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 01 00 00 05 15 08 01 CB 2B 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 A4 51 00 00 00 00 00 37 04 06 00 0C 1C 00 00 00 00 13 04 06 00 2E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CD BB 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 35 69 00 00 35 04 06 00 88 56 ED C6 B1 93 A3 E1 6B 17 09 1A 2D D1 [22:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 E5 A8 47 00 37 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 35 69 00 00 F4 03 04 00 33 63 15 66 B6 04 01 00 00 50 09 47 44 5D EF EF F5 [22:05:45]CommunicateWithHost err = 0 [22:05:45]CheckOFDResponse [22:05:45]1017 (14) - 77093643461234 [22:05:45]1041 (16) - 0000000000874657 [22:05:45]1040 (4) - 26933 [22:05:45]1012 (4) - 09.04.2024 15:48 [22:05:45]1206 (1) - 0 [22:05:45]OFD Sender: Remove packet 26933 [22:05:45]ProducePacketName [22:05:45]name=ofd_packets/00026933 [22:05:45]NVStorageDeleteData [22:05:45]Write to MH i2c: 01 00 00 F1 5F 50 [22:05:45]Write i2c OK [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: 01 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: 01 07 00 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: 01 07 00 F1 5F 00 00 00 00 00 93 0C F6 [22:05:45]RasterBufferAndPrint [22:05:45]line [22:05:45]line [22:05:45]line [22:05:45]line [22:05:45]line [22:05:45]written 0, free lines is 3222 [22:05:45]MH_Cut [22:05:45]Write to MH i2c: D1 01 00 F8 5F 01 29 [22:05:45]Write i2c OK [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: D1 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: D1 01 00 [22:05:45]MH_I2C_Read... [22:05:45]Read from MH i2c: D1 01 00 F8 5F 00 28 [22:05:45]Write to MH i2c: 01 00 00 F9 5F 58 [22:05:45]Write i2c OK [22:05:45]MH_I2C_Read... [22:05:45]OFD Sender: No OFD packet to send [22:05:46]*** Cut start [22:05:46]*** Partial cut [22:05:46]*** CUTSNS_PIN = 1 [22:05:46]*** CUTSNS_PIN = 0 [22:05:46]*** Brake cut motor [22:05:47]Read from MH i2c: 01 [22:05:47]MH_I2C_Read... [22:05:47]*** Stop cut motor [22:05:47]*** Cut end [22:05:47]Read from MH i2c: 01 07 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: 01 07 00 F9 5F 00 00 00 00 00 FF 0F 6D [22:05:47]process_action close_receipt done [22:05:47]requested_data is exist [22:05:47]produce_requested_data [22:05:47]requested_item fm.sn is exist - process it [22:05:47]wFMCommunicate request_size=4 [22:05:47]MH_SAM_APDU [22:05:47]CAPDU: 80 11 00 00 [22:05:47]Write to MH i2c: E2 08 00 FA 5F 80 11 00 00 00 00 00 00 D3 [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:47]Read from MH i2c: E2 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 17 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 17 00 FA 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 2B [22:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:05:47]wFMCommunicate OK [22:05:47]requested_item fd.num is exist - process it [22:05:47]SAM_PROTO_GetFieldsCounters [22:05:47]wFMCommunicate request_size=4 [22:05:47]MH_SAM_APDU [22:05:47]CAPDU: 80 13 00 00 [22:05:47]Write to MH i2c: E2 08 00 FB 5F 80 13 00 00 00 00 00 00 D6 [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:47]Read from MH i2c: E2 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 62 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 62 00 FB 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 35 69 00 00 0E 04 04 00 3B 01 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 9E [22:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 35 69 00 00 0E 04 04 00 3B 01 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 [22:05:47]wFMCommunicate OK [22:05:47]SAM_PROTO_GetFieldsCounters done [22:05:47]requested_item shift.num is exist - process it [22:05:47]requested_item shift.opened is exist - process it [22:05:47]req_shift_opened [22:05:47]FM_GetShiftState [22:05:47]SAM_PROTO_GetShiftState [22:05:47]wFMCommunicate request_size=4 [22:05:47]MH_SAM_APDU [22:05:47]CAPDU: 80 13 01 00 [22:05:47]Write to MH i2c: E2 08 00 FC 5F 80 13 01 00 00 00 00 00 D8 [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:47]Read from MH i2c: E2 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 0E 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: E2 0E 00 FC 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 43 [22:05:47]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:05:47]wFMCommunicate OK [22:05:47]SAM_PROTO_GetShiftState done [22:05:47]FM_GetShiftState done [22:05:47]req_shift_opened done [22:05:47]requested_item shift.open_date is exist - process it [22:05:47]req_shift_open_date [22:05:47]req_shift_open_date done [22:05:47]produce_requested_data done [22:05:47]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26933,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [22:05:47]process_action_free close_receipt [22:05:47]json_value_free [22:05:47]json_value_free done [22:05:47]process_json_proto returns [22:05:47]Send response to host [22:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26933,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [22:05:47]free response buf [22:05:47]execute_script done [22:05:47]execute_script returns [22:05:47]free content buf [22:05:47]Sock 9.Close socket [22:05:47]Sock 9.Thread stoped [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]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:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:16]accept exits with 8 [22:20:16]New connection [22:20:16]New thread 3066871140 created [22:20:16]Thread 3067014500 joined [22:20:16]Waiting for new connection... [22:20:16] Sock 8.Parse request [22:20:16]Sock 8.Check first char [22:20:16]Sock 8.First char is OK [22:20:16]request: POST /json_proto HTTP/1.0 [22:20:16]Method: POST [22:20:16]URL: /json_proto [22:20:16]Method is POST - this is cgi request [22:20:16]url: /json_proto [22:20:16]query_string will be loaded in cgi processing [22:20:16]execute_cgi json_proto POST (null) [22:20:16]execute_cgi path=json_proto method=POST [22:20:16]POST find Content-Length [22:20:16]Host: 172.17.35.3:8080 [22:20:16]Content-Length: 803 [22:20:16]Content-Type: application/json [22:20:16] [22:20:16]POST finish read [22:20:16]Found Content-Length = 803 [22:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:16]execute_script... [22:20:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 15.780, "sum" : 1000.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:16]POST & json_proto [22:20:16]process_json_proto [22:20:16]json parsed OK: [22:20:16]protocol is kg_v1.0 [22:20:16]action value=close_receipt [22:20:16]process_action close_receipt [22:20:16]cmd_close_receipt [22:20:16]MH_GetDate [22:20:16]Write to MH i2c: F0 00 00 FD 5F 4B [22:20:16]Write i2c OK [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: F0 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: F0 09 00 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: F0 09 00 FD 5F 00 37 BF 15 66 2B 11 66 64 CB [22:20:16]GetLastDocTimeStamp 1712700365 [22:20:16]current date 1712701239 [22:20:16]FM_GetShiftState [22:20:16]SAM_PROTO_GetShiftState [22:20:16]wFMCommunicate request_size=4 [22:20:16]MH_SAM_APDU [22:20:16]CAPDU: 80 13 01 00 [22:20:16]Write to MH i2c: E2 08 00 FE 5F 80 13 01 00 00 00 00 00 DA [22:20:16]Write i2c OK [22:20:16]MH_I2C_Read... [22:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:16]Read from MH i2c: E2 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 0E 00 [22:20:16]MH_I2C_Read... [22:20:16]Read from MH i2c: E2 0E 00 FE 5F 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 45 [22:20:16]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:20:16]wFMCommunicate OK [22:20:16]SAM_PROTO_GetShiftState done [22:20:16]FM_GetShiftState done [22:20:16]opened in 1712622936 [22:20:16]opened+sec_in_day 1712709336 [22:20:16]quantity*price = 100045 [22:20:16]sum+1 = 100046 [22:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.45 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.45 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 66 09.04.2024 22:20 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874657 ФД: 26934 ФПД: 237950051004390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T222039&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26934&fm=237950051004390&tin=02508201610067®Number=0000000000091578&sum=100045 [22:20:18]StoreToDocumentArchive [22:20:18]shift 315 fd 26934 [22:20:18]save to /storage/0315/doc_00026934 [22:20:18]save last doc name /storage/0315/doc_00026934 to /storage/kkm_last_doc_name [22:20:18]save OK [22:20:18]Clear old archive folders... [22:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:18]tlvbuf is 00EE5C40 [22:20:18]SAM_PROTO_ClearQueue [22:20:18]wFMCommunicate request_size=4 [22:20:18]MH_SAM_APDU [22:20:18]CAPDU: 80 09 00 00 [22:20:18]Write to MH i2c: E2 08 00 0B 60 80 09 00 00 00 00 00 00 DD [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:18]Read from MH i2c: E2 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 0B 60 00 90 00 DF [22:20:18]RAPDU: 90 00 [22:20:18]wFMCommunicate OK [22:20:18]SAM_PROTO_ClearQueue done [22:20:18]KKMCreateOFDPacket [22:20:18]OFDProtocolAddRootSTLVToBuf [22:20:18]FM_MakeSignedData [22:20:18]FM_MakeSignedData [22:20:18]SAM_PROTO_SignData [22:20:18]wFMCommunicate request_size=4 [22:20:18]MH_SAM_APDU [22:20:18]CAPDU: 80 0D 01 02 [22:20:18]Write to MH i2c: E2 08 00 0C 60 80 0D 01 02 00 00 00 00 E5 [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:18]Read from MH i2c: E2 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 0C 60 00 90 00 E0 [22:20:18]RAPDU: 90 00 [22:20:18]wFMCommunicate OK [22:20:18]wFMCommunicate request_size=255 [22:20:18]MH_SAM_APDU [22:20:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 37 BF 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 36 69 00 00 35 04 06 00 D8 [22:20:18]Write to MH i2c: E2 02 01 0D 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 37 BF 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 36 69 00 00 35 04 06 00 D8 00 00 39 [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:18]Read from MH i2c: E2 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 0D 60 00 90 00 E1 [22:20:18]RAPDU: 90 00 [22:20:18]wFMCommunicate OK [22:20:18]wFMCommunicate request_size=10 [22:20:18]MH_SAM_APDU [22:20:18]CAPDU: 80 0D 02 02 05 6A 10 43 AF E6 [22:20:18]Write to MH i2c: E2 0D 00 0E 60 80 0D 02 02 05 00 6A 10 43 AF E6 00 00 44 [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:18]Read from MH i2c: E2 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 03 00 0E 60 00 90 00 E2 [22:20:18]RAPDU: 90 00 [22:20:18]wFMCommunicate OK [22:20:18]wFMCommunicate request_size=4 [22:20:18]MH_SAM_APDU [22:20:18]CAPDU: 80 0D 03 02 [22:20:18]Write to MH i2c: E2 08 00 0F 60 80 0D 03 02 00 00 00 00 EA [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:18]Read from MH i2c: E2 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 0B 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 0B 00 0F 60 00 20 94 B7 15 1B AF 19 A1 90 00 EF [22:20:18]RAPDU: 20 94 B7 15 1B AF 19 A1 90 00 [22:20:18]wFMCommunicate OK [22:20:18]SAM_PROTO_SignData done [22:20:18]FM_MakeSignedData done [22:20:18]CreateOFDProtocolMessage [22:20:18]wFMCommunicate request_size=4 [22:20:18]MH_SAM_APDU [22:20:18]CAPDU: 80 11 00 00 [22:20:18]Write to MH i2c: E2 08 00 10 60 80 11 00 00 00 00 00 00 EA [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:18]Read from MH i2c: E2 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 17 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: E2 17 00 10 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 42 [22:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:20:18]wFMCommunicate OK [22:20:18]CreateOFDProtocolMessage done [22:20:18]OFDSenderStorePacket 26934 [22:20:18]StoreOFDPacket docnum=26934 [22:20:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 0B 9D 07 01 EE 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 37 BF 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 36 69 00 00 35 04 06 00 D8 6A 10 43 AF E6 20 94 B7 15 1B AF 19 A1 [22:20:18]CheckFolder [22:20:18]dirname=/storage/ofd_packets [22:20:18]CheckFolder done [22:20:18]ProducePacketName [22:20:18]name=ofd_packets/00026934 [22:20:18]NVStorageSaveData ofd_packets/00026934 [22:20:18]File name is /storage/ofd_packets/00026934 [22:20:18]Write 301 bytes [22:20:18]NVStorageSaveData done [22:20:18]OFDSenderStorePacket done [22:20:18]KKMCreateOFDPacket done [22:20:18]NVStorageSaveData kkm_last_timestamp [22:20:18]File name is /storage/kkm_last_timestamp [22:20:18]Write 4 bytes [22:20:18]NVStorageSaveData done [22:20:18]ExternCall_PrintAddStr [22:20:18]wPrintStart [22:20:18]Write to MH i2c: 01 00 00 11 60 71 [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: 01 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: 01 07 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: 01 07 00 11 60 00 00 00 00 00 FF 0F 86 [22:20:18]RasterBufferAndPrint [22:20:18]line Счет N : (1)359679 [22:20:18]line ИНН: 02508201610067 [22:20:18]line Контрольно-Кассовый Чек [22:20:18]line ПРОДАЖА [22:20:18]line ТРК (МРК, ГНК) : 51 [22:20:18]line Товар: 2710124130 [22:20:18]line Аи-92-К-5 [22:20:18]line 15.780 * 63.40 [22:20:18]line = 1000.45 [22:20:18]line НДС 12% НСП 1% [22:20:18]line > о реализуемом товаре [22:20:18]line ИТОГО: 1000.45 [22:20:18]line НСП 1% : 8.85 [22:20:18]line НДС 12% : 106.24 [22:20:18]line Наличными: 0.00 [22:20:18]line Безнал.: 1000.45 [22:20:18]line Место: АЗС № 122 "Партнер Нефть" [22:20:18]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [22:20:18]line СНО: Общий режим [22:20:18]line Чек 66 09.04.2024 22:20 [22:20:18]line Смена: 315 ФФД: 1.0 [22:20:18]line ЗНМ: 0300000147 [22:20:18]line РНМ: 0000000000091578 [22:20:18]line Версия ККМ: 001 [22:20:18]line Платежная система: O! деньги [22:20:18]line ФМ: 0000000000874657 [22:20:18]line ФД: 26934 [22:20:18]line ФПД: 237950051004390 [22:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T222039&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26934&fm=237950051004390&tin=02508201610067®Number=0000000000091578&sum=100045 [22:20:18]OFD Sender: Processing packet 26934 [packets to send 44, broken 43] [22:20:18]ProducePacketName [22:20:18]name=ofd_packets/00026934 [22:20:18]OFD Sender: To server: pG, [22:20:18]CommunicateWithHost lk.salyk.kg:30040 [22:20:18]ConnectInit lk.salyk.kg [22:20:18]written 0, free lines is 4095 [22:20:18]Connected sock=10 [22:20:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 0B 9D 07 01 EE 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 CD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 37 BF 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 36 69 00 00 35 04 06 00 D8 6A 10 43 AF E6 20 94 B7 15 1B AF 19 A1 [22:20:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 4E 59 47 00 C4 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 36 69 00 00 F4 03 04 00 9D 66 15 66 B6 04 01 00 00 F8 AF B6 6A 2B 66 5F CA [22:20:19]CommunicateWithHost err = 0 [22:20:19]CheckOFDResponse [22:20:19]1017 (14) - 77093643461234 [22:20:19]1041 (16) - 0000000000874657 [22:20:19]1040 (4) - 26934 [22:20:19]1012 (4) - 09.04.2024 16:02 [22:20:19]1206 (1) - 0 [22:20:19]OFD Sender: Remove packet 26934 [22:20:19]ProducePacketName [22:20:19]name=ofd_packets/00026934 [22:20:19]NVStorageDeleteData [22:20:19]Write to MH i2c: 01 00 00 3B 60 9B [22:20:19]Write i2c OK [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: 01 [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: 01 07 00 [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: 01 07 00 3B 60 00 00 00 00 00 8A 0C 38 [22:20:19]RasterBufferAndPrint [22:20:19]line [22:20:19]line [22:20:19]line [22:20:19]line [22:20:19]line [22:20:19]written 0, free lines is 3212 [22:20:19]MH_Cut [22:20:19]Write to MH i2c: D1 01 00 42 60 01 74 [22:20:19]Write i2c OK [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: D1 [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: D1 01 00 [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: D1 01 00 42 60 00 73 [22:20:19]Write to MH i2c: 01 00 00 43 60 A3 [22:20:19]Write i2c OK [22:20:19]MH_I2C_Read... [22:20:19]OFD Sender: No OFD packet to send [22:20:20]*** Cut start [22:20:20]*** Partial cut [22:20:20]*** CUTSNS_PIN = 1 [22:20:20]*** CUTSNS_PIN = 0 [22:20:20]*** Brake cut motor [22:20:21]Read from MH i2c: 01 [22:20:21]MH_I2C_Read... [22:20:21]*** Stop cut motor [22:20:21]*** Cut end [22:20:21]Read from MH i2c: 01 07 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: 01 07 00 43 60 00 00 00 00 00 FF 0F B8 [22:20:21]process_action close_receipt done [22:20:21]requested_data is exist [22:20:21]produce_requested_data [22:20:21]requested_item fm.sn is exist - process it [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 11 00 00 [22:20:21]Write to MH i2c: E2 08 00 44 60 80 11 00 00 00 00 00 00 1E [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 17 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 17 00 44 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 76 [22:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:20:21]wFMCommunicate OK [22:20:21]requested_item fd.num is exist - process it [22:20:21]SAM_PROTO_GetFieldsCounters [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 13 00 00 [22:20:21]Write to MH i2c: E2 08 00 45 60 80 13 00 00 00 00 00 00 21 [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 62 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 62 00 45 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 36 69 00 00 0E 04 04 00 3B 01 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 ED [22:20:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 36 69 00 00 0E 04 04 00 3B 01 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 [22:20:21]wFMCommunicate OK [22:20:21]SAM_PROTO_GetFieldsCounters done [22:20:21]requested_item shift.num is exist - process it [22:20:21]requested_item shift.opened is exist - process it [22:20:21]req_shift_opened [22:20:21]FM_GetShiftState [22:20:21]SAM_PROTO_GetShiftState [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 13 01 00 [22:20:21]Write to MH i2c: E2 08 00 46 60 80 13 01 00 00 00 00 00 23 [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 0E 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 0E 00 46 60 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 8E [22:20:21]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:20:21]wFMCommunicate OK [22:20:21]SAM_PROTO_GetShiftState done [22:20:21]FM_GetShiftState done [22:20:21]req_shift_opened done [22:20:21]requested_item shift.open_date is exist - process it [22:20:21]req_shift_open_date [22:20:21]req_shift_open_date done [22:20:21]produce_requested_data done [22:20:21]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26934,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [22:20:21]process_action_free close_receipt [22:20:21]json_value_free [22:20:21]json_value_free done [22:20:21]process_json_proto returns [22:20:21]Send response to host [22:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26934,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [22:20:21]free response buf [22:20:21]execute_script done [22:20:21]execute_script returns [22:20:21]free content buf [22:20:21]Sock 8.Close socket [22:20:21]Sock 8.Thread stoped [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:35]accept exits with 9 [22:24:35]New connection [22:24:35]New thread 3067014500 created [22:24:35]Thread 3066871140 joined [22:24:35]Waiting for new connection... [22:24:35] Sock 9.Parse request [22:24:35]Sock 9.Check first char [22:24:35]Sock 9.First char is OK [22:24:35]request: POST /json_proto HTTP/1.0 [22:24:35]Method: POST [22:24:35]URL: /json_proto [22:24:35]Method is POST - this is cgi request [22:24:35]url: /json_proto [22:24:35]query_string will be loaded in cgi processing [22:24:35]execute_cgi json_proto POST (null) [22:24:35]execute_cgi path=json_proto method=POST [22:24:35]POST find Content-Length [22:24:35]Host: 172.17.35.3:8080 [22:24:35]Content-Length: 677 [22:24:35]Content-Type: application/json [22:24:35] [22:24:35]POST finish read [22:24:35]Found Content-Length = 677 [22:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.160, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:35]execute_script... [22:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 3.160, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:35]POST & json_proto [22:24:35]process_json_proto [22:24:35]json parsed OK: [22:24:35]protocol is kg_v1.0 [22:24:35]action value=close_receipt [22:24:35]process_action close_receipt [22:24:35]cmd_close_receipt [22:24:35]MH_GetDate [22:24:35]Write to MH i2c: F0 00 00 47 60 96 [22:24:35]Write i2c OK [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: F0 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: F0 09 00 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: F0 09 00 47 60 00 3A C0 15 66 2B 11 66 64 1A [22:24:35]GetLastDocTimeStamp 1712701239 [22:24:35]current date 1712701498 [22:24:35]FM_GetShiftState [22:24:35]SAM_PROTO_GetShiftState [22:24:35]wFMCommunicate request_size=4 [22:24:35]MH_SAM_APDU [22:24:35]CAPDU: 80 13 01 00 [22:24:35]Write to MH i2c: E2 08 00 48 60 80 13 01 00 00 00 00 00 25 [22:24:35]Write i2c OK [22:24:35]MH_I2C_Read... [22:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:35]Read from MH i2c: E2 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 0E 00 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 0E 00 48 60 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 90 [22:24:35]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:24:35]wFMCommunicate OK [22:24:35]SAM_PROTO_GetShiftState done [22:24:35]FM_GetShiftState done [22:24:35]opened in 1712622936 [22:24:35]opened+sec_in_day 1712709336 [22:24:35]quantity*price = 20034 [22:24:35]sum+1 = 20035 [22:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 67 09.04.2024 22:24 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26935 ФПД: 183274097402606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T222458&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26935&fm=183274097402606&tin=02508201610067®Number=0000000000091578&sum=20000 [22:24:36]StoreToDocumentArchive [22:24:36]shift 315 fd 26935 [22:24:36]save to /storage/0315/doc_00026935 [22:24:36]save last doc name /storage/0315/doc_00026935 to /storage/kkm_last_doc_name [22:24:36]save OK [22:24:36]Clear old archive folders... [22:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:36]tlvbuf is 01014280 [22:24:36]SAM_PROTO_ClearQueue [22:24:36]wFMCommunicate request_size=4 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 09 00 00 [22:24:36]Write to MH i2c: E2 08 00 55 60 80 09 00 00 00 00 00 00 27 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 55 60 00 90 00 29 [22:24:36]RAPDU: 90 00 [22:24:36]wFMCommunicate OK [22:24:36]SAM_PROTO_ClearQueue done [22:24:36]KKMCreateOFDPacket [22:24:36]OFDProtocolAddRootSTLVToBuf [22:24:36]FM_MakeSignedData [22:24:36]FM_MakeSignedData [22:24:36]SAM_PROTO_SignData [22:24:36]wFMCommunicate request_size=4 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 0D 01 02 [22:24:36]Write to MH i2c: E2 08 00 56 60 80 0D 01 02 00 00 00 00 2F [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 56 60 00 90 00 2A [22:24:36]RAPDU: 90 00 [22:24:36]wFMCommunicate OK [22:24:36]wFMCommunicate request_size=255 [22:24:36]MH_SAM_APDU [22:24: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 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3A C0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 37 69 00 00 35 04 06 00 A6 [22:24:36]Write to MH i2c: E2 02 01 57 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3A C0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 37 69 00 00 35 04 06 00 A6 00 00 31 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 57 60 00 90 00 2B [22:24:36]RAPDU: 90 00 [22:24:36]wFMCommunicate OK [22:24:36]wFMCommunicate request_size=10 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 0D 02 02 05 AF D3 78 E2 EE [22:24:36]Write to MH i2c: E2 0D 00 58 60 80 0D 02 02 05 00 AF D3 78 E2 EE 00 00 06 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 03 00 58 60 00 90 00 2C [22:24:36]RAPDU: 90 00 [22:24:36]wFMCommunicate OK [22:24:36]wFMCommunicate request_size=4 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 0D 03 02 [22:24:36]Write to MH i2c: E2 08 00 59 60 80 0D 03 02 00 00 00 00 34 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 0B 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 0B 00 59 60 00 49 94 D4 6B 86 8F 85 74 90 00 5F [22:24:36]RAPDU: 49 94 D4 6B 86 8F 85 74 90 00 [22:24:36]wFMCommunicate OK [22:24:36]SAM_PROTO_SignData done [22:24:36]FM_MakeSignedData done [22:24:36]CreateOFDProtocolMessage [22:24:36]wFMCommunicate request_size=4 [22:24:36]MH_SAM_APDU [22:24:36]CAPDU: 80 11 00 00 [22:24:36]Write to MH i2c: E2 08 00 5A 60 80 11 00 00 00 00 00 00 34 [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:36]Read from MH i2c: E2 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 17 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: E2 17 00 5A 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 8C [22:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:24:36]wFMCommunicate OK [22:24:36]CreateOFDProtocolMessage done [22:24:36]OFDSenderStorePacket 26935 [22:24:36]StoreOFDPacket docnum=26935 [22:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 00 AA 07 01 9C 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3A C0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 37 69 00 00 35 04 06 00 A6 AF D3 78 E2 EE 49 94 D4 6B 86 8F 85 74 [22:24:36]CheckFolder [22:24:36]dirname=/storage/ofd_packets [22:24:36]CheckFolder done [22:24:36]ProducePacketName [22:24:36]name=ofd_packets/00026935 [22:24:36]NVStorageSaveData ofd_packets/00026935 [22:24:36]File name is /storage/ofd_packets/00026935 [22:24:36]Write 301 bytes [22:24:36]NVStorageSaveData done [22:24:36]OFDSenderStorePacket done [22:24:36]KKMCreateOFDPacket done [22:24:36]NVStorageSaveData kkm_last_timestamp [22:24:36]File name is /storage/kkm_last_timestamp [22:24:36]Write 4 bytes [22:24:36]NVStorageSaveData done [22:24:36]ExternCall_PrintAddStr [22:24:36]wPrintStart [22:24:36]Write to MH i2c: 01 00 00 5B 60 BB [22:24:36]Write i2c OK [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: 01 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: 01 07 00 [22:24:36]MH_I2C_Read... [22:24:36]Read from MH i2c: 01 07 00 5B 60 00 00 00 00 00 FF 0F D0 [22:24:36]RasterBufferAndPrint [22:24:36]line Счет N : (1)359680 [22:24:36]line ИНН: 02508201610067 [22:24:36]line Контрольно-Кассовый Чек [22:24:37]line ПРОДАЖА [22:24:37]line ТРК (МРК, ГНК) : 51 [22:24:37]line Товар: 2710124130 [22:24:37]line Аи-92-К-5 [22:24:37]line 3.160 * 63.40 [22:24:37]line = 200.34 [22:24:37]line НДС 12% НСП 1% [22:24:37]line > о реализуемом товаре [22:24:37]line ОКРУГЛЕНИЕ: -0.34 [22:24:37]line ИТОГО: 200.00 [22:24:37]line Внесено: 200.00 [22:24:37]line СДАЧА: 0.00 [22:24:37]line НСП 1% : 1.77 [22:24:37]line НДС 12% : 21.27 [22:24:37]line Наличными: 200.00 [22:24:37]line Безнал.: 0.00 [22:24:37]line Место: АЗС № 122 "Партнер Нефть" [22:24:37]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [22:24:37]line СНО: Общий режим [22:24:37]line Чек 67 09.04.2024 22:24 [22:24:37]line Смена: 315 ФФД: 1.0 [22:24:37]line ЗНМ: 0300000147 [22:24:37]line РНМ: 0000000000091578 [22:24:37]line Версия ККМ: 001 [22:24:37]line ФМ: 0000000000874657 [22:24:37]line ФД: 26935 [22:24:37]line ФПД: 183274097402606 [22:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T222458&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26935&fm=183274097402606&tin=02508201610067®Number=0000000000091578&sum=20000 [22:24:37]OFD Sender: Processing packet 26935 [packets to send 44, broken 43] [22:24:37]ProducePacketName [22:24:37]name=ofd_packets/00026935 [22:24:37]OFD Sender: To server: pG, [22:24:37]CommunicateWithHost lk.salyk.kg:30040 [22:24:37]ConnectInit lk.salyk.kg [22:24:37]written 0, free lines is 4095 [22:24:37]Connected sock=10 [22:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 00 AA 07 01 9C 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3A C0 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 37 69 00 00 35 04 06 00 A6 AF D3 78 E2 EE 49 94 D4 6B 86 8F 85 74 [22:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 53 D1 47 00 F3 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 37 69 00 00 F4 03 04 00 9F 67 15 66 B6 04 01 00 00 38 72 0C F0 DE A4 C1 89 [22:24:37]CommunicateWithHost err = 0 [22:24:37]CheckOFDResponse [22:24:37]1017 (14) - 77093643461234 [22:24:37]1041 (16) - 0000000000874657 [22:24:37]1040 (4) - 26935 [22:24:37]1012 (4) - 09.04.2024 16:06 [22:24:37]1206 (1) - 0 [22:24:37]OFD Sender: Remove packet 26935 [22:24:37]ProducePacketName [22:24:37]name=ofd_packets/00026935 [22:24:37]NVStorageDeleteData [22:24:37]Write to MH i2c: 01 00 00 86 60 E6 [22:24:37]Write i2c OK [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: 01 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: 01 07 00 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: 01 07 00 86 60 00 00 00 00 00 69 0C 62 [22:24:37]RasterBufferAndPrint [22:24:37]line [22:24:37]line [22:24:37]line [22:24:37]line [22:24:37]line [22:24:37]written 0, free lines is 3180 [22:24:37]MH_Cut [22:24:37]Write to MH i2c: D1 01 00 8D 60 01 BF [22:24:37]Write i2c OK [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: D1 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: D1 01 00 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: D1 01 00 8D 60 00 BE [22:24:37]Write to MH i2c: 01 00 00 8E 60 EE [22:24:37]Write i2c OK [22:24:37]MH_I2C_Read... [22:24:38]OFD Sender: No OFD packet to send [22:24:38]*** Cut start [22:24:38]*** Partial cut [22:24:38]*** CUTSNS_PIN = 1 [22:24:38]*** CUTSNS_PIN = 0 [22:24:39]*** Brake cut motor [22:24:39]Read from MH i2c: 01 [22:24:39]MH_I2C_Read... [22:24:39]*** Stop cut motor [22:24:39]*** Cut end [22:24:39]Read from MH i2c: 01 07 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: 01 07 00 8E 60 00 00 00 00 00 FF 0F 03 [22:24:39]process_action close_receipt done [22:24:39]requested_data is exist [22:24:39]produce_requested_data [22:24:39]requested_item fm.sn is exist - process it [22:24:39]wFMCommunicate request_size=4 [22:24:39]MH_SAM_APDU [22:24:39]CAPDU: 80 11 00 00 [22:24:39]Write to MH i2c: E2 08 00 8F 60 80 11 00 00 00 00 00 00 69 [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:39]Read from MH i2c: E2 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 17 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 17 00 8F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 C1 [22:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:24:39]wFMCommunicate OK [22:24:39]requested_item fd.num is exist - process it [22:24:39]SAM_PROTO_GetFieldsCounters [22:24:39]wFMCommunicate request_size=4 [22:24:39]MH_SAM_APDU [22:24:39]CAPDU: 80 13 00 00 [22:24:39]Write to MH i2c: E2 08 00 90 60 80 13 00 00 00 00 00 00 6C [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:39]Read from MH i2c: E2 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 62 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 62 00 90 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 37 69 00 00 0E 04 04 00 3B 01 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 3C [22:24:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 37 69 00 00 0E 04 04 00 3B 01 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 [22:24:39]wFMCommunicate OK [22:24:39]SAM_PROTO_GetFieldsCounters done [22:24:39]requested_item shift.num is exist - process it [22:24:39]requested_item shift.opened is exist - process it [22:24:39]req_shift_opened [22:24:39]FM_GetShiftState [22:24:39]SAM_PROTO_GetShiftState [22:24:39]wFMCommunicate request_size=4 [22:24:39]MH_SAM_APDU [22:24:39]CAPDU: 80 13 01 00 [22:24:39]Write to MH i2c: E2 08 00 91 60 80 13 01 00 00 00 00 00 6E [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:39]Read from MH i2c: E2 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 0E 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 0E 00 91 60 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 D9 [22:24:39]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:24:39]wFMCommunicate OK [22:24:39]SAM_PROTO_GetShiftState done [22:24:39]FM_GetShiftState done [22:24:39]req_shift_opened done [22:24:39]requested_item shift.open_date is exist - process it [22:24:39]req_shift_open_date [22:24:39]req_shift_open_date done [22:24:39]produce_requested_data done [22:24:39]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26935,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [22:24:39]process_action_free close_receipt [22:24:39]json_value_free [22:24:39]json_value_free done [22:24:39]process_json_proto returns [22:24:39]Send response to host [22:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26935,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [22:24:39]free response buf [22:24:39]execute_script done [22:24:39]execute_script returns [22:24:39]free content buf [22:24:39]Sock 9.Close socket [22:24:39]Sock 9.Thread stoped [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:22]accept exits with 8 [22:31:22]New connection [22:31:22]New thread 3066871140 created [22:31:22]Thread 3067014500 joined [22:31:22]Waiting for new connection... [22:31:22] Sock 8.Parse request [22:31:22]Sock 8.Check first char [22:31:22]Sock 8.First char is OK [22:31:22]request: POST /json_proto HTTP/1.0 [22:31:22]Method: POST [22:31:22]URL: /json_proto [22:31:22]Method is POST - this is cgi request [22:31:22]url: /json_proto [22:31:22]query_string will be loaded in cgi processing [22:31:22]execute_cgi json_proto POST (null) [22:31:22]execute_cgi path=json_proto method=POST [22:31:22]POST find Content-Length [22:31:22]Host: 172.17.35.3:8080 [22:31:22]Content-Length: 677 [22:31:22]Content-Type: application/json [22:31:22] [22:31:22]POST finish read [22:31:22]Found Content-Length = 677 [22:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)359681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "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" ] } } [22:31:22]execute_script... [22: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 : (1)359681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 63.40, "quantity" : 7.890, "sum" : 500.23, "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" ] } } [22:31:22]POST & json_proto [22:31:22]process_json_proto [22:31:22]json parsed OK: [22:31:22]protocol is kg_v1.0 [22:31:22]action value=close_receipt [22:31:22]process_action close_receipt [22:31:22]cmd_close_receipt [22:31:22]MH_GetDate [22:31:22]Write to MH i2c: F0 00 00 92 60 E1 [22:31:22]Write i2c OK [22:31:22]MH_I2C_Read... [22:31:22]Read from MH i2c: F0 [22:31:22]MH_I2C_Read... [22:31:22]Read from MH i2c: F0 09 00 [22:31:22]MH_I2C_Read... [22:31:22]Read from MH i2c: F0 09 00 92 60 00 D0 C1 15 66 2B 11 66 64 FC [22:31:22]GetLastDocTimeStamp 1712701498 [22:31:22]current date 1712701904 [22:31:22]FM_GetShiftState [22:31:22]SAM_PROTO_GetShiftState [22:31:22]wFMCommunicate request_size=4 [22:31:22]MH_SAM_APDU [22:31:22]CAPDU: 80 13 01 00 [22:31:22]Write to MH i2c: E2 08 00 93 60 80 13 01 00 00 00 00 00 70 [22:31:22]Write i2c OK [22:31:22]MH_I2C_Read... [22:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:22]Read from MH i2c: E2 [22:31:22]MH_I2C_Read... [22:31:22]Read from MH i2c: E2 0E 00 [22:31:22]MH_I2C_Read... [22:31:22]Read from MH i2c: E2 0E 00 93 60 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 DB [22:31:22]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:31:22]wFMCommunicate OK [22:31:22]SAM_PROTO_GetShiftState done [22:31:22]FM_GetShiftState done [22:31:22]opened in 1712622936 [22:31:22]opened+sec_in_day 1712709336 [22:31:22]quantity*price = 50022 [22:31:22]sum+1 = 50024 [22:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 122 "Партнер Нефть" Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 СНО: Общий режим Чек 68 09.04.2024 22:31 Смена: 315 ФФД: 1.0 ЗНМ: 0300000147 РНМ: 0000000000091578 Версия ККМ: 001 ФМ: 0000000000874657 ФД: 26936 ФПД: 105362144795341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T223145&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26936&fm=105362144795341&tin=02508201610067®Number=0000000000091578&sum=50000 [22:31:23]StoreToDocumentArchive [22:31:23]shift 315 fd 26936 [22:31:23]save to /storage/0315/doc_00026936 [22:31:23]save last doc name /storage/0315/doc_00026936 to /storage/kkm_last_doc_name [22:31:23]save OK [22:31:23]Clear old archive folders... [22:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:31:23]tlvbuf is 00E3C090 [22:31:23]SAM_PROTO_ClearQueue [22:31:23]wFMCommunicate request_size=4 [22:31:23]MH_SAM_APDU [22:31:23]CAPDU: 80 09 00 00 [22:31:23]Write to MH i2c: E2 08 00 A0 60 80 09 00 00 00 00 00 00 72 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:23]Read from MH i2c: E2 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 A0 60 00 90 00 74 [22:31:23]RAPDU: 90 00 [22:31:23]wFMCommunicate OK [22:31:23]SAM_PROTO_ClearQueue done [22:31:23]KKMCreateOFDPacket [22:31:23]OFDProtocolAddRootSTLVToBuf [22:31:23]FM_MakeSignedData [22:31:23]FM_MakeSignedData [22:31:23]SAM_PROTO_SignData [22:31:23]wFMCommunicate request_size=4 [22:31:23]MH_SAM_APDU [22:31:23]CAPDU: 80 0D 01 02 [22:31:23]Write to MH i2c: E2 08 00 A1 60 80 0D 01 02 00 00 00 00 7A [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]OFD Sender: No OFD packet to send [22:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:23]Read from MH i2c: E2 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 A1 60 00 90 00 75 [22:31:23]RAPDU: 90 00 [22:31:23]wFMCommunicate OK [22:31:23]wFMCommunicate request_size=255 [22:31:23]MH_SAM_APDU [22:31:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D1 C1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 38 69 00 00 35 04 06 00 5F [22:31:23]Write to MH i2c: E2 02 01 A2 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D1 C1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 38 69 00 00 35 04 06 00 5F 00 00 C7 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:23]Read from MH i2c: E2 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 A2 60 00 90 00 76 [22:31:23]RAPDU: 90 00 [22:31:23]wFMCommunicate OK [22:31:23]wFMCommunicate request_size=10 [22:31:23]MH_SAM_APDU [22:31:23]CAPDU: 80 0D 02 02 05 D3 89 36 9A CD [22:31:23]Write to MH i2c: E2 0D 00 A3 60 80 0D 02 02 05 00 D3 89 36 9A CD 00 00 80 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:23]Read from MH i2c: E2 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 03 00 A3 60 00 90 00 77 [22:31:23]RAPDU: 90 00 [22:31:23]wFMCommunicate OK [22:31:23]wFMCommunicate request_size=4 [22:31:23]MH_SAM_APDU [22:31:23]CAPDU: 80 0D 03 02 [22:31:23]Write to MH i2c: E2 08 00 A4 60 80 0D 03 02 00 00 00 00 7F [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:23]Read from MH i2c: E2 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 0B 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 0B 00 A4 60 00 57 64 92 02 07 36 D5 A8 90 00 89 [22:31:23]RAPDU: 57 64 92 02 07 36 D5 A8 90 00 [22:31:23]wFMCommunicate OK [22:31:23]SAM_PROTO_SignData done [22:31:23]FM_MakeSignedData done [22:31:23]CreateOFDProtocolMessage [22:31:23]wFMCommunicate request_size=4 [22:31:23]MH_SAM_APDU [22:31:23]CAPDU: 80 11 00 00 [22:31:23]Write to MH i2c: E2 08 00 A5 60 80 11 00 00 00 00 00 00 7F [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:23]Read from MH i2c: E2 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 17 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 17 00 A5 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 D7 [22:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:31:23]wFMCommunicate OK [22:31:23]CreateOFDProtocolMessage done [22:31:23]OFDSenderStorePacket 26936 [22:31:23]StoreOFDPacket docnum=26936 [22:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D9 61 07 01 DC 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D1 C1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 38 69 00 00 35 04 06 00 5F D3 89 36 9A CD 57 64 92 02 07 36 D5 A8 [22:31:23]CheckFolder [22:31:23]dirname=/storage/ofd_packets [22:31:23]CheckFolder done [22:31:23]ProducePacketName [22:31:23]name=ofd_packets/00026936 [22:31:23]NVStorageSaveData ofd_packets/00026936 [22:31:23]File name is /storage/ofd_packets/00026936 [22:31:23]Write 301 bytes [22:31:23]NVStorageSaveData done [22:31:23]OFDSenderStorePacket done [22:31:23]KKMCreateOFDPacket done [22:31:23]NVStorageSaveData kkm_last_timestamp [22:31:23]File name is /storage/kkm_last_timestamp [22:31:23]Write 4 bytes [22:31:23]NVStorageSaveData done [22:31:23]ExternCall_PrintAddStr [22:31:23]wPrintStart [22:31:23]Write to MH i2c: 01 00 00 A6 60 06 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 07 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: 01 07 00 A6 60 00 00 00 00 00 FF 0F 1B [22:31:23]RasterBufferAndPrint [22:31:23]line Счет N : (1)359681 [22:31:23]line ИНН: 02508201610067 [22:31:23]line Контрольно-Кассовый Чек [22:31:23]line ПРОДАЖА [22:31:23]line ТРК (МРК, ГНК) : 61 [22:31:23]line Товар: 2710124130 [22:31:23]line Аи-92-К-5 [22:31:23]line 7.890 * 63.40 [22:31:23]line = 500.23 [22:31:23]line НДС 12% НСП 1% [22:31:23]line > о реализуемом товаре [22:31:23]line ОКРУГЛЕНИЕ: -0.23 [22:31:23]line ИТОГО: 500.00 [22:31:23]line Внесено: 500.00 [22:31:23]line СДАЧА: 0.00 [22:31:23]line НСП 1% : 4.43 [22:31:23]line НДС 12% : 53.12 [22:31:23]line Наличными: 500.00 [22:31:23]line Безнал.: 0.00 [22:31:23]line Место: АЗС № 122 "Партнер Нефть" [22:31:23]line Адрес: 720001 с. Ивановка, ул. Г. Ильина 4/1, 42.894093, 75.040678 [22:31:23]line СНО: Общий режим [22:31:23]line Чек 68 09.04.2024 22:31 [22:31:23]line Смена: 315 ФФД: 1.0 [22:31:23]line ЗНМ: 0300000147 [22:31:23]line РНМ: 0000000000091578 [22:31:23]line Версия ККМ: 001 [22:31:23]line ФМ: 0000000000874657 [22:31:23]line ФД: 26936 [22:31:23]line ФПД: 105362144795341 [22:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240409T223145&type=1&operation_type=1&fn_number=0000000000874657&fd_number=26936&fm=105362144795341&tin=02508201610067®Number=0000000000091578&sum=50000 [22:31:24]OFD Sender: Processing packet 26936 [packets to send 44, broken 43] [22:31:24]ProducePacketName [22:31:24]name=ofd_packets/00026936 [22:31:24]OFD Sender: To server: pG, [22:31:24]CommunicateWithHost lk.salyk.kg:30040 [22:31:24]ConnectInit lk.salyk.kg [22:31:24]written 0, free lines is 4095 [22:31:24]Connected sock=10 [22:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0F 01 00 00 D9 61 07 01 DC 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 C4 18 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D1 C1 15 66 0E 04 04 00 3B 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 38 69 00 00 35 04 06 00 5F D3 89 36 9A CD 57 64 92 02 07 36 D5 A8 [22:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 4F 00 00 00 1B 6C 47 00 BB 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 10 04 04 00 38 69 00 00 F4 03 04 00 36 69 15 66 B6 04 01 00 00 DC BB F1 66 F2 D6 DC 60 [22:31:24]CommunicateWithHost err = 0 [22:31:24]CheckOFDResponse [22:31:24]1017 (14) - 77093643461234 [22:31:24]1041 (16) - 0000000000874657 [22:31:24]1040 (4) - 26936 [22:31:24]1012 (4) - 09.04.2024 16:13 [22:31:24]1206 (1) - 0 [22:31:24]OFD Sender: Remove packet 26936 [22:31:24]ProducePacketName [22:31:24]name=ofd_packets/00026936 [22:31:24]NVStorageDeleteData [22:31:24]Write to MH i2c: 01 00 00 D1 60 31 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: 01 07 00 D1 60 00 00 00 00 00 6C 0C B0 [22:31:24]RasterBufferAndPrint [22:31:24]line [22:31:24]line [22:31:24]line [22:31:24]line [22:31:24]line [22:31:24]written 0, free lines is 3184 [22:31:24]MH_Cut [22:31:24]Write to MH i2c: D1 01 00 D8 60 01 0A [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: D1 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: D1 01 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: D1 01 00 D8 60 00 09 [22:31:24]Write to MH i2c: 01 00 00 D9 60 39 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:25]OFD Sender: No OFD packet to send [22:31:25]*** Cut start [22:31:25]*** Partial cut [22:31:25]*** CUTSNS_PIN = 1 [22:31:25]*** CUTSNS_PIN = 0 [22:31:26]*** Brake cut motor [22:31:26]Read from MH i2c: 01 [22:31:26]MH_I2C_Read... [22:31:26]*** Stop cut motor [22:31:26]*** Cut end [22:31:26]Read from MH i2c: 01 07 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: 01 07 00 D9 60 00 00 00 00 00 FF 0F 4E [22:31:26]process_action close_receipt done [22:31:26]requested_data is exist [22:31:26]produce_requested_data [22:31:26]requested_item fm.sn is exist - process it [22:31:26]wFMCommunicate request_size=4 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 11 00 00 [22:31:26]Write to MH i2c: E2 08 00 DA 60 80 11 00 00 00 00 00 00 B4 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 17 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 17 00 DA 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 0C [22:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 90 00 [22:31:26]wFMCommunicate OK [22:31:26]requested_item fd.num is exist - process it [22:31:26]SAM_PROTO_GetFieldsCounters [22:31:26]wFMCommunicate request_size=4 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 13 00 00 [22:31:26]Write to MH i2c: E2 08 00 DB 60 80 13 00 00 00 00 00 00 B7 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 62 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 62 00 DB 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 38 69 00 00 0E 04 04 00 3B 01 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 8B [22:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 38 10 04 04 00 38 69 00 00 0E 04 04 00 3B 01 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 [22:31:26]wFMCommunicate OK [22:31:26]SAM_PROTO_GetFieldsCounters done [22:31:26]requested_item shift.num is exist - process it [22:31:26]requested_item shift.opened is exist - process it [22:31:26]req_shift_opened [22:31:26]FM_GetShiftState [22:31:26]SAM_PROTO_GetShiftState [22:31:26]wFMCommunicate request_size=4 [22:31:26]MH_SAM_APDU [22:31:26]CAPDU: 80 13 01 00 [22:31:26]Write to MH i2c: E2 08 00 DC 60 80 13 01 00 00 00 00 00 B9 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:26]Read from MH i2c: E2 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 0E 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: E2 0E 00 DC 60 00 09 00 01 58 8D 14 66 00 00 00 00 90 00 24 [22:31:26]RAPDU: 09 00 01 58 8D 14 66 00 00 00 00 90 00 [22:31:26]wFMCommunicate OK [22:31:26]SAM_PROTO_GetShiftState done [22:31:26]FM_GetShiftState done [22:31:26]req_shift_opened done [22:31:26]requested_item shift.open_date is exist - process it [22:31:26]req_shift_open_date [22:31:26]req_shift_open_date done [22:31:26]produce_requested_data done [22:31:26]produce_requested_data return {"fm.sn":"0000000000874657","fd.num":26936,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936} [22:31:26]process_action_free close_receipt [22:31:26]json_value_free [22:31:26]json_value_free done [22:31:26]process_json_proto returns [22:31:26]Send response to host [22:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874657","fd.num":26936,"shift.num":315,"shift.opened":1,"shift.open_date":1712622936}}} [22:31:26]free response buf [22:31:26]execute_script done [22:31:26]execute_script returns [22:31:26]free content buf [22:31:26]Sock 8.Close socket [22:31:26]Sock 8.Thread stoped [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [02:39:17]ConnectInit Can't connect to host [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:27]recv_with_timeout no data received [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send